From 048e05888c31cb0a45f640b05ef10c996fc5f640 Mon Sep 17 00:00:00 2001 From: Peter Heywood Date: Thu, 29 Feb 2024 18:20:35 +0000 Subject: [PATCH] Ovveride theme CSS rule causing an unneeded overflow scroll in primary nav --- _static/css/custom.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/_static/css/custom.css b/_static/css/custom.css index d6cf063..5520f3a 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -65,6 +65,7 @@ body { background-color: var(--pst-color-primary); } + /* Increase the maximum width for large displays. Still limited to prevent very long line length */ @media (min-width:1200px) { .container, @@ -91,6 +92,12 @@ body { margin-top:auto; } +/* Override theme rule which was causing a scrollbar within the nav bar when not needed on local builds. +May need adjusting on rtd for ethical ads*/ +.bd-sidebar-primary .sidebar-primary-items__end { + margin-top: inherit; +} + /* -------------------------------------- Light theme specific formatting changes --------------------------------------- */ @@ -166,4 +173,4 @@ html[data-theme="dark"] .bd-article-container h3, html[data-theme="dark"] .bd-article-container h4 html[data-theme="dark"] .bd-article-container h5 { color: var(--n8-deep-blue-color-high-contrast-dark); -} \ No newline at end of file +}