]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update selectors for icons to include matcher for icon class in middle of class attr...
authorMark Otto <markotto@twitter.com>
Sat, 11 Feb 2012 08:07:05 +0000 (00:07 -0800)
committerMark Otto <markotto@twitter.com>
Sat, 11 Feb 2012 08:07:05 +0000 (00:07 -0800)
docs/assets/bootstrap.zip
docs/assets/css/bootstrap.css
docs/base-css.html
docs/templates/pages/base-css.mustache
less/sprites.less

index 3b87a25c0e2f73d05249176d719c53c1887971f5..ce828690ea6f3b9506248cb65aa06c1bd47503b8 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index 9f0420b5b1863cf960d4b58757358f9fb35ebd1d..d4d311b2006e0d4d9024103cdc88541eeebebff6 100644 (file)
@@ -1128,7 +1128,7 @@ table .span12 {
   width: 924px;
   margin-left: 0;
 }
-[class^="icon-"] {
+[class^="icon-"], [class*=" icon-"] {
   display: inline-block;
   width: 14px;
   height: 14px;
@@ -1139,7 +1139,7 @@ table .span12 {
   background-repeat: no-repeat;
   *margin-right: .3em;
 }
-[class^="icon-"]:last-child {
+[class^="icon-"]:last-child, [class*=" icon-"]:last-child {
   *margin-left: 0;
 }
 .icon-white {
index ac260bffb0f39a48a3300eec979bffaa49403263..c0ad882a52d78e06335cc520182e56e4e653af50 100644 (file)
@@ -1515,10 +1515,6 @@ For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.
 &lt;i class="icon-search icon-white"&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 class="alert alert-info">
-        <strong>Heads up!</strong>
-        The <code>.icon-</code> class must be listed first in the class tag for proper CSS targeting.
-      </div>
     </div>
     <div class="span4">
       <h3>Use cases</h3>
index 0be4c1e342babdf533733aa9329deb38a61c2dde..750957beb738ae5accae07f1a4bb6ffb0fded6f2 100644 (file)
 &lt;i class="icon-search icon-white"&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 class="alert alert-info">
-        <strong>{{_i}}Heads up!{{/i}}</strong>
-        {{_i}}The <code>.icon-</code> class must be listed first in the class tag for proper CSS targeting.{{/i}}
-      </div>
     </div>
     <div class="span4">
       <h3>{{_i}}Use cases{{/i}}</h3>
index ce76688443935ad44d0b1c27f482edaa23188068..a7741661eaf7437492ea8a1802dcfb155de8055f 100644 (file)
@@ -14,7 +14,8 @@
 // For the white version of the  icons, just add the .icon-white class:
 // <i class="icon-inbox icon-white"></i>
 
-[class^="icon-"] {
+[class^="icon-"],
+[class*=" icon-"] {
   display: inline-block;
   width: 14px;
   height: 14px;