diff --git a/includes/FemiwikiResourceLoaderSkinModule.php b/includes/FemiwikiResourceLoaderSkinModule.php deleted file mode 100644 index 0469665a..00000000 --- a/includes/FemiwikiResourceLoaderSkinModule.php +++ /dev/null @@ -1,30 +0,0 @@ -getConfig()->get( 'Logos' ); - - # icon has high priority for FemiwikiSkin's backward compatibility. - # This behavior will be removed in the next major version up(v2). - $symbol = $logos[ 'icon' ] ?? $logos[ 'svg' ] ?? null; - if ( $symbol !== null ) { - $lessVars[ 'symbol-enabled'] = true; - $lessVars[ 'symbol-url' ] = CSSMin::buildUrlValue( $symbol ); - } else { - $lessVars[ 'symbol-enabled'] = false; - } - - return $lessVars; - } -} diff --git a/resources/skins.femiwiki/interface-gnb.less b/resources/skins.femiwiki/interface-gnb.less index 9730c040..b1cbec1e 100644 --- a/resources/skins.femiwiki/interface-gnb.less +++ b/resources/skins.femiwiki/interface-gnb.less @@ -27,12 +27,7 @@ background-repeat: no-repeat; @width: @height; width: @width; - - & when( @symbol-enabled = 1 ) { - /* @embed */ - background-image: @symbol-url; - background-size: @height @height; - } + background-size: @height @height; & when( @logo-enabled = 1 ) { @media (min-width: @width-breakpoint-tablet) { diff --git a/skin.json b/skin.json index fe73ce7b..06f31c4f 100644 --- a/skin.json +++ b/skin.json @@ -51,11 +51,12 @@ }, "ResourceModules": { "skins.femiwiki": { - "class": "MediaWiki\\Skins\\Femiwiki\\FemiwikiResourceLoaderSkinModule", + "class": "ResourceLoaderSkinModule", "features": { "content-media": true, "toc": false, - "normalize": true + "normalize": true, + "logo": true }, "targets": ["desktop", "mobile"], "position": "top",