From 29e6ef7c703c5a8eb6e19dea22f797c20e1e533e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 18 Feb 2012 15:23:38 -0800 Subject: [PATCH] clarify forms in navbar per #2072 --- docs/assets/bootstrap.zip | Bin 53351 -> 53351 bytes docs/components.html | 10 ++++++++-- docs/templates/pages/components.mustache | 10 ++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 79dd29aee2afb03d8e83440f4ad879e7e9c0d4d0..04d93735d041f2d6ed49ebfade82f2ea0a2df1ed 100644 GIT binary patch delta 426 zcmaF9fcg0XX6^uQW)?065O_0@TS@7Sk%Rv`ATF)oW?*Fb%E-XLA_9~{sCqlmUybc8 zSk+|TsnU#ZCr-Bm^WPe6y#1Gh@$KZBoK9>YBi62pr8>@ z~lc~&fRl9sCIguH%6E|=e#|F^ZUFrh~scU9RQZsvMB%n delta 426 zcmaF9fcg0XX6^uQW)?065YU*&t)x_A=-^)u#HAJ742&#a85tN@M1XP#Rhkq1)!6F5 zswVqRm1fkOINc7+uQS|u`!5Hh=H#24PEdi(id@y~K#{qE#%#4fEj5OluL%ko0YzRo zn}gNV8g5o~G0SC+|Ne zK3U)#8_*QRGbT)RAOTq*r}T^ug7ff90D=>E){&_erfkz$SBMP65DlOqvXf2Di9<}5 o1zMARE(pQ7d(H>dPS5kk2$ScWw})}GCjUO~%v5hU+2MjZ0Ax&$^#A|> diff --git a/docs/components.html b/docs/components.html index 41f5e5819b..b7e60df87e 100644 --- a/docs/components.html +++ b/docs/components.html @@ -830,8 +830,14 @@ Project name </a> -

Search form

-

Search forms receive custom styles in the navbar with the .navbar-search class. Include .pull-left or .pull-right on the form to align it.

+

Forms in navbar

+

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">
+</form>
+
+

For a more customized search form, add the .navbar-search class to receive 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 a3df924876..39c9020d26 100644
--- a/docs/templates/pages/components.mustache
+++ b/docs/templates/pages/components.mustache
@@ -754,8 +754,14 @@
   {{_i}}Project name{{/i}}
 </a>
 
-

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

-

{{_i}}Search forms receive custom styles in the navbar with the .navbar-search class. Include .pull-left or .pull-right on the form to align it.{{/i}}

+

{{_i}}Forms in navbar{{/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}}

+
+<form class="navbar-form pull-left">
+  <input type="text" class="span2">
+</form>
+
+

{{_i}}For a more customized search form, add the .navbar-search class to receive specialized styles in the navbar.{{/i}}

 <form class="navbar-search pull-left">
   <input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}">