News for hackers. Stuff that matters.
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.
Re:How I'm Writing CSS in 2024 by leerob on Sunday January 07, 2024 @06:37PM (#38906375)
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.
Re:How I'm Writing CSS in 2024 by duttonw on Sunday January 07, 2024 @08:02PM (#38906988)
kinda needed if you want to make a nice 'print' view.
Re:How I'm Writing CSS in 2024 by leerob on Sunday January 07, 2024 @06:36PM (#38906370)
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
Re:How I'm Writing CSS in 2024 by nicbou on Monday January 08, 2024 @03:37AM (#38909506)
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...