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 ++++++++++++++++++++++++++++++++ docs/templates/pages/components.mustache | 50 ++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) (limited to 'docs') 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">
diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache
index 7c9499947..f0f19ee72 100644
--- a/docs/templates/pages/components.mustache
+++ b/docs/templates/pages/components.mustache
@@ -973,12 +973,30 @@
 
           

{{_i}}Brand{{/i}}

{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}

+
+ +
{{! /example }}
 <a class="brand" href="#">{{_i}}Project name{{/i}}</a>
 

{{_i}}Nav links{{/i}}

{{_i}}Nav items are simple to add via unordered lists.{{/i}}

+ {{! /example }}
 <ul class="nav">
   <li class="active">
@@ -989,6 +1007,20 @@
 </ul>
 

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

+ {{! /example }}
 <ul class="nav">
   ...
@@ -999,6 +1031,15 @@
 
           

{{_i}}Forms{{/i}}

{{_i}}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.{{/i}}

+
+ +
{{! /example }}
 <form class="navbar-form pull-left">
   <input type="text" class="span2">
@@ -1007,6 +1048,15 @@
 
           

{{_i}}Search form{{/i}}

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

+
+ +
{{! /example }}
 <form class="navbar-search pull-left">
   <input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}">
-- 
cgit v1.2.3