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
|
|
|
|
*/
|
|
|
|
|
2022-01-19 15:38:09 +00:00
|
|
|
.ve-active {
|
2022-11-29 20:19:46 +00:00
|
|
|
// Hide banners only on skins where they would be shown in the editable area (T324055)
|
|
|
|
.ve-init-mw-desktopArticleTarget-targetContainer #siteNotice,
|
2022-01-19 15:38:09 +00:00
|
|
|
.mw-indicators,
|
|
|
|
#t-print,
|
|
|
|
#t-permalink,
|
|
|
|
#p-coll-print_export,
|
|
|
|
#t-cite,
|
|
|
|
.ve-init-mw-desktopArticleTarget-editableContent,
|
|
|
|
.ve-init-mw-tempWikitextEditorWidget {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-deactivating .ve-ui-surface {
|
2015-03-16 16:07:14 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-01-24 23:35:50 +00:00
|
|
|
.ve-activating {
|
|
|
|
/* 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 */
|
|
|
|
.ve-ui-surface {
|
|
|
|
height: 0;
|
|
|
|
padding: 0 !important; /* stylelint-disable-line declaration-no-important */
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2016-02-23 17:03:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-15 15:58:53 +00:00
|
|
|
/*!
|
|
|
|
* Styles to make the original read view look disabled
|
|
|
|
* Don't "disable":
|
|
|
|
* - while loading: the placeholder toolbar
|
|
|
|
* - while loading: the target, as this momentarily appears at the end of the loading sequence
|
|
|
|
* and contains the real toolbar
|
|
|
|
* Do "disable":
|
|
|
|
* - while loading: anything marked "original content" as on the second load this is where the read mode content will be
|
|
|
|
* - after activation: anything marked as "uneditable content"
|
|
|
|
*/
|
2022-06-22 23:38:07 +00:00
|
|
|
.ve-loading .ve-init-mw-desktopArticleTarget-targetContainer > :not( .ve-init-mw-desktopArticleTarget-toolbarPlaceholder ):not( .ve-init-mw-desktopArticleTarget ),
|
2022-06-15 15:58:53 +00:00
|
|
|
.ve-loading .ve-init-mw-desktopArticleTarget-originalContent,
|
|
|
|
.ve-activated:not( .ve-loading ) .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
|
|
|
}
|
|
|
|
|
2022-01-19 15:38:09 +00:00
|
|
|
.ve-activated {
|
2022-06-22 23:38:07 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget-targetContainer #firstHeading {
|
2022-01-19 15:38:09 +00:00
|
|
|
/* Override the styles above to allow the heading to be selected, for copy-pasting */
|
|
|
|
-webkit-user-select: text;
|
|
|
|
-moz-user-select: text;
|
|
|
|
-ms-user-select: text;
|
|
|
|
user-select: text;
|
|
|
|
pointer-events: auto;
|
|
|
|
cursor: text;
|
2019-03-28 18:38:18 +00:00
|
|
|
|
2022-01-19 15:38:09 +00:00
|
|
|
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
|
|
|
|
2022-06-27 15:29:24 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget-originalContent #catlinks {
|
2022-01-19 15:38:09 +00:00
|
|
|
cursor: pointer;
|
2016-09-30 19:07:56 +00:00
|
|
|
|
2022-01-19 15:38:09 +00:00
|
|
|
&:hover {
|
|
|
|
/* focusableNode highlight equivalent styling */
|
|
|
|
background: #e9f2fd;
|
|
|
|
}
|
2021-09-22 23:30:28 +00:00
|
|
|
|
2022-01-19 15:38:09 +00:00
|
|
|
a {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2015-02-15 11:42:21 +00:00
|
|
|
}
|
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 {
|
2022-01-24 23:35:50 +00:00
|
|
|
z-index: 2;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
top: 1em;
|
2015-02-15 11:42:21 +00:00
|
|
|
}
|
|
|
|
|
2017-10-18 22:50:31 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder {
|
2022-01-24 23:35:50 +00:00
|
|
|
overflow: hidden;
|
2017-10-18 22:50:31 +00:00
|
|
|
transition: height 250ms ease;
|
|
|
|
height: 0;
|
2022-01-24 23:35:50 +00:00
|
|
|
padding-bottom: 2px;
|
|
|
|
|
|
|
|
/* Shadow is styled in theme files */
|
|
|
|
|
|
|
|
&-bar {
|
|
|
|
transform: translateY( -100% );
|
|
|
|
transition: transform 250ms ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-open .ve-init-mw-desktopArticleTarget-toolbarPlaceholder-bar {
|
|
|
|
transform: translateY( 0 );
|
|
|
|
}
|
|
|
|
|
2022-02-15 15:10:43 +00:00
|
|
|
&-floating {
|
|
|
|
// No height transition required when toolbar starts off floating
|
|
|
|
transition: none;
|
|
|
|
|
|
|
|
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder-bar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
|
|
|
background: #fff;
|
|
|
|
}
|
2022-01-24 23:35:50 +00:00
|
|
|
}
|
2017-10-18 22:50:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
|
2023-03-12 22:02:20 +00:00
|
|
|
&::before {
|
2022-01-19 15:38:09 +00:00
|
|
|
content: '\200B';
|
|
|
|
}
|
2020-05-25 22:54:06 +00:00
|
|
|
|
2022-01-19 15:38:09 +00:00
|
|
|
a {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2020-05-25 22:54:06 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|