bigger screen scale changes

This commit is contained in:
Henri
2026-04-03 04:52:41 +03:00
parent 4d0ef801cc
commit f586c406e7
3 changed files with 24 additions and 12 deletions

View File

@@ -27,8 +27,13 @@
/* Design tokens & theme variables (light defaults) */
:root {
--page-max-width: 1460px;
--page-padding-inline: clamp(1rem, 2vw, 2rem);
--page-max-width: calc(1460px * var(--ui-scale));
--page-padding-inline: clamp(
calc(1.5rem * var(--ui-scale)),
calc(4vw * var(--ui-scale)),
calc(3rem * var(--ui-scale))
);
--ui-scale: 1;
/* spacing scale */
--spacing-0: 0px;
@@ -60,7 +65,7 @@ html {
Roboto, "Helvetica Neue", Arial;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: var(--fs-base);
font-size: calc(var(--fs-base) * var(--ui-scale));
-webkit-text-size-adjust: 100%;
overflow-x: hidden;
}
@@ -132,6 +137,13 @@ button:focus {
}
}
/* Increase overall UI scale on large 4K-class viewports */
@media (min-width: 2400px), (min-width: 1900px) and (min-resolution: 2dppx) {
:root {
--ui-scale: 1.5;
}
}
/* Accessibility settings */
@media (prefers-reduced-motion: reduce) {
* {