3 ms·
You could do this with SASS or LESS. Make all the "functional" classes as abstract mixins or placeholder selectors (in SASS parlance), and then use them to def
by Flenser 8y ago
You could do this with SASS or LESS.
Make all the "functional" classes as abstract mixins or placeholder selectors (in SASS parlance), and then use them to define your concrete semantic classes.
- Semaphor 8y agovariables and mixins, clean css, readable templates instead of some overloaded hodgepodge of classes.
- DanielBMarkham 8y agoYeah. I was reading this thinking "If only we had some way of abstractly creating CSS!" Which of course we already do. Maybe there's a case that the toolchain or conventions need tweaking. So it's worth the discussion in my mind. Most times you really don't realize what you need from a tool/framework until you've reinvented it, so we need folks like this doing sanity checks on where the rest of the industry is going.