From cd8e70bad644479d5bcbdfde4dee6a9dee0a9250 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 31 Mar 2026 16:19:52 -0300 Subject: css: never quite fill viewport height with search sidebar --- src/static/css/responsive.css | 2 +- src/static/css/search.css | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/static/css/responsive.css b/src/static/css/responsive.css index 86cd7eb6..38e4188a 100644 --- a/src/static/css/responsive.css +++ b/src/static/css/responsive.css @@ -106,7 +106,7 @@ } .wiki-search-sidebar-box { - max-height: max(245px, 60vh, calc(100vh - 205px)); + --keep-viewport-visible: 205px; } /* End duplicated for "sidebars in content column" */ diff --git a/src/static/css/search.css b/src/static/css/search.css index a79fb20a..d424c43d 100644 --- a/src/static/css/search.css +++ b/src/static/css/search.css @@ -5,7 +5,9 @@ padding: 1px 0 0 0; z-index: 100; - max-height: calc(100vh - 20px); + + --keep-viewport-visible: 125px; + max-height: max(245px, 60vh, calc(100vh - var(--keep-viewport-visible))); display: flex; flex-direction: column; -- cgit 1.3.0-6-gf8a5