page-toc.css

 1@media only screen and (max-width: 1674px) {
 2  .sidetoc {
 3    display: none;
 4  }
 5}
 6
 7@media only screen and (min-width: 1675px) {
 8  main {
 9    position: relative;
10  }
11  .sidetoc {
12    margin-left: auto;
13    margin-right: auto;
14    left: calc(100% + (var(--content-max-width)) / 3 - 160px);
15    position: absolute;
16  }
17  .pagetoc {
18    position: fixed;
19    top: 64px;
20    width: 220px;
21    height: calc(100vh - var(--menu-bar-height) - 0.67em * 4);
22    padding: 80px 16px 40px 0;
23    overflow: auto;
24  }
25  .pagetoc > :last-child {
26    margin-bottom: 64px;
27  }
28  .pagetoc a {
29    width: fit-content;
30    font-size: 1.4rem;
31    border-left: 1px solid var(--sidebar-bg);
32    color: var(--fg) !important;
33    display: block;
34    padding: 2px;
35    margin: 8px 0 8px 12px;
36    text-align: left;
37    text-decoration: underline;
38    text-decoration-color: hsl(0, 0%, 0%, 0.1);
39  }
40  .pagetoc a:hover {
41    text-decoration-color: hsl(0, 0%, 0%, 0.5);
42  }
43  .pagetoc a.active {
44    background-color: var(--sidebar-active-bg);
45    color: var(--sidebar-active) !important;
46    text-decoration-color: hsl(219, 93%, 42%, 0.1);
47  }
48  .pagetoc a.active:hover {
49    text-decoration-color: hsl(219, 93%, 42%, 0.8);
50  }
51  .pagetoc .active {
52    background: var(--sidebar-bg);
53    color: var(--sidebar-fg);
54  }
55  .pagetoc .pagetoc-H1 {
56    display: none;
57  }
58  .pagetoc .pagetoc-H3 {
59    margin-left: 24px;
60  }
61  .pagetoc .pagetoc-H4 {
62    margin-left: 42px;
63  }
64  .pagetoc .pagetoc-H5 {
65    display: none;
66  }
67  .pagetoc .pagetoc-H6 {
68    display: none;
69  }
70  .toc-title {
71    margin: 0;
72    margin-bottom: 12px;
73    padding-left: 12px;
74    font-size: 1.4rem;
75    color: var(--full-contrast);
76  }
77}