diff --git a/site/assets/scss/_toc.scss b/site/assets/scss/_toc.scss index 3e09e50b260a..34bd8e76388f 100644 --- a/site/assets/scss/_toc.scss +++ b/site/assets/scss/_toc.scss @@ -1,5 +1,3 @@ -// stylelint-disable selector-max-type - .bd-toc { @include media-breakpoint-up(lg) { position: sticky; @@ -10,29 +8,35 @@ overflow-y: auto; } - nav { + .nav { @include font-size(.875rem); - ul ul { + ul { padding-left: 1rem; - margin-top: .25rem; } - li { - margin-bottom: .25rem; - - > .nav-link.active { - background-color: $bd-purple-light; + .nav-link { + padding: .125rem 0 .125rem .9rem; + margin-left: -1rem; + border-left: .1rem solid transparent; + @include border-radius(0); + + &:hover, + &.active { + font-weight: 500; + color: $bd-purple; + background-color: transparent; + border-left-color: $bd-purple-light; + } + &.active { + padding-left: .8em; + border-left-width: .2em; } } a { color: inherit; - &:hover:not(.active) { - text-decoration: underline; - } - code { font: inherit; } diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index 3428ecaa2128..7731f8df8ff8 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -20,7 +20,7 @@