diff --git a/src/_includes/global/shrineinfo.njk b/src/_includes/global/shrineinfo.njk index c8ccacae..6991f2f0 100644 --- a/src/_includes/global/shrineinfo.njk +++ b/src/_includes/global/shrineinfo.njk @@ -21,7 +21,8 @@ .shrine__info { padding: 1rem; - overflow: auto; + max-height: var(--ht-sticky-sidebar); + overflow-x: auto; } .shrine__info h2 { diff --git a/src/_includes/global/toc.njk b/src/_includes/global/toc.njk index 3328b554..1196b02b 100644 --- a/src/_includes/global/toc.njk +++ b/src/_includes/global/toc.njk @@ -11,7 +11,7 @@ {%- css %} .toc__wrapper { - max-height: 89vh; + max-height: var(--ht-sticky-sidebar); overflow-x: auto; background-color: var(--clr-content-bg); padding: 1rem 1.3rem; diff --git a/src/assets/css/global.css b/src/assets/css/global.css index 18dcff69..0b64d520 100644 --- a/src/assets/css/global.css +++ b/src/assets/css/global.css @@ -48,6 +48,8 @@ --sz-navbar-ht: 4rem; --sz-external-link: 1.25em; --sz-content-list-gap: 0.7em; + + --ht-sticky-sidebar: 89vh; } /* ------------------- */