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/_includes/docs-nav.html | 3 +++ docs/docs.html | 16 +++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/_includes/docs-nav.html b/docs/_includes/docs-nav.html index c10bea4d3..ebeb0d828 100644 --- a/docs/_includes/docs-nav.html +++ b/docs/_includes/docs-nav.html @@ -121,6 +121,9 @@
  • Basic navbar
  • Nav links
  • Forms in navbars
  • +
  • Buttons in navbars
  • +
  • Component alignment
  • +
  • Text in navbars
  • Fixed top navbar
  • Fixed bottom navbar
  • Static top navbar
  • 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