diff options
author | Dave Gandy <dave@davegandy.com> | 2012-03-09 08:50:40 +0400 |
---|---|---|
committer | Dave Gandy <dave@davegandy.com> | 2012-03-09 08:50:40 +0400 |
commit | 8ed1384c7c25fc73d46a2ab8b6aad20650887e66 (patch) | |
tree | 3c419ad1746e682ee1dd000b726b23b391a86a5a /less | |
parent | 378b2d75e632930cb63cd96b91475c0e7658469a (diff) |
updating readme, fixing issues #58, #32, updating comments in less and css
Diffstat (limited to 'less')
-rw-r--r-- | less/font-awesome.less | 50 |
1 files changed, 39 insertions, 11 deletions
diff --git a/less/font-awesome.less b/less/font-awesome.less index 310738231..163878347 100644 --- a/less/font-awesome.less +++ b/less/font-awesome.less @@ -1,3 +1,27 @@ +/* Font Awesome + the iconic font designed for use with Twitter Bootstrap + ------------------------------------------------------- + The full suite of pictographic icons, examples, and documentation + can be found at: http://fortawesome.github.com/Font-Awesome/ + + License + ------------------------------------------------------- + The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0: + http://creativecommons.org/licenses/by/3.0/ A mention of + 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable + source code is considered acceptable attribution (most common on the web). + If human readable source code is not available to the end user, a mention in + an 'About' or 'Credits' screen is considered acceptable (most common in desktop + or mobile software). + + Contact + ------------------------------------------------------- + Email: dave@davegandy.com + Twitter: http://twitter.com/fortaweso_me + Work: http://lemonwi.se co-founder + + */ + @font-face { font-family: 'FontAwesome'; src: url('../font/fontawesome-webfont.eot'); @@ -10,29 +34,32 @@ font-style: normal; } -// ICONS -// Glyphs and icons for buttons, nav, and more -// ------------------------------------------- -// Font Awesome courtesy of Dave Gandy at fortaweso.me/font-awesome - [class^="icon-"]:before, [class*=" icon-"]:before { font-family: FontAwesome; font-weight: normal; font-style: normal; display: inline-block; + text-decoration: inherit; +} + +a [class^="icon-"], +a [class*=" icon-"] { + display: inline-block; + text-decoration: inherit; } -// makes the font 33% larger relative to the icon container +/* makes the font 33% larger relative to the icon container */ .icon-large:before { -// display: inline-block; + vertical-align: top; font-size: 4/3em; } .btn { [class^="icon-"], [class*=" icon-"] { - line-height: .9em; // keeps button heights with and without icons the same + /* keeps button heights with and without icons the same */ + line-height: .9em; } } @@ -45,7 +72,8 @@ li { } .icon-large[class^="icon-"], .icon-large[class*=" icon-"] { - width: 1.5*1.25em; // 1.5 increased font size for icon-large * 1.25 width + /* 1.5 increased font size for icon-large * 1.25 width */ + width: 1.5*1.25em; } } @@ -63,8 +91,8 @@ li[class*=" icon-"] { } } -// Uses Unicode Private Use Area (PUA) to ensure screen readers do not read off -// random characters that represent icons +/* Font Awesome uses the 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"; } .icon-search:before { content: "\f002"; } |