feat: add menu font size variable and update related components
- Introduced a new CSS variable `--menu-font-size` calculated from the base font size. - Updated `PreferenceManager` to trigger CSS variable updates when `fontSize` is modified. - Adjusted `updateCSSVariables` to set the new `--menu-font-size` based on the theme's font size. - Ensured that the menu components utilize the updated font size with `!important` to maintain styling consistency.
This commit is contained in:
@@ -93,6 +93,7 @@
|
||||
|
||||
/* 基本文字大小 */
|
||||
--font-size-base: 16px;
|
||||
--menu-font-size: calc(var(--font-size-base) * 0.875);
|
||||
|
||||
/* =============component & UI============= */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user