mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-30 15:24:08 +03:00
more tests for form styles; includes lightening help text
This commit is contained in:
+22
-14
@@ -825,16 +825,18 @@
|
||||
</div>
|
||||
|
||||
<h2 id="forms-default">{{_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>
|
||||
<p>{{_i}}Individual form controls automatically receive some global styling. By default, inputs are set to <code>width: 100%;</code>.{{/i}}</p>
|
||||
<form class="bs-docs-example">
|
||||
<fieldset>
|
||||
<legend>Legend</legend>
|
||||
<label>{{_i}}Label name{{/i}}</label>
|
||||
<input type="text" placeholder="{{_i}}Type something…{{/i}}">
|
||||
<span class="help-block">{{_i}}Example block-level help text here.{{/i}}</span>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox"> {{_i}}Check me out{{/i}}
|
||||
</label>
|
||||
<p class="help-block">{{_i}}Example block-level help text here.{{/i}}</p>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> {{_i}}Check me out{{/i}}
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">{{_i}}Submit{{/i}}</button>
|
||||
</fieldset>
|
||||
</form>{{! /example }}
|
||||
@@ -845,9 +847,11 @@
|
||||
<label>{{_i}}Label name{{/i}}</label>
|
||||
<input type="text" placeholder="{{_i}}Type something…{{/i}}">
|
||||
<span class="help-block">Example block-level help text here.</span>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox"> {{_i}}Check me out{{/i}}
|
||||
</label>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> {{_i}}Check me out{{/i}}
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">{{_i}}Submit{{/i}}</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -878,18 +882,22 @@
|
||||
<form class="bs-docs-example form-inline">
|
||||
<input type="text" class="span3" placeholder="{{_i}}Email{{/i}}">
|
||||
<input type="password" class="span3" placeholder="{{_i}}Password{{/i}}">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox"> {{_i}}Remember me{{/i}}
|
||||
</label>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> {{_i}}Remember me{{/i}}
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
|
||||
</form>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<form class="form-inline">
|
||||
<input type="text" class="span3" placeholder="{{_i}}Email{{/i}}">
|
||||
<input type="password" class="span3" placeholder="{{_i}}Password{{/i}}">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox"> {{_i}}Remember me{{/i}}
|
||||
</label>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> {{_i}}Remember me{{/i}}
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
|
||||
</form>
|
||||
</pre>
|
||||
|
||||
Reference in New Issue
Block a user