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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
body {
margin: 0 0 50vh 0;
padding: 0;
}
main {
font-family: sans-serif;
font-size: 10pt;
margin: 0;
padding: 4px;
}
hr {
margin: 2em 0;
padding: 0;
}
h1 {
font-size: 2em;
line-height: 2.5em;
margin: 0 0 1em 0;
padding: 0;
}
h2 {
font-size: 1.5em;
line-height: 2em;
margin: 0 0 1em 0;
padding: 0;
}
h3 {
font-size: 1.17em;
line-height: 2em;
margin: 0 0 1em 0;
padding: 0;
}
h4 {
font-size: 1em;
line-height: 2em;
margin: 0 0 1em 0;
padding: 0;
}
h5 {
font-size: 0.83em;
line-height: 2em;
margin: 0 0 1em 0;
padding: 0;
}
h6 {
font-size: 0.67em;
line-height: 2em;
margin: 0 0 1em 0;
padding: 0;
}
p {
font-size: 1em;
line-height: 2em;
margin: 0 0 1em 0;
padding: 0;
}
ol {
margin: 0 0 1em 3em;
padding: 0;
/*list-style: none;*/
}
ul {
margin: 0 0 1em 3em;
padding: 0;
/*list-style: none;*/
}
li {
margin: 0;
line-height: 2em;
}
option {
line-height: 2em;
margin: 0;
padding: 0;
}
select {
line-height: 2em;
margin: 0;
padding: 0;
}
label {
line-height: 2em;
margin: 0;
padding: 0;
}
table {
border: none;
border-collapse: collapse;
border-spacing: 0;
margin: 0;
padding: 0;
}
tr {
margin: 0;
padding: 0;
}
td {
margin: 0;
padding: 0;
}
/* navigation by sidebar (for desktop screens) */
main {
margin: 0 0 0 calc(100px + 1em);
}
div#navi {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 100px;
overflow-x: hidden;
overflow-y: scroll;
background-color: #303030;
scrollbar-color: #808080 #303030;
}
ul#list-navi {
width: 100px;
margin: 0;
list-style-type: none;
}
select#menu-navi {
/* hide by default */
display: none;
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
background: url('/files/arrow_down.png') no-repeat right #303030;
background-origin: content-box;
border: none;
color: #fff;
outline: none;
}
/* on small screens...
* + turn sidebar into topbar
* + revert positioning of the navbar (fixed->relative)
* + hide list navigation (display: (implicit) block->none)
* + show menu navigation (display: none->block)
*/
@media (max-width: 800px) {
main {
margin: 0;
}
div#navi {
position: relative;
width: 100%;
}
ul#list-navi {
display: none;
}
select#menu-navi {
display: block;
}
}
/* list items */
ul#list-navi li {
display: block;
height: 0;
margin: 0;
color: #fff;
opacity: 0;
font-size: 1em;
line-height: 2em;
text-align: center;
transition: all 0.4s ease-out;
}
ul#list-navi li a {
display: none;
color: #fff;
text-decoration: none;
}
ul#list-navi li a:focus {
outline: none;
text-decoration: underline solid #fff;
text-decoration-thickness: 0.3em;
text-underline-offset: 0.3em;
}
/* when `shown` class is attached...
* + transition in the list items (height 0->2em, opacity 0->1, margin-bottom 0->.5em)
* + show text immediately (display none->block)
*/
ul#list-navi li.shown {
height: 2em;
margin: 0 0 0.5em 0;
opacity: 1;
}
ul#list-navi li.shown a {
display: block;
}
/* on hover, list items light up (color #303030->#444) */
ul#list-navi li.shown:hover {
background-color: #444;
}
/* for trigger items, draw an arrow beside the text */
ul#list-navi li.shown.trigger {
padding: 0 1em 0 0;
background: url('/files/arrow_down.png') no-repeat right;
background-origin: content-box;
text-decoration: underline;
}
ul#list-navi li.shown.trigger:focus {
outline: none;
text-decoration: underline solid #fff;
text-decoration-thickness: 0.3em;
text-underline-offset: 0.3em;
}
ul#list-navi li.shown.trigger.selection {
padding: 0 1em 0 0;
background: url('/files/arrow_up.png') no-repeat right #444;
background-origin: content-box;
}
/* menu items */
select#menu-navi:focus {
padding: 0 0.5em 0 0;
background: url('/files/arrow_up.png') no-repeat right #000;
background-origin: content-box;
}
select#menu-navi option {
height: 2em;
margin: 0;
width: 12em;
}