Skip to content

Instantly share code, notes, and snippets.

@tannerhodges
Created June 15, 2015 18:29
Show Gist options
  • Save tannerhodges/18bfc1fa51570b68e5e2 to your computer and use it in GitHub Desktop.
Save tannerhodges/18bfc1fa51570b68e5e2 to your computer and use it in GitHub Desktop.
Accessible Hover Mixin
/**
* Accessible hover styles. Applies :hover styles to :focus and :active.
* http://24ways.org/2007/css-for-accessibility
*/
@mixin hover {
&:focus, &:hover, &:active {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment