Put the base class inside of a mixin for reusability

This commit is contained in:
Michiel Sikma 2015-01-24 23:56:57 +02:00
parent de0d319f98
commit 884421857b

View File

@ -1,7 +1,8 @@
// Base Class Definition
// -------------------------
.#{$fa-css-prefix} {
// Include this mixin to turn any element or pseudo-element into an icon.
@mixin font-awesome-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
@ -9,3 +10,7 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.#{$fa-css-prefix} {
@include font-awesome-icon();
}