News for hackers. Stuff that matters.
Re:CSS Purge by andrethegiant on Friday May 20, 2016 @06:33PM (#11742070)
I see many articles warning not to deeply nest selectors in sass. Doesn't gzipping your resources mitigate that problem?
Re:CSS Purge by digestives on Friday May 20, 2016 @06:52PM (#11742172)
File size is a moot point with regards to long selectors - they are just a bad idea. [1][2] I am a fan of BEM to keep things sane. [3]

[1] http://csswizardry.com/2012/05/keep-your-css-selectors-short... [2] https://benfrain.com/css-performance-revisited-selectors-blo... [3] http://getbem.com/

Re:CSS Purge by dsego on Friday May 20, 2016 @07:24PM (#11742311)
Nesting selectors ties the css to your markup. These styles are not reusable components, but one-offs for that particular snippet of html. Look how bad it can get: https://github.com/edx/edx-platform/blob/master/lms/static/s...

It's basically replicating the html nesting.