Skip to content

Instantly share code, notes, and snippets.

@kddawson
Created May 10, 2013 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kddawson/5553558 to your computer and use it in GitHub Desktop.
Save kddawson/5553558 to your computer and use it in GitHub Desktop.
SCSS: Mixin link pseudo states
// Provide contrasting color for all link states
// See http://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast
@mixin link-pseudos($col,$col2,$col3) {
&:link {
color: $col;
text-decoration: none;
}
&:visited {
color: $col;
}
&:hover {
color: $col2;
background-color: $col3;
}
&:focus, &:active {
color: $col2;
background-color: $col3;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment