mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 07:15:32 +00:00
5996cf15e9
* Make inserting secondary tab work with Minerva's non-standard structure of navigation menus * Distinguish primary and secondary tabs with tiny icons, since Minerva hides their text * Hide section edit link dividers (unnecessary when we use icons) Bug: T208102 Change-Id: Ieaec60165617e3b423ec58857d6f0a0406e22b1d
49 lines
1.1 KiB
CSS
49 lines
1.1 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki DesktopArticleTarget Minerva skin init styles.
|
|
*
|
|
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/* stylelint-disable selector-max-id */
|
|
|
|
.ve-edit-source .mw-ui-icon,
|
|
.ve-edit-visual .mw-ui-icon {
|
|
position: absolute;
|
|
opacity: 0.65;
|
|
transform: scale( 0.6 );
|
|
right: 0.5em;
|
|
bottom: 0;
|
|
transform-origin: bottom right;
|
|
}
|
|
|
|
.ve-edit-source .mw-ui-icon:before,
|
|
.ve-edit-visual .mw-ui-icon:before {
|
|
/* Override weird styles from MW-UI */
|
|
margin-right: 0;
|
|
}
|
|
|
|
/* Silly selector for high specificity to override Minerva styles */
|
|
#page-actions li#ca-edit {
|
|
margin-right: 0;
|
|
}
|
|
|
|
#page-actions li#ca-edit:first-child,
|
|
#page-actions li#ca-ve-edit:first-child {
|
|
margin-right: -0.5em;
|
|
}
|
|
|
|
.mw-editsection-divider {
|
|
display: none;
|
|
}
|
|
|
|
/* Swap the order to visually match the order in the actions menu */
|
|
/* Silly selector for high specificity to override Minerva styles */
|
|
.content .mw-parser-output > * > span.mw-editsection {
|
|
display: flex;
|
|
}
|
|
|
|
.content .mw-parser-output > * > span.mw-editsection .ve-edit-visual {
|
|
order: 2;
|
|
}
|