From 87ce9296484904a74107084f97d6425c298bf7d9 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sat, 27 Apr 2024 07:33:55 +0200 Subject: [PATCH] minor css adjustments to scrolling --- static/css/general.css | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/static/css/general.css b/static/css/general.css index 20ff5ee..13d64ce 100644 --- a/static/css/general.css +++ b/static/css/general.css @@ -6,12 +6,18 @@ box-sizing: border-box !important; overflow-wrap: anywhere; object-fit: scale-down; + scroll-behavior: smooth; } -html, -body { - max-width: 100%; - overflow-x: clip; +:root { + max-width: inherit; + overflow-x: hidden; + overflow-y: auto; +} + +html:not(:root), +body:not(:root) { + max-width: inherit; } #root { @@ -230,6 +236,10 @@ details[open] > summary { } @media (prefers-color-scheme: dark) { + * { + scrollbar-color: white black; + } + html { background-color: black; color: white;