diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-03-31 16:19:52 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-03-31 16:19:52 -0300 |
| commit | cd8e70bad644479d5bcbdfde4dee6a9dee0a9250 (patch) | |
| tree | 109c89a1de3c2646c3954332cf3f468c8144be18 /src | |
| parent | e2cb13d2f874ecdf8c34628871ef8b5400ea2b4b (diff) | |
css: never quite fill viewport height with search sidebar
Diffstat (limited to 'src')
| -rw-r--r-- | src/static/css/responsive.css | 2 | ||||
| -rw-r--r-- | src/static/css/search.css | 4 |
2 files changed, 4 insertions, 2 deletions
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; |