Font Stacks Mixin With !Important Option

//@mixin for font-stacks, with an !important option. @mixin font-stack($important) { $stack: Arial, Tahoma, Sans-Serif; @if $important == 1 { font-family: $stack !important; } @else if $important == 0 { font-family: $stack; } } // Usage .important { @include font-stack(1); } .not-important { @include font-stack(0); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.