-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoc.css
More file actions
53 lines (46 loc) · 776 Bytes
/
toc.css
File metadata and controls
53 lines (46 loc) · 776 Bytes
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
/* TOC styles */
#toc {
width: 100%;
height: calc(100vh - var(--navbar-height));
overflow-y: auto;
padding: 1em 1em 2em;
box-sizing: border-box;
column-width: 300px;
column-gap: 1.5em;
column-fill: auto;
}
#toc>* {
break-inside: avoid;
}
#toc h3 {
width: 100%;
margin-top: 20px;
}
#toc .toc-item {
margin: 0;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
cursor: pointer;
}
#toc .toc-item a {
text-decoration: none;
color: inherit;
display: block;
}
#toc .toc-item:hover {
background-color: #f0f0f0;
}
#toc .current-chapter {
background-color: #ddd;
font-weight: bold;
border-color: #999;
}
@media (max-width: 480px) {
#toc {
flex: 0 0 auto;
left: 1em;
width: 100%;
padding-bottom: 5em;
}
}