B
B
balex7772021-04-23 10:52:02
css
balex777, 2021-04-23 10:52:02

Why does SASS throw an error on a :NOT pseudo-class with a selector inside?

I have this sass

&__link:NOT(.active)+.user__profile{
    display: none;
  }


When compiling to css, it gives an error that a pseudo-element is expected, and there is a selector, what's wrong?

Error: Invalid CSS after "&__link:NOT(": expected pseudo_expr, was ".active)+.user_..."

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question