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
-
I get what you're saying, but it's about knowing the "language". CSS is governed by the concept of specificity, so you just have to know how things are referenced to do your overriding. But, yes, it's not the most intuitive process.
-
bosi5097y@AlexDeLarge the fact is that css is in my eyes not good designed as it often does not do what i want it to do. Yes you're right that basically it's a simple language with yust id's, classes and pseudo-classes to select the elements I want to customize. And yes maybe those people who crate themes for cms are as lazy as me leaning css proper and use it in a way other people can easily work on the stylesheets without using "!important" all the time. The point is that a language should not give devs even the ability to do it the quick and dirty way.
-
@bosi "The language should not let the devs do it the quick and dirty way"
That's a truly bonkers thought. How do you even begin to think about that when you're coming up with a language?
Compare it with spoken languages. You're essentially saying "It should not be possible to combine letters together to make certain words."
A language (spoken or programming) can no more govern how people use it than food can control how people eat it.
Related Rants
Yesterday I was reminded by myself why I prefer working on backend instead on frontend. Css is definitely one of the shittiest things I've ever seen especially if you try to overwrite some Css settings if the used cms theme.
undefined
cms
frontend
css
backend