diff options
author | Mark Otto <markotto@twitter.com> | 2012-08-08 22:26:22 +0400 |
---|---|---|
committer | Mark Otto <markotto@twitter.com> | 2012-08-08 22:26:22 +0400 |
commit | f6c7ac51f2761a666c933f584a558f0c24381a3a (patch) | |
tree | d9c11409c5cf7a10d90b1c27a32abcfe75f55f7d /less/sprites.less | |
parent | 08e4475f007c1342ee6f8ab7362a9b8965ac391a (diff) |
add some simple styles for showing white icons on hover where appropriate
Diffstat (limited to 'less/sprites.less')
-rw-r--r-- | less/sprites.less | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/less/sprites.less b/less/sprites.less index fa0b31da03..6fd2d1da1c 100644 --- a/less/sprites.less +++ b/less/sprites.less @@ -25,9 +25,16 @@ 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}"); } @@ -177,15 +184,3 @@ .icon-filter { background-position: -408px -144px; } .icon-briefcase { background-position: -432px -144px; } .icon-fullscreen { background-position: -456px -144px; } - - - - - - - - - - - - |