V
V
Vika Marmeladka2020-11-15 13:25:34
css
Vika Marmeladka, 2020-11-15 13:25:34

Why do pseudo-classes have a space in mixins after compiling from SCSS to CSS?

Here is a SCSS mixin with the :hover pseudo-class.
5fb10106e8ad0920536558.png

And this is a compiled CSS file with 1 white space before :hover, which is why it doesn't work.
5fb1017e72b32475818166.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2020-11-15
@homsi959

Because you forgot & before :hover
&:hover {}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question