Adjust margin between h2 and special page table element
authoraude <aude.wiki@gmail.com>
Mon, 31 Mar 2014 18:01:28 +0000 (20:01 +0200)
committerAude <aude.wiki@gmail.com>
Mon, 31 Mar 2014 18:13:01 +0000 (18:13 +0000)
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
skins/vector/special.less [new file with mode: 0644]

index cf07bd0..2f09de6 100644 (file)
@@ -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 (file)
index 0000000..6af4b1e
--- /dev/null
@@ -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;
+}