Attempt to rearrange resourceloader module

This commit is contained in:
alistair3149 2020-02-15 20:49:32 -05:00
parent c8fa98b2e4
commit 7a922720ba
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
2 changed files with 6 additions and 5 deletions

View file

@ -206,6 +206,11 @@ class SkinCitizen extends SkinTemplate {
public function getDefaultModules() { public function getDefaultModules() {
$modules = parent::getDefaultModules(); $modules = parent::getDefaultModules();
// Add Citizen skin styles
$modules['styles']['skin'] = [
'mediawiki.skinning.content.externallinks',
'skins.citizen.styles',
];
// Replace search module with a custom one // Replace search module with a custom one
$modules['search'] = 'skins.citizen.search.scripts'; $modules['search'] = 'skins.citizen.search.scripts';
@ -216,11 +221,6 @@ class SkinCitizen extends SkinTemplate {
* Adds all needed skin modules * Adds all needed skin modules
*/ */
private function addModules() { private function addModules() {
$this->out->addModuleStyles( [
'mediawiki.skinning.content.externallinks',
'skins.citizen.styles',
] );
$this->out->addModules( [ $this->out->addModules( [
'skins.citizen.scripts', 'skins.citizen.scripts',
'skins.citizen.icons', 'skins.citizen.icons',

View file

@ -7,6 +7,7 @@ table.wikitable {
background-color: transparent; background-color: transparent;
color: @base-20; color: @base-20;
border: 0; border: 0;
border-collapse: collapse;
tr { tr {
vertical-align: top; vertical-align: top;