From e66839296a1164b43498d7227f9f2589d2b484b4 Mon Sep 17 00:00:00 2001 From: Byte Dice Date: Tue, 28 Jan 2025 19:52:38 +0100 Subject: [PATCH] made fully mobile compatible --- global/globalScript.js | 4 ++-- global/loadingScreen.css | 2 +- toys/license/600x400_license.css | 7 ++----- toys/license/index.html | 20 ++++++++++++-------- toys/license/license.css | 22 +++++++++++++++++----- 5 files changed, 34 insertions(+), 21 deletions(-) diff --git a/global/globalScript.js b/global/globalScript.js index 273989a..c404ea3 100644 --- a/global/globalScript.js +++ b/global/globalScript.js @@ -143,7 +143,7 @@ function setVh() { document.addEventListener("DOMContentLoaded", async function() { - + setVh() debugPrint("currentPage", `${CURRENT_PAGE} ${Object.keys(PAGES)[CURRENT_PAGE + 1]}`) startLoadingScreen() @@ -186,7 +186,7 @@ document.addEventListener("DOMContentLoaded", async function() { window.addEventListener("resize", function() { - document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px"); + setVh() calcPixelDensity() switch (CURRENT_PAGE) { diff --git a/global/loadingScreen.css b/global/loadingScreen.css index 8cc53f4..f1c6a2c 100644 --- a/global/loadingScreen.css +++ b/global/loadingScreen.css @@ -31,7 +31,7 @@ } #loadingText { position: fixed; - bottom: 0%; + bottom: 0; left: calc(50vw - min(45vw, 250px)); width: min(90vw, 500px); text-align: center; diff --git a/toys/license/600x400_license.css b/toys/license/600x400_license.css index 0faca8d..21b6267 100644 --- a/toys/license/600x400_license.css +++ b/toys/license/600x400_license.css @@ -1,5 +1,4 @@ #licenseContainer_600x400 { - font-family: "Comic Sans MS", "Comic Sans", cursive; position: absolute; top: 0vh; left: 300vw; @@ -40,9 +39,6 @@ margin: 5% 0% 0% 0%; } #signatureValue_600x400 { - font-family: "Yellowtail", serif; - font-weight: 400; - font-style: normal; margin: 0% 0% -0.2rem 0%;/* margin: 0% 0% 0.2rem 0%; */ text-align: center; font-size: 1.5rem; @@ -82,7 +78,8 @@ } #titleValue_600x400 { grid-area: 1 / 1 / 2 / 3; - font-size: min(max(3vmax, 4vmin), 1.6rem); + font-size: 2rem; margin: 0% auto 0% auto; height: max-content; + text-align: center; } \ No newline at end of file diff --git a/toys/license/index.html b/toys/license/index.html index 3896481..70cee5a 100644 --- a/toys/license/index.html +++ b/toys/license/index.html @@ -13,9 +13,13 @@ - - - + + + Byte Dice - Boykisser license @@ -110,7 +114,7 @@ -
+

Boykisser license

@@ -118,14 +122,14 @@
-

Byte Dice

+

Byte Dice

Sign here

-

For

Byte Dice

+

For

Byte Dice

Issued

2025-01-18

Expires

never

Identity

unknown

@@ -149,14 +153,14 @@
-
+

Boykisser license

-
+

Byte Dice

Sign here

diff --git a/toys/license/license.css b/toys/license/license.css index 7b7d6f7..d7a992f 100644 --- a/toys/license/license.css +++ b/toys/license/license.css @@ -1,5 +1,4 @@ #licenseContainer { - font-family: "Comic Sans MS", "Comic Sans", cursive; position: relative; max-width: min(100vw, 600px); max-height: 400px /* min(calc(50vh - calc(25px * var(--pxDensity))), 400px) */; @@ -14,6 +13,21 @@ grid-template-columns: repeat(2, auto); grid-template-rows: repeat(2, auto); } +.sans { + font-family: "Comic Neue", serif; + font-weight: 400; + font-style: normal; +} +.sans-bold { /* TODO: bold not working */ + font-family: "Comic Neue", serif; + font-weight: 700; + font-style: normal; +} +.yellowTail { + font-family: "Yellowtail", serif; + font-weight: 400; + font-style: normal; +} #picContainer { width: max(10vmax, 15vmin); height: max(10vmax, 15vmin); @@ -44,9 +58,6 @@ margin: 5% 0% 0% 0%; } #signatureValue { - font-family: "Yellowtail", serif; - font-weight: 400; - font-style: normal; margin: 0% 0% -0.2rem 0%;/* margin: 0% 0% 0.2rem 0%; */ text-align: center; font-size: min(max(2.5vmax, 3vmin), 1.5rem); @@ -96,7 +107,8 @@ h2 { } #titleValue { grid-area: 1 / 1 / 2 / 3; - font-size: min(max(3vmax, 4vmin), 1.6rem); + font-size: min(max(3vmax, 4vmin), 2rem); margin: 0% auto 0% auto; height: max-content; + text-align: center; } \ No newline at end of file