fix(mediawiki): 🐛 apply body styles to overlay outside of citizen-body

This should fix the incorrect line-height issue in VE preview.

T347199
This commit is contained in:
alistair3149 2024-10-21 19:09:22 -04:00
parent 7702361402
commit 95c355d9b3
No known key found for this signature in database
2 changed files with 13 additions and 0 deletions

View file

@ -606,6 +606,7 @@
"+mediawiki.editfont.styles": "skinStyles/mediawiki/mediawiki.editfont.styles.less", "+mediawiki.editfont.styles": "skinStyles/mediawiki/mediawiki.editfont.styles.less",
"+mediawiki.interface.helpers.styles": "skinStyles/mediawiki/mediawiki.interface.helpers.styles.less", "+mediawiki.interface.helpers.styles": "skinStyles/mediawiki/mediawiki.interface.helpers.styles.less",
"+mediawiki.notification": "skinStyles/mediawiki/mediawiki.notification.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.pager.styles": "skinStyles/mediawiki/mediawiki.pager.styles.less",
"mediawiki.skinning.content.parsoid": [], "mediawiki.skinning.content.parsoid": [],
"mediawiki.skinning.interface": [], "mediawiki.skinning.interface": [],

View file

@ -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 );
}