| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- .toc {
- position: -webkit-sticky;
- position: sticky;
- top: $grid-nav-height;
- padding: 0.5rem;
- margin: 0 0.5rem;
- margin-top: 0;
- padding-top: 1.25rem;
- height: calc(100vh - $grid-nav-height);
- overflow: auto;
- font-size: 0.85rem;
- z-index: z('toc');
- max-height: 100vh;
- @include no-select;
- @include themify($themes) {
- @include webkit-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
- @include moz-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
- }
-
- #TableOfContents {
- position: relative;
- }
- &__label {
- font-family: $title-font;
- font-size: 1rem;
- margin-top: 0.65rem;
- margin-bottom: 1rem;
- margin-left: 1.25rem;
- padding-bottom: 0.5rem;
- @include themify($themes) {
- color: themed('toc-label-color');
- }
- }
- @include themify($themes) {
- a {
- color: themed('toc-color');
- position: relative;
- @include on-event {
- color: themed('link-hover');
- }
- &.active {
- color: themed('active-font-color');
-
- &::before {
- background-color: themed('active-font-color');
- content: '';
- height: 11px;
- left: -8px;
- margin: 0.25rem 0;
- position: absolute;
- width: 2px;
- &:last-child {
- background-color: transparent;
- }
- }
- }
- }
- }
- ul {
- li {
- li {
- margin-left: 0.5rem;
- }
- }
- }
- }
- .expand__content {
- #TableOfContents {
- ul {
- list-style-type: circle;
- }
- }
- }
|