Answer the question
In order to leave comments, you need to log in
How to specify a link to the current background?
How to reference the current background-color with the lighten() function?
For example, there are 3 colors: red, green, blue - and all of them are the background of individual elements. How to make each of them brighter without rewriting each style separately? Tipo:
.block1
background-color: red
.block2
background-color: green
.block3
background-color: blue
.block1, .block2, .block3
&:hover
background-color: lighten(*текущий цвет*, 10%)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question