problem with override

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
Mon Aug 10, 2015 11:43 am
Reply with quote
Report this post
hi,
In advanced setting of template, CSS override is ENABLED (frontpage and subpages), but i've add a simple change of text color and the change is not applied.
See image...
Schermata.jpg

How can I solve?
User avatar
Expert Boarder

GK User
Mon Aug 10, 2015 11:50 am
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Mon Aug 10, 2015 4:51 pm
Reply with quote
Report this post
User avatar
Expert Boarder

GK User
Tue Aug 11, 2015 3:51 pm
Reply with quote
Report this post
to take the changes in override.css I must always add
! important
only in this way the changes are observed ...

why?
User avatar
Expert Boarder

GK User
Tue Aug 11, 2015 4:48 pm
Reply with quote
Report this post
If you want to overcome a declaration that already uses !important you need to use !important also.
User avatar
Moderator

GK User
Tue Aug 11, 2015 5:02 pm
Reply with quote
Report this post
of course
but a declaration already used don't have !important

example:
in wk-styles.css there is:
.uk-overlay-panel {
color: #FFF;
}

if in override.css I put:
.uk-overlay-panel {
color: #000;
}


nothing changes ... in other sites yes!

here I must add
.uk-overlay-panel {
color: #000 !important;
}


it is as if override.css not prevail ...
User avatar
Expert Boarder

GK User
Tue Aug 11, 2015 6:21 pm
Reply with quote
Report this post
Please verify if you have current version of the template. I remember a bug which caused override.css to be loaded before other stylesheets making it's declarations "less" important than original ones. Or you can check page source if override.css is loaded as last css file.
User avatar
Moderator

GK User
Thu Aug 13, 2015 4:18 pm
Reply with quote
Report this post
I've just updated the template...
now, if I take off !important
the change is applied, but the declaretion appears barred (see picture), and even that is not normal.

oggi.jpg
User avatar
Expert Boarder

GK User
Thu Aug 13, 2015 4:24 pm
Reply with quote
Report this post
perhaps it is a problem only in that instance ... seems to work elsewhere.
User avatar
Expert Boarder

GK User
Fri Aug 14, 2015 7:41 am
Reply with quote
Report this post
As long as it works, you should not worry much about it.
User avatar
Moderator


cron