Answer the question
In order to leave comments, you need to log in
What is the best way to do it within BEM?
Good day.
There is the same block that needs to be styled a little differently depending on where it is located - in the sidebar or in the middle of the content. How to do it right? By creating a modifier for each of the options (.block_type_sidebar, etc.), or still making the block style dependent on another block (.selector .block)? The manual says that the second option is possible, but not recommended, but the first seems redundant to me.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
...styled a little differently...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question