-
Notifications
You must be signed in to change notification settings - Fork 12
/
toc_min.css
144 lines (129 loc) · 3.73 KB
/
toc_min.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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
.ptx-toc {
/* IMPORTANT height must be calculated by javascript. */
width: 240px;
margin: 0;
font-size: 14.72px;
overflow-y: auto;
overflow-x: hidden;
}
/* Aligns toc to the top and side of the allotted space, respectively */
.ptx-toc ul {
margin: 0px;
padding: 0px;
list-style-type: none;
}
/* Places codenumbers */
.ptx-toc .codenumber {
position: absolute;
margin-right: 0;
margin-left: 0em;
/*
margin-top: 0.4px;
*/
left: 0.3em;
display: inline-block;
}
/* no codenumbers on subsections */
.ptx-toc ul.structural ul.structural a > .codenumber {
display: none;
}
.ptx-toc ul.structural .title {
margin-left: 1.4em;
display: inline-block;
}
.ptx-toc ul.structural ul.structural .title {
margin-left: 1.5em;
}
.ptx-toc ul.structural ul.structural .title:empty::after {
content: "empty heading!";
font-weight: bold;
}
.ptx-toc ul.structural ul.structural ul.structural .title {
margin-left: 2.5em;
font-size: 90%;
}
.ptx-toc ul.structural ul.structural ul.structural ul.structural .title {
margin-left: 3.2em;
font-size: 90%;
font-style: italic;
}
/* more specific than something in toc_default (obsolete comment?) */
.ptx-toc ul.structural li ul.structural li ul.structural li:last-child {
margin-bottom: 0;
border-bottom: 1px solid #ddd;
}
.ptx-toc .part > a .codenumber {
position: relative;
display: block;
float: left;
margin-right: 0.7em;
}
.ptx-toc .part > a .title {
display: block;
margin-left: 1em;
}
.ptx-toc ul.structural li a {
position: relative;
display: block;
padding: 2.86957px;
padding: 0.2em;
// padding-left: 0.5em;
border-top: 1px solid #d1d1d1;
border-bottom: 1px solid #d1d1d1;
font-family: "PT Serif", "Times New Roman", Times, serif;
font-weight: bold;
}
.ptx-toc ul.structural ul.structural li a {
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
// padding-left: 2.0em;
}
/* Sets spacing between section headings*/
.ptx-toc > ul.structural > li:not(:first-child) {
margin-top: 0.3em;
}
/* But not at the start of a part */
/* I cannot see that this actually does anything --DF */
.ptx-toc > ul.structural > li.part + li,
.ptx-toc > ul.structural > li.frontmatter + li,
.ptx-toc > ul.structural > li.backmatter + li {
margin-top: 0;
}
/* Removes underlines from links in toc */
.ptx-toc ul.structural li a, .ptx-toc ul.structural li a:link, .ptx-toc ul.structural li a:visited, .ptx-toc ul.structural li a:hover, .ptx-toc ul.structural li a:focus, .ptx-toc ul.structural li a:active {
text-decoration: none;
}
/*
.ptx-toc > ul > li a, .ptx-toc > ul > li a:link, .ptx-toc > ul > li a:visited {
font-weight: bold;
font-family: "PT Serif", "Times New Roman", Times, serif;
padding-left: 0.2em;
}
*/
/* Ensures that there is no double border between subsections */
.ptx-toc ul.structural li ul.structural a {
border-top: none;
}
/* Allows both "top" and bottom border of a subsection to be highlighted on hover */
.ptx-toc ul.structural li ul.structural a:hover {
border-top: 1px solid #3c110a;
margin-top: -1px;
}
/* Removes the excess space between the last subsection and the next section (caused by
the margin on top of sections being used to space out adjacent sections) */
.ptx-toc ul.structural li ul.structural li:last-child {
margin-bottom: -0.3em;
}
/* Removes double border between last subsection and next section */
.ptx-toc ul.structural li ul.structural li:last-child a {
border-bottom: none;
}
.ptx-toc ul.structural li a:active {
box-shadow: rgba(0, 0, 0, 0.5) 0 2px 5px inset;
}
.ptx-toc ul.structural li a.has-chevron {
padding-right: 2em;
}
.ptx-toc .toc-item {
position: relative;
}