mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
b272845791
Update VE core submodule to master (109a3cf): * 109a3cf ve.ce.Surface: Remove font-size: 1em; Follows-up I5818dce6265. * When applied to ve-ui-surface, it applies to both of its children, namely ve-ce-surface and ve-ui-surface-overlay. The latter (containing things like context menu and inspectors) should not inherit styles intended for rendering of wikipage content by the skin. * Move mw-content-{ltr,rtl} from an outer parent to a slightly deeper parent of the actual content. It's now on documentNode. Still high enough to apply to all content. This was to ensure it remains a child of mw-body-content, like in MediaWiki core. * Updated padding/margin hack again. Since now the font-size applies on the surface, this once again means that now 1em on the surface != 1em on the documentNode, so we need the calculation again. Brought it back and this time documented what it is based on. Bug: 64599 Change-Id: I9ee4582a6a0ec9e128f5c36a6dbf2adbd0b216a1
52 lines
1.5 KiB
CSS
52 lines
1.5 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki Initialization ViewPageTarget Vector skin styles.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-init-mw-viewPageTarget-surface {
|
|
/*
|
|
In order to allow placing the text cursor to the start or end of the text by
|
|
clicking in the margin area, we expand the outer boundary of the surface
|
|
outside the parent container using negative margin. Then we shrink the visible
|
|
rendering by applying inner padding. The end result is that the content is
|
|
the same width as in read mode, except with the padding around it now being
|
|
part of it instead of its parent, thus making it treat the area as part
|
|
of content editable.
|
|
*/
|
|
margin: 0.8em -1.5em 0 -1.5em;
|
|
}
|
|
|
|
.ve-init-mw-viewPageTarget-surface .ve-ce-documentNode {
|
|
padding: 0 1.714em; /* surface-margin-left (1.5em) / (mw-body-content font-size) 0.875em */
|
|
}
|
|
|
|
.ve-init-mw-viewPageTarget-surface .oo-ui-menuWidget {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.ve-init-mw-viewPageTarget-toolbar {
|
|
margin: -1em -1em 1em -1em;
|
|
-webkit-transition: margin 200ms ease-out;
|
|
-moz-transition: margin 200ms ease-out;
|
|
-o-transition: margin 200ms ease-out;
|
|
transition: margin 200ms ease-out;
|
|
position: relative;
|
|
}
|
|
|
|
.ve-init-debugBar {
|
|
padding: 1em;
|
|
margin: 1em -1em -1em -1em;
|
|
border-top: solid 1px #ccc;
|
|
box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.15) inset;
|
|
}
|
|
|
|
.ve-init-debugBar ol {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.ve-ui-surface-overlay-global {
|
|
z-index: 101; /* #p-personal is z-index 100 in vector :( */
|
|
}
|