mediawiki-extensions-Visual.../modules/ve-mw/init/styles/ve.init.mw.DesktopTarget-vector.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

34 lines
677 B
Plaintext

/*!
* VisualEditor MediaWiki Initialization desktop target Vector skin styles.
*
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* All debug bars (includes target widgets) */
.ve-ui-debugBar {
border-top: 1px solid #c8ccd1;
box-shadow: 0 10px 10px -10px rgba( 0, 0, 0, 0.15 ) inset;
ol {
margin-left: 0;
}
}
/* Slug animation needs more specific rules and skin-specific target margins */
.mw-body-content p.ve-ce-branchNode-newSlug {
margin: -0.3em 0 -0.1em 0;
&-open {
margin: 0.5em 0;
}
}
.ve-ui-surface .ve-ui-surface-placeholder {
opacity: 1;
& > * {
color: #72777d;
}
}