A
A
Alexander Karpov2017-08-02 12:10:18
Sass
Alexander Karpov, 2017-08-02 12:10:18

Do I understand correctly that the BEM methodology is incompatible with the idea of ​​SASS?

Actually a subject.
SASS is nested, while BEM is flat.
BEM doesn't recommend combining selectors in CSS.
What can you say about this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Mosyukov, 2017-08-02
@Inkognitoss

Very Compatible:

.block {
    &__element {
        &--modifier {
             color: black;
        }
    }
}

At the exit:
.block__element--modifier {
    color: black;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question