From 2dd3847a81ae7fdfe4509bbd611f0fc503bed1a5 Mon Sep 17 00:00:00 2001 From: ByteDice Date: Sun, 28 Jun 2026 15:31:07 +0200 Subject: [PATCH] fixed font sizes for smaller screens on most pages --- global/globalStyle.css | 2 +- global/loadingScreen.js | 9 ++++----- libs/index.html | 2 +- libs/test/index.html | 2 +- toys/index.html | 2 +- toys/license/index.html | 2 +- toys/style.css | 3 ++- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/global/globalStyle.css b/global/globalStyle.css index e5140de..90b2f9f 100644 --- a/global/globalStyle.css +++ b/global/globalStyle.css @@ -31,7 +31,7 @@ canvas { } .pxFont { font-family: "Roboto", sans-serif; - font-size: 1rem; + ; font-size: min(5vmin, 2vmax, 1rem) } @keyframes slide-left { 0% { transform: translateX(0%); } diff --git a/global/loadingScreen.js b/global/loadingScreen.js index b0601dc..db2a544 100644 --- a/global/loadingScreen.js +++ b/global/loadingScreen.js @@ -10,9 +10,9 @@ loadingScreenEl.innerHTML = `
-

+

Use extended loading screen?
- (For immersion) + (For immersion)

- +
diff --git a/toys/license/index.html b/toys/license/index.html index df444bb..d8cf77f 100644 --- a/toys/license/index.html +++ b/toys/license/index.html @@ -194,7 +194,7 @@

Original by Chilli
Remade by Byte Dice at bytedice.net/toys

- +
diff --git a/toys/style.css b/toys/style.css index e08cf7e..4f4baad 100644 --- a/toys/style.css +++ b/toys/style.css @@ -24,6 +24,7 @@ overflow-y: scroll; overflow-x: hidden; height: calc(16px * var(--pxDensity)); + font-size: min(5vmin, 2vmax, 25px); } h1 { font-size: max(1.2em, 2.5vmin); @@ -46,7 +47,7 @@ button:active { padding: calc(3px * var(--pxDensity)); display: inline-flex; width: fit-content; - justify-content: flex-start; + justify-content: center; flex-wrap: wrap; gap: calc(6px * var(--pxDensity)); margin: 0 auto;