Adding custom style for special pages

Yes I know that it is bad to edit the resources.php file. That was the entire reason for the post. The ugly hack makes it work as I want it to but the question was how to do it the right way. The page you link to is actually the one I used to add the skin in the first place but I can't extract information about how to register the skin for the special:preferences page from It. Can you please clarify that part?

Apan Loon21:57, 11 June 2014

Oh, sorry, then i missunderstand you :) I'm pretty sure, it's not possible to overwrite or extend a modulein resourceloader when it is already registered :/ Maybe an other know more about a possible solution :)

Florianschmidtwelzow (talk)06:08, 12 June 2014

Hi!

I had the same problem a few days ago and I also came to the conclusion that it is not possible to change the registration of mediawiki.special.preferences.

I solved this by adding and adjusting styles for those elements, which I want to look different to the skin's CSS files. They overwrite what is defined in mediawiki.special.preferences. You might have to use "!important" in order to make your CSS overwrite what comes from mediawiki.special.preferences, if your rules would otherwise not be special enough.

88.130.71.12607:51, 12 June 2014