I can't get Sass to output the !important
keyword with a mixin, I've tried:
@include font-size($font-size-sml) !important;
And:
@include font-size($font-size-sml !important);
It always throws an error.
EDIT
I ended up with this which works fine:
@mixin font-size($font-size, $sledge-hammer: "") {
font-size: $font-size #{$sledge-hammer};
font-size: ($font-size / $base-font-size)+rem #{$sledge-hammer};
line-height: ceil($font-size / $base-line-height) * ($base-line-height / $font-size);
}
@mixin font-size($font-size) { font-size: $font-size; font-size: ($font-size / $base-font-size)*1rem; line-height: ceil($font-size / $base-line-height) * ($base-line-height / $font-size); }
– Fishbowl