]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update the docs for icons
authorMark Otto <markdotto@gmail.com>
Fri, 27 Jan 2012 21:56:50 +0000 (13:56 -0800)
committerMark Otto <markdotto@gmail.com>
Fri, 27 Jan 2012 21:56:50 +0000 (13:56 -0800)
docs/assets/css/bootstrap.css
docs/base-css.html
docs/templates/pages/base-css.mustache

index cf2f1b59f27c1d0671b0a693c00a564d4178f3f0..10faa36c08c609c3c1286f89ccef0b9968f71dd9 100644 (file)
@@ -6,7 +6,7 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Fri Jan 27 13:43:19 PST 2012
+ * Date: Fri Jan 27 13:54:49 PST 2012
  */
 article,
 aside,
@@ -1088,7 +1088,7 @@ table .span12 {
   background-image: url(../img/glyphicons-halflings-white.png);
 }
 .icon.glass {
-  background-position: 0 0;
+  background-position: 0      0;
 }
 .icon.music {
   background-position: -24px 0;
@@ -1327,23 +1327,20 @@ table .span12 {
 .icon.chevron-right {
   background-position: -456px -72px;
 }
-.icon.arrow-left {
-  background-position: -240px -96px;
-}
 .icon.plus-sign {
   background-position: 0 -96px;
 }
 .icon.minus-sign {
-  background-position: -24px  -96px;
+  background-position: -24px -96px;
 }
 .icon.remove-sign {
-  background-position: -48px  -96px;
+  background-position: -48px -96px;
 }
 .icon.ok-sign {
-  background-position: -72px  -96px;
+  background-position: -72px -96px;
 }
 .icon.question-sign {
-  background-position: -96px  -96px;
+  background-position: -96px -96px;
 }
 .icon.info-sign {
   background-position: -120px -96px;
@@ -1360,6 +1357,9 @@ table .span12 {
 .icon.ban-circle {
   background-position: -216px -96px;
 }
+.icon.arrow-left {
+  background-position: -240px -96px;
+}
 .icon.arrow-right {
   background-position: -264px -96px;
 }
@@ -1391,16 +1391,16 @@ table .span12 {
   background-position: 0 -120px;
 }
 .icon.gift {
-  background-position: -24px  -120px;
+  background-position: -24px -120px;
 }
 .icon.leaf {
-  background-position: -48px  -120px;
+  background-position: -48px -120px;
 }
 .icon.fire {
-  background-position: -72px  -120px;
+  background-position: -72px -120px;
 }
 .icon.eye-open {
-  background-position: -96px  -120px;
+  background-position: -96px -120px;
 }
 .icon.eye-close {
   background-position: -120px -120px;
@@ -1439,7 +1439,7 @@ table .span12 {
   background-position: -384px -120px;
 }
 .icon.folder-open {
-  background-position: -409px -120px;
+  background-position: -408px -120px;
 }
 .icon.resize-vertical {
   background-position: -432px -119px;
index fa22216ef5a27f96fb8130a52860cbd7d02f3d64..698b68ea1913441f7085147e2c051f69395c98a7 100644 (file)
     </div>
   </div>
   <div class="alert alert-info">
-    <strong>Heads up!</strong> On hover we show a light red background color to highlight the size of the icon. This won't appear in normal usage of icons.
+    <strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code> and on hover in the docs we show a light red background color show the icon's size.
   </div>
 
   <br>
       <p>With v2.0.0, we have opted to use an <code>&lt;i&gt;</code> tag for all our icons with a base class of <code>.icon</code>. To use, place the following code just about anywhere:</p>
 <pre class="prettyprint linenums">
 &lt;i class="icon search"&gt;&lt;/i&gt;
+</pre>
+      <p>There are also styles available for inverted (white) icons, made ready with one extra class:</p>
+<pre class="prettyprint linenums">
+&lt;i class="icon white search"&gt;&lt;/i&gt;
 </pre>
       <p>There are 120 classes to choose from for your icons. Just add an <code>&lt;i&gt;</code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.</p>
     </div>
 
   <h3>Examples</h3>
   <div class="row">
-    <div class="span4">
+    <div class="span6">
       <p>Use them in buttons, or in button groups for a toolbar style presentation.</p>
       <p>
         <a class="btn" href="#"><i class="icon refresh"></i> Refresh</a>
+        <a class="btn success" href="#"><i class="icon white shopping-cart"></i> Checkout</a>
         <a class="btn danger" href="#"><i class="icon white trash"></i> Delete</a>
       </p>
       <div class="btn-toolbar">
index 45d359784f4478a17f786d951246beb2792b0a28..f6504a249a2db5287bc2e4ab105625e581affcc5 100644 (file)
     </div>
   </div>
   <div class="alert alert-info">
-    {{_i}}<strong>Heads up!</strong> On hover we show a light red background color to highlight the size of the icon. This won't appear in normal usage of icons.{{/i}}
+    {{_i}}<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code> and on hover in the docs we show a light red background color show the icon's size.{{/i}}
   </div>
 
   <br>
       <p>{{_i}}With v2.0.0, we have opted to use an <code>&lt;i&gt;</code> tag for all our icons with a base class of <code>.icon</code>. To use, place the following code just about anywhere:{{/i}}</p>
 <pre class="prettyprint linenums">
 &lt;i class="icon search"&gt;&lt;/i&gt;
+</pre>
+      <p>There are also styles available for inverted (white) icons, made ready with one extra class:</p>
+<pre class="prettyprint linenums">
+&lt;i class="icon white search"&gt;&lt;/i&gt;
 </pre>
       <p>{{_i}}There are 120 classes to choose from for your icons. Just add an <code>&lt;i&gt;</code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.{{/i}}</p>
     </div>
 
   <h3>{{_i}}Examples{{/i}}</h3>
   <div class="row">
-    <div class="span4">
+    <div class="span6">
       <p>{{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}</p>
       <p>
         <a class="btn" href="#"><i class="icon refresh"></i> {{_i}}Refresh{{/i}}</a>
+        <a class="btn success" href="#"><i class="icon white shopping-cart"></i> {{_i}}Checkout{{/i}}</a>
         <a class="btn danger" href="#"><i class="icon white trash"></i> {{_i}}Delete{{/i}}</a>
       </p>
       <div class="btn-toolbar">