X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.special.preferences.styles.ooui.less;h=baa9beb305dd89e97eeb018e736b9acbe8f41271;hp=fac53f303240664e10d7b51afcfb73a6af094b6f;hb=2f5d88819799f077f4d3a3288dad104141692f20;hpb=a075f50a86be14347100f662ccd683af4f437090 diff --git a/resources/src/mediawiki.special.preferences.styles.ooui.less b/resources/src/mediawiki.special.preferences.styles.ooui.less index fac53f3032..baa9beb305 100644 --- a/resources/src/mediawiki.special.preferences.styles.ooui.less +++ b/resources/src/mediawiki.special.preferences.styles.ooui.less @@ -34,13 +34,11 @@ .mixin-screen-reader-text; } -/* Override OOUI styles so that dropdowns near the bottom of the form don't get clipped, - * e.g.'Appearance' / 'Threshold for stub link formatting'. This is hacky and bad, it would be - * better solved by setting overlays for the widgets, but we can't do it from PHP... */ -#preferences .oo-ui-panelLayout { - position: static; - overflow: visible; - .transform( none ); +/* Most outer Panellayout: + * Decrease contrast of `border` slightly as padding/border combination is sufficient + * accessibility wise and focus of content is more important here. */ +#preferences .oo-ui-panelLayout-framed { + border-color: #c8ccd1; } #preferences .oo-ui-menuLayout .oo-ui-panelLayout-framed .oo-ui-panelLayout-framed { @@ -110,6 +108,10 @@ &:first-child { margin-top: 0.85714286em; } + + .oo-ui-panelLayout-framed:first-child { + margin-top: 0; + } } > .oo-ui-panelLayout > .oo-ui-fieldsetLayout > .oo-ui-fieldsetLayout-header { @@ -138,6 +140,14 @@ } } +/* Compact number inputs, used at "Display options" on "Recent changes" */ +.mw-htmlform-field-HTMLFloatField, +.mw-htmlform-field-HTMLIntField { + .oo-ui-inputWidget { + max-width: 10em; + } +} + /* Expand the dropdown and textfield of "Time zone" field to the */ /* usual maximum width and display them on separate lines. */ #wpTimeCorrection .oo-ui-dropdownInputWidget,