Day: March 19, 2015
-
Hover and focus mixin using @content
A simple mixin that ensures you add focus styling along with your hovers: SASS: @mixin hoverFocus { &:hover, &:focus { @content; } } /* example */ .defaultBtn{ @include hoverFocus{ text-decoration: none; } } which then outputs to: .defaultBtn:hover, .defaultBtn:focus { text−decoration: none; }