https://bugzilla.wikimedia.org/show_bug.cgi?id=22904

Krinkle <krinklem...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krinklem...@gmail.com

--- Comment #5 from Krinkle <krinklem...@gmail.com> 2011-04-15 09:27:00 UTC ---
(In reply to comment #4)
> Imo, nowadays Mediawiki:Common.css is loaded *after* the skin scripts.
> So, setting background-color: in common.css shouldn't be a problem

That's not the point. The order is irrelevant for the most part here.

CSS selectors override only if they have the same weight/priority. an
"#id"-selector with depth has more weight than a simple tag selector.


The solution is to 
- 1) only set the background color in Common.css so the backgound image will be
preserved instead of overridden by the shorthand method
- 2) Prioritize your selector by overriding the weight (do this with the
"!important" keyword).

so, in MediaWiki:Common.css:


a { color: pink !important; }
a:hover { color: purple !important; } 
a:active { color: green !important; } 

or whatever, that should work.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to