If something is a cascading effect wouldn't it be nice to just know by way of naming convention? That is what the BEM methodology is all about. This suggests that .block would effect an element directly, that .block__element would only effect all or certain children within the element it decorated, and that .block--modifier would effect an element directly yet is the sort of "modifier" that is a variation of .block. I learned of BEM for the first time at this talk.
No comments:
Post a Comment