mw.special.preferences: Make the "Basic information" section more compact
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 27 Nov 2017 19:01:40 +0000 (20:01 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 27 Nov 2017 19:56:49 +0000 (19:56 +0000)
Bug: T180538
Change-Id: Iddb73573637dd740fbebed52096cf82ef7c31c00

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

index 7be6ce1..6745695 100644 (file)
 .client-js #preferences > .oo-ui-panelLayout > .oo-ui-fieldsetLayout > .oo-ui-fieldsetLayout-header {
        margin-bottom: 1em;
 }
+
+/* Make the "Basic information" section more compact */
+/* OOUI's `align: 'left'` for FieldLayouts sucks, so we do our own */
+#mw-htmlform-info > .oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
+       width: 20%;
+       display: inline-block;
+       vertical-align: middle;
+       padding: 0;
+}
+
+#mw-htmlform-info > .oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field {
+       width: 80%;
+       display: inline-block;
+       vertical-align: middle;
+}