From: Volker E Date: Fri, 6 Oct 2017 22:34:58 +0000 (-0700) Subject: HTMLForm: Mangle excessive whitespace X-Git-Tag: 1.31.0-rc.0~1847^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/cloturer.php?a=commitdiff_plain;h=d8c16a08f06df97ac1daa852e2664471862ae5cf;p=lhc%2Fweb%2Fwiklou.git HTMLForm: Mangle excessive whitespace Addressing excessive whitespace in OOUIfied HTMLForms by - setting form `line-height` to `1.4` in order to override core and - explicitely setting header label `line-height` as well. Bug: T177668 Depends-on: I6463bb204c0000d89fd12a39c4f3c571be0ffc37 Change-Id: I8f503dd5305aef856c6b842c0fdd95522871dca3 --- diff --git a/resources/src/mediawiki/htmlform/ooui.styles.less b/resources/src/mediawiki/htmlform/ooui.styles.less index 43acb3ab3a..84d462eb47 100644 --- a/resources/src/mediawiki/htmlform/ooui.styles.less +++ b/resources/src/mediawiki/htmlform/ooui.styles.less @@ -1,6 +1,12 @@ /* OOUIHTMLForm styles */ .mw-htmlform-ooui { + line-height: 1.4; // Override MediaWiki's default of `1.6` + + .oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { + line-height: 1.143; // equals `16px` + } + .mw-htmlform-field-HTMLCheckMatrix { width: 100%; }