mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 18:44:01 +02:00
Improve doc for block level buttons
This commit is contained in:
@@ -1500,11 +1500,14 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<p>Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.</p>
|
<p>Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="well" style="max-width: 400px; margin: 0 auto 10px;">
|
<div class="well" style="max-width: 400px; margin: 0 auto 10px;">
|
||||||
<button type="button" class="btn btn-large btn-primary btn-block">Block level button</button>
|
<button type="button" class="btn btn-large btn-block btn-primary">Block level button</button>
|
||||||
<button type="button" class="btn btn-large btn-block">Block level button</button>
|
<button type="button" class="btn btn-large btn-block">Block level button</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums"><button class="btn btn-large btn-block" type="button">Block level button</button></pre>
|
<pre class="prettyprint linenums">
|
||||||
|
<button class="btn btn-large btn-block btn-primary" type="button">Block level button</button>
|
||||||
|
<button class="btn btn-large btn-block" type="button">Block level button</button>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
<h2>Disabled state</h2>
|
<h2>Disabled state</h2>
|
||||||
|
7
docs/templates/pages/base-css.mustache
vendored
7
docs/templates/pages/base-css.mustache
vendored
@@ -1437,11 +1437,14 @@
|
|||||||
<p>{{_i}}Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.{{/i}}</p>
|
<p>{{_i}}Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.{{/i}}</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="well" style="max-width: 400px; margin: 0 auto 10px;">
|
<div class="well" style="max-width: 400px; margin: 0 auto 10px;">
|
||||||
<button type="button" class="btn btn-large btn-primary btn-block">{{_i}}Block level button{{/i}}</button>
|
<button type="button" class="btn btn-large btn-block btn-primary">{{_i}}Block level button{{/i}}</button>
|
||||||
<button type="button" class="btn btn-large btn-block">{{_i}}Block level button{{/i}}</button>
|
<button type="button" class="btn btn-large btn-block">{{_i}}Block level button{{/i}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums"><button class="btn btn-large btn-block" type="button">{{_i}}Block level button{{/i}}</button></pre>
|
<pre class="prettyprint linenums">
|
||||||
|
<button class="btn btn-large btn-block btn-primary" type="button">{{_i}}Block level button{{/i}}</button>
|
||||||
|
<button class="btn btn-large btn-block" type="button">{{_i}}Block level button{{/i}}</button>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
<h2>{{_i}}Disabled state{{/i}}</h2>
|
<h2>{{_i}}Disabled state{{/i}}</h2>
|
||||||
|
Reference in New Issue
Block a user