From 04164e4367134103a2ca94e49785a18b17032ec3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jul 2012 10:24:41 -0700 Subject: fixes #3858: add var for responsive navbar. also add additional examples to navbar docs --- docs/components.html | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'docs/components.html') diff --git a/docs/components.html b/docs/components.html index 8399b4297..d6d4cc1bc 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1044,12 +1044,30 @@

Brand

A simple link to show your brand or project name only requires an anchor tag.

+
+ +
 <a class="brand" href="#">Project name</a>
 

Nav links

Nav items are simple to add via unordered lists.

+
+ +
 <ul class="nav">
   <li class="active">
@@ -1060,6 +1078,20 @@
 </ul>
 

You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:

+
+ +
 <ul class="nav">
   ...
@@ -1070,6 +1102,15 @@
 
           

Forms

To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form and either .pull-left or .pull-right to properly align it.

+
+ +
 <form class="navbar-form pull-left">
   <input type="text" class="span2">
@@ -1078,6 +1119,15 @@
 
           

Search form

For a more customized search form, add .navbar-search to the form and .search-query to the input for specialized styles in the navbar.

+
+ +
 <form class="navbar-search pull-left">
   <input type="text" class="search-query" placeholder="Search">
-- 
cgit v1.2.3