Answer the question
In order to leave comments, you need to log in
Is it correct to create indentation classes according to BEM?
The project has several pages with different sections. Different pages have something along the lines of .services__about and .industries__about, i.e. on the services page, the about section and on the industries page, the about section (each of them has a different layout).
And although the layout is different, the indents should be the same. How, according to BEM, to put them in some separate class? Indeed, according to the rules, indents must be set for elements, but in this situation it will not work out because these are sections of different pages and the sections (elements) have different parents.
Is it possible to create some kind of auxiliary section-about block and give it the necessary indents? And then apply a mix of .services__about.section-about and .industries__about.section-about. Or what would be the best way to do it? Or call this auxiliary block .section-about-offset to make it as clear as possible what's what.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question