3 ms·
It's too bad that SASS has fallen out of favor. With SASS, that would have been: ``` a.link border: red &:hover border: blue ```
by Greed 3y ago
It's too bad that SASS has fallen out of favor. With SASS, that would have been:
```
a.link
border: red
&:hover
border: blue
```
- fortyseven 3y agoFallen out of favor with who?
- mcny 3y agoCSS nesting will be available to us mortals (in production) within a year and we might be able to use it just a guess as early as 2026? https://webkit.org/blog/13813/try-css-nesting-today-in-safari-technology-preview/ https://webkit.org/blog/13813/try-css-nesting-today-in-safar...
- blitz_skull 3y agoThat misses the point. This is still worse than seeing all your styles in the place where they apply. SASS/LESS just make it faster and more succinct to write styles in css files rather than in the components in which they live and even more importantly—on the actual ELEMENTS that they apply to.
- blowski 3y agoYes, I did use SASS before Tailwind (and Compass back in the day), and got a lot of value from them. Where it started to get painful is when I have: a.link { } a.another { } <a class="another link">...</a> It was easy to fix, but hard to scale the fixes over different codebases, timelines, and developers. That's the problem Tailwind solves for me.