4 ms·
This half assed version of nesting is lame, as are all the others. Just give us SCSS its been ten years now, pave the cowpath.
by nailer 4y ago
This half assed version of nesting is lame, as are all the others. Just give us SCSS its been ten years now, pave the cowpath.
- culi 4y agoWhat's the difference between this and SCSS nesting? It seems pretty full-featured to me. What's missing?
- rezonant 4y agoYeah... the only difference _in terms of nesting_ that I'm aware of is exactly as discussed in the blog post: you must start a nested section with a symbol. Sass itself has a huge amount of features... is the expectation that we should just adopt a Sass implementation into the browser or something?
- frosted-flakes 4y agoThe other difference is that SCSS nesting can also be used for string concatenation, as in BEM classes. Such as: .some-class { color: red; &__child { color: blue; } } Which compiles to .some-class { color: red; } .some-class__child { color: blue; }
- culi 4y agoOh right I kinda hate that and feel like it leads to strangely named classes
- nailer 4y agodialog { background-color: white; color: black; input { width: 200px; } } Doesn't work.