2013-07-05 06:01:31 +00:00
|
|
|
/*!
|
2015-07-29 13:41:30 +00:00
|
|
|
* VisualEditor MediaWiki DesktopArticleTarget init styles.
|
2013-07-05 06:01:31 +00:00
|
|
|
*
|
2016-01-03 22:56:59 +00:00
|
|
|
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
|
2013-07-05 06:01:31 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2013-12-03 22:09:56 +00:00
|
|
|
/*csslint known-properties:false */
|
|
|
|
/* Bug: https://github.com/stubbornella/csslint/issues/436 */
|
|
|
|
|
2015-03-16 16:07:14 +00:00
|
|
|
/*!
|
|
|
|
* State | <html> classes
|
2015-07-29 13:41:30 +00:00
|
|
|
* - mw.DesktopArticleTarget.init.css is loaded
|
2015-03-16 16:07:14 +00:00
|
|
|
* Reading | ve-available
|
|
|
|
* Loading editor | ve-available ve-activated ve-loading
|
2015-07-29 13:41:30 +00:00
|
|
|
* - mw.DesktopArticleTarget.css is loaded
|
2015-03-16 16:07:14 +00:00
|
|
|
* 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. */
|
2015-10-02 18:23:13 +00:00
|
|
|
.ve-active #bodyContent > :not( #siteSub ):not( #contentSub ):not( .ve-ui-mwTocWidget ),
|
2015-03-16 16:07:14 +00:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2016-02-23 17:03:45 +00:00
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
|
2015-03-16 16:07:14 +00:00
|
|
|
.ve-activated #bodyContent,
|
2015-10-23 16:03:32 +00:00
|
|
|
.ve-activated #firstHeading {
|
2015-03-16 16:07:14 +00:00
|
|
|
opacity: 0.6;
|
2015-03-31 19:42:42 +00:00
|
|
|
pointer-events: none;
|
2015-10-23 16:03:32 +00:00
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2015-03-16 16:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-activated #firstHeading {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2015-02-15 11:42:21 +00:00
|
|
|
/* Progress bar mimicking OOUI */
|
2014-10-21 01:10:41 +00:00
|
|
|
|
2015-02-15 11:42:21 +00:00
|
|
|
.ve-activated #content {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2015-07-29 13:41:30 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget-loading-overlay {
|
2015-02-15 11:42:21 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1;
|
|
|
|
margin-top: -0.5em;
|
|
|
|
}
|
|
|
|
|
2015-07-29 13:41:30 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget-progress {
|
2015-10-22 15:01:44 +00:00
|
|
|
height: 1em;
|
2015-02-15 11:42:21 +00:00
|
|
|
overflow: hidden;
|
|
|
|
margin: 0 25%;
|
|
|
|
}
|
|
|
|
|
2015-07-29 13:41:30 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget-progress-bar {
|
2015-10-22 15:01:44 +00:00
|
|
|
height: 1em;
|
2015-02-15 11:42:21 +00:00
|
|
|
width: 0;
|
2014-10-21 01:10:41 +00:00
|
|
|
}
|
|
|
|
|
2013-07-05 06:01:31 +00:00
|
|
|
/* Section edit links */
|
|
|
|
|
|
|
|
.mw-editsection {
|
|
|
|
white-space: nowrap;
|
|
|
|
/* bidi isolation: */
|
|
|
|
unicode-bidi: -moz-isolate;
|
|
|
|
unicode-bidi: -webkit-isolate;
|
|
|
|
unicode-bidi: isolate;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-editsection-divider {
|
2013-08-01 19:14:41 +00:00
|
|
|
color: #555;
|
2013-07-05 06:01:31 +00:00
|
|
|
}
|