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
|
|
|
*
|
2020-01-08 17:13:04 +00:00
|
|
|
* @copyright 2011-2020 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
|
|
|
}
|
|
|
|
|
2019-02-12 18:32:57 +00:00
|
|
|
.ve-activated #firstHeading {
|
2019-03-28 18:38:18 +00:00
|
|
|
/* Override the styles above to allow the heading to be selected, for copy-pasting */
|
2019-02-12 18:32:57 +00:00
|
|
|
-webkit-user-select: text;
|
|
|
|
-moz-user-select: text;
|
|
|
|
-ms-user-select: text;
|
|
|
|
user-select: text;
|
2019-03-28 18:38:18 +00:00
|
|
|
pointer-events: auto;
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-activated #firstHeading a {
|
|
|
|
/* Re-disable any gadget-added links inside the heading, e.g. section 0 edit links */
|
|
|
|
pointer-events: none;
|
2019-02-12 18:32:57 +00:00
|
|
|
}
|
|
|
|
|
2017-03-28 18:29:00 +00:00
|
|
|
.ve-activated #catlinks {
|
2016-09-30 19:07:56 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-09-22 23:30:28 +00:00
|
|
|
.ve-activated #catlinks:hover {
|
|
|
|
/* focusableNode highlight equivalent styling */
|
|
|
|
background: #e9f2fd;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
/* bidi isolation: */
|
|
|
|
unicode-bidi: -moz-isolate;
|
|
|
|
unicode-bidi: -webkit-isolate;
|
|
|
|
unicode-bidi: isolate;
|
|
|
|
}
|
|
|
|
|
2020-05-25 22:54:06 +00:00
|
|
|
.mw-editsection:before {
|
|
|
|
content: '\200B';
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-editsection a {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2013-07-05 06:01:31 +00:00
|
|
|
.mw-editsection-divider {
|
2017-08-16 20:42:24 +00:00
|
|
|
color: #54595d;
|
2013-07-05 06:01:31 +00:00
|
|
|
}
|