mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
8c7ed92288
New changes: c54a48a build: Fix watch list (csslint -> stylelint) 58ba3d9 Add stylelint rules for @-rules 3f8c75a Stylelint: Add rule for unsupported browser features 3b96ff3 Fix minimum Opera version (15 -> 12) 9a1110b Stylelint: No ID selectors 9800bb8 build: Remove remaining references to csslint b6ab14a stylelint: Re-enable features by names 6cc1f3c Move stylelint to npm 1d15fa0 build: Bump stylelint version to v0.2.0 ccc1724 stylelint: Use the preset rather than extending Change-Id: I22fa8098592338a5e912aba9ad21131b21d9c0ea
98 lines
2.5 KiB
CSS
98 lines
2.5 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki DesktopArticleTarget init styles.
|
|
*
|
|
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/* stylelint-disable selector-no-id */
|
|
|
|
/*!
|
|
* State | <html> classes
|
|
* - mw.DesktopArticleTarget.init.css is loaded
|
|
* Reading | ve-available
|
|
* Loading editor | ve-available ve-activated ve-loading
|
|
* - mw.DesktopArticleTarget.css is loaded
|
|
* Activate editor | ve-available ve-activated ve-activating
|
|
* Active | ve-available ve-activated ve-active
|
|
* Deactivate editor | ve-available ve-deactivating
|
|
* Deactivated | ve-available
|
|
*/
|
|
|
|
.ve-activated #toc,
|
|
.ve-activated #siteNotice,
|
|
.ve-activated .mw-indicators,
|
|
/* Most of bodyContent can be hidden as VE has an equivalent of most children
|
|
in ve-init-target (sibling of #bodyContent). However, we can't hide it
|
|
completely as subs should remain visible (for persistence with read mode),
|
|
and ve-ui-mwTocWidget is also part of #bodyContent. */
|
|
.ve-active #bodyContent > :not( #siteSub ):not( #contentSub ):not( .ve-ui-mwTocWidget ),
|
|
.ve-activated #t-print,
|
|
.ve-activated #t-permalink,
|
|
.ve-activated #p-coll-print_export,
|
|
.ve-activated #t-cite,
|
|
.ve-deactivating .ve-ui-surface {
|
|
display: none;
|
|
}
|
|
|
|
/* The surface needs to be measurable while being setup
|
|
as some nodes render based on their dimensions, e.g.
|
|
ve.ce.FocusableNode#updateInvisibleIcon */
|
|
.ve-activating .ve-ui-surface {
|
|
height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ve-activated #bodyContent,
|
|
.ve-activated #firstHeading {
|
|
opacity: 0.6;
|
|
/* TODO: Support IE9 with JS events */
|
|
/* stylelint-disable no-unsupported-browser-features */
|
|
pointer-events: none;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
/* stylelint-enable no-unsupported-browser-features */
|
|
}
|
|
|
|
/* Progress bar mimicking OOUI */
|
|
|
|
.ve-activated #content {
|
|
position: relative;
|
|
}
|
|
/* stylelint-enable selector-no-id */
|
|
|
|
.ve-init-mw-desktopArticleTarget-loading-overlay {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1;
|
|
margin-top: -0.5em;
|
|
}
|
|
|
|
.ve-init-mw-desktopArticleTarget-progress {
|
|
height: 1em;
|
|
overflow: hidden;
|
|
margin: 0 25%;
|
|
}
|
|
|
|
.ve-init-mw-desktopArticleTarget-progress-bar {
|
|
height: 1em;
|
|
width: 0;
|
|
}
|
|
|
|
/* Section edit links */
|
|
|
|
.mw-editsection {
|
|
white-space: nowrap;
|
|
/* bidi isolation: */
|
|
unicode-bidi: -moz-isolate;
|
|
unicode-bidi: -webkit-isolate;
|
|
unicode-bidi: isolate;
|
|
}
|
|
|
|
.mw-editsection-divider {
|
|
color: #555;
|
|
}
|