removed before from placeholder for more versatility

This commit is contained in:
Michael Duff 2013-11-02 14:26:36 -04:00
parent 37196fc8c9
commit 6a3cb2f404

View File

@ -6,15 +6,15 @@
@each $var in $fa-vars { @each $var in $fa-vars {
//create icon placeholders //create icon placeholders
%fa-#{nth($var, 1)} { %fa-#{nth($var, 1)} {
&:before { content: nth($var, 2);
content: nth($var, 2);
}
} }
//create icon classes if enabled //create icon classes if enabled
@if $fa-show-classes == true { @if $fa-show-classes == true {
.#{$fa-css-prefix}-#{nth($var, 1)} { .#{$fa-css-prefix}-#{nth($var, 1)} {
@extend %fa-#{nth($var, 1)}; &:before {
@extend %fa-#{nth($var, 1)};
}
} }
} }
@ -31,7 +31,9 @@
//create icon classes if enabled //create icon classes if enabled
@if $fa-show-classes == true { @if $fa-show-classes == true {
.#{$fa-css-prefix}-#{nth($alias, 1)} { .#{$fa-css-prefix}-#{nth($alias, 1)} {
@extend %fa-#{nth($alias, 2)}; &:before {
@extend %fa-#{nth($alias, 2)};
}
} }
} }