Skip to content

Commit

Permalink
Fix override for icon-white
Browse files Browse the repository at this point in the history
CSS Selector was not matching => wrong image loaded in certain cases
  • Loading branch information
bchelli authored and glasser committed Feb 15, 2013
1 parent ec85212 commit aaa86c3
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions packages/bootstrap/css/bootstrap-override.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* XXX Hack to make bootstrap work when bundled. This needs to be included
* _after_ the standard bootstrap css files.
*
Expand All @@ -10,7 +10,28 @@
[class*=" icon-"] {
background-image: url("/packages/bootstrap/img/glyphicons-halflings.png");
}

.icon-white {
/*
* Selectors borrowed from bootstrap.css. For all releases of bootstrap, when
* we upgrade, update this file to borrow the selectors from where bootstrap.css
* references any .png. When we update to using .less instead, use the less
* directives in a less file instead.
*/
.icon-white,
.nav-pills > .active > a > [class^="icon-"],
.nav-pills > .active > a > [class*=" icon-"],
.nav-list > .active > a > [class^="icon-"],
.nav-list > .active > a > [class*=" icon-"],
.navbar-inverse .nav > .active > a > [class^="icon-"],
.navbar-inverse .nav > .active > a > [class*=" icon-"],
.dropdown-menu > li > a:hover > [class^="icon-"],
.dropdown-menu > li > a:focus > [class^="icon-"],
.dropdown-menu > li > a:hover > [class*=" icon-"],
.dropdown-menu > li > a:focus > [class*=" icon-"],
.dropdown-menu > .active > a > [class^="icon-"],
.dropdown-menu > .active > a > [class*=" icon-"],
.dropdown-submenu:hover > a > [class^="icon-"],
.dropdown-submenu:focus > a > [class^="icon-"],
.dropdown-submenu:hover > a > [class*=" icon-"],
.dropdown-submenu:focus > a > [class*=" icon-"] {
background-image: url("/packages/bootstrap/img/glyphicons-halflings-white.png");
}

0 comments on commit aaa86c3

Please sign in to comment.