3 ms·
I'll admit to being a little outdated on front-end design evolution. Sass/SCSS is no longer needed? Does CSS support nested blocks now?
by bovermyer 2y ago
I'll admit to being a little outdated on front-end design evolution. Sass/SCSS is no longer needed? Does CSS support nested blocks now?
- dartos 2y agoVery recent addition, but yes! At long last
- __jonas 2y agoYes it does! https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_selector https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_sel... All major browser do now support it. However I still use the PostCSS Nesting plugin: https://www.npmjs.com/package/postcss-nesting https://www.npmjs.com/package/postcss-nesting This lets you write the syntax from the specification but it will be transformed to CSS that still works in older browsers, kind of like a polyfill in js.