From 037e6c851f8d9dec41ed46871d73f7ff6f2f80a4 Mon Sep 17 00:00:00 2001 From: Nick Budak Date: Tue, 3 Sep 2024 09:09:56 -0700 Subject: [PATCH] Ensure the page cannot be shorter than the viewport height Fixes #1290 --- app/assets/stylesheets/earthworks.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/assets/stylesheets/earthworks.css b/app/assets/stylesheets/earthworks.css index f56124a5..f5ecb7e1 100644 --- a/app/assets/stylesheets/earthworks.css +++ b/app/assets/stylesheets/earthworks.css @@ -345,3 +345,14 @@ label.toggle-bookmark { --bs-link-hover-decoration: underline; --bs-link-hover-color-rgb: var(--stanford-digital-blue-dark-rgb); } + +/* Push footer to the bottom on short pages */ +body { + display: flex; + flex-direction: column; + min-height: 100vh; +} + +#main-container { + flex: 1; +}