mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
60e5ac0902
Follows-up62c1d64ad0
. * Remove '.mw-indicators' animation for opacity. Was a left-over from other elements previously stripped in62c1d64ad0
. * '#siteNotice' no longer slides. It's hidden at the same time as '#contentSub', '#toc', and other elements. This is an annoying jump, and we should find a way to do it consistently and in a performant manner. * Fix state classes added in62c1d64ad0
. During deactivation, the ve-active class was kept for too long. This created a temporary state in which ve-active *and* ve-deactivating were applied. This was harmless as nothing ises the 've-deactivating' class yet. * Leaving toolbar as-is for another commit. Bug: T89543 Change-Id: Ide49f93c45a12f2c13eb4412a9a16a82fefeb43e
67 lines
1.8 KiB
CSS
67 lines
1.8 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki Initialization ViewPageTarget styles.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/*!
|
|
* State | <html> classes
|
|
* Reading | ve-available
|
|
* 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. */
|
|
.ve-active #bodyContent > :not(#siteSub):not(#contentSub):not(.ve-ui-mwTocWidget),
|
|
.ve-activated #t-print,
|
|
.ve-activated #t-permalink,
|
|
.ve-activated #p-coll-print_export,
|
|
.ve-activated #t-cite {
|
|
display: none;
|
|
}
|
|
|
|
.ve-activating #bodyContent,
|
|
.ve-activated #firstHeading,
|
|
.ve-activated #siteSub,
|
|
.ve-activated #contentSub {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.ve-activated #firstHeading {
|
|
cursor: default;
|
|
}
|
|
|
|
/* Toolbar */
|
|
|
|
.ve-init-mw-viewPageTarget-toolbar-utilities,
|
|
.ve-init-mw-viewPageTarget-toolbar-actions {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.ve-init-mw-viewPageTarget-toolbar-actions {
|
|
font-size: 0.8em;
|
|
vertical-align: top;
|
|
padding: 0.25em;
|
|
}
|
|
|
|
.ve-init-mw-viewPageTarget-toolbar-utilities > .oo-ui-buttonElement-frameless {
|
|
margin-right: 0.2em;
|
|
margin-top: 0.2em;
|
|
}
|
|
|
|
.ve-init-mw-viewPageTarget-toolbar-actions > .oo-ui-buttonElement-framed {
|
|
margin-left: 0.25em;
|
|
margin-right: 0.25em;
|
|
margin-top: 0.2em;
|
|
}
|