mediawiki-extensions-Visual.../modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget-vector.css
Ed Sanders 3c0ddc9c69 Cleanup DesktopTarget styles
* Ensure DAT styles are fully scoped to DAT instances
* Ensure that generic desktop target rules are in the correct file
* Remove old unused rules

Change-Id: I466a0547ff9a0fa1102aac0b1e501a6ba6863ca3
2017-03-01 12:38:51 +00:00

100 lines
3 KiB
CSS

/*!
* VisualEditor MediaWiki Initialization DesktopArticleTarget Vector skin styles.
*
* @copyright 2011-2017 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 #a7d7f9;
}
.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-deactivating .ve-init-mw-desktopArticleTarget-originalContent,
.ve-activated .ve-init-mw-desktopArticleTarget-originalContent {
padding-top: 1em;
}
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ce-documentNode,
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ui-surface-placeholder {
padding: 0 1.14286em; /* 1/0.875 */
}
.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;
}
.ve-init-mw-desktopArticleTarget-toolbar {
font-size: 0.8em;
/* 1/0.8 */
margin: -1.25em -1.25em 0 -1.25em;
position: relative;
}
/* Main document debug bar */
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface > .ve-ui-debugBar {
/* 1/0.8 */
padding: 1.25em;
padding-bottom: 0;
margin-top: 1.25em;
}
.ve-ui-init-desktopArticleTarget-sectionTitle {
font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
line-height: 1.3;
font-size: 1.5em;
border-bottom: 1px solid #aaa;
}
/* 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-deactivating .ve-init-mw-desktopArticleTarget-originalContent,
.ve-activated .ve-init-mw-desktopArticleTarget-originalContent {
padding-top: 1.25em;
}
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface .ve-ce-documentNode,
.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-toolbar {
/* 1.25/0.8, 1.5/0.8 */
margin: -1.5625em -1.875em 0 -1.875em;
}
/* Main document debug bar */
.ve-init-mw-desktopArticleTarget .ve-init-mw-target-surface > .ve-ui-debugBar {
/* 1/0.8, 1.5/0.8 */
padding: 1.875em;
padding-bottom: 0;
margin-top: 1.875em;
}
}
/* Prevent the progress bar from overlaying the welcome dialog */
.ve-init-mw-desktopArticleTarget-windowManager-welcome .oo-ui-dialog {
z-index: 2;
}