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
|
|
|
*
|
2017-01-03 16:58:33 +00:00
|
|
|
* @copyright 2011-2017 VisualEditor Team and others; see AUTHORS.txt
|
2013-07-05 06:01:31 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2016-05-17 17:32:58 +00:00
|
|
|
/* stylelint-disable selector-no-id */
|
2013-12-03 22:09:56 +00:00
|
|
|
|
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
|
2016-06-01 13:52:57 +00:00
|
|
|
* Activate editor | ve-available ve-activated ve-loading ve-activating
|
2015-03-16 16:07:14 +00:00
|
|
|
* 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,
|
|
|
|
.ve-activated #t-print,
|
|
|
|
.ve-activated #t-permalink,
|
|
|
|
.ve-activated #p-coll-print_export,
|
|
|
|
.ve-activated #t-cite,
|
2016-05-09 22:28:24 +00:00
|
|
|
.ve-deactivating .ve-ui-surface,
|
|
|
|
.ve-active .ve-init-mw-desktopArticleTarget-editableContent {
|
2015-03-16 16:07:14 +00:00
|
|
|
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;
|
2016-05-26 19:03:08 +00:00
|
|
|
padding: 0 !important; /* stylelint-disable-line declaration-no-important */
|
2016-02-23 17:03:45 +00:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2016-05-09 22:28:24 +00:00
|
|
|
/* While loading, everything except the progress bar */
|
2016-09-30 19:07:56 +00:00
|
|
|
.ve-loading #content > :not( .ve-init-mw-desktopArticleTarget-loading-overlay ),
|
|
|
|
/* Once activated, all uneditable content except catlinks */
|
|
|
|
.ve-activated .ve-init-mw-desktopArticleTarget-uneditableContent {
|
2016-05-09 22:28:24 +00:00
|
|
|
/* IE9 is supported with JS events */
|
2016-05-17 12:11:08 +00:00
|
|
|
/* stylelint-disable no-unsupported-browser-features */
|
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;
|
2016-05-17 17:32:58 +00:00
|
|
|
/* stylelint-enable no-unsupported-browser-features */
|
2016-09-30 19:07:56 +00:00
|
|
|
opacity: 0.5;
|
2015-03-16 16:07:14 +00:00
|
|
|
}
|
|
|
|
|
2017-03-28 18:29:00 +00:00
|
|
|
.ve-activated #catlinks {
|
2016-09-30 19:07:56 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2017-03-28 18:29:00 +00:00
|
|
|
.ve-activated #catlinks a {
|
2016-09-30 19:07:56 +00:00
|
|
|
opacity: 1;
|
2016-09-14 00:19:39 +00:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2016-05-17 17:32:58 +00:00
|
|
|
/* stylelint-enable selector-no-id */
|
2015-02-15 11:42:21 +00:00
|
|
|
|
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
|
|
|
}
|