mediawiki-extensions-Visual.../modules/ve-mw/init/styles/ve.init.mw.DesktopTarget-monobook.less
Bartosz Dziewoński 5667832c1b Attach content to teleport target instead of <body>, remove Vector hacks
In MediaWiki, OO.ui.getTeleportTarget() is overridden to return
a different element (itself attached to body), which is supposed
to be styled appropriately by skins (e.g. z-index above any
floating header, font-size same as body text, etc.).

As a result, we no longer need to do weird things with the
'vector-body' class to achieve correct font size on Vector,
and we can remove some font-size overrides for Vector and MonoBook.

Bug: T348288
Bug: T339058
Change-Id: I6329b3023573b3dcfc8f471c4693be9bb1e9e430
2023-11-06 14:29:12 +00:00

32 lines
852 B
Plaintext

/*!
* VisualEditor MediaWiki Initialization desktop target Monobook skin styles.
*
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* stylelint-disable-next-line selector-class-pattern */
.mw-body a.external.ve-ce-linkAnnotation.ve-ce-annotation-active {
/* Monobook sets a background:url(); rule which overrides the colour. TODO: Fix upstream */
background-color: #e6f1ff;
}
.ve-ui-debugBar {
border-top: 1px solid #ccc;
}
.ve-ui-surface .ve-ui-surface-placeholder {
opacity: 1;
color: #72777d;
}
.ve-ui-overlay .mw-body-content {
/* Fix font-size for surfaces inside UI overlays */
font-size: 0.9921875em; /* 1/ ( 0.8em / x-small / 127% ) */
}
.ve-ui-overlay-local {
/* Fix font-size for overlays inside surfaces */
font-size: 1.007874em; /* 12.8/12.7 */
}