diff --git a/src/styles/components/_doc-sidebar.scss b/src/styles/components/_doc-sidebar.scss index 1d36474e088..34b9bd17ee7 100644 --- a/src/styles/components/_doc-sidebar.scss +++ b/src/styles/components/_doc-sidebar.scss @@ -71,17 +71,16 @@ html[data-theme='dark'] { display: none !important; } + .theme-doc-sidebar-item-category-level-1 > .menu__list { + /* removes indentation from first level categories */ + margin: 0; + } + .menu__list { display: block !important; transition: height 0.35s cubic-bezier(0.36, 0.66, 0.04, 1) 25ms !important; will-change: initial !important; - margin: 0; - - li:last-of-type { - padding-block-end: 1.5rem; - } - .menu__list { .menu__link--sublist { margin-inline-start: calc(-1 * (var(--dropdown-icon-width) + var(--dropdown-icon-gap))); @@ -104,6 +103,14 @@ html[data-theme='dark'] { } } + .theme-doc-sidebar-item-category-level-1 > .menu__list > .menu__list-item:last-of-type { + padding-block-end: 1.5rem; + } + + .theme-doc-sidebar-item-category-level-1:last-of-type { + margin-block-end: 1.5rem; + } + .menu__link { font-weight: 500; font-size: 0.813rem;