From 18d0c8e403a4e21a95c302144d514af30f09cefb Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 14 Oct 2024 21:59:05 -0700 Subject: [PATCH] remove scrollbar on main page and fix toc/nav clipping --- src/styles/docs/nav/nav.css | 2 +- src/styles/docs/toc/toc.css | 2 +- src/styles/main-page.css | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/styles/docs/nav/nav.css b/src/styles/docs/nav/nav.css index eead596..4a3fa5a 100644 --- a/src/styles/docs/nav/nav.css +++ b/src/styles/docs/nav/nav.css @@ -148,7 +148,7 @@ top: 3.5rem; flex-shrink: 0; overflow-y: scroll; - max-height: calc(100svh - 4rem); + max-height: calc(100svh - 3.5rem); scrollbar-width: none; -ms-overflow-style: none; z-index: 10; diff --git a/src/styles/docs/toc/toc.css b/src/styles/docs/toc/toc.css index fd4f8bf..42c2f61 100644 --- a/src/styles/docs/toc/toc.css +++ b/src/styles/docs/toc/toc.css @@ -106,7 +106,7 @@ position: sticky; top: 3.5rem; width: 19rem; - max-height: calc(100svh - 4rem); + max-height: calc(100svh - 3.5rem); overflow-y: scroll; z-index: 9; margin-right: 1.272rem; diff --git a/src/styles/main-page.css b/src/styles/main-page.css index 2d326b7..1d25b2e 100644 --- a/src/styles/main-page.css +++ b/src/styles/main-page.css @@ -1,10 +1,9 @@ .main-page_hero { position: relative; - height: 100%; margin-block: 5rem; margin-inline: 0.612rem; - min-height: calc(100svh - 3.5rem); display: flex; + flex-grow: 1; flex-direction: column; justify-content: center; align-items: center;