mediawiki-extensions-Visual.../modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget-vector.css
David Chan 0d362040bd Update VE core module to master (469c6340e)
New changes:
6515e03e1 ve.ce.Surface: Rearrange #findBlockSlug test to check other cases
cbfdc8570 Localisation updates from https://translatewiki.net.
708ba0557 Prevent block slugs from overlapping floated elements
3703fd66d Separate the concept of a document node and a root node in CSS

Bug: T211844
Change-Id: Ia86cf9b23e561d3c32601d41c1bc5a9824e9953c
2019-01-06 07:47:17 +08:00

81 lines
2.7 KiB
CSS

/*!
* VisualEditor MediaWiki Initialization DesktopArticleTarget Vector skin styles.
*
* @copyright 2011-2019 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-activated .vectorTabs .selected {
box-shadow: inset 0 -1px 0 #e1f1fc;
}
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-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.
*/
/* 1/0.875 */
margin: 0 -1.14286em;
}
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ce-rootNode,
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ui-surface-placeholder {
padding: 0 1.14286em; /* 1/0.875 */
}
.ve-init-mw-desktopArticleTarget .ve-ui-mwWikitextSurface .ve-ce-rootNode,
.ve-init-mw-desktopArticleTarget .ve-ui-mwWikitextSurface .ve-ui-surface-placeholder {
padding: 0 1.2em; /* 1/ 16/13.3333 */
}
.mw-body .ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ui-surface-placeholder > * {
/* Fix margin overlap */
margin-top: 0;
/* Placeholder doesn't need a border as well */
border: 0;
}
/* Main document debug bar */
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface > .ve-ui-debugBar {
/* 1/0.875 */
padding: 1.14286em;
padding-bottom: 0;
margin-top: 1.14286em;
}
/* High-definition-specific styles (because Vector adds 1em to the leftNav if width is 982px+ */
@media screen and ( min-width: 982px ) {
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface {
/* 1.5/0.875 */
margin: 0 -1.71429em;
}
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ce-rootNode,
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ui-surface-placeholder {
padding: 0 1.71429em; /* surface-margin-left (1.5em) / (mw-body-content font-size) 0.875em */
}
.ve-init-mw-desktopArticleTarget .ve-ui-mwWikitextSurface .ve-ce-rootNode,
.ve-init-mw-desktopArticleTarget .ve-ui-mwWikitextSurface .ve-ui-surface-placeholder {
padding: 0 1.8em; /* surface-margin-left (1.5em) / 16/13.3333 */
}
/* Main document debug bar */
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface > .ve-ui-debugBar {
/* 1.5/0.875 */
padding: 1.71429em;
padding-bottom: 0;
margin-top: 1.71429em;
}
}
/* Prevent the progress bar from overlaying the welcome dialog */
.ve-init-mw-desktopArticleTarget-windowManager-welcome .oo-ui-dialog {
z-index: 2;
}