From ac08cb16b763c9c7dc3064fda29a66ba54767b44 Mon Sep 17 00:00:00 2001 From: Bishal Das Date: Fri, 30 Oct 2026 22:46:01 +0600 Subject: [PATCH] Keep the footer at the bottom on short pages The body is now a full-height flex column and main stretches to fill it, replacing the fixed 60vh minimum that left the footer mid-screen on tall phones. Co-Authored-By: Claude Opus 5.5 --- assets/css/style.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/css/style.css b/assets/css/style.css index ce977fc..b53a371 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -46,7 +46,12 @@ html { text-size-adjust: 100%; } +/* Full-height column so the footer sits at the bottom on short pages. */ body { + display: flex; + flex-direction: column; + min-height: 100vh; + min-height: 100dvh; margin: 0 auto; max-width: calc(var(--measure) + 2rem); padding: 0 1rem; @@ -83,7 +88,7 @@ a:hover { color: var(--accent); text-decoration-color: currentColor; } .site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); } .site-nav a[aria-current]::before { content: "/"; color: var(--accent); } -main { padding: 2.5rem 0 3rem; min-height: 60vh; } +main { flex: 1; min-width: 0; padding: 2.5rem 0 3rem; } .site-footer { display: flex;