page-toc.css

 1.pagetoc {
 2  box-sizing: border-box;
 3  position: sticky;
 4  top: 50px;
 5  display: flex;
 6  flex-direction: column;
 7  gap: 4px;
 8  padding: 28px 0 120px 0;
 9  width: 200px;
10  max-height: calc(100svh - 50px);
11  overflow-x: hidden;
12}
13.pagetoc > :last-child {
14  margin-bottom: 16px;
15}
16.pagetoc a {
17  width: fit-content;
18  font-size: 1.4rem;
19  color: var(--fg) !important;
20  display: inline-block;
21  padding: 2px 0;
22  text-align: left;
23  text-decoration: underline;
24  text-decoration-color: var(--toc-link-underline);
25}
26.pagetoc a:hover {
27  text-decoration-color: var(--toc-link-underline-hover);
28}
29.pagetoc a.active {
30  background-color: var(--sidebar-active-bg);
31  color: var(--sidebar-active) !important;
32  text-decoration-color: hsl(219, 93%, 42%, 0.1);
33}
34.pagetoc a.active:hover {
35  text-decoration-color: hsl(219, 93%, 42%, 0.8);
36}
37.pagetoc .active {
38  background: var(--sidebar-bg);
39  color: var(--sidebar-fg);
40}
41.pagetoc .pagetoc-H1 {
42  display: none;
43}
44.pagetoc .pagetoc-H3 {
45  margin-left: 2ch;
46}
47.pagetoc .pagetoc-H4 {
48  margin-left: 4ch;
49}
50.pagetoc .pagetoc-H5 {
51  display: none;
52}
53.pagetoc .pagetoc-H6 {
54  display: none;
55}
56.toc-title {
57  margin: 0;
58  margin-bottom: 6px;
59  font-size: 1.4rem;
60  color: var(--full-contrast);
61}
62
63.toc-container {
64  visibility: hidden;
65}
66
67.toc-container.has-toc {
68  visibility: visible;
69}
70
71.toc-container.no-toc {
72  display: none;
73}
74
75@media only screen and (max-width: 1200px) {
76  .toc-container {
77    display: none;
78  }
79}