diff options
| author | Mark Otto <[email protected]> | 2012-07-10 00:32:04 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-07-10 00:32:30 -0700 |
| commit | 5d8e78e0faedb4365216f1ebbc5d70dc560f3f6e (patch) | |
| tree | 67bc139371c6a5242fae8823c2c2897e3ce0561c /docs/base-css.html | |
| parent | 75d952ffd80c3c3e18b2e47eac30a2b23d8ae7a7 (diff) | |
| download | bootstrap-5d8e78e0faedb4365216f1ebbc5d70dc560f3f6e.tar.xz bootstrap-5d8e78e0faedb4365216f1ebbc5d70dc560f3f6e.zip | |
fixes #3605: add support for input-prepend/-append to .form-search
Diffstat (limited to 'docs/base-css.html')
| -rw-r--r-- | docs/base-css.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/base-css.html b/docs/base-css.html index 175825c71..75296003b 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -752,6 +752,7 @@ For example, <code>section</code> should be wrapped as inline. <h2>Default styles</h2> <p>Individual form controls receive styling, but without any required base class on the <code><form></code> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.</p> <form class="bs-docs-example"> + <legend>Legend</legend> <label>Label name</label> <input type="text" placeholder="Type something…"> <p class="help-block">Example block-level help text here.</p> @@ -822,6 +823,7 @@ For example, <code>section</code> should be wrapped as inline. <li>Wrap any associated controls in <code>.controls</code> for proper alignment</li> </ul> <form class="bs-docs-example form-horizontal"> + <legend>Legend</legend> <div class="control-group"> <label class="control-label" for="">Email</label> <div class="controls"> @@ -1061,6 +1063,24 @@ For example, <code>section</code> should be wrapped as inline. </div> </pre> + <h4>Search form</h4> + <form class="bs-docs-example form-search"> + <div class="input-append"> + <input type="text" class="span2 search-query"> + <button type="submit" class="btn">Search</button> + </div> + <div class="input-prepend"> + <button type="submit" class="btn">Search</button> + <input type="text" class="span2 search-query"> + </div> + </form> +<pre class="prettyprint linenums"> +<form class="form-search"> + <input type="text" class="span2 search-query"> + <button type="submit" class="btn">Search</button> +</form> +</pre> + <h3>Control sizing</h3> <p>Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.span*</code> classes.</p> |
