From 72cf355b57d3c3d4be7a3546eefb9f9041297baa Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sun, 7 Apr 2024 15:24:16 -0400 Subject: [PATCH] better font scaling --- src/style.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/style.css b/src/style.css index add0e4b..356a056 100644 --- a/src/style.css +++ b/src/style.css @@ -121,7 +121,7 @@ body { } h1 { - font-size: 3rem; + font-size: clamp(1rem, 3rem, 9vw); } .aurebesh { @@ -169,16 +169,17 @@ h1 { top: 70%; margin: auto; font-family: var(--font-standard); - font-size: clamp(0.45rem, 0.25em, 1rem); + font-size: clamp(0.75rem, 0.25em, 1rem); font-weight: 400; color: var(--color-text-light); } .reference { - font-size: 1.5rem; + font-size: clamp(1rem, 1.5rem, 6vw); display: flex; flex-direction: column; gap: 0.5rem; + padding-bottom: 1rem; } main {