forked from google/docsy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_sidebar-toc.scss
61 lines (50 loc) · 922 Bytes
/
_sidebar-toc.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// Right side toc
//
.td-sidebar-toc {
@include link-decoration;
border-left: 1px solid var(--bs-border-color);
@supports (position: sticky) {
position: sticky;
top: 4rem;
height: calc(100vh - 4rem);
overflow-y: auto;
}
order: 2;
padding-top: 0.75rem;
padding-bottom: 1.5rem;
vertical-align: top;
.td-page-meta a {
display: block;
font-weight: $font-weight-medium;
}
}
.td-toc {
a {
display: block;
font-weight: $font-weight-light;
padding-bottom: 0.25rem;
}
li {
list-style: none;
display: block;
}
li li {
margin-left: 0.5rem;
}
#TableOfContents {
// Hugo's ToC is a mouthful, this can be used to style the top level h2 entries.
> ul > li > ul > li > a {
}
a {
color: var(--bs-secondary-color);
&:focus,
&:hover {
color: initial;
}
}
}
ul {
padding-left: 0;
}
}