mediawiki-extensions-Visual.../modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.noscript.less
Ed Sanders 38dfa608f8 Simplify ve-mw/init/styles LESS files
Change-Id: I49e05c9680e1fe7db8e01df627a6d5fa2836aac8
2022-03-15 23:10:34 +00:00

44 lines
1 KiB
Plaintext

/*!
* VisualEditor MediaWiki DesktopArticleTarget noscript styles
*
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* 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.
*/
/* stylelint-disable selector-max-id */
.client-nojs,
.ve-not-available {
#ca-ve-edit,
.mw-editsection-divider,
.mw-editsection-visualeditor {
display: none;
}
}
/* stylelint-enable selector-max-id */
/* For script users, expand brackets by default, unless and until ve-not-available is added */
.client-js {
.mw-content-ltr .mw-editsection-bracket:first-of-type,
.mw-content-rtl .mw-editsection-bracket:not( :first-of-type ) {
/* @noflip */
margin-right: 0.25em;
/* @noflip */
color: #54595d;
}
.mw-content-rtl .mw-editsection-bracket:first-of-type,
.mw-content-ltr .mw-editsection-bracket:not( :first-of-type ) {
/* @noflip */
margin-left: 0.25em;
/* @noflip */
color: #54595d;
}
}