Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imbrication BEM #1

Open
juliendargelos opened this issue Aug 18, 2017 · 0 comments
Open

Imbrication BEM #1

juliendargelos opened this issue Aug 18, 2017 · 0 comments

Comments

@juliendargelos
Copy link
Contributor

stylesheets.md

Maximum nested BEM levels: 3

Les guidelines BEM excluent l'imbrication d'éléments, ce que je recommande également:

getbem.com/faq

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant