override.css need !important in 80% cases

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Mar 18, 2014 12:04 am
Reply with quote
Report this post
Hi,
I kinda dont understand the use of override.css when on at least of 80% of new lines I need to put !important so it work.

Shouldnt this css file be the latest loaded in the load order and have top priority?

Thanks,
Gorast
User avatar
Platinum Boarder

GK User
Tue Mar 18, 2014 12:50 am
Reply with quote
Report this post
Only one reason - if you want to have possibility to update template without worries.
But if you want to remember about template.css and other .css files -- forget about override.css

Almost all template frameworks have this same "problems"
so maybe build templates from scratch if you are tired.

Second problem, because css from modules are loaded under template files.
User avatar
Platinum Boarder

GK User
Tue Mar 18, 2014 1:07 am
Reply with quote
Report this post
Wow :D Chill man, I just wanted to learn how it works, not to punch you in the nuts.

Gorast
User avatar
Platinum Boarder

GK User
Tue Mar 18, 2014 1:12 am
Reply with quote
Report this post
:P Heheh, I know this wasn't an attack nor mine.

:idea: Unfortunately, sometimes you have to use !important - especially if you are using external - additional modules or components.
And sometimes also our code is not perfect so (!important) may help.
Check on front-page in which order css files are loaded it will help you understand why...

Have a nice day/night. I'm going sleep.
User avatar
Platinum Boarder

GK User
Thu Jan 15, 2015 12:34 pm
Reply with quote
Report this post
Hi,
Is it wise to use !important on all the lines in override.css?

P.S. Since this is an old post and the link to Do's & Dont's in this forum page doesn't work so I couldn't find out that I could DO post reply in old posts or DON'T!
User avatar
Fresh Boarder

GK User
Thu Jan 15, 2015 1:52 pm
Reply with quote
Report this post
And is it was wise to use !important on in template.css by GK developer. Hmm..
But in override sure, sometimes you don't have choice.
User avatar
Platinum Boarder


cron