2023-09-22 17:50:07 +00:00
|
|
|
/**
|
|
|
|
* Vector CSS Custom properties
|
|
|
|
* ----------------------------
|
|
|
|
* Please be aware that these properties are accessible via *any* client-side code.
|
|
|
|
* These variables should mirror Codex design token names and values:
|
|
|
|
* https://doc.wikimedia.org/codex/latest/design-tokens
|
|
|
|
* Only include properties that are required for client-side modification.
|
|
|
|
*
|
|
|
|
* @private - Currently, these variables are only intended for use by Vector 2022,
|
|
|
|
* however, they are designed to mimic the naming convention in Codex tokens
|
|
|
|
* in order to facilitate an eventual migration to a centralized source.
|
|
|
|
* @experimental
|
|
|
|
* @since October 2023 (MediaWiki 1.42)
|
|
|
|
*/
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--font-size-medium: unit( @font-size-small, rem );
|
2023-11-23 23:06:31 +00:00
|
|
|
--line-height-medium: @line-height-small;
|
2024-02-13 22:14:42 +00:00
|
|
|
--background-color-base: @background-color-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
.night-mode-palette() {
|
2024-04-15 23:05:25 +00:00
|
|
|
/* T354889 */
|
2023-09-22 17:50:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.vector-feature-custom-font-size-clientpref-1 {
|
|
|
|
--font-size-medium: unit( @font-size-medium, rem );
|
2024-03-12 19:23:08 +00:00
|
|
|
--line-height-medium: 1.6;
|
2023-09-22 17:50:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.vector-feature-custom-font-size-clientpref-2 {
|
2023-11-30 17:57:37 +00:00
|
|
|
--font-size-medium: unit( @font-size-x-large, rem );
|
2024-03-12 19:23:08 +00:00
|
|
|
--line-height-medium: 1.5;
|
2023-09-22 17:50:07 +00:00
|
|
|
}
|
2024-02-13 22:14:42 +00:00
|
|
|
|
2024-03-20 18:13:14 +00:00
|
|
|
html.skin-theme-clientpref-night {
|
2024-02-13 22:14:42 +00:00
|
|
|
.night-mode-palette();
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
2024-03-20 18:13:14 +00:00
|
|
|
html.skin-theme-clientpref-os {
|
2024-02-13 22:14:42 +00:00
|
|
|
.night-mode-palette();
|
|
|
|
}
|
|
|
|
}
|