4 ms·
I think it's nice I can change "color: red" to "color: blue" and "padding: 1rem" to "padding: 1.5rem" in one place and have it take effect everywhere it's relev
by arp242 3y ago
I think it's nice I can change "color: red" to "color: blue" and "padding: 1rem" to "padding: 1.5rem" in one place and have it take effect everywhere it's relevant.
You can do this with CSS variables now I suppose, but this very quickly becomes "CSS classes, but with extra steps".
- lmm 3y ago> I think it's nice I can change "color: red" to "color: blue" and "padding: 1rem" to "padding: 1.5rem" in one place and have it take effect everywhere it's relevant. I agree, but that place is normally the code/templating engine that generates your webpage. So it really shouldn't matter if it's repeated on the wire. > You can do this with CSS variables now I suppose, but this very quickly becomes "CSS classes, but with extra steps". Variables are much simpler and easier to understand than selectors.