mediawiki-extensions-Visual.../modules/ve-mw
Bartosz Dziewoński 69147ce3bc Fix Vector wikitext surface padding overrides when using custom browser font-size
In order to get the desired padding, the `em` values were pre-multiplied
by the parent font-size, which was assumed to be `0.875em` for normal
surfaces and `(13.3333/16)em` for wikitext surfaces. (That should have
been `(13/16em)`, by the way, but that's a negligible difference.)

Unfortunately, the font-size for wikitext surfaces is actually `13px`.
Unlike `em`, `px` values are not affected by custom browser font-size,
so when one was set, the final padding was all out of whack.

Use `rem` units instead to respect the custom browser font-size,
without getting problems due to the parent element font-size.
We don't need separate rules for .ve-ui-mwWikitextSurface now.

Bug: T222217
Change-Id: Ib7ffbf09d5aa23fddb894aa3b081ec993ddcee2d
2019-09-18 22:24:47 +02:00
..
ce ve.ce.MWSignatureNode: Fix rendering 2019-08-27 17:16:21 +02:00
dm Docs: Standardise "messages used" comments 2019-08-28 16:41:19 +01:00
init Fix Vector wikitext surface padding overrides when using custom browser font-size 2019-09-18 22:24:47 +02:00
tests Add unit tests for read-mode reference filter 2019-09-10 14:46:45 +00:00
themes SaveDialog: Hide options bar when empty 2019-07-16 14:28:25 +01:00
ui ve.ui.MWEditModeTool: Fix showing active editor 2019-09-09 18:32:56 +02:00
ve.MWutils.js eslint: Enable valid-jsdoc 2019-04-17 17:13:39 +01:00