Use defaultmodule to load skin styles instead

This commit is contained in:
alistair3149 2020-02-15 21:26:07 -05:00
parent 74f3647af0
commit a2608fc40b
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
2 changed files with 7 additions and 1 deletions

View file

@ -206,6 +206,8 @@ class SkinCitizen extends SkinTemplate {
public function getDefaultModules() {
$modules = parent::getDefaultModules();
// Use Citizen skin styles
$modules['styles']['skin'][] = 'skins.citizen.styles';
// Replace search module with a custom one
$modules['search'] = 'skins.citizen.search.scripts';
@ -218,7 +220,6 @@ class SkinCitizen extends SkinTemplate {
private function addModules() {
$this->out->addModuleStyles( [
'mediawiki.skinning.content.externallinks',
'skins.citizen.styles',
] );
$this->out->addModules( [

View file

@ -186,6 +186,11 @@
"ResourceModules": {
"skins.citizen.styles": {
"class": "ResourceLoaderSkinModule",
"features": [ "elements", "content", "interface", "logo" ],
"targets": [
"desktop",
"mobile"
],
"styles": {
"resources/screen.less": {
"media": "screen"