Page 1 of 1
Re: Copying templates does not preserve order of attached stylesheets
Posted: Mon May 22, 2006 3:56 pm
by hotaru
I think the order of the stylesheets is only a problem if you have different CSS for the same thing in different stylesheets, and they conflict with each other.
Perhaps, rather than recreating the associations each time, it would be easier if you went through once and checked your CSS and made sure you're only formatting each attribute once. Your CSS will validate better too.
-- Genevieve
Re: Copying templates does not preserve order of attached stylesheets
Posted: Mon May 22, 2006 8:11 pm
by tsw
actually if you define
body {
color:black;
}
and later another
body {
color:white;
}
validator will warn you..
I do agree with the fact that stylesheets should keep some order, but one should also check that rules work like they should even if the order is different (!important and html body {color..} in the first one would make black value have higher specificity)
sources:
http://www.w3.org/TR/CSS21/cascade.html#important-rules
http://www.w3.org/TR/CSS21/cascade.html#specificity
and it seems that cascade comes from here
http://www.w3.org/TR/CSS21/cascade.html#cascade
well see what we can do about this
btw, I dont mean this as a flamewar

Re: Copying templates does not preserve order of attached stylesheets
Posted: Tue May 30, 2006 5:10 am
by Dr.CSS
NO WAR!!
actully you are right if you call a style for something eg. #content{width:500px}
and some other sheet comes along and says #content{width:700px}
guess which one will style the #content...
if you said which ever one gets there first YOU WIN... jonny tell the folks what they won...
well in this corner we have a wonderful dinette set for two with elegant chairs to match..... some prizes may be subsituted for less quality gear

Re: Copying templates does not preserve order of attached stylesheets
Posted: Fri Jun 02, 2006 7:56 am
by mic
Hy there
this is also my problem: how can I chance (or influence) the order style-sheets are loaded?
Regards, mic
Re: Copying templates does not preserve order of attached stylesheets
Posted: Fri Jun 02, 2006 9:32 am
by Ted
In 0.12.2, the stylesheets were ordered in the order that you attached them to the template. This didn't get carried over to 0.13 in the new stylesheet.php. I will be fixing this in the next release. However, if you change old_stylesheet to true in config.php, then the "ordering" will be honoured.