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
|
|
|
*
|
2018-01-03 00:54:47 +00:00
|
|
|
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
2013-07-05 06:01:31 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2017-10-26 20:04:07 +00:00
|
|
|
/* stylelint-disable selector-max-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
|
|
|
|
*/
|
|
|
|
|
2018-02-20 15:29:10 +00:00
|
|
|
/* Only hide the #toc inside the original article, not generated ones in VE (T187636) */
|
|
|
|
.ve-activated .ve-init-mw-desktopArticleTarget-editableContent #toc,
|
2015-03-16 16:07:14 +00:00
|
|
|
.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,
|
2017-10-18 22:50:31 +00:00
|
|
|
.ve-active .ve-init-mw-desktopArticleTarget-editableContent,
|
|
|
|
.ve-active .ve-init-mw-tempWikitextEditorWidget {
|
2015-03-16 16:07:14 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-08-23 12:23:49 +00:00
|
|
|
/* The surface needs to be measurable but not visible while
|
|
|
|
being setup as some nodes render based on their dimensions,
|
|
|
|
e.g. ve.ce.FocusableNode#updateInvisibleIcon */
|
2016-02-23 17:03:45 +00:00
|
|
|
.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 {
|
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-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;
|
|
|
|
}
|
2017-10-26 20:04:07 +00:00
|
|
|
/* stylelint-enable selector-max-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;
|
2017-10-18 22:50:31 +00:00
|
|
|
top: 1.25em;
|
2015-02-15 11:42:21 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2017-10-18 22:50:31 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder {
|
|
|
|
transition: height 250ms ease;
|
|
|
|
height: 0;
|
|
|
|
/* Toolbar placeholder is styled in theme files */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* OOUI may not have loaded yet */
|
|
|
|
.oo-ui-element-hidden {
|
|
|
|
display: none !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
}
|
|
|
|
|
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 {
|
2017-08-16 20:42:24 +00:00
|
|
|
color: #54595d;
|
2013-07-05 06:01:31 +00:00
|
|
|
}
|