Answer the question
In order to leave comments, you need to log in
How to use BEM?
Read about the BEM methodology. And then the elder told me - "you can modify it as it is convenient for you to write code"
And I began to typeset sites as it was convenient for me and really felt that I was typesetting very quickly, conveniently and easily debugging the code, in general, a fairy tale. But the evil programmer says that this is shit code when there are so many classes in the element.
<button class="custom__button black__button login__forgot reg__button right__part mob-full__width">
create an account
</button>
Answer the question
In order to leave comments, you need to log in
Makeev had a video about such "layouts" https://wsd.events/2014/04/12/pres/bem-ok/
Irrespective bem - no one does
that. Tomorrow you will need to resize that block and put it to the left, and the name is like this and "right__*" will remain.
The class should give a description of the block - not "where?", But "what?"
There are wrappers and containers that can have signs of right, left, bottom, top, but it’s better not to use the position or signs in their name
Yes, yes, right_blue, red-back, absolute-float__
BEM is not about CSS.
according to BEM, the template of a component (block), for example, in PHP, should be in the same folder as the CSS / JS component. And you could reuse this code in other components, dynamically create and delete these components on the page, and so on. The key idea here is to eliminate code duplication at all levels of the application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question