You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to BEM method, block structure should be flattened; you do not need to reflect nested DOM structure of the block.
Besides the fact that the classes look much nicer, it makes the elements be dependent on the block only. So, you can easily move them across the block when providing changes to the interface. The changes of the block DOM structure would not need corresponding changes to the CSS code.
The text was updated successfully, but these errors were encountered:
stylesheets.md
Les guidelines BEM excluent l'imbrication d'éléments, ce que je recommande également:
getbem.com/faq
The text was updated successfully, but these errors were encountered: