Tweak icon mixin adjustments to reduce compiled filesize

See #509
This commit is contained in:
John O'Nolan 2013-09-16 09:41:23 +01:00
parent 310d565642
commit fb5e56a4fe

View File

@ -33,14 +33,9 @@
The Icon Element
============================================================================= */
/*
* Epic dynamic icon element by Eric Eggert, this thing is so fucking cool it's
* actually unreal. - bit.ly/TJwPPo
*/
@mixin icon-base() {
&:before,
&:after {
@mixin icon($char, $size: '', $color: '') {
&:before {
// Base
font-family: "Icons";
font-weight: normal;
font-style: normal;
@ -49,13 +44,8 @@
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
}
@mixin icon($char, $size: '', $color: '') {
@include icon-base;
&:before {
//Function
content: '#{$char}';
@if $size != '' {
font-size: $size;
@ -77,9 +67,18 @@
*/
@mixin icon-after($char, $size: '', $color: '') {
@include icon-base;
&:after {
// Base
font-family: "Icons";
font-weight: normal;
font-style: normal;
vertical-align: -7%;
text-transform:none;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
// Function
content: '#{$char}';
@if $size != '' {
font-size: $size;