diff options
author | Dave Gandy <dave@davegandy.com> | 2014-08-24 20:42:24 +0400 |
---|---|---|
committer | Dave Gandy <dave@davegandy.com> | 2014-08-24 20:42:24 +0400 |
commit | 03f71ba9010994fdf80565f02c3a6438100b5ff7 (patch) | |
tree | 3c41a37a91e6df469f8ce6b2f32f10cea9e14138 /less/mixins.less | |
parent | 71d241adceb67ab80e164f7ecd6789047aef9461 (diff) |
adding .fa-icon mixin #2305 #2454
Diffstat (limited to 'less/mixins.less')
-rw-r--r-- | less/mixins.less | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/less/mixins.less b/less/mixins.less index eac627a29..b7bfadc79 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -1,6 +1,15 @@ // Mixins // -------------------------- +.fa-icon() { + display: inline-block; + font: normal normal normal 14px/1 FontAwesome; // shortening font declaration + font-size: inherit; // can't have font-size inherit on line above, so need to override + text-rendering: auto; // optimizelegibility throws things off #1094 + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + .fa-icon-rotate(@degrees, @rotation) { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation); -webkit-transform: rotate(@degrees); |