Oops, I mean "shared.css" when I say "common". Sorry =)
Onur
---------- Forwarded message ---------- From: Onur Safak wikimedialist.007@onursafak.com Date: Tue, Jan 27, 2009 at 4:43 PM Subject: common.css overrides monobook's main.css? To: mediawiki-l@lists.wikimedia.org
Hi,
I'm making a custom skin based on MonoBook. Isn't main.css meant to override common.css? Currently "a.new, #quickbar a.new" rule in "common", overrides any "a.new" rule in "main". "main" is '@import'ed after "common" in the index php file.
I don't get the point of having a dominant color rule in a shared css file. Is it intentional?
Thanks,
Onur
Hello,
Sorry for the consecutive posts. Appears Firebug was confused with the style's location pointing a wrong line. The real problem is this line in the page :
*@import "/wiki/index.php?title=-&**action=raw&gen=css&maxage=** 18000&smaxage=0&useskin=**DFODark"; * which takes a style rendered using "*skin.php / reallyDoGetUserStyles()*" and overrides the current skin's style sheet, as this line comes after the skin's css link.
I see it's related to "format broken links" setting. However shouldn't it just modify the code (attach 'new' style to the link) and not the style sheets? Is it intended to add a universal 'new' style to render broken links instead?
Moreover I think the "format broken links" function is broken if I'm not missing something, I'll try some other installations to be sure. Currently it always loads that style and renders broken links no matter what the option is set to.
Since !important gives me some headache I may modify the "*skin.php / reallyDoGetUserStyles()*" function as a temporary solution, which will modify all styles I guess.
This is the style rendered by the link:
*/* generated user stylesheet */ a.new, #quickbar a.new { color: #CC2200; } *
Anybody has experienced this before, or know how it's intended to be used?
Thanks!
Onur Safak
---------- Forwarded message ---------- From: Onur Safak wikimedialist.007@onursafak.com Date: Tue, Jan 27, 2009 at 4:53 PM Subject: common.css overrides monobook's main.css? -correction To: MediaWiki announcements and site admin list < mediawiki-l@lists.wikimedia.org>
Oops, I mean "shared.css" when I say "common". Sorry =)
Onur
---------- Forwarded message ---------- From: Onur Safak wikimedialist.007@onursafak.com Date: Tue, Jan 27, 2009 at 4:43 PM Subject: common.css overrides monobook's main.css? To: mediawiki-l@lists.wikimedia.org
Hi,
I'm making a custom skin based on MonoBook. Isn't main.css meant to override common.css? Currently "a.new, #quickbar a.new" rule in "common", overrides any "a.new" rule in "main". "main" is '@import'ed after "common" in the index php file.
I don't get the point of having a dominant color rule in a shared css file. Is it intentional?
Thanks,
Onur
mediawiki-l@lists.wikimedia.org