Re:How I'm Writing CSS in 2024
by threatofrain on Sunday January 07, 2024 @06:04PM
(#38906158)
One last reason to use Sass would be parameterized media queries.
[ Parent
| on HN ]
Could you share an example where you'd want this? Genuinely curious, haven't used these before.
Re:How I'm Writing CSS in 2024
by starkparker on Sunday January 07, 2024 @06:16PM
(#38906245)
I thought media queries were on the outs for flex/grid layouts and container queries?
Re:How I'm Writing CSS in 2024
by threatofrain on Sunday January 07, 2024 @08:14PM
(#38907065)
Container queries have the same issue.
kinda needed if you want to make a nice 'print' view.
I think media queries will still be used for a long time, but yeah container queries are a great addition on top.
Re:How I'm Writing CSS in 2024
by angra_mainyu on Monday January 08, 2024 @02:54AM
(#38909266)
mixins and placeholders are still enormously useful
And nested CSS, although it’s coming to CSS soon.
Re:How I'm Writing CSS in 2024
by laurels-marts on Monday January 08, 2024 @12:37PM
(#38915371)
& nesting selector already has a baseline support: https://developer.mozilla.org/en-US/docs/Web/CSS/Nesting_sel...