S
S
Sergey Goryachev2016-12-27 14:25:44
css
Sergey Goryachev, 2016-12-27 14:25:44

What is the correct way to write this using SCSS?

It happens that you blunt on some simple garbage.
In jQuery, I add the .active class to .navicon so that instead of a "sandwich" a "cross" appears.
I can’t figure out how to format it correctly for .scss
https://jsfiddle.net/yo4bta8x/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey B., 2016-12-27
@webirus

&.active {
        &__lines {
          ...
        }
    }

Compiled to .navicon. active__lines :before is why it doesn't work.
Hang active on .navicon__lines, in addition to this, you still need to add it to the styles.
Outcome

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question