From f586c406e7c55f5a007c7cdf5fb7bbce10669c3a Mon Sep 17 00:00:00 2001 From: Henri Date: Fri, 3 Apr 2026 04:52:41 +0300 Subject: [PATCH] bigger screen scale changes --- src/app.css | 18 +++++++++++++++--- src/components/layout/Section.svelte | 2 +- src/routes/NewHome.svelte | 16 ++++++++-------- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/app.css b/src/app.css index 60b559a..948f576 100644 --- a/src/app.css +++ b/src/app.css @@ -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) { * { diff --git a/src/components/layout/Section.svelte b/src/components/layout/Section.svelte index 8fe34a2..10f4333 100644 --- a/src/components/layout/Section.svelte +++ b/src/components/layout/Section.svelte @@ -24,7 +24,7 @@ class="relative w-full {bg} {className}" style={background ? `background: ${background};` : undefined} > -
+
{@render children?.()}
\ No newline at end of file diff --git a/src/routes/NewHome.svelte b/src/routes/NewHome.svelte index 52ef74f..308a787 100644 --- a/src/routes/NewHome.svelte +++ b/src/routes/NewHome.svelte @@ -21,23 +21,23 @@ import { navigate } from "$lib/router/router.js"; >
-
- MTÜ Lapikud +
+ MTÜ Lapikud
-

+

MTÜ Lapikud on Tallinna Tehnikaülikooli Tarkvaraarendusklubi, mis ühendab endisi ja praegusi IT huvilisi tudengeid.

@@ -58,11 +58,11 @@ import { navigate } from "$lib/router/router.js";