From 884421857bafd8551689665e00315536595ce5ec Mon Sep 17 00:00:00 2001 From: Michiel Sikma Date: Sat, 24 Jan 2015 23:56:57 +0200 Subject: [PATCH] Put the base class inside of a mixin for reusability --- scss/_core.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scss/_core.scss b/scss/_core.scss index ca46d3712..d4bf8eab6 100644 --- a/scss/_core.scss +++ b/scss/_core.scss @@ -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(); +}