mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
document fieldset[disabled] styling added in #6199; per @mdo
This commit is contained in:
parent
3b5d4f52a3
commit
48759eee94
@ -1725,6 +1725,43 @@ For example, <code><section></code> should be wrapped as inlin
|
||||
<input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
|
||||
</pre>
|
||||
|
||||
<h3>Disabled fieldsets</h3>
|
||||
<p>Add the <code>disabled</code> attribute on a <code>fieldset</code> to disable all the controls within the fieldset at once.</p>
|
||||
<form class="bs-docs-example form-inline">
|
||||
<fieldset disabled>
|
||||
<input type="text" class="span4" placeholder="These controls are all disabled just">
|
||||
<select class="span4">
|
||||
<option>by being under a disabled fieldset</option>
|
||||
</select>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Can't check this
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<form class="form-inline">
|
||||
<fieldset disabled>
|
||||
<input type="text" class="span4" placeholder="These controls are all disabled just">
|
||||
<select class="span4">
|
||||
<option>by being under a disabled fieldset</option>
|
||||
</select>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Can't check this
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="label label-info">Heads up!</span>
|
||||
<code><a></code> buttons within a <code>fieldset[disabled]</code> will be styled like they each had the <code>.disabled</code> class, but this only affects aesthetics; you must use custom JavaScript to actually make such links non-functional.
|
||||
</p>
|
||||
|
||||
<h3>Validation states</h3>
|
||||
<p>Bootstrap includes validation styles for error, warning, info, and success messages. To use, add the appropriate class to the surrounding <code>.control-group</code>.</p>
|
||||
|
||||
|
37
docs/templates/pages/css.mustache
vendored
37
docs/templates/pages/css.mustache
vendored
@ -1665,6 +1665,43 @@ For example, <code><section></code> should be wrapped as inlin
|
||||
<input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
|
||||
</pre>
|
||||
|
||||
<h3>Disabled fieldsets</h3>
|
||||
<p>Add the <code>disabled</code> attribute on a <code>fieldset</code> to disable all the controls within the fieldset at once.</p>
|
||||
<form class="bs-docs-example form-inline">
|
||||
<fieldset disabled>
|
||||
<input type="text" class="span4" placeholder="These controls are all disabled just">
|
||||
<select class="span4">
|
||||
<option>by being under a disabled fieldset</option>
|
||||
</select>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Can't check this
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<form class="form-inline">
|
||||
<fieldset disabled>
|
||||
<input type="text" class="span4" placeholder="These controls are all disabled just">
|
||||
<select class="span4">
|
||||
<option>by being under a disabled fieldset</option>
|
||||
</select>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox"> Can't check this
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="label label-info">Heads up!</span>
|
||||
<code><a></code> buttons within a <code>fieldset[disabled]</code> will be styled like they each had the <code>.disabled</code> class, but this only affects aesthetics; you must use custom JavaScript to actually make such links non-functional.
|
||||
</p>
|
||||
|
||||
<h3>Validation states</h3>
|
||||
<p>Bootstrap includes validation styles for error, warning, info, and success messages. To use, add the appropriate class to the surrounding <code>.control-group</code>.</p>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user