From 475c1cba57365d8a4868cc375652155ae5bf99a2 Mon Sep 17 00:00:00 2001 From: alarcritty Date: Sat, 29 Nov 2025 23:08:00 +0530 Subject: [PATCH 1/2] fix: make footer stick to bottom on pages with minimal content Adds flexbox layout to ensure footer stays at bottom of viewport regardless of content height. Fixes footer floating mid-page on pages like 404. --- static/css/main.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/static/css/main.css b/static/css/main.css index 6fefd3b..5d19e54 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -606,3 +606,27 @@ iframe.poll { border: 1px solid var(--docsearch-primary-color) } } +/*sticky footer fix*/ +html { + height: 100%; +} + +body { + min-height: 100vh; + display: flex; + flex-direction: column; + margin: 0; +} + +body > nav { + flex-shrink: 0; +} + +body > main { + flex: 1 0 auto; +} + +body > footer { + flex-shrink: 0; + margin-top: auto; +} From eb34ef5444bf64f3e12c0d43dce7ae42f200c1c8 Mon Sep 17 00:00:00 2001 From: Aditya Malik <102025295+alarcritty@users.noreply.github.com> Date: Sat, 29 Nov 2025 23:21:59 +0530 Subject: [PATCH 2/2] Update static/css/main.css Co-authored-by: Justin M. Keyes --- static/css/main.css | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index 5d19e54..74b7c6c 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -606,26 +606,23 @@ iframe.poll { border: 1px solid var(--docsearch-primary-color) } } -/*sticky footer fix*/ + +/* Force footer to bottom of viewport. */ html { height: 100%; } - body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; } - body > nav { flex-shrink: 0; } - body > main { flex: 1 0 auto; } - body > footer { flex-shrink: 0; margin-top: auto;