L
L
liltrill2019-10-12 22:21:30
css
liltrill, 2019-10-12 22:21:30

Error with css variables in scss?

Hello everyone, an error in the scss compiler, although the code is valid:

div {
     --value-filter: 100%;

     filter: grayscale(var(--value-filter));
}

5da22867d20ac805340270.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustam Bainazarov, 2019-10-12
@liltrill

This is a syntax conflict between the SASS function and the gr...
Mixin solution:
If no mixin:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question