1 /* Edit font preference */
2 .mw-editfont-monospace {
3 font-family: monospace, monospace;
6 .mw-editfont-sans-serif {
7 font-family: sans-serif;
14 /* Standardize font size for edit areas using edit-fonts T182320 */
15 .mw-editfont-monospace,
16 .mw-editfont-sans-serif,
18 /* TODO: Re-evaluate whether we should keep this over-ride or switch to ems */
19 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
21 /* Standardize tab width when in edit areas */
25 /* For OOUI TextInputWidget, the parent <div> element uses normal font size, and only
26 * the <textarea>/<input> inside of it has the adjusted font size. This allows the width
27 * of the widget and size of icons etc. (which are expressed in ems) to stay the same.
29 &.oo-ui-textInputWidget {
32 > .oo-ui-inputWidget-input {
33 /* TODO: Re-evaluate whether we should keep this over-ride or switch to ems */
34 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
38 // Single-line only, preserve original height to avoid
39 // reflow when toggling (T246136) and to align with buttons
40 // in ActionFieldLayout
41 > input.oo-ui-inputWidget-input {
42 min-height: 32px; // 18px original line-height + 12px padding + 2px border