Preferences: Improve visual appearance by “unboxing” sections
authorVolker E <volker.e@wikimedia.org>
Wed, 15 Nov 2017 00:47:52 +0000 (16:47 -0800)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 16 Nov 2017 22:56:44 +0000 (14:56 -0800)
Instead let's work with whitespace, which also saves virtual space and
makes the appearance not as jarring.

Bug: T180538
Depends-on: I39088107e6ab07399f9826dd925df9e1b8dda006
Change-Id: I24d21eb3c0d188004dacbce8a9bc1ac3ad7e2a8f

resources/src/mediawiki.special/mediawiki.special.preferences.styles.css

index 294dcd0..f87036f 100644 (file)
        transform: none;
 }
 
+#preferences .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed {
+       border-color: #c8ccd1;
+       border-width: 1px 0 0;
+       border-radius: 0;
+       padding-left: 0;
+       padding-right: 0;
+}
+
 /* Tweak the margins to reduce the shifting of form contents
  * after JS code loads and rearranges the page */
 .client-js #preferences > .oo-ui-panelLayout {
        margin-left: 0.25em;
 }
 
-.client-js #preferences .oo-ui-panelLayout-framed .oo-ui-tabPanelLayout .oo-ui-panelLayout-framed {
-       margin-left: 0;
-}
-
-.client-js #preferences .oo-ui-panelLayout-framed .oo-ui-tabPanelLayout {
+.client-js #preferences .oo-ui-tabPanelLayout {
        padding-top: 0.5em;
        padding-bottom: 0.5em;
 }
 
+.client-js #preferences .oo-ui-tabPanelLayout .oo-ui-panelLayout-framed {
+       margin-left: 0;
+       margin-bottom: 0;
+       border: 0;
+       padding-top: 0;
+}
+
 .client-js #preferences > .oo-ui-panelLayout > .oo-ui-fieldsetLayout > .oo-ui-fieldsetLayout-header {
        margin-bottom: 1em;
 }