News for hackers. Stuff that matters.
Re:Interoperable CSS by talmand on Tuesday June 23, 2015 @05:58PM (#9768139)
BEM would work in this case. It's just that I wouldn't use .sidebar as the starting container for the related elements, it would be .box instead.

In this example .sidebar just happens to be the container to hold other elements being placed into it. I would make .box be the actual true container of the widget I am placing inside whatever container happens to need it. My CSS would be built so that .box is the foundation and it could exist anywhere on the page.

There are no comments on this comment yet.