mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
update buttons in docs to include type
This commit is contained in:
+19
-19
@@ -1067,13 +1067,13 @@
|
||||
<form class="bs-docs-example">
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
|
||||
<button class="btn">{{_i}}Cancel{{/i}}</button>
|
||||
<button type="button" class="btn">{{_i}}Cancel{{/i}}</button>
|
||||
</div>
|
||||
</form>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
|
||||
<button class="btn">{{_i}}Cancel{{/i}}</button>
|
||||
<button type="button" class="btn">{{_i}}Cancel{{/i}}</button>
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
@@ -1194,37 +1194,37 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><button class="btn" href="#">{{_i}}Default{{/i}}</button></td>
|
||||
<td><button type="button" class="btn">{{_i}}Default{{/i}}</button></td>
|
||||
<td><code>btn</code></td>
|
||||
<td>{{_i}}Standard gray button with gradient{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="btn btn-primary" href="#">{{_i}}Primary{{/i}}</button></td>
|
||||
<td><button type="button" class="btn btn-primary">{{_i}}Primary{{/i}}</button></td>
|
||||
<td><code>btn btn-primary</code></td>
|
||||
<td>{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="btn btn-info" href="#">{{_i}}Info{{/i}}</button></td>
|
||||
<td><button type="button" class="btn btn-info">{{_i}}Info{{/i}}</button></td>
|
||||
<td><code>btn btn-info</code></td>
|
||||
<td>{{_i}}Used as an alternative to the default styles{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="btn btn-success" href="#">{{_i}}Success{{/i}}</button></td>
|
||||
<td><button type="button" class="btn btn-success">{{_i}}Success{{/i}}</button></td>
|
||||
<td><code>btn btn-success</code></td>
|
||||
<td>{{_i}}Indicates a successful or positive action{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="btn btn-warning" href="#">{{_i}}Warning{{/i}}</button></td>
|
||||
<td><button type="button" class="btn btn-warning">{{_i}}Warning{{/i}}</button></td>
|
||||
<td><code>btn btn-warning</code></td>
|
||||
<td>{{_i}}Indicates caution should be taken with this action{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="btn btn-danger" href="#">{{_i}}Danger{{/i}}</button></td>
|
||||
<td><button type="button" class="btn btn-danger">{{_i}}Danger{{/i}}</button></td>
|
||||
<td><code>btn btn-danger</code></td>
|
||||
<td>{{_i}}Indicates a dangerous or potentially negative action{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="btn btn-inverse" href="#">{{_i}}Inverse{{/i}}</button></td>
|
||||
<td><button type="button" class="btn btn-inverse">{{_i}}Inverse{{/i}}</button></td>
|
||||
<td><code>btn btn-inverse</code></td>
|
||||
<td>{{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}}</td>
|
||||
</tr>
|
||||
@@ -1241,16 +1241,16 @@
|
||||
<h2>{{_i}}Button sizes{{/i}}</h2>
|
||||
<p>{{_i}}Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for two additional sizes.{{/i}}</p>
|
||||
<p>
|
||||
<button class="btn btn-large btn-primary">{{_i}}Primary action{{/i}}</button>
|
||||
<button class="btn btn-large">{{_i}}Action{{/i}}</button>
|
||||
<button type="button" class="btn btn-large btn-primary">{{_i}}Primary action{{/i}}</button>
|
||||
<button type="button" class="btn btn-large">{{_i}}Action{{/i}}</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-small btn-primary">{{_i}}Primary action{{/i}}</button>
|
||||
<button class="btn btn-small">{{_i}}Action{{/i}}</button>
|
||||
<button type="button" class="btn btn-small btn-primary">{{_i}}Primary action{{/i}}</button>
|
||||
<button type="button" class="btn btn-small">{{_i}}Action{{/i}}</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-mini btn-primary">{{_i}}Primary action{{/i}}</button>
|
||||
<button class="btn btn-mini">{{_i}}Action{{/i}}</button>
|
||||
<button type="button" class="btn btn-mini btn-primary">{{_i}}Primary action{{/i}}</button>
|
||||
<button type="button" class="btn btn-mini">{{_i}}Action{{/i}}</button>
|
||||
</p>
|
||||
|
||||
|
||||
@@ -1278,12 +1278,12 @@
|
||||
<h3>Button element</h3>
|
||||
<p>{{_i}}Add the <code>disabled</code> attribute to <code><button></code> buttons.{{/i}}</p>
|
||||
<p class="bs-docs-example">
|
||||
<button class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
|
||||
<button class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
|
||||
<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
|
||||
<button type="button" class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
|
||||
</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<button class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
|
||||
<button class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
|
||||
<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
|
||||
<button type="button" class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user