diff options
author | Mark Otto <markdotto@gmail.com> | 2020-04-02 00:35:25 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2020-04-13 23:55:34 +0300 |
commit | bb3e5f712a3b1b79d85a6f15ad32bafcf6c77f66 (patch) | |
tree | dba7e308ae289539b26ba09ada11b94ceb30311f /site/assets/scss/_toc.scss | |
parent | 6fdb8e6e6825f40f0b4c18fd226a64b2275ea706 (diff) |
Move table of contents to new sidebar, restyle it to be simpler
Diffstat (limited to 'site/assets/scss/_toc.scss')
-rw-r--r-- | site/assets/scss/_toc.scss | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/site/assets/scss/_toc.scss b/site/assets/scss/_toc.scss index 9e7de3c2b9..cc9a6d6ddf 100644 --- a/site/assets/scss/_toc.scss +++ b/site/assets/scss/_toc.scss @@ -1,17 +1,37 @@ // stylelint-disable selector-max-type, selector-max-compound-selectors +.bd-toc-wrap { + @include media-breakpoint-up(lg) { + @supports (position: sticky) { + position: sticky; + top: 5rem; + right: 0; + z-index: 2; + height: subtract(100vh, 7rem); + overflow-y: auto; + } + } +} + .bd-toc nav { - padding-top: .125em; - padding-bottom: .125em; - border-left: .25em solid $gray-200; + @include font-size(.875rem); - > ul { - margin-bottom: 0; + ul { + padding-left: 0; + list-style: none; + + ul { + padding-left: 1rem; + margin-top: .25rem; + } } - li ul li { + li { margin-bottom: .25rem; - list-style-type: disc; + } + + a { + color: inherit; } a:not(:hover) { |