1 @import 'mediawiki.mixins';
4 @ooui-font-size-browser: 16; // assumed browser default of `16px`
5 @ooui-font-size-base: 0.875em; // equals `14px` at browser default of `16px`
7 @ooui-spacing-medium: 12 / @ooui-font-size-browser / @ooui-font-size-base; // equals `0.8571429em`≈`12px`
8 @ooui-spacing-large: 16 / @ooui-font-size-browser / @ooui-font-size-base; // equals `1.1428571em`≈`16px`
9 @ooui-padding-horizontal: 12 / @ooui-font-size-browser / @ooui-font-size-base;
10 @ooui-padding-vertical: 4 / @ooui-font-size-browser / @ooui-font-size-base; // equals `0.285714em`≈`4px`
12 .mw-htmlform-ooui-wrapper.oo-ui-panelLayout-padded {
13 padding: @ooui-spacing-medium @ooui-spacing-large @ooui-spacing-large;
17 line-height: 1.4; // Override MediaWiki's default of `1.6`
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 .mw-htmlform-field-HTMLCheckMatrix {
28 border-spacing: 0 2px;
31 padding: @ooui-padding-vertical @ooui-padding-horizontal;
33 .transition( background-color 250ms );
40 tbody tr:nth-child( even ) td {
41 background-color: #f8f9fa;
44 tbody tr:not( :first-child ):hover td {
45 background-color: #eaecf0;
48 tbody tr:first-child td {
49 background-color: #fff;
60 // Flatlist styling for PHP widgets...
61 .mw-htmlform-flatlist .oo-ui-fieldLayout-align-inline,
62 // ...and for JS widgets
63 .mw-htmlform-flatlist .oo-ui-radioOptionWidget,
64 .mw-htmlform-flatlist .oo-ui-checkboxMultioptionWidget {
65 display: inline-block;
66 margin-right: @ooui-spacing-medium;
69 .mw-htmlform-ooui .htmlform-tip,
70 .mw-htmlform-ooui .mw-htmlform-submit-buttons {
71 margin-top: @ooui-spacing-medium;