Skip to content

Instantly share code, notes, and snippets.

@rzzo
Created July 16, 2015 18:04
Show Gist options
  • Save rzzo/f2293723ad113581eed9 to your computer and use it in GitHub Desktop.
Save rzzo/f2293723ad113581eed9 to your computer and use it in GitHub Desktop.
Scss mixin - hover active focus
//=== hover active focus
//=== Use: @include hoverActiveFocus('opacity', 0.5)
@mixin hoverActiveFocus($property, $value) {
&:hover, &:active, &:focus {
#{$property}: $value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment