From: aude Date: Mon, 31 Mar 2014 18:01:28 +0000 (+0200) Subject: Adjust margin between h2 and special page table element X-Git-Tag: 1.31.0-rc.0~16421^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=f0a73fb7e6c90d7aab39f7b4db0288db15c554b2;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; +}