2024-08-01 21:39:43 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
|
|
|
|
@error-color: @color-destructive;
|
|
|
|
@link-color: @color-progressive;
|
|
|
|
@parser-function-color: @color-destructive;
|
2022-06-15 11:31:02 +00:00
|
|
|
@table-color: #d08;
|
2024-08-01 21:39:43 +00:00
|
|
|
@table-color-dark: #ff5edd;
|
2022-06-15 11:31:02 +00:00
|
|
|
@template-color: #80c;
|
2024-08-01 21:39:43 +00:00
|
|
|
@template-color-dark: #af84e6;
|
2023-05-13 00:24:47 +00:00
|
|
|
@template-variable-color: #ac6600;
|
2024-08-01 21:39:43 +00:00
|
|
|
@wikitext-formatting-color: @color-progressive--focus;
|
|
|
|
@wikitext-formatting-color-dark: @color-progressive--hover;
|
|
|
|
@xml-tag-color: @color-content-added;
|
2022-06-14 11:20:34 +00:00
|
|
|
@template-background-color: #a11;
|
2024-08-01 21:39:43 +00:00
|
|
|
@ext-background-color: #eee;
|
2022-06-14 11:20:34 +00:00
|
|
|
@link-background-color: #219;
|
2024-08-01 21:39:43 +00:00
|
|
|
@skip-formatting-color: #adf;
|
2022-06-14 11:20:34 +00:00
|
|
|
|
|
|
|
.ground( @template: 0, @ext: 0, @link: 0 ) {
|
|
|
|
@template-shade: fade( @template-background-color, 4% * @template );
|
|
|
|
@ext-shade: fade( @ext-background-color, 4% * @ext );
|
|
|
|
@link-shade: fade( @link-background-color, 4% * @link );
|
|
|
|
background-color: average( average( @template-shade, @ext-shade ), @link-shade );
|
|
|
|
}
|
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.darkmode( @prop, @value ) {
|
|
|
|
@media screen {
|
|
|
|
html.skin-theme-clientpref-night & {
|
|
|
|
@{prop}: @value;
|
|
|
|
}
|
|
|
|
}
|
2023-05-13 00:24:47 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
@media screen and ( prefers-color-scheme: dark ) {
|
|
|
|
html.skin-theme-clientpref-os & {
|
|
|
|
@{prop}: @value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-06-25 00:38:55 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.wikitext-formatting-color {
|
|
|
|
color: @wikitext-formatting-color;
|
|
|
|
.darkmode( color, @wikitext-formatting-color-dark );
|
|
|
|
}
|
2014-10-23 06:09:10 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-pagename {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-skipformatting {
|
|
|
|
background-color: @skip-formatting-color;
|
|
|
|
}
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-list,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-indenting {
|
|
|
|
.wikitext-formatting-color();
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2023-12-06 18:49:40 +00:00
|
|
|
// FIXME: Remove camelCase variant after CM6 upgrade is complete (also check Global Search)
|
|
|
|
.cm-mw-doubleUnderscore,
|
|
|
|
.cm-mw-double-underscore,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-signature,
|
|
|
|
.cm-mw-hr {
|
|
|
|
.wikitext-formatting-color();
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: @background-color-disabled-subtle;
|
|
|
|
}
|
|
|
|
|
2024-01-03 06:05:35 +00:00
|
|
|
// TODO: Deprecate .cm-mw-mnemonic in favor of -html-entity
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-mnemonic,
|
|
|
|
.cm-mw-html-entity {
|
|
|
|
color: @xml-tag-color;
|
|
|
|
}
|
|
|
|
.cm-mw-comment {
|
|
|
|
color: @color-subtle;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
.cm-mw-apostrophes-bold,
|
|
|
|
.cm-mw-apostrophes-italic {
|
|
|
|
.wikitext-formatting-color();
|
|
|
|
}
|
|
|
|
.cm-mw-strong {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2023-12-06 18:49:40 +00:00
|
|
|
// FIXME: Remove .CodeMirror-line rules after CM6 upgrade
|
2020-12-01 13:25:53 +00:00
|
|
|
pre.CodeMirror-line.cm-mw-section-1,
|
2024-01-07 07:27:59 +00:00
|
|
|
pre.CodeMirror-line-like.cm-mw-section-1,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-section-1,
|
|
|
|
.cm-mw-section-1 ~ * {
|
2020-12-01 13:25:53 +00:00
|
|
|
font-size: 1.8em;
|
|
|
|
line-height: 1.2em;
|
|
|
|
}
|
|
|
|
pre.CodeMirror-line.cm-mw-section-2,
|
2024-01-07 07:27:59 +00:00
|
|
|
pre.CodeMirror-line-like.cm-mw-section-2,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-section-2,
|
|
|
|
.cm-mw-section-2 ~ * {
|
2020-12-01 13:25:53 +00:00
|
|
|
font-size: 1.5em;
|
|
|
|
line-height: 1.2em;
|
|
|
|
}
|
|
|
|
pre.CodeMirror-line.cm-mw-section-3,
|
2022-06-14 07:48:27 +00:00
|
|
|
pre.CodeMirror-line-like.cm-mw-section-3,
|
2020-12-01 13:25:53 +00:00
|
|
|
pre.CodeMirror-line.cm-mw-section-4,
|
2022-06-14 07:48:27 +00:00
|
|
|
pre.CodeMirror-line-like.cm-mw-section-4,
|
2020-12-01 13:25:53 +00:00
|
|
|
pre.CodeMirror-line.cm-mw-section-5,
|
2022-06-14 07:48:27 +00:00
|
|
|
pre.CodeMirror-line-like.cm-mw-section-5,
|
2020-12-01 13:25:53 +00:00
|
|
|
pre.CodeMirror-line.cm-mw-section-6,
|
2024-01-07 07:27:59 +00:00
|
|
|
pre.CodeMirror-line-like.cm-mw-section-6,
|
2024-01-18 15:27:40 +00:00
|
|
|
/* TODO: remove overqualified `span` after CM6 upgrade */
|
|
|
|
span.cm-mw-section-3 ~ *,
|
|
|
|
span.cm-mw-section-4 ~ *,
|
|
|
|
span.cm-mw-section-5 ~ *,
|
|
|
|
span.cm-mw-section-6 ~ * {
|
2020-12-01 13:25:53 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template {
|
|
|
|
color: @template-color;
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
html.skin-theme-clientpref-night & {
|
|
|
|
color: @template-color-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
html.skin-theme-clientpref-os & {
|
|
|
|
color: @template-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-03 06:05:35 +00:00
|
|
|
// TODO: deprecate/remove after CM6 upgrade
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-name-mnemonic {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-template-name,
|
|
|
|
.cm-mw-template-argument-name,
|
|
|
|
.cm-mw-template-delimiter,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-bracket {
|
|
|
|
color: @template-color;
|
|
|
|
font-weight: bold;
|
|
|
|
.darkmode( color, @template-color-dark );
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-templatevariable,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-templatevariable-bracket {
|
|
|
|
color: @template-variable-color;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-templatevariable-name,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-templatevariable-delimiter {
|
|
|
|
color: @template-variable-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-parserfunction {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-parserfunction-name,
|
|
|
|
.cm-mw-parserfunction-bracket,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-parserfunction-delimiter {
|
|
|
|
color: @parser-function-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2020-12-01 13:25:53 +00:00
|
|
|
pre.CodeMirror-line.cm-mw-exttag,
|
|
|
|
pre.CodeMirror-line-like.cm-mw-exttag {
|
2022-06-14 11:20:34 +00:00
|
|
|
.ground( @ext: 0.5 );
|
2020-12-01 13:25:53 +00:00
|
|
|
}
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-exttag {
|
|
|
|
.ground( @ext: 1 );
|
|
|
|
}
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-exttag-name,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-htmltag-name {
|
|
|
|
color: @xml-tag-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-exttag-bracket,
|
|
|
|
.cm-mw-exttag-attribute,
|
|
|
|
.cm-mw-htmltag-bracket,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-htmltag-attribute {
|
|
|
|
color: @xml-tag-color;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-tag-pre,
|
|
|
|
.cm-mw-tag-nowiki,
|
2020-12-01 13:25:53 +00:00
|
|
|
pre.CodeMirror-line.cm-mw-tag-pre,
|
|
|
|
pre.CodeMirror-line-like.cm-mw-tag-pre,
|
|
|
|
pre.CodeMirror-line.cm-mw-tag-nowiki,
|
2024-08-01 21:39:43 +00:00
|
|
|
pre.CodeMirror-line-like.cm-mw-tag-nowiki {
|
2020-12-01 13:25:53 +00:00
|
|
|
background-color: rgba( 0, 0, 0, 0.04 );
|
2024-08-01 21:39:43 +00:00
|
|
|
.darkmode( background-color, rgba( 255, 255, 255, 0.06 ) );
|
2020-12-01 13:25:53 +00:00
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-link,
|
|
|
|
.cm-mw-link-tosection,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-section-header {
|
|
|
|
.wikitext-formatting-color();
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-link-pagename,
|
|
|
|
.cm-mw-link-bracket,
|
|
|
|
.cm-mw-link-delimiter,
|
|
|
|
.cm-mw-extlink,
|
2023-12-13 07:11:24 +00:00
|
|
|
.cm-mw-free-extlink {
|
|
|
|
color: @link-color;
|
|
|
|
&:not( .cm-mw-strong ) {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-extlink-protocol,
|
|
|
|
.cm-mw-free-extlink-protocol,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-extlink-bracket {
|
|
|
|
color: @link-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2022-06-14 07:48:27 +00:00
|
|
|
.cm-mw-table-bracket,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-table-delimiter {
|
|
|
|
color: @table-color;
|
|
|
|
font-weight: bold;
|
|
|
|
.darkmode( color, @table-color-dark );
|
|
|
|
}
|
|
|
|
.cm-mw-table-definition {
|
|
|
|
color: @table-color;
|
|
|
|
font-weight: normal;
|
|
|
|
.darkmode( color, @table-color-dark );
|
|
|
|
}
|
|
|
|
.cm-mw-table-caption {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-03-21 10:13:18 +00:00
|
|
|
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template2-ground {
|
|
|
|
.ground( @template: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template3-ground {
|
|
|
|
.ground( @template: 2 );
|
|
|
|
}
|
2022-06-14 11:49:25 +00:00
|
|
|
.cm-mw-ext-ground,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-ext-ground {
|
|
|
|
.ground( @ext: 1 );
|
|
|
|
}
|
2022-06-14 11:49:25 +00:00
|
|
|
.cm-mw-ext2-ground,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-ext2-ground {
|
|
|
|
.ground( @ext: 2 );
|
|
|
|
}
|
2022-06-14 11:49:25 +00:00
|
|
|
.cm-mw-ext3-ground,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-ext3-ground {
|
|
|
|
.ground( @ext: 3 );
|
|
|
|
}
|
2022-06-14 11:49:25 +00:00
|
|
|
.cm-mw-link-ground,
|
|
|
|
.cm-mw-ext-link-ground,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-link-ground {
|
|
|
|
.ground( @link: 1 );
|
|
|
|
}
|
2022-06-14 11:49:25 +00:00
|
|
|
.cm-mw-ext2-link-ground,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-ext-link-ground {
|
|
|
|
.ground( @ext: 1, @link: 1 );
|
|
|
|
}
|
2022-06-14 11:49:25 +00:00
|
|
|
.cm-mw-ext3-link-ground,
|
2024-08-01 21:39:43 +00:00
|
|
|
.cm-mw-template-ext2-link-ground {
|
|
|
|
.ground( @ext: 2, @link: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template-ext3-link-ground {
|
|
|
|
.ground( @ext: 3, @link: 1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-mw-template2-ext-ground {
|
|
|
|
.ground( @template: 1, @ext: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template2-ext2-ground {
|
|
|
|
.ground( @template: 1, @ext: 2 );
|
|
|
|
}
|
|
|
|
.cm-mw-template2-ext3-ground {
|
|
|
|
.ground( @template: 1, @ext: 3 );
|
|
|
|
}
|
|
|
|
.cm-mw-template2-link-ground {
|
|
|
|
.ground( @template: 1, @link: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template2-ext-link-ground {
|
|
|
|
.ground( @template: 1, @ext: 1, @link: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template2-ext2-link-ground {
|
|
|
|
.ground( @template: 1, @ext: 2, @link: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template2-ext3-link-ground {
|
|
|
|
.ground( @template: 1, @ext: 3, @link: 1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-mw-template3-ext-ground {
|
|
|
|
.ground( @template: 2, @ext: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template3-ext2-ground {
|
|
|
|
.ground( @template: 2, @ext: 2 );
|
|
|
|
}
|
|
|
|
.cm-mw-template3-ext3-ground {
|
|
|
|
.ground( @template: 2, @ext: 3 );
|
|
|
|
}
|
|
|
|
.cm-mw-template3-link-ground {
|
|
|
|
.ground( @template: 2, @link: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template3-ext-link-ground {
|
|
|
|
.ground( @template: 2, @ext: 1, @link: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template3-ext2-link-ground {
|
|
|
|
.ground( @template: 2, @ext: 2, @link: 1 );
|
|
|
|
}
|
|
|
|
.cm-mw-template3-ext3-link-ground {
|
|
|
|
.ground( @template: 2, @ext: 3, @link: 1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-mw-error {
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-mw-em {
|
|
|
|
font-style: italic;
|
2021-03-04 13:55:25 +00:00
|
|
|
}
|