← All topics

3 posts filed under SCSS, newest first.

6 min

Nesting is not Sass nesting

It looks close enough to what I've been writing since 2014 that I typed a BEM selector into it out of habit. The reason that doesn't work is the whole difference.

CSS SCSS
7 min

Custom properties arrive

These have been in three browsers since the spring and I spent nine months not using them, because I'd filed them as Sass variables with worse syntax, and under that filing they are genuinely worse.

CSS SCSS
6 min

@extend considered harmful

The Sass feature that looks like it saves you bytes will quietly rewrite the order of your selectors, move your rules to a part of the file you didn't write them in, and refuse to work inside a media query.

SCSS CSS