From ab324e5eb98ebe8f75828ec8efb101fd92600cd8 Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Wed, 9 Apr 2025 17:26:39 -0400 Subject: [PATCH] docs: decrease leftnav spacing (#7532) * add-coles-sidebar-fix * menu-spacing * Changed sidebar-ad from sticky to fixed positioning --- docs/css/custom.css | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/css/custom.css b/docs/css/custom.css index bd98435d2..d9f4579e7 100644 --- a/docs/css/custom.css +++ b/docs/css/custom.css @@ -16,7 +16,7 @@ } .theme-doc-sidebar-item-category.menu__list-item:not(:first-child) { - margin-top: 1.5rem !important; + margin-top: 0.5rem !important; } .docusaurus-highlight-code-line { @@ -274,20 +274,29 @@ body { .theme-doc-sidebar-item-category.theme-doc-sidebar-item-category-level-2.menu__list-item:not( :first-child ) { - margin-top: 0.25rem !important; + margin-top: 0.15rem !important; } .sidebar-ad { - margin-top: 2rem; margin-left: -0.5rem; margin-right: -0.5rem; - margin-bottom: -0.5rem; + margin-bottom: 0; border-radius: 0; border-top: 1px solid var(--ifm-color-emphasis-300); border-bottom: 1px solid var(--ifm-color-emphasis-300); background-color: var(--ifm-background-color); - position: sticky; - bottom: -0.5rem; + position: fixed; + bottom: 0; + z-index: 100; + width: var(--doc-sidebar-width); +} + +[data-theme="dark"] .sidebar-ad { + background-color: var(--ifm-background-color); +} + +[data-theme="light"] .sidebar-ad { + background-color: var(--ifm-color-white); } .sidebar-ad a {