Created
May 10, 2013 10:07
-
-
Save kddawson/5553558 to your computer and use it in GitHub Desktop.
SCSS: Mixin link pseudo states
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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