]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Improve doc for Button sizes
authorErik van der Kolk <developer@smerik.nl>
Sat, 18 Aug 2012 14:36:40 +0000 (16:36 +0200)
committerErik van der Kolk <developer@smerik.nl>
Sat, 18 Aug 2012 14:36:40 +0000 (16:36 +0200)
docs/base-css.html
docs/templates/pages/base-css.mustache

index 7b09e7175c970d9eecefa39a48252890a978222d..c84a42cf7c20440cdbe46a43cf944737ee7a65e8 100644 (file)
@@ -1460,30 +1460,42 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
 
 
           <h2>Button sizes</h2>
-          <p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for two additional sizes.</p>
+          <p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for additional sizes.</p>
           <div class="bs-docs-example">
             <p>
-              <button type="button" class="btn btn-large btn-primary">Primary action</button>
-              <button type="button" class="btn btn-large">Action</button>
+              <button type="button" class="btn btn-large btn-primary">Large button</button>
+              <button type="button" class="btn btn-large">Large button</button>
             </p>
             <p>
-              <button type="button" class="btn btn-primary">Primary action</button>
-              <button type="button" class="btn">Action</button>
+              <button type="button" class="btn btn-primary">Default button</button>
+              <button type="button" class="btn">Default button</button>
             </p>
             <p>
-              <button type="button" class="btn btn-small btn-primary">Primary action</button>
-              <button type="button" class="btn btn-small">Action</button>
+              <button type="button" class="btn btn-small btn-primary">Small button</button>
+              <button type="button" class="btn btn-small">Small button</button>
             </p>
             <p>
-              <button type="button" class="btn btn-mini btn-primary">Primary action</button>
-              <button type="button" class="btn btn-mini">Action</button>
+              <button type="button" class="btn btn-mini btn-primary">Mini button</button>
+              <button type="button" class="btn btn-mini">Mini button</button>
             </p>
           </div>
 <pre class="prettyprint linenums">
-&lt;button class="btn btn-large" type="button"&gt;Large button&lt;/button&gt;
-&lt;button class="btn btn-small" type="button"&gt;Small button&lt;/button&gt;
-&lt;button class="btn" type="button"&gt;Default button&lt;/button&gt;
-&lt;button class="btn btn-mini" type="button"&gt;Mini button&lt;/button&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-large btn-primary" type="button"&gt;Large button&lt;/button&gt;
+  &lt;button class="btn btn-large" type="button"&gt;Large button&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-primary" type="button"&gt;Default button&lt;/button&gt;
+  &lt;button class="btn" type="button"&gt;Default button&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-small btn-primary" type="button"&gt;Small button&lt;/button&gt;
+  &lt;button class="btn btn-small" type="button"&gt;Small button&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-mini btn-primary" type="button"&gt;Mini button&lt;/button&gt;
+  &lt;button class="btn btn-mini" type="button"&gt;Mini button&lt;/button&gt;
+&lt;/p&gt;
 </pre>
           <p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p>
           <div class="bs-docs-example">
index ef896d486851e7121cb905f1cdcc009c3e9f143c..26a4129a67068ded6d93d2bb47b08aa243fdb523 100644 (file)
 
 
           <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>{{_i}}Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for additional sizes.{{/i}}</p>
           <div class="bs-docs-example">
             <p>
-              <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>
+              <button type="button" class="btn btn-large btn-primary">{{_i}}Large button{{/i}}</button>
+              <button type="button" class="btn btn-large">{{_i}}Large button{{/i}}</button>
             </p>
             <p>
-              <button type="button" class="btn btn-primary">{{_i}}Primary action{{/i}}</button>
-              <button type="button" class="btn">{{_i}}Action{{/i}}</button>
+              <button type="button" class="btn btn-primary">{{_i}}Default button{{/i}}</button>
+              <button type="button" class="btn">{{_i}}Default button{{/i}}</button>
             </p>
             <p>
-              <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>
+              <button type="button" class="btn btn-small btn-primary">{{_i}}Small button{{/i}}</button>
+              <button type="button" class="btn btn-small">{{_i}}Small button{{/i}}</button>
             </p>
             <p>
-              <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>
+              <button type="button" class="btn btn-mini btn-primary">{{_i}}Mini button{{/i}}</button>
+              <button type="button" class="btn btn-mini">{{_i}}Mini button{{/i}}</button>
             </p>
           </div>
 <pre class="prettyprint linenums">
-&lt;button class="btn btn-large" type="button"&gt;{{_i}}Large button{{/i}}&lt;/button&gt;
-&lt;button class="btn btn-small" type="button"&gt;{{_i}}Small button{{/i}}&lt;/button&gt;
-&lt;button class="btn" type="button"&gt;{{_i}}Default button{{/i}}&lt;/button&gt;
-&lt;button class="btn btn-mini" type="button"&gt;{{_i}}Mini button{{/i}}&lt;/button&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-large btn-primary" type="button"&gt;{{_i}}Large button{{/i}}&lt;/button&gt;
+  &lt;button class="btn btn-large" type="button"&gt;{{_i}}Large button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-primary" type="button"&gt;{{_i}}Default button{{/i}}&lt;/button&gt;
+  &lt;button class="btn" type="button"&gt;{{_i}}Default button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-small btn-primary" type="button"&gt;{{_i}}Small button{{/i}}&lt;/button&gt;
+  &lt;button class="btn btn-small" type="button"&gt;{{_i}}Small button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+  &lt;button class="btn btn-mini btn-primary" type="button"&gt;{{_i}}Mini button{{/i}}&lt;/button&gt;
+  &lt;button class="btn btn-mini" type="button"&gt;{{_i}}Mini button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
 </pre>
           <p>{{_i}}Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.{{/i}}</p>
           <div class="bs-docs-example">