diff options
Diffstat (limited to 'vendor/twbs/bootstrap/site/assets/scss/_toc.scss')
-rw-r--r-- | vendor/twbs/bootstrap/site/assets/scss/_toc.scss | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/vendor/twbs/bootstrap/site/assets/scss/_toc.scss b/vendor/twbs/bootstrap/site/assets/scss/_toc.scss index 23d843a9b..596945628 100644 --- a/vendor/twbs/bootstrap/site/assets/scss/_toc.scss +++ b/vendor/twbs/bootstrap/site/assets/scss/_toc.scss @@ -1,53 +1,41 @@ -// stylelint-disable selector-max-combinators, selector-max-type, selector-max-compound-selectors - -// -// Right side table of contents -// +// stylelint-disable selector-max-type .bd-toc { - @supports (position: sticky) { + @include media-breakpoint-up(lg) { position: sticky; - top: 4rem; - height: subtract(100vh, 4rem); + top: 5rem; + right: 0; + z-index: 2; + height: subtract(100vh, 7rem); overflow-y: auto; } - order: 2; - padding-top: 1.5rem; - padding-bottom: 1.5rem; - @include font-size(.875rem); nav { - padding-left: 0; - border-left: 1px solid #eee; + @include font-size(.875rem); ul { padding-left: 0; + list-style: none; ul { padding-left: 1rem; + margin-top: .25rem; } } - a code { - font: inherit; + li { + margin-bottom: .25rem; } - li { - display: block; + a { + color: inherit; - ul li ul { - padding-left: 1rem; + &:not(:hover) { + text-decoration: none; } - a { - display: block; - padding: .125rem 1.5rem; - color: #77757a; - - &:hover { - color: $blue; - text-decoration: none; - } + code { + font: inherit; } } } |