diff options
author | 2018-11-28 11:23:37 -0500 | |
---|---|---|
committer | 2018-11-28 11:23:37 -0500 | |
commit | 3077247a2a210ab8ba6e0a610b3b316c767be41d (patch) | |
tree | 456ba580af56d171bd92f8e21da71fdef64e1f3c | |
parent | Add dependency (diff) | |
download | skin-tyrian-3077247a2a210ab8ba6e0a610b3b316c767be41d.tar.gz skin-tyrian-3077247a2a210ab8ba6e0a610b3b316c767be41d.tar.bz2 skin-tyrian-3077247a2a210ab8ba6e0a610b3b316c767be41d.zip |
Correct loading of icons
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | SkinTyrian.php | 7 | ||||
-rw-r--r-- | skin.json | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/SkinTyrian.php b/SkinTyrian.php index 064a74c..eddc5fd 100644 --- a/SkinTyrian.php +++ b/SkinTyrian.php @@ -27,11 +27,12 @@ class SkinTyrian extends SkinTemplate { $out->addStyle(SkinTyrian::CDN_URL . 'bootstrap.min.css'); $out->addStyle(SkinTyrian::CDN_URL . 'tyrian.min.css'); - $out->addModuleStyles(array( + $out->addModuleStyles([ 'mediawiki.skinning.interface', 'mediawiki.skinning.content.externallinks', - 'skins.tyrian.styles' - )); + 'skins.tyrian.styles', + 'skins.tyrian.icons' + ]); } public static function injectMetaTags($out) { $out->addMeta('viewport', 'width=device-width, initial-scale=1.0'); @@ -27,15 +27,12 @@ "main.css": { "media": "screen" } - }, - "dependencies": [ - "skins.tyrian.icons" - ] + } }, "skins.tyrian.icons": { "position": "top", "class": "ResourceLoaderImageModule", - "selector": "body.skin-tyrian #pt-notifications-${name} .mw-echo-notifications-badge:before", + "selector": "body.skin-tyrian #pt-notifications-{name} .mw-echo-notifications-badge:before", "images": { "alert": "icons/bell.svg", "notice": "icons/tray.svg" |