From: Volker E Date: Thu, 15 Nov 2018 21:59:02 +0000 (-0800) Subject: Reset legend `font-size` in OOUI HTMLForms X-Git-Tag: 1.34.0-rc.0~3505^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=e71c3439318e08edd724c5695966aec0dbc4aa16;p=lhc%2Fweb%2Fwiklou.git Reset legend `font-size` in OOUI HTMLForms It wrongly inherits generic elements style and results in smaller than expected `font-size`. With this patch we're applying the correct size. Change-Id: I42160fc28b22920fbe4a8de48405480ff736aa4d --- diff --git a/resources/src/mediawiki.htmlform.ooui.styles.less b/resources/src/mediawiki.htmlform.ooui.styles.less index a156e8883a..7bec6f4fa7 100644 --- a/resources/src/mediawiki.htmlform.ooui.styles.less +++ b/resources/src/mediawiki.htmlform.ooui.styles.less @@ -16,6 +16,10 @@ .mw-htmlform-ooui { line-height: 1.4; // Override MediaWiki's default of `1.6` + .oo-ui-fieldsetLayout-header { + font-size: 100%; // Override MediaWiki's generic `legend` styling + } + .oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { line-height: 16 / @ooui-font-size-browser / @ooui-font-size-base; }