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/templates | |
| 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/templates')
| -rw-r--r-- | docs/templates/pages/base-css.mustache | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index cc09f8301..21c24657a 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -690,6 +690,7 @@ <h2>{{_i}}Default styles{{/i}}</h2> <p>{{_i}}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.{{/i}}</p> <form class="bs-docs-example"> + <legend>Legend</legend> <label>{{_i}}Label name{{/i}}</label> <input type="text" placeholder="{{_i}}Type something…{{/i}}"> <p class="help-block">{{_i}}Example block-level help text here.{{/i}}</p> @@ -760,6 +761,7 @@ <li>{{_i}}Wrap any associated controls in <code>.controls</code> for proper alignment{{/i}}</li> </ul> <form class="bs-docs-example form-horizontal"> + <legend>Legend</legend> <div class="control-group"> <label class="control-label" for="">{{_i}}Email{{/i}}</label> <div class="controls"> @@ -999,6 +1001,24 @@ </div> </pre> + <h4>{{_i}}Search form{{/i}}</h4> + <form class="bs-docs-example form-search"> + <div class="input-append"> + <input type="text" class="span2 search-query"> + <button type="submit" class="btn">{{_i}}Search{{/i}}</button> + </div> + <div class="input-prepend"> + <button type="submit" class="btn">{{_i}}Search{{/i}}</button> + <input type="text" class="span2 search-query"> + </div> + </form>{{! /example }} +<pre class="prettyprint linenums"> +<form class="form-search"> + <input type="text" class="span2 search-query"> + <button type="submit" class="btn">{{_i}}Search{{/i}}</button> +</form> +</pre> + <h3>{{_i}}Control sizing{{/i}}</h3> <p>{{_i}}Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.span*</code> classes.{{/i}}</p> |
