News for hackers. Stuff that matters.
Re:CSS: Taking control of the cascade by config_yml on Monday September 12, 2011 @03:20PM (#2988535)
Well, multiple editors were at work. The approach described creates selectors that were generally more specific than they needed to be. Eventually, people needed something to be styled differently in a context that was already heavily specified. So they needed to have even more specific selectors to override an existing selector. As soon as someone stuck some ID in front of that whole selector (which is almost too easy using SASS/SCSS) it was basically game over.

I think OOCSS is an approach to help here, but once you have such a mess it is pretty hard to refactor.

Re:CSS: Taking control of the cascade by rimantas on Monday September 12, 2011 @03:26PM (#2988557)
God, when this OOCSS thing will be forgoten. It just moves mess to another place and instead of mess in CSS you get mess in CSS and HTML.
Re:CSS: Taking control of the cascade by config_yml on Monday September 12, 2011 @03:46PM (#2988622)
I guess you can create a mess either way. For me OOCSS was easy to scale out onto lots of elements and it was certainly easier to keep track of what is affecting what once you change something.