1 @import 'mediawiki.skin.variables.less';
2 @import 'mediawiki.mixins.less';
4 /* stylelint-disable selector-class-pattern */
6 @ooui-font-size-browser: 16; // assumed browser default of `16px`
7 @ooui-font-size-base: 0.875em; // equals `14px` at browser default of `16px`
9 // Equals `1.85714286em`≈`26px`.
10 @ooui-spacing-radio-label: (26 / @ooui-font-size-browser / @ooui-font-size-base);
13 line-height: 1.4; // Override MediaWiki's default of `1.6`
15 .oo-ui-fieldsetLayout-header {
16 font-size: 100%; // Override MediaWiki's generic `legend` styling
19 .oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
20 line-height: (16 / @ooui-font-size-browser / @ooui-font-size-base);
23 // Default OOUI styles produce a larger margin here
24 .mw-htmlform-field-HTMLSizeFilterField {
25 margin-top: @spacing-75;
39 transition: background-color 250ms;
46 tbody tr:nth-child( even ) td {
47 background-color: @background-color-neutral-subtle;
51 background-color: @background-color-neutral;
54 .oo-ui-fieldLayout-help {
55 // Clickable size is much larger than visual size,
56 // adjust so that it doesn't affect row height.
60 .oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
65 // Allows fields to be visually indented to associate them with a checkbox or
66 // radio button that enables/disables them.
67 .oo-ui-fieldLayout.mw-htmlform-checkradio-indent {
68 margin-left: @ooui-spacing-radio-label;
70 .oo-ui-tagMultiselectWidget,
71 .oo-ui-textInputWidget {
72 max-width: 50em - @ooui-spacing-radio-label;
77 // Flatlist styling for PHP (`.oo-ui-fieldLayout-align-inline`) &
78 // JS (`.oo-ui-radioOptionWidget, .oo-ui-checkboxMultioptionWidget`) widgets
79 .mw-htmlform-flatlist {
80 .oo-ui-fieldLayout-align-inline,
81 .oo-ui-radioOptionWidget,
82 .oo-ui-checkboxMultioptionWidget {
83 display: inline-block;
84 margin-right: @spacing-75;
87 // Reduce label distance in flatlist
88 &.oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
93 // First selector is flatlist specific
94 .mw-htmlform-field-HTMLMultiSelectField.oo-ui-fieldLayout,
95 .mw-htmlform-ooui .htmlform-tip,
96 .mw-htmlform-ooui .mw-htmlform-submit-buttons {
97 margin-top: @spacing-75;