From 1f5e5d85486b45ed2bfa5beb3c7c57e074be4599 Mon Sep 17 00:00:00 2001 From: Daniel Dunn Date: Sun, 5 Nov 2023 23:45:22 -0700 Subject: [PATCH] Better responsiveness --- css/barrel.css | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/css/barrel.css b/css/barrel.css index f71f700..907b606 100644 --- a/css/barrel.css +++ b/css/barrel.css @@ -274,6 +274,10 @@ header>*:only-child>:only-child { margin: 0px; } +header :is(h1, h2, h3, h4) { + padding-inline-start: var(--padding); +} + header>:is(h1, h2, h3, h4):has(button) { padding: 0px; } @@ -538,7 +542,7 @@ table tr:first-child td { margin-bottom: 0.2em; min-width: min-content; box-sizing: border-box; - max-width: 99%; + max-width: 100vw; overflow: auto; border-radius: var(--border-radius); border-color: var(--border-color); @@ -771,8 +775,19 @@ table tr:first-child td { .scroll { overflow: auto; + } +/*This user added margin is likely unwanted on tiny screens*/ +@media screen and (max-width: 860px) { + .scroll { + /*Scroll boxes should never be full screen, or else you woul + Have nowhere outside it to grab and scroll the whole page*/ + max-height: 60vw; + } +} + + .max-h-1rem { max-height: 1rem; } @@ -986,6 +1001,14 @@ footer.padding { margin: 0px; } +/*This user added margin is likely unwanted on tiny screens where*/ +@media screen and (max-width: 500px) { + .window { + margin-left: 0px; + margin-right: 0px; + } +} + .block { display: block; }