From c45b00706fe7b021b8e89881ebf8a30aaed7cc01 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 9 May 2024 13:22:13 -0300 Subject: css: tweak page box model to support scrolling background --- src/static/site6.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/static') diff --git a/src/static/site6.css b/src/static/site6.css index 66518d3b..c23acffb 100644 --- a/src/static/site6.css +++ b/src/static/site6.css @@ -32,7 +32,9 @@ /* Layout - Common */ body { - margin: 10px; + position: relative; + margin: 0; + padding: 10px; overflow-y: scroll; } @@ -41,8 +43,8 @@ body::before { position: fixed; top: 0; left: 0; - width: 100%; - height: 100%; + width: 100vw; + height: 100vh; z-index: -1; /* NB: these are 100 LVW, "largest view width", etc. @@ -56,7 +58,7 @@ body::before { #page-container { max-width: 1100px; - margin: 10px auto 50px; + margin: 0 auto 40px; padding: 15px 0; } -- cgit 1.3.0-6-gf8a5