Debian Codegraph @

resources/legacy/ext.CodeMirror.less

raw
1 @import 'mediawiki.skin.variables.less';
2
3 @matching-bracket-border-color: #eee;
4 @matching-bracket-box-shadow-color: #999;
5
6 // CM5 dark mode fixes, see T365311
7 .mw-body-content .CodeMirror {
8 background-color: inherit;
9 color: inherit;
10 }
11
12 .wikiEditor-ui .CodeMirror {
13 line-height: 1.5em;
14 padding: 0.1em;
15 clear: both;
16 box-sizing: border-box;
17
18 pre,
19 .CodeMirror-lines {
20 padding: 0;
21 }
22 }
23
24 .CodeMirror-gutters {
25 background-color: @background-color-interactive-subtle;
26 border-right-color: @border-color-subtle;
27 }
28
29 .CodeMirror-line::selection,
30 .CodeMirror-line > span::selection,
31 .CodeMirror-line > span > span::selection {
32 background: #d9d9d9;
33
34 @media screen {
35 html.skin-theme-clientpref-night & {
36 background: #233;
37 }
38 }
39
40 @media screen and ( prefers-color-scheme: dark ) {
41 html.skin-theme-clientpref-os {
42 background: #233;
43 }
44 }
45 }
46
47 .cm-mw-matchingbracket {
48 background-color: @matching-bracket-border-color;
49 box-shadow: inset 0 0 1px 1px @matching-bracket-box-shadow-color;
50 font-weight: bold;
51 }