mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
051066ead6
If VE is enabled for consistency edit section links become edit source in all NS. This patch fixes it to be done on the backend for namespaces where VE is not enabled (instead of user side) to avoid noticeable flickers on page load. Bug: T112366 Change-Id: Iba090bfc1b2ff4886fb0cf2b37db7870b6be792d
36 lines
1.1 KiB
CSS
36 lines
1.1 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki DesktopArticleTarget noscript styles
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
/*csslint ids:false */
|
|
|
|
/* Hide VE edit tab and section edit things for noscript users.
|
|
* For script users they're always visible unless and until ve-not-available is added.
|
|
*/
|
|
.client-nojs #ca-ve-edit,
|
|
.client-nojs .mw-editsection-divider,
|
|
.client-nojs .mw-editsection-visualeditor,
|
|
.ve-not-available #ca-ve-edit,
|
|
.ve-not-available .mw-editsection-divider,
|
|
.ve-not-available .mw-editsection-visualeditor {
|
|
display: none;
|
|
}
|
|
|
|
/* For script users, expand brackets by default, unless and until ve-not-available is added */
|
|
|
|
/* @noflip */
|
|
.client-js .mw-content-ltr .mw-editsection-bracket:first-of-type,
|
|
.client-js .mw-content-rtl .mw-editsection-bracket:not(:first-of-type) {
|
|
margin-right: 0.25em;
|
|
color: #555;
|
|
}
|
|
|
|
/* @noflip */
|
|
.client-js .mw-content-rtl .mw-editsection-bracket:first-of-type,
|
|
.client-js .mw-content-ltr .mw-editsection-bracket:not(:first-of-type) {
|
|
margin-left: 0.25em;
|
|
color: #555;
|
|
}
|