I'm setting up a CSS for a website where all the links, in :hover
state, are darker than in normal state.
I'm using Sass/Compass so I looked to the darken
Sass method, here : http://sass-lang.com/documentation/Sass/Script/Functions.html#darken-instance_method
Here's the use : darken($color, $amount)
My question is : how can I make this "automatic" to set all my <a>
elements to be 80% darker ?
What I'm trying to do is (Sass syntax) :
a
background: $blue
&:hover
background: darken(this element background-color, 80%)
What's the best solution to do this ?
background: darken($blue, 80%)
work? – Katie Kilian