mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-15 17:50:28 +08:00
Put the base class inside of a mixin for reusability
This commit is contained in:
parent
de0d319f98
commit
884421857b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user