forked from PreTeXtBook/CSS_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoc_min.css
More file actions
112 lines (104 loc) · 2.29 KB
/
toc_min.css
File metadata and controls
112 lines (104 loc) · 2.29 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
:root {
--toc-codenumber-width: 18px;
--toc-chevron-width: 20px;
}
#ptx-toc ul {
list-style: none;
margin: unset;
padding: unset;
font-size: 14.72px;
}
#ptx-toc a {
font-weight: bold;
font-family: "PT Serif", "Times New Roman", Times, serif;
}
#ptx-toc li {
margin-top: 3px;
overflow: hidden;
color: var(--chaptertoctext);
position: relative;
}
#ptx-toc li:first-child {
margin-top: unset;
}
#ptx-toc a {
flex-grow: 1;
display: flex;
align-items: center;
padding: 1px 3px;
}
.toc-item {
display: flex;
background-color: var(--chaptertoc);
border: 1px solid var(--tocborder);
border-left: unset;
border-right: unset;
}
#ptx-toc .codenumber {
display: block;
padding-right: 4px;
text-align: end;
width: var(--toc-codenumber-width);
flex-shrink: 0;
}
#ptx-toc .title {
flex-grow: 1;
}
/* Adjust the display of nested items */
#ptx-toc li li {
margin-top: 0px;
}
#ptx-toc li li .toc-item {
border-bottom: unset;
border-color: rgb(209, 209, 209);
background-color: var(--sectiontoc);
color: var(--sectiontoctext);
}
#ptx-toc li li a {
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
padding-left: 30px;
}
#ptx-toc li li li a {
padding-left: 45px;
}
.toc-chevron-surround {
padding-left: 4px;
display: flex;
justify-content: space-around;
flex-grow: 0;
flex-shrink: 0;
align-items: center;
width: var(--toc-chevron-width);
cursor: pointer;
}
.toc-chevron-surround:hover,
.toc-chevron-surround:focus-visible {
background-color: var(--highlighttoc) !important;
color: var(--sectiontoctextactive);
}
.toc-item a.active ~ .toc-chevron-surround {
background-color: var(--sectiontocactive);
color: var(--sectiontoctextactive);
}
.toc-item a:hover ~ .toc-chevron-surround {
background-color: var(--highlighttoc);
color: var(--sectiontoctextactive);
}
.chevron-rotator {
position: relative;
}
.chevron-wrapper {
box-sizing: border-box;
display: block;
margin: 0px;
text-align: center;
}
.chevron-wrapper {
transform: rotate(0deg);
transform-origin: 2px 10px;
transition: transform 0.5s;
}
.toc-chevron-surround.open .chevron-wrapper {
transform: rotate(90deg);
}