Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/init/styles/ve.init.mw.DesktopArticleTarget.noscript.less

raw
1 /*!
2 * VisualEditor MediaWiki DesktopArticleTarget noscript styles
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7 /**
8 * Hide VE edit tab and section edit things for noscript users.
9 * For script users they're always visible unless and until ve-not-available is added.
10 */
11
12 @import 'mediawiki.skin.variables.less';
13 /* stylelint-disable selector-max-id */
14
15 .client-nojs,
16 .ve-not-available {
17 #ca-ve-edit,
18 .mw-editsection-divider,
19 .mw-editsection-visualeditor {
20 display: none;
21 }
22 }
23
24 /* stylelint-enable selector-max-id */
25
26 /* For script users, expand brackets by default, unless and until ve-not-available is added */
27
28 .client-js {
29 .mw-editsection-bracket {
30 &:first-of-type {
31 margin-right: 0.25em;
32 margin-inline: 0 0.25em;
33 }
34
35 &:not( :first-of-type ) {
36 margin-left: 0.25em;
37 margin-inline: 0.25em 0;
38 }
39 }
40 }