Answer the question
In order to leave comments, you need to log in
Sass by Bem or fidelity of thought?
.block {
стиль1
&__title {
стили для титла
}
&_modificator {
стиль2
& .block__title {
стиль для титла2
}
}
}
Answer the question
In order to leave comments, you need to log in
if you want to completely get rid of the cascade, then you need to add a modifier to each element ... but this is already from the area of \u200b\u200bdelusions. If your element styles depend on the block modifier, then making one level of nesting is a normal solution.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question