From f0a73fb7e6c90d7aab39f7b4db0288db15c554b2 Mon Sep 17 00:00:00 2001 From: aude Date: Mon, 31 Mar 2014 20:01:28 +0200 Subject: [PATCH] Adjust margin between h2 and special page table element With the recent typography update, this margin is much too small. .mw-specialpages-table applies "margin-top: -1em;" style which doesn't fit with the vector styles. So this provides an override for vector. Bug: 63312 Change-Id: I18a711802a18b5976cf749d76138a1a6f59e0a4e --- resources/Resources.php | 3 +++ skins/vector/special.less | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 skins/vector/special.less diff --git a/resources/Resources.php b/resources/Resources.php index cf07bd0dde..2f09de613f 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -1130,6 +1130,9 @@ return array( 'mediawiki.special' => array( 'scripts' => 'resources/mediawiki.special/mediawiki.special.js', 'styles' => 'resources/mediawiki.special/mediawiki.special.css', + 'skinStyles' => array( + 'vector' => 'skins/vector/special.less', + ), ), 'mediawiki.special.block' => array( 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js', diff --git a/skins/vector/special.less b/skins/vector/special.less new file mode 100644 index 0000000000..6af4b1eff8 --- /dev/null +++ b/skins/vector/special.less @@ -0,0 +1,7 @@ +/** + * Adjusts for decreased margin-bottom for h2 elements inside #content div + * introduced in March / April 2014 typography update. + */ +table.mw-specialpages-table { + margin-top: 0; +} -- 2.20.1