Font-Awesome/scss/_core.scss

17 lines
557 B
SCSS
Raw Normal View History

// Base Class Definition
// -------------------------
// Include this mixin to turn any element or pseudo-element into an icon.
@mixin font-awesome-icon() {
2013-06-12 22:47:27 +08:00
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
2013-10-17 01:46:28 +08:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.#{$fa-css-prefix} {
@include font-awesome-icon();
}