L
L
Lolut2017-11-22 16:40:16
css
Lolut, 2017-11-22 16:40:16

Why is the overlay on the page not working?

I want to impose a dimmer color on the page using fade in less, declared a variable with the color that I need, added this variable to background-color and the background becomes dim only for half a second and returns to the original one again. I don't understand what is wrong.

header {
background-color: fade(@overlay, 85%);
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
amorphine, 2017-11-22
@amorphine

Somewhere in the styles there is another rule that overwrites the given.
How to treat - add !important / remove redundant rule / stick to time-tested methodology like BEM / etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question