Make rem units scale with the font size slider

This commit is contained in:
Cohee
2025-04-21 17:46:44 +03:00
parent 320b188d47
commit 98b12e2bba

View File

@@ -134,6 +134,7 @@ html {
-webkit-transform: translateZ(0); -webkit-transform: translateZ(0);
-webkit-backface-visibility: hidden; -webkit-backface-visibility: hidden;
-webkit-perspective: 1000; -webkit-perspective: 1000;
font-size: var(--mainFontSize);
} }
body { body {
@@ -150,14 +151,13 @@ body {
background-attachment: fixed; background-attachment: fixed;
background-size: cover; background-size: cover;
font-family: var(--mainFontFamily); font-family: var(--mainFontFamily);
font-size: var(--mainFontSize);
color: var(--SmartThemeBodyColor); color: var(--SmartThemeBodyColor);
overflow: hidden; overflow: hidden;
color-scheme: only light; color-scheme: only light;
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 0.8em; width: 0.75rem;
scrollbar-gutter: stable; scrollbar-gutter: stable;
} }