3 ms·
>Possibly mixins, loops, and variables, which, unlike CSS variables, can be used in media queries. Please god no. CSS is intended to be completely declarative.
by ramesh31 4y ago
>Possibly mixins, loops, and variables, which, unlike CSS variables, can be used in media queries.
Please god no. CSS is intended to be completely declarative. Loops and conditional logic were the very worst ideas SASS ever had.
- patates 4y agoPeople want freedom (as seen by the down-votes comment above seems to have gathered) and I do remember the old times when I was very excited for the creativity SASS allowed me. Then in-between then and now, I did a lot of consulting work, and now I'm strongly feeling that the more DRY you try to make CSS, the more you end up writing, and unmaintainable CSS at that. Random example: https://github.com/primefaces/primeflex/blob/master/_sass/lib/src/_grid.scss#L75 https://github.com/primefaces/primeflex/blob/master/_sass/li... SASS is too powerful for its own good. TL;DR: I wholeheartedly agree with the above comment.