diff options
author | Dave Gandy <dave@davegandy.com> | 2012-03-06 22:42:51 +0400 |
---|---|---|
committer | Dave Gandy <dave@davegandy.com> | 2012-03-06 22:42:51 +0400 |
commit | 3cfecc6cfa6fee70ead840a082bfabd00cee21bc (patch) | |
tree | 542b87f555022731f3494b41645b1fb63d2ddb4c /less/font-awesome.less | |
parent | 1d07a83275978ff402838f338e93d33762a6b7fb (diff) |
fixing issue #1
Diffstat (limited to 'less/font-awesome.less')
-rw-r--r-- | less/font-awesome.less | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/less/font-awesome.less b/less/font-awesome.less index b57d484c6..310738231 100644 --- a/less/font-awesome.less +++ b/less/font-awesome.less @@ -15,7 +15,8 @@ // ------------------------------------------- // Font Awesome courtesy of Dave Gandy at fortaweso.me/font-awesome -[class^="icon-"]:before { +[class^="icon-"]:before, +[class*=" icon-"]:before { font-family: FontAwesome; font-weight: normal; font-style: normal; @@ -28,22 +29,28 @@ font-size: 4/3em; } -.btn [class^="icon-"] { +.btn { + [class^="icon-"], + [class*=" icon-"] { line-height: .9em; // keeps button heights with and without icons the same + } } li { - [class^="icon-"] { + [class^="icon-"], + [class*=" icon-"] { display: inline-block; width: 1.25em; text-align: center; } - .icon-large[class^="icon-"] { + .icon-large[class^="icon-"], + .icon-large[class*=" icon-"] { width: 1.5*1.25em; // 1.5 increased font size for icon-large * 1.25 width } } -li[class^="icon-"] { +li[class^="icon-"], +li[class*=" icon-"] { margin-left: 0; list-style-type: none; @@ -56,7 +63,7 @@ li[class^="icon-"] { } } -// uses Unicode Private Use Area (PUA) to ensure screen readers do not read off +// Uses Unicode Private Use Area (PUA) to ensure screen readers do not read off // random characters that represent icons .icon-glass:before { content: "\f000"; } .icon-music:before { content: "\f001"; } |