-
Notifications
You must be signed in to change notification settings - Fork 0
/
book.css
49 lines (38 loc) · 794 Bytes
/
book.css
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
:root {
--content-max-width: 810px;
--sidebar-width: 320px;
}
.light {
--fg: #404040;
--sidebar-active: var(--icons-hover);
--sidebar-fg: var(--fg);
--searchbar-fg: var(--fg);
}
/* Improve chapter highlighting */
.chapter li a.active {
font-weight: 600;
}
.chapter li a.active > strong {
color: var(--sidebar-fg);
font-weight: bold;
}
.chapter li a:hover > strong {
color: var(--sidebar-fg);
}
/* Replace fold symbol */
.chapter li > a.toggle div {
display: none;
}
.chapter li > a.toggle::after {
display: inline-block;
content: "›";
font-weight: bold;
font-size: 1.5em;
}
.chapter li.expanded > a.toggle::after {
transform: translate(0.12em, 0.1em) rotate(90deg);
}
/* Remove inline code background inside table header */
th > .hljs {
background: transparent;
}