4 ms·
“Make CSS interesting/here’s a methodology blah blah”.... Sets up SCSS. Can we just agree that current CSS is a mistake and bring more of SCSS into it?
by dmitriid 8y ago
“Make CSS interesting/here’s a methodology blah blah”.... Sets up SCSS.
Can we just agree that current CSS is a mistake and bring more of SCSS into it?
- Brajeshwar 8y ago“New ideas will come along, but they will extend CSS rather than replace it. I believe that the CSS code we write today will be readable by computers 500 years from now.” — Håkon Wium Lie, co-creator of CSS.
- atoav 8y agoAthough I think CSS could be more than it is, I have never felt any need to use SCSS. Writing a complete new style for a typical blog costs me half a day with clever use of nesting, css variables and such. The pain points usually stem from inconsistencies in browser implementations. Except for missing functionality like not beeing able to select a element who has no child of a given type I never really felt that it took longer than it had to (most of my time goes into deciding the design and not into wrangling with fine details of css). But maybe I should check out SCSS?
- dmitriid 8y ago> with clever use of nesting I don't think CSS Nesting Level 3 is implemented anywhere (it only really got added last year [1]). And there are still ongoing discussions around it (e.g. media-queries [2]). > But maybe I should check out SCSS? Definitely, yes. There are quite a few things that would be wonderful to see in CSS: - better, less verbose syntax for variables - mixins and extends - nesting ... I forget what else, as I haven't done frontend work in a while :) [1] https://github.com/w3c/csswg-drafts/issues/2701#issuecomment-402392212 https://github.com/w3c/csswg-drafts/issues/2701#issuecomment... [2] https://github.com/tabatkins/specs/issues/56 https://github.com/tabatkins/specs/issues/56
- atoav 8y agoThanks, maybe nesting was the wrong word, I meant inheritance. SCSS nesting is super nice – althoughvone could argue it could be counted as syntactical sugar. Do you have a realtime workflow for scss?