From 120cf5ead918c62528f218e9fb7a03db3cd2c100 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Tue, 13 Jun 2017 17:20:39 +0300 Subject: [PATCH] Optimization: don't load .redirectText CSS outside redirect pages Change-Id: I5a12b60cff731c9b5c2492daa3aa67169e53a041 --- main.css | 5 ----- skin.json | 1 + skinStyles/mediawiki.action.view.redirectPage.css | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 skinStyles/mediawiki.action.view.redirectPage.css diff --git a/main.css b/main.css index 0b68bc1..bf5a6c4 100644 --- a/main.css +++ b/main.css @@ -552,11 +552,6 @@ div#footer li { position: relative; } -.redirectText { - font-size: 150%; - margin: 5px; -} - div.patrollink { clear: both; } diff --git a/skin.json b/skin.json index 878d0ee..7fde2df 100644 --- a/skin.json +++ b/skin.json @@ -39,6 +39,7 @@ }, "ResourceModuleSkinStyles": { "monobook": { + "+mediawiki.action.view.redirectPage": "skinStyles/mediawiki.action.view.redirectPage.css", "+mediawiki.special.preferences.styles": "skinStyles/mediawiki.special.preferences.styles.less", "+mediawiki.notification": "skinStyles/mediawiki.notification.less" } diff --git a/skinStyles/mediawiki.action.view.redirectPage.css b/skinStyles/mediawiki.action.view.redirectPage.css new file mode 100644 index 0000000..2a446c4 --- /dev/null +++ b/skinStyles/mediawiki.action.view.redirectPage.css @@ -0,0 +1,4 @@ +.redirectText { + font-size: 150%; + margin: 5px; +}