2024-03-06 22:12:45 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
@import 'mediawiki.skin.codex-design-tokens/theme-wikimedia-ui-mixin-dark.less';
|
|
|
|
@import 'mediawiki.skin.codex-design-tokens/theme-wikimedia-ui-reset.less';
|
|
|
|
|
2023-09-22 17:50:07 +00:00
|
|
|
/**
|
2024-03-06 22:12:45 +00:00
|
|
|
* Light mode
|
2023-09-22 17:50:07 +00:00
|
|
|
*
|
2024-03-06 22:12:45 +00:00
|
|
|
* Applies the light mode color palette by default
|
|
|
|
* or with the .skin-invert, or .notheme classes
|
2023-09-22 17:50:07 +00:00
|
|
|
*/
|
2024-03-06 22:12:45 +00:00
|
|
|
:root,
|
|
|
|
.skin-invert,
|
|
|
|
.notheme {
|
|
|
|
.cdx-mode-reset();
|
2023-09-22 17:50:07 +00:00
|
|
|
}
|
|
|
|
|
2024-03-06 22:12:45 +00:00
|
|
|
/**
|
|
|
|
* Forced night mode.
|
|
|
|
*
|
|
|
|
* Applies the night mode color palette per the users explicit preference,
|
|
|
|
* regardless of system settings.
|
|
|
|
*/
|
|
|
|
html.skin-theme-clientpref-night {
|
|
|
|
color-scheme: dark;
|
|
|
|
.cdx-mode-dark();
|
2024-05-06 18:55:33 +00:00
|
|
|
|
|
|
|
// T363911 Temporarily override Codex variable for Vector night mode release
|
|
|
|
// Remove after task has been resolved and new color is available in Codex.
|
|
|
|
--color-link-red: #b97876;
|
2023-09-22 17:50:07 +00:00
|
|
|
}
|
|
|
|
|
2024-03-06 22:12:45 +00:00
|
|
|
html.skin-theme-clientpref-night .skin-invert {
|
|
|
|
color-scheme: light;
|
|
|
|
filter: invert( 1 ) hue-rotate( 180deg );
|
2023-09-22 17:50:07 +00:00
|
|
|
}
|
2024-02-13 22:14:42 +00:00
|
|
|
|
2024-03-06 22:12:45 +00:00
|
|
|
html.skin-theme-clientpref-night .notheme {
|
|
|
|
color-scheme: light;
|
|
|
|
color: var( --color-base );
|
2024-02-13 22:14:42 +00:00
|
|
|
}
|
|
|
|
|
2024-03-06 22:12:45 +00:00
|
|
|
/**
|
|
|
|
* Auto night mode.
|
|
|
|
*
|
|
|
|
* Applies the night mode color palette only in response to system settings.
|
|
|
|
*/
|
2024-02-13 22:14:42 +00:00
|
|
|
@media ( prefers-color-scheme: dark ) {
|
2024-03-20 18:13:14 +00:00
|
|
|
html.skin-theme-clientpref-os {
|
2024-03-06 22:12:45 +00:00
|
|
|
color-scheme: light dark;
|
|
|
|
.cdx-mode-dark();
|
2024-05-06 18:55:33 +00:00
|
|
|
|
|
|
|
// T363911 Temporarily override Codex variable for Vector night mode release
|
|
|
|
// Remove after task has been resolved and new color is available in Codex.
|
|
|
|
--color-link-red: #b97876;
|
2024-02-13 22:14:42 +00:00
|
|
|
}
|
2024-03-06 22:12:45 +00:00
|
|
|
|
|
|
|
html.skin-theme-clientpref-os .notheme {
|
|
|
|
color-scheme: light;
|
|
|
|
}
|
|
|
|
|
|
|
|
html.skin-theme-clientpref-os .skin-invert {
|
|
|
|
color-scheme: light;
|
|
|
|
filter: invert( 1 ) hue-rotate( 180deg );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Font size settings
|
|
|
|
*/
|
|
|
|
.vector-feature-custom-font-size-clientpref-0 {
|
|
|
|
--font-size-medium: @font-size-small;
|
|
|
|
--line-height-medium: @line-height-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-feature-custom-font-size-clientpref-1 {
|
|
|
|
--font-size-medium: @font-size-medium;
|
|
|
|
--line-height-medium: @line-height-medium;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-feature-custom-font-size-clientpref-2 {
|
|
|
|
--font-size-medium: @font-size-x-large;
|
|
|
|
--line-height-medium: 1.5;
|
2024-02-13 22:14:42 +00:00
|
|
|
}
|