Answer the question
In order to leave comments, you need to log in
How to make a mix in bam?
Let's say I have a block - main-block, in this block there are main-block__title and main-block__descr elements, and it is for an element in some section that I want to change the positioning, how exactly should I address the element using a mixin of type: . welcome__main-block__title or with: .welcome__main-block .main-block__title? As for me, modifiers are not very suitable here, since you often need to change positioning, so which option is better?
Answer the question
In order to leave comments, you need to log in
If this positioning needs to be changed in a specific block and will not be repeated again, then you can mix it like this:
<div class="main-block__title welcome__title"></div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question