Load 'ext.interwiki.specialpage' as style module

This avoids a FOUC on loading.

For overwriting the wikitable styles a higher specificity is needed to
not depend on the order of loading.

The dependency to module 'jquery.makeCollapsible' is not necessary
because this module is loaded automatically.

Change-Id: Icc1ec927a89df5cf8c847ab5cb77d81f2651be49
This commit is contained in:
Fomafix 2017-08-28 07:12:20 +02:00 committed by Umherirrender
parent 60ebf7695e
commit b4d359d250
3 changed files with 5 additions and 6 deletions

View file

@ -43,7 +43,9 @@ input#mw-interwiki-url {
.mw-interwiki-legend .mw-collapsible-toggle {
font-weight: normal;
}
table.mw-interwiki-legend {
/* Selector with higher specifity than wikitable */
table.wikitable.mw-interwiki-legend {
margin-top: 2em;
}

View file

@ -42,7 +42,7 @@ class SpecialInterwiki extends SpecialPage {
$out = $this->getOutput();
$request = $this->getRequest();
$out->addModules( 'ext.interwiki.specialpage' );
$out->addModuleStyles( 'ext.interwiki.specialpage' );
$action = $par ?: $request->getVal( 'action', $par );
$return = $this->getPageTitle();

View file

@ -39,10 +39,7 @@
},
"ResourceModules": {
"ext.interwiki.specialpage": {
"styles": "Interwiki.css",
"dependencies": [
"jquery.makeCollapsible"
]
"styles": "Interwiki.css"
}
},
"ResourceFileModulePaths": {