2024-08-01 21:39:43 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2017-03-22 12:42:45 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
@matching-bracket-border-color: #eee;
|
|
|
|
@matching-bracket-box-shadow-color: #999;
|
|
|
|
|
|
|
|
// CM5 dark mode fixes, see T365311
|
|
|
|
.mw-body-content .CodeMirror {
|
|
|
|
background-color: inherit;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2024-01-19 00:33:58 +00:00
|
|
|
|
2019-03-09 15:52:49 +00:00
|
|
|
.wikiEditor-ui .CodeMirror {
|
2017-03-27 13:00:31 +00:00
|
|
|
line-height: 1.5em;
|
|
|
|
padding: 0.1em;
|
2017-09-13 19:15:31 +00:00
|
|
|
clear: both;
|
2022-02-16 07:53:23 +00:00
|
|
|
box-sizing: border-box;
|
2017-09-13 19:15:31 +00:00
|
|
|
|
2019-03-09 15:52:49 +00:00
|
|
|
pre,
|
|
|
|
.CodeMirror-lines {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2017-03-27 13:00:31 +00:00
|
|
|
}
|
2024-08-01 21:39:43 +00:00
|
|
|
|
|
|
|
.CodeMirror-gutters {
|
|
|
|
background-color: @background-color-interactive-subtle;
|
|
|
|
border-right-color: @border-color-subtle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-line::selection,
|
|
|
|
.CodeMirror-line > span::selection,
|
|
|
|
.CodeMirror-line > span > span::selection {
|
|
|
|
background: #d9d9d9;
|
|
|
|
|
|
|
|
@media screen {
|
|
|
|
html.skin-theme-clientpref-night & {
|
|
|
|
background: #233;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and ( prefers-color-scheme: dark ) {
|
|
|
|
html.skin-theme-clientpref-os {
|
|
|
|
background: #233;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-mw-matchingbracket {
|
|
|
|
background-color: @matching-bracket-border-color;
|
|
|
|
box-shadow: inset 0 0 1px 1px @matching-bracket-box-shadow-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|