Created
October 6, 2014 14:00
-
-
Save rosterloh/c363cd7d2faba596a43a to your computer and use it in GitHub Desktop.
Using colour functions in sass
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
$colour: #3097b4 | |
a { | |
color: $colour; | |
text-decoration: underline; | |
&:hover { | |
color: saturate(lighten($colour, 15%), 20%); | |
} | |
&:active { | |
color: desaturate(darken($colour, 15%), 25%); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment