From 9b4e166608bbb2db8deade4ba4fabb3e0080eee0 Mon Sep 17 00:00:00 2001 From: k Date: Wed, 18 Sep 2024 16:56:55 +0200 Subject: [PATCH] website: fixes --- website/index.html | 29 +- website/manifest.webmanifest | 1 + website/script.js | 5575 +++++++++++++++++----------------- website/types/self.d.ts | 6 +- 4 files changed, 2853 insertions(+), 2758 deletions(-) diff --git a/website/index.html b/website/index.html index ae7859986..acc64ccf6 100644 --- a/website/index.html +++ b/website/index.html @@ -1,4 +1,4 @@ - + @@ -13,7 +13,7 @@ /> - + @@ -1114,11 +1114,21 @@ > #timescale { margin-top: 1rem; - - border-radius: 9999px; display: flex; - border: 1px; overflow: hidden; + z-index: 50; + + @media (max-width: 767px) { + margin-bottom: -1.5rem; + border-top: 1px; + margin-left: -1.5rem; + margin-right: -1.5rem; + } + + @media (min-width: 768px) { + border-radius: 9999px; + border: 1px; + } > button { flex: 0; @@ -1273,7 +1283,7 @@ z-index: 10; pointer-events: none; - &:not(:has(~ #selected-frame:not([hidden]))) { + main > &:not(:has(~ #selected-frame:not([hidden]))) { display: none; } } @@ -1298,7 +1308,7 @@ localStorage.getItem(settingsThemeLocalStorageKey) ); const preferredColorSchemeMatchMedia = window.matchMedia( - "(prefers-color-scheme: dark)", + "(prefers-color-scheme: dark)" ); if ( theme === "dark" || @@ -1310,7 +1320,7 @@ } const backgroundColor = getComputedStyle( - window.document.documentElement, + window.document.documentElement ).getPropertyValue("--background-color"); const meta = window.document.createElement("meta"); meta.name = "theme-color"; @@ -1666,7 +1676,7 @@ @@ -1708,6 +1718,7 @@