From ad1d6542e39c8f2aa423a542bb2c34a63d4c5718 Mon Sep 17 00:00:00 2001 From: Volker E Date: Fri, 29 Jun 2018 19:04:19 +0200 Subject: [PATCH] Special:Preferences: Improve section grouping Improving section grouping per tab/meta section by increasing whitespace. Also remove sub-borders in No-JS clients and unnecessary property. Bug: T198499 Change-Id: Id28f0d9631dfb08c51bf287c0aac0c1c206ea795 --- .../src/mediawiki.special.preferences.styles.ooui.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/src/mediawiki.special.preferences.styles.ooui.css b/resources/src/mediawiki.special.preferences.styles.ooui.css index 4c5d34485b..fda049b4ac 100644 --- a/resources/src/mediawiki.special.preferences.styles.ooui.css +++ b/resources/src/mediawiki.special.preferences.styles.ooui.css @@ -59,7 +59,7 @@ /* Adjust the borders when JS is disabled: frame each prefsection instead of the * whole tabLayout wrapper */ -.client-nojs #preferences .oo-ui-menuLayout .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed { +.client-nojs #preferences .oo-ui-menuLayout .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed:first-child { border-color: #c8ccd1; border-width: 1px 0 0; } @@ -95,14 +95,18 @@ } .client-js #preferences .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed { - margin-left: 0; + margin-top: 2.286em; /* equals `32px` at `font-size: 14px;` */ margin-bottom: 0; - padding: 0; border-width: 0; border-radius: 0; + padding: 0; box-shadow: none; } +.client-js #preferences .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed:first-child { + margin-top: 0.85714286em; +} + .client-js #preferences > .oo-ui-panelLayout > .oo-ui-fieldsetLayout > .oo-ui-fieldsetLayout-header { margin-bottom: 1em; } -- 2.20.1