diff --git a/Overclocked.skin.php b/Overclocked.skin.php index 4ba103b..1a90267 100755 --- a/Overclocked.skin.php +++ b/Overclocked.skin.php @@ -60,16 +60,6 @@ public function initPage( OutputPage $out ) { $out->addHeadItem('pcgw-admanager', ''); } $out->addModules( array( 'skins.overclocked.js' ) ); - } - - /** - * Add CSS via ResourceLoader - * - * @param $out OutputPage - */ - function setupSkinUserCss( OutputPage $out ) { - parent::setupSkinUserCss( $out ); - $out->addModuleStyles( array( 'mediawiki.skinning.elements', 'skins.overclocked.styles' ) ); @@ -188,7 +178,7 @@ public function execute() { foreach($sidebar as $boxName => $box) { ?> -
  • '> +
  • '> diff --git a/skin.json b/skin.json new file mode 100644 index 0000000..e51d309 --- /dev/null +++ b/skin.json @@ -0,0 +1,69 @@ +{ + "name": "Overclocked", + "version": "1.0", + "author": [ + "PCGamingWiki Team" + ], + "url": "https://github.com/PCGamingWiki/overclocked", + "descriptionmsg": "overclocked-desc", + "namemsg": "skinname-overclocked", + "license-name": "GPL-2.0+", + "type": "skin", + "manifest_version": 2, + "ValidSkinNames": { + "overclocked": { + "class": "SkinOverclocked", + "args": [ + { + "name": "overclocked" + } + ] + } + }, + "MessagesDirs": { + "ModernSkylight": [ + "i18n" + ] + }, + "AutoloadClasses": { + "SkinOverclocked": "Overclocked.skin.php" + }, + "ResourceModules": { + "skins.overclocked.styles": { + "styles": [ + "resources/general-header.less", + "resources/general-footer.less", + "resources/general-personalbar.less", + "resources/general-toc.less", + "resources/general-inputfields.less", + "resources/general-specialpages.less", + "resources/pcgw.less", + "resources/pcgw-templates.less", + "resources/pcgw-icons.less", + "resources/mediawiki.custom.less", + "resources/mediawiki.mediaviewer.overrides.less", + "resources/page-home.less", + "resources/page-extension.less", + "resources/page-donate.less", + "resources/page-editing-guide.less", + "resources/other.less" + ] + }, + "skins.overclocked.js": { + "scripts": [ + "resources/jquery/jquery.waypoints.min.js", + "resources/jquery/jquery.ba-outside-events.min.js", + "resources/pcgw.js" + ] + } + }, + "ResourceModuleSkinStyles": { + "mediawiki.special.preferences": [ + "resources/mediawiki.special.preferences.less" + ] + }, + "ResourceFileModulePaths": { + "localBasePath": "", + "remoteSkinPath": "Overclocked" + } +}