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-top: 80px;
23 margin-right: 16px;
24 padding-bottom: 40px;
25 overflow: auto;
26 }
27 .pagetoc > :last-child {
28 margin-bottom: 64px;
29 }
30 .pagetoc a {
31 width: fit-content;
32 font-size: 1.4rem;
33 border-left: 1px solid var(--sidebar-bg);
34 color: var(--fg) !important;
35 display: block;
36 padding: 2px;
37 margin: 8px 0 8px 12px;
38 text-align: left;
39 text-decoration: underline;
40 text-decoration-color: hsl(0, 0%, 0%, 0.1);
41 }
42 .pagetoc a:hover {
43 text-decoration-color: hsl(0, 0%, 0%, 0.5);
44 }
45 .pagetoc a.active {
46 background-color: var(--sidebar-active-bg);
47 color: var(--sidebar-active) !important;
48 text-decoration-color: hsl(219, 93%, 42%, 0.1);
49 }
50 .pagetoc a.active:hover {
51 text-decoration-color: hsl(219, 93%, 42%, 0.8);
52 }
53 .pagetoc .active {
54 background: var(--sidebar-bg);
55 color: var(--sidebar-fg);
56 }
57 .pagetoc .pagetoc-H1 {
58 display: none;
59 }
60 .pagetoc .pagetoc-H3 {
61 margin-left: 24px;
62 }
63 .pagetoc .pagetoc-H4 {
64 margin-left: 42px;
65 }
66 .pagetoc .pagetoc-H5 {
67 display: none;
68 }
69 .pagetoc .pagetoc-H6 {
70 display: none;
71 }
72 .toc-title {
73 margin: 0;
74 margin-bottom: 12px;
75 padding-left: 12px;
76 font-size: 1.4rem;
77 color: var(--full-contrast);
78 }
79}