Add ul { margin-top: 0; margin-bottom: 0 } for multi-column
authorFomafix <fomafix@googlemail.com>
Fri, 8 Dec 2017 10:48:40 +0000 (11:48 +0100)
committerFomafix <fomafix@googlemail.com>
Sat, 6 Jan 2018 10:00:00 +0000 (11:00 +0100)
The multi-column layout of a list has a currently different top margin
on the first column and on the following columns. On skin Timeless this
is conspicuous because there is a bigger top margin for lists.
This change fixes this for all skins.

This is a follow-up to cd95215caee7ead1098e5fa599d83da9bf56385f.

Change-Id: Icce12f52f98482e80aabd36af1359e37e2038705

resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less
resources/src/mediawiki.special/mediawiki.special.css
resources/src/mediawiki.special/mediawiki.special.version.css

index 83cc207..a481074 100644 (file)
@@ -4,6 +4,10 @@
        .column-count(3);
        .column-width(24em);
        .mw-category-group {
+               ul {
+                       margin-top: 0;
+                       margin-bottom: 0;
+               }
                li {
                        .column-break-inside-avoid;
                }
index c25984c..0676bfc 100644 (file)
        page-break-inside: avoid;
        -webkit-column-break-inside: avoid;
 }
+
+.mw-allpages-chunk,
+.mw-prefixindex-list {
+       margin-top: 0;
+       margin-bottom: 0;
+}
+
 .allpagesredirect {
        font-style: italic;
 }
index acc9f13..1b8581a 100644 (file)
@@ -25,6 +25,11 @@ th.mw-version-ext-col-label {
        -webkit-column-width: 18em;
 }
 
+.mw-version-credits ul {
+       margin-top: 0;
+       margin-bottom: 0;
+}
+
 .mw-version-license-info strong {
        font-weight: normal;
 }