mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-27 15:50:32 +00:00
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:
parent
60ebf7695e
commit
b4d359d250
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -39,10 +39,7 @@
|
|||
},
|
||||
"ResourceModules": {
|
||||
"ext.interwiki.specialpage": {
|
||||
"styles": "Interwiki.css",
|
||||
"dependencies": [
|
||||
"jquery.makeCollapsible"
|
||||
]
|
||||
"styles": "Interwiki.css"
|
||||
}
|
||||
},
|
||||
"ResourceFileModulePaths": {
|
||||
|
|
Loading…
Reference in a new issue