Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669025y:root{
--primary-color: #fc9a0e;
--secondary-color: #f76714;
--accent-color: #fc9a0e;
}
Beyond using sass when css can handle it.... why did I write that color twice 🤦♂️ -
Marl3x26765y@AlgoRythm ah, I would love to do that but a lot of people still use IE. And I for example want to reuse my styles for different projects, so I have to look out for these things.
-
C0D4669025y@Marl3x how many users actually use you're websites with IE11 - go past 30 days.
Now, out of that number, how many of those users do you make money off - excluding advertising.
@inaba
Css = ugly?
Yet the sass version is the same thing 🤷♂️ -
@Marl3x almost nobody uses IE. Last time I checked their usage was less than 5% and dropping sharply. It is a security risk, officially unsupported, and even hidden in Windows 10. Even Windows 7, the last operating system to actually use IE, is officially losing support.
We're seeing major companies ditch support for IE, like GitHub.
IE is finally truly dying. -
Marl3x26765y@C0D4 My workplace still lives in the 90s, we haven't even fully converted to a C/S infrastructure, but I still want to reuse the things I do for work for my own projects so...
-
unknown18355y@inaba if you find css variables ugly, you can always store them in a sass variable.
So you get something like:
:root {
--primary-color: #ffffff;
}
$primary-color: var(--primary-color);
Than you can use sass variables in your code, while having the benefits of css variables.
IE is still a problem, but there are some polyfills around to "fix" it if you want to support it.
$primary-color: #fc9a0e;
$secondary-color: #f76714;
$accent-color: #fc9a0e;
:D
rant