Created
October 26, 2012 13:55
-
-
Save freshyill/3958957 to your computer and use it in GitHub Desktop.
Simpler link color 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
@mixin links($link: '#7ab4e5', $visited: '#7ab4e5', $hover: '#e62c25', $active: 'lighten($hover, 10%)', $focus: $hover, $transition: '.15s color ease-in-out') { | |
&:link { color: $link; } | |
&:visited { color: $visited; } | |
&:hover { color: $hover; } | |
&:active { color: $active; } | |
&:focus { color: $focus; } | |
@include transition($transition); | |
} | |
Usage - all arguments are optional | |
a { @include links(red, blue, green, yellow, purple, 1s all linear);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment