From 21a563e57a347e49a790607e46917633f1cf4f1d Mon Sep 17 00:00:00 2001 From: klemek Date: Mon, 6 Jan 2025 16:24:11 +0100 Subject: [PATCH] hide on small windows --- index.html | 1 + style.css | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/index.html b/index.html index 781ca39..93c7ad3 100644 --- a/index.html +++ b/index.html @@ -94,6 +94,7 @@ > +

Window is too small

diff --git a/style.css b/style.css index 61b9870..8cd9e10 100644 --- a/style.css +++ b/style.css @@ -125,6 +125,7 @@ body { main { padding: 1.5rem; background-color: var(--background-primary); + min-width: 24rem; } canvas { @@ -193,3 +194,28 @@ a { display: flex; flex-direction: column; } + +main, +canvas { + display: none; +} + +#too_small { + margin: auto; +} + +h1 { + text-align: center; + margin-top: 0; +} + +@media only screen and ((min-width: 1152px) and (min-height: 726px)) { + main, + canvas { + display: block; + } + + #too_small { + display: none; + } +}