News for hackers. Stuff that matters.
Re:A modern responsive front-end framework based on Material... by brlewis on Friday April 24, 2015 @10:20AM (#9433459)
Thank you for pointing to the interesting BEM article.

As to this specific case, though, I was surprised to see your "this will not work" comment and tested it. It worked: http://jsfiddle.net/brlewis/p0Locwgp/

Re:A modern responsive front-end framework based on Material... by drinchev on Friday April 24, 2015 @12:42PM (#9434436)
Yeah, sorry for the mistake. Yes, you are right in this case bad code would look like :

    <ul class='collection'>
        <li>
          Is red
          <ul class='collection'>
            <li class='collection-special'>Should be blue</li>
          </ul>
        </li>
    </ul>

    
    .collection > li { color: red; }
    .collection-special { color: blue; }
http://jsbin.com/tulenoxutu/1/edit?html,css,output