_toc.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .toc {
  2. position: -webkit-sticky;
  3. position: sticky;
  4. top: $grid-nav-height;
  5. padding: 0.25rem;
  6. margin: 0.25rem;
  7. margin-top: 0;
  8. padding-top: 1.25rem;
  9. height: calc(100vh - $grid-nav-height);
  10. overflow: auto;
  11. font-size: 0.85rem;
  12. z-index: z('toc');
  13. max-height: 100vh;
  14. @include no-select;
  15. @include themify($themes) {
  16. @include webkit-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
  17. @include moz-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
  18. }
  19. #TableOfContents {
  20. position: relative;
  21. }
  22. &__label {
  23. font-family: $title-font;
  24. font-size: 1rem;
  25. margin-top: 0.65rem;
  26. margin-bottom: 1rem;
  27. margin-left: 1.25rem;
  28. padding-bottom: 0.5rem;
  29. @include themify($themes) {
  30. color: themed('toc-label-color');
  31. }
  32. }
  33. @include themify($themes) {
  34. a {
  35. color: themed('toc-color');
  36. position: relative;
  37. @include on-event {
  38. color: themed('link-hover');
  39. }
  40. &.active {
  41. color: themed('active-font-color');
  42. &::before {
  43. background-color: themed('active-font-color');
  44. content: '';
  45. height: 11px;
  46. left: -8px;
  47. margin: 0.25rem 0;
  48. position: absolute;
  49. width: 2px;
  50. &:last-child {
  51. background-color: transparent;
  52. }
  53. }
  54. }
  55. }
  56. }
  57. ul {
  58. li {
  59. li {
  60. margin-left: 0.6rem;
  61. }
  62. }
  63. }
  64. }
  65. .expand__content {
  66. #TableOfContents {
  67. ul {
  68. list-style-type: circle;
  69. }
  70. }
  71. }