docs: decrease leftnav spacing (#7532)

* add-coles-sidebar-fix

* menu-spacing

* Changed sidebar-ad from sticky to fixed positioning
This commit is contained in:
Mendon Kissling 2025-04-09 17:26:39 -04:00 committed by GitHub
commit ab324e5eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {