From 94792b9dae3800e739e0036d45a276c3127b103d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 2 May 2013 23:05:09 -0700 Subject: Improve buttons in navbars * Add top margin, calculated by subtracting height of an input from height of a navbar, and dividing by two * Uses the same method as .navbar-form * To use, add .navbar-btn to any button outside a form element * Also add section to docs detailing buttons in navbars, and add more ids for the other unlinked and unmentioned sections in the side nav --- docs/docs.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'docs/docs.html') diff --git a/docs/docs.html b/docs/docs.html index 2b922b695..e4f711381 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -3522,13 +3522,19 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

Component alignment

-

Align nav links, search form, or text, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.

+ +

For buttons not residing in a <form>, add this class to vertically center buttons within a navbar.

+
+ +
-

Using dropdowns

-

Add dropdowns and dropups to the nav with a bit of markup and the dropdowns JavaScript plugin.

+ +

Align nav links, search form, or text, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.

-

Text

+

Wrap strings of text in an element with .navbar-text, usually on a <p> tag for proper leading and color.

-- cgit v1.2.3