]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add some simple styles for showing white icons on hover where appropriate
authorMark Otto <markotto@twitter.com>
Wed, 8 Aug 2012 18:26:22 +0000 (11:26 -0700)
committerMark Otto <markotto@twitter.com>
Wed, 8 Aug 2012 18:26:22 +0000 (11:26 -0700)
docs/assets/css/bootstrap.css
less/sprites.less

index 810a67df3df7b410a5995ef8068244f67f6b6df6..584e89549e02d5c2e76323907c8c5f406f52ed53 100644 (file)
@@ -2043,7 +2043,14 @@ table .span24 {
   background-repeat: no-repeat;
 }
 
-.icon-white {
+/* White icons with optional class, or on hover/active states of certain elements */
+
+.icon-white,
+.nav > .active > a > [class^="icon-"],
+.nav > .active > a > [class*=" icon-"],
+.dropdown-menu > li > a:hover > [class^="icon-"],
+.dropdown-menu > li > a:hover > [class*=" icon-"].dropdown-menu > .active > a > [class^="icon-"],
+.dropdown-menu > .active > a > [class*=" icon-"] {
   background-image: url("../img/glyphicons-halflings-white.png");
 }
 
index fa0b31da0362baf9a36d0da47fdbc13f2feca69f..6fd2d1da1ced3720fea1e231ce69ad62ef0e0397 100644 (file)
   background-image: url("@{iconSpritePath}");
   background-position: 14px 14px;
   background-repeat: no-repeat;
-
 }
-.icon-white {
+
+/* White icons with optional class, or on hover/active states of certain elements */
+.icon-white,
+.nav > .active > a > [class^="icon-"],
+.nav > .active > a > [class*=" icon-"],
+.dropdown-menu > li > a:hover > [class^="icon-"],
+.dropdown-menu > li > a:hover > [class*=" icon-"]
+.dropdown-menu > .active > a > [class^="icon-"],
+.dropdown-menu > .active > a > [class*=" icon-"] {
   background-image: url("@{iconWhiteSpritePath}");
 }
 
 .icon-filter                  { background-position: -408px -144px; }
 .icon-briefcase               { background-position: -432px -144px; }
 .icon-fullscreen              { background-position: -456px -144px; }
-
-
-
-
-
-
-
-
-
-
-
-