Created
September 29, 2016 09:16
-
-
Save joviczarko/9a38455a6adfc719ed0a997971d3a036 to your computer and use it in GitHub Desktop.
Link sass mixin
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
$transition_link: all 0.3s ease; | |
@mixin link ($link, $visited, $hover, $active) { | |
& { | |
color: $link; | |
transition: $transition_link; | |
&:visited { | |
color: $visited; | |
} | |
&:hover { | |
color: $hover; | |
} | |
&:active, &:focus { | |
color: $active; | |
} | |
} | |
} | |
a { | |
@include link(orange, blue, yellow, teal); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment