mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-12 07:55:21 +00:00
edfdf05f12
Adds different font-sizes and line-heights for the custom font-size UI. The custom font-size preference options are now: 1. Compact - 14px font-size & 22px line-height 2. Standard - 16px font-size & 24px line-height 3. Open - 20px font-size & 26px line-height This removes the "xl" font-size option (`vector-feature-custom-font-size-3`) and it's related i18n messages, and changes the remaining message to match the new options. The default font-size, when the custom font-size feature is disabled, is "compact". Bug: T351693 Change-Id: I5975a78ce7327f314fd55de55c222ac08d801fbd
30 lines
1 KiB
Plaintext
30 lines
1 KiB
Plaintext
/**
|
|
* 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 );
|
|
--line-height-medium: @line-height-small;
|
|
}
|
|
|
|
.vector-feature-custom-font-size-clientpref-1 {
|
|
--font-size-medium: unit( @font-size-medium, rem );
|
|
--line-height-medium: 1.5;
|
|
}
|
|
|
|
.vector-feature-custom-font-size-clientpref-2 {
|
|
--font-size-medium: unit( @font-size-large, rem );
|
|
--line-height-medium: 1.3;
|
|
}
|