Skip to content

Instantly share code, notes, and snippets.

@Bobz-zg
Created July 21, 2014 20:40
Show Gist options
  • Save Bobz-zg/6e223177afd31d50da30 to your computer and use it in GitHub Desktop.
Save Bobz-zg/6e223177afd31d50da30 to your computer and use it in GitHub Desktop.
/**
* Normal States
*/
@mixin ns {
&:link,
&:visited {
@content;
}
}
/**
* Hover States
*/
@mixin hs {
&:hover,
&:focus,
&:active {
@content;
}
}
-----------USAGE-----------
.myclass {
background: red;
@include hs {
background: green;
text-decoration: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment