Last active
July 7, 2016 10:34
-
-
Save zbert/e514fd2aa078443f54f8 to your computer and use it in GitHub Desktop.
hover/touch syles for links
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
.link { | |
//desktop styles | |
color: $color-brand-white; | |
&:hover { | |
color: $color-brand-red; | |
} | |
//overwrite for touch - uses modernizr to overwrite link pseudo classes | |
.touch &:link, | |
.touch &:visited, | |
.touch &:hover { | |
//default color | |
color: $color-brand-white; | |
} | |
.touch &:active, | |
.touch &:focus { | |
//activated/touched color | |
color: $color-brand-red; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment