From 95c355d9b33a370fd5412f6cbbb1db1ca92b80ab Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 21 Oct 2024 19:09:22 -0400 Subject: [PATCH] =?UTF-8?q?fix(mediawiki):=20=F0=9F=90=9B=20apply=20body?= =?UTF-8?q?=20styles=20to=20overlay=20outside=20of=20citizen-body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should fix the incorrect line-height issue in VE preview. T347199 --- skin.json | 1 + skinStyles/mediawiki/teleportTarget.less | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 skinStyles/mediawiki/teleportTarget.less diff --git a/skin.json b/skin.json index 64623b52..29093ed4 100644 --- a/skin.json +++ b/skin.json @@ -606,6 +606,7 @@ "+mediawiki.editfont.styles": "skinStyles/mediawiki/mediawiki.editfont.styles.less", "+mediawiki.interface.helpers.styles": "skinStyles/mediawiki/mediawiki.interface.helpers.styles.less", "+mediawiki.notification": "skinStyles/mediawiki/mediawiki.notification.less", + "+mediawiki.page.ready": "skinStyles/mediawiki/teleportTarget.less", "+mediawiki.pager.styles": "skinStyles/mediawiki/mediawiki.pager.styles.less", "mediawiki.skinning.content.parsoid": [], "mediawiki.skinning.interface": [], diff --git a/skinStyles/mediawiki/teleportTarget.less b/skinStyles/mediawiki/teleportTarget.less new file mode 100644 index 00000000..9cc9a96d --- /dev/null +++ b/skinStyles/mediawiki/teleportTarget.less @@ -0,0 +1,12 @@ +/* + * Apply styles from .citizen-body + * T347199 + * TODO: Drop the body > selectors after we move to 1.43 + * and #mw-teleport-target are ready + */ +#mw-teleport-target, +body > .oo-ui-windowManager, +body > .ve-ui-overlay-global { + font-size: var( --font-size-small ); + line-height: var( --line-height ); +}