hotdocs 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/hotdocs/application.css +758 -672
- data/app/assets/stylesheets/hotdocs/reset.css +338 -336
- data/app/helpers/hotdocs/application_helper.rb +54 -2
- data/app/views/hotdocs/_menu_row.html.erb +6 -3
- data/app/views/layouts/hotdocs/application.html.erb +31 -22
- data/lib/hotdocs/markdown.rb +1 -3
- data/lib/hotdocs/version.rb +1 -1
- data/lib/install/install.rb +7 -4
- metadata +1 -2
- data/lib/hotdocs/kramdown_alerts.rb +0 -92
@@ -1,857 +1,943 @@
|
|
1
|
-
|
1
|
+
@layer reset, hotdocs;
|
2
|
+
@import url("reset.css") layer(reset);
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
}
|
4
|
+
@layer hotdocs {
|
5
|
+
/* CSS: GLOBAL */
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
:root {
|
8
|
+
--background-color: white;
|
9
|
+
--code-background-color: #f6f6f6;
|
10
|
+
--code-border-color: #00000022;
|
11
|
+
--column-border-color: #dadada;
|
12
|
+
--content-padding-bottom: 2rem;
|
13
|
+
--link-active-color: black;
|
14
|
+
--link-color: #707070;
|
15
|
+
--nav-height: 3.75rem;
|
16
|
+
--text-color: #1c1e21;
|
17
|
+
}
|
15
18
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
+
[data-theme=dark]:root {
|
20
|
+
--background-color: #1b1b1d;
|
21
|
+
--code-background-color: #2b2b2b;
|
22
|
+
--code-border-color: #ffffff22;
|
23
|
+
--column-border-color: #535353;
|
24
|
+
--link-active-color: white;
|
25
|
+
--link-color: #909090;
|
26
|
+
--text-color: #e3e1de;
|
19
27
|
}
|
20
28
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
opacity: 1;
|
29
|
+
html {
|
30
|
+
-webkit-font-smoothing: antialiased;
|
31
|
+
background-color: var(--background-color);
|
32
|
+
color: var(--text-color);
|
33
|
+
scroll-padding-top: calc(var(--nav-height) + 0.2rem);
|
34
|
+
text-rendering: optimizelegibility;
|
28
35
|
}
|
29
|
-
}
|
30
36
|
|
31
|
-
/*
|
37
|
+
/* Sticky footer */
|
32
38
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
--content-padding-bottom: 2rem;
|
37
|
-
--link-active-color: black;
|
38
|
-
--link-color: #707070;
|
39
|
-
--nav-height: 3.75rem;
|
40
|
-
--text-color: #1c1e21;
|
41
|
-
}
|
39
|
+
html, body {
|
40
|
+
min-height: 100vh;
|
41
|
+
}
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
--link-color: #909090;
|
48
|
-
--text-color: #e3e1de;
|
49
|
-
}
|
43
|
+
body {
|
44
|
+
display: flex;
|
45
|
+
flex-direction: column;
|
46
|
+
}
|
50
47
|
|
51
|
-
|
52
|
-
-webkit-font-smoothing: antialiased;
|
53
|
-
background-color: var(--background-color);
|
54
|
-
color: var(--text-color);
|
55
|
-
scroll-padding-top: calc(var(--nav-height) + 0.2rem);
|
56
|
-
text-rendering: optimizelegibility;
|
57
|
-
}
|
48
|
+
/* CSS: NAV */
|
58
49
|
|
59
|
-
|
50
|
+
:root {
|
51
|
+
--nav-background-color: white;
|
52
|
+
--nav-link-active-color: var(--link-active-color);
|
53
|
+
--nav-link-color: var(--link-color);
|
54
|
+
--nav-padding-horizontal: 1.5rem;
|
55
|
+
--nav-padding-vertical: 0.5rem;
|
56
|
+
--nav-shadow: 0 1px 2px 0 #0000001a;
|
57
|
+
--nav-title-color: #1c1e21;
|
58
|
+
--nav-toggle-color: rgb(28, 30, 33);
|
59
|
+
--sidenav-padding-horizontal: 0.75rem;
|
60
|
+
}
|
60
61
|
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
[data-theme=dark]:root {
|
63
|
+
--nav-background-color: #242526;
|
64
|
+
--nav-title-color: #e3e1de;
|
65
|
+
--nav-toggle-color: rgb(227, 225, 222);
|
66
|
+
}
|
64
67
|
|
65
|
-
body
|
66
|
-
|
67
|
-
|
68
|
-
}
|
68
|
+
/* Added to <body> */
|
69
|
+
.sidenav--open {
|
70
|
+
overflow: hidden;
|
71
|
+
}
|
69
72
|
|
70
|
-
|
71
|
-
|
72
|
-
:
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
}
|
73
|
+
.nav {
|
74
|
+
align-items: center;
|
75
|
+
background-color: var(--nav-background-color);
|
76
|
+
box-shadow: var(--nav-shadow);
|
77
|
+
display: flex;
|
78
|
+
flex: 0 0 auto;
|
79
|
+
height: var(--nav-height);
|
80
|
+
justify-content: space-between;
|
81
|
+
padding: var(--nav-padding-vertical) var(--nav-padding-horizontal);
|
82
|
+
position: sticky;
|
83
|
+
top: 0;
|
84
|
+
z-index: 10;
|
85
|
+
}
|
83
86
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
--nav-toggle-color: rgb(227, 225, 222);
|
90
|
-
}
|
87
|
+
.nav__section {
|
88
|
+
align-items: center;
|
89
|
+
display: flex;
|
90
|
+
gap: 1.5rem;
|
91
|
+
}
|
91
92
|
|
92
|
-
|
93
|
-
|
94
|
-
overflow: hidden;
|
95
|
-
}
|
93
|
+
.nav__links {
|
94
|
+
display: none;
|
96
95
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
height: var(--nav-height);
|
104
|
-
justify-content: space-between;
|
105
|
-
padding: var(--nav-padding-vertical) var(--nav-padding-horizontal);
|
106
|
-
position: sticky;
|
107
|
-
top: 0;
|
108
|
-
z-index: 10;
|
109
|
-
}
|
96
|
+
@media (min-width: 64rem) {
|
97
|
+
align-items: center;
|
98
|
+
display: flex;
|
99
|
+
gap: 1.5rem;
|
100
|
+
}
|
101
|
+
}
|
110
102
|
|
111
|
-
.
|
112
|
-
|
113
|
-
display: flex;
|
114
|
-
gap: 1.5rem;
|
115
|
-
}
|
103
|
+
.nav__link {
|
104
|
+
color: var(--nav-link-color);
|
116
105
|
|
117
|
-
|
118
|
-
|
106
|
+
&.active {
|
107
|
+
color: var(--nav-link-active-color);
|
108
|
+
}
|
109
|
+
|
110
|
+
&:hover {
|
111
|
+
color: var(--nav-link-active-color);
|
112
|
+
}
|
113
|
+
}
|
119
114
|
|
120
|
-
|
115
|
+
.nav__brand {
|
121
116
|
align-items: center;
|
122
117
|
display: flex;
|
123
|
-
gap:
|
118
|
+
gap: 0.5rem;
|
124
119
|
}
|
125
|
-
}
|
126
120
|
|
127
|
-
.
|
128
|
-
|
121
|
+
.nav__logo-wrapper {
|
122
|
+
height: 2rem;
|
123
|
+
width: 2rem;
|
124
|
+
}
|
129
125
|
|
130
|
-
|
131
|
-
|
126
|
+
.nav__logo {
|
127
|
+
height: 100%;
|
128
|
+
width: 100%;
|
132
129
|
}
|
133
130
|
|
134
|
-
|
135
|
-
color: var(--nav-
|
131
|
+
.nav__title {
|
132
|
+
color: var(--nav-title-color);
|
133
|
+
font-size: 1.5rem;
|
134
|
+
font-weight: 500;
|
136
135
|
}
|
137
|
-
}
|
138
136
|
|
139
|
-
.
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
}
|
137
|
+
.nav__toggle {
|
138
|
+
color: var(--nav-toggle-color);
|
139
|
+
height: 1.5rem;
|
140
|
+
width: 1.5rem;
|
144
141
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
}
|
142
|
+
@media (min-width: 64rem) {
|
143
|
+
display: none;
|
144
|
+
}
|
145
|
+
}
|
149
146
|
|
150
|
-
.
|
151
|
-
|
152
|
-
|
153
|
-
|
147
|
+
.sidenav-backdrop {
|
148
|
+
background-color: rgba(0, 0, 0, .6);
|
149
|
+
inset: 0;
|
150
|
+
opacity: 0;
|
151
|
+
position: fixed;
|
152
|
+
transition-duration: 0.2s;
|
153
|
+
transition-property: visibility, opacity;
|
154
|
+
transition-timing-function: ease-in-out;
|
155
|
+
visibility: hidden;
|
156
|
+
}
|
154
157
|
|
155
|
-
.
|
156
|
-
|
157
|
-
|
158
|
-
}
|
158
|
+
.sidenav--open .sidenav-backdrop {
|
159
|
+
opacity: 1;
|
160
|
+
visibility: visible;
|
161
|
+
}
|
159
162
|
|
160
|
-
.
|
161
|
-
|
162
|
-
|
163
|
-
|
163
|
+
.sidenav {
|
164
|
+
background-color: var(--nav-background-color);
|
165
|
+
bottom: 0;
|
166
|
+
left: 0;
|
167
|
+
opacity: 0;
|
168
|
+
overflow-x: hidden;
|
169
|
+
position: fixed;
|
170
|
+
top: 0;
|
171
|
+
transform: translate(-100%);
|
172
|
+
transition-duration: 0.2s;
|
173
|
+
transition-property: transform, visibility, opacity;
|
174
|
+
transition-timing-function: ease-in-out;
|
175
|
+
visibility: hidden;
|
176
|
+
width: 85vw;
|
177
|
+
}
|
164
178
|
|
165
|
-
|
166
|
-
|
179
|
+
.sidenav--open .sidenav {
|
180
|
+
opacity: 1;
|
181
|
+
transform: translate(0, 0);
|
182
|
+
visibility: visible;
|
167
183
|
}
|
168
|
-
}
|
169
184
|
|
170
|
-
.
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
185
|
+
.sidenav__header {
|
186
|
+
align-items: center;
|
187
|
+
background-color: var(--nav-background-color);
|
188
|
+
box-shadow: var(--nav-shadow);
|
189
|
+
display: flex;
|
190
|
+
height: var(--nav-height);
|
191
|
+
justify-content: space-between;
|
192
|
+
padding: var(--nav-padding-vertical) var(--nav-padding-horizontal);
|
193
|
+
position: sticky;
|
194
|
+
top: 0;
|
195
|
+
z-index: 10;
|
196
|
+
}
|
180
197
|
|
181
|
-
.
|
182
|
-
|
183
|
-
|
184
|
-
|
198
|
+
.sidenav__toggle {
|
199
|
+
color: var(--nav-toggle-color);
|
200
|
+
height: 1rem;
|
201
|
+
width: 1rem;
|
202
|
+
}
|
185
203
|
|
186
|
-
.
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
top: 0;
|
194
|
-
transform: translate(-100%);
|
195
|
-
transition-duration: 0.2s;
|
196
|
-
transition-property: transform, visibility, opacity;
|
197
|
-
transition-timing-function: ease-in-out;
|
198
|
-
visibility: hidden;
|
199
|
-
width: 85vw;
|
200
|
-
}
|
204
|
+
.sidenav__sections {
|
205
|
+
display: flex;
|
206
|
+
transform: translate(-85vw);
|
207
|
+
transition-duration: 0.2s;
|
208
|
+
transition-property: transform;
|
209
|
+
transition-timing-function: ease-in-out;
|
210
|
+
}
|
201
211
|
|
202
|
-
.
|
203
|
-
|
204
|
-
|
205
|
-
visibility: visible;
|
206
|
-
}
|
212
|
+
.sidenav__sections--main {
|
213
|
+
transform: translate(0);
|
214
|
+
}
|
207
215
|
|
208
|
-
.
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
height: var(--nav-height);
|
214
|
-
justify-content: space-between;
|
215
|
-
padding: var(--nav-padding-vertical) var(--nav-padding-horizontal);
|
216
|
-
position: sticky;
|
217
|
-
top: 0;
|
218
|
-
z-index: 10;
|
219
|
-
}
|
216
|
+
.sidenav__section {
|
217
|
+
flex-shrink: 0;
|
218
|
+
padding: 0.5rem;
|
219
|
+
width: 85vw;
|
220
|
+
}
|
220
221
|
|
221
|
-
.
|
222
|
-
|
223
|
-
|
224
|
-
width: 1rem;
|
225
|
-
}
|
222
|
+
.sidenav__back-button {
|
223
|
+
font-weight: bold;
|
224
|
+
}
|
226
225
|
|
227
|
-
|
228
|
-
display: flex;
|
229
|
-
transform: translate(-85vw);
|
230
|
-
transition-duration: 0.2s;
|
231
|
-
transition-property: transform;
|
232
|
-
transition-timing-function: ease-in-out;
|
233
|
-
}
|
226
|
+
/* CSS: SEARCH */
|
234
227
|
|
235
|
-
|
236
|
-
|
237
|
-
|
228
|
+
:root {
|
229
|
+
--search-background-color: #f5f6f7;
|
230
|
+
--search-button-background-color: #e9e9e9;
|
231
|
+
--search-excerpt-background-color: white;
|
232
|
+
--search-excerpt-border-color: #d7d7d7;
|
233
|
+
--search-text-color: var(--text-color);
|
234
|
+
}
|
238
235
|
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
236
|
+
[data-theme=dark]:root {
|
237
|
+
--search-background-color: #242526;
|
238
|
+
--search-button-background-color: #1b1b1b;
|
239
|
+
--search-excerpt-background-color: #1b1b1b;
|
240
|
+
--search-excerpt-border-color: #535353;
|
241
|
+
}
|
244
242
|
|
245
|
-
.
|
246
|
-
|
247
|
-
|
243
|
+
.search-box__button {
|
244
|
+
align-items: center;
|
245
|
+
background-color: var(--search-background-color);
|
246
|
+
border: solid 1px transparent;
|
247
|
+
border-radius: 99999px;
|
248
|
+
display: flex;
|
249
|
+
gap: 0.5ch;
|
250
|
+
padding: 0.5rem 0.5rem;
|
248
251
|
|
249
|
-
|
252
|
+
@media (min-width: 40rem) {
|
253
|
+
padding: 0.25rem 0.5rem;
|
254
|
+
}
|
250
255
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
--search-text-color: var(--text-color);
|
257
|
-
}
|
256
|
+
&:hover {
|
257
|
+
background: none;
|
258
|
+
border: solid 1px var(--nav-link-color);
|
259
|
+
}
|
260
|
+
}
|
258
261
|
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
--search-excerpt-border-color: #535353;
|
264
|
-
}
|
262
|
+
.search-box__icon {
|
263
|
+
height: 1.2rem;
|
264
|
+
width: 1.2rem;
|
265
|
+
}
|
265
266
|
|
266
|
-
.search-
|
267
|
-
|
268
|
-
background-color: var(--search-background-color);
|
269
|
-
border: solid 1px transparent;
|
270
|
-
border-radius: 99999px;
|
271
|
-
display: flex;
|
272
|
-
gap: 0.5ch;
|
273
|
-
padding: 0.5rem 0.5rem;
|
267
|
+
.search-box__label {
|
268
|
+
display: none;
|
274
269
|
|
275
|
-
|
276
|
-
|
270
|
+
@media (min-width: 40rem) {
|
271
|
+
display: initial;
|
272
|
+
}
|
277
273
|
}
|
278
274
|
|
279
|
-
|
280
|
-
|
281
|
-
border: solid 1px var(--nav-link-color);
|
275
|
+
body:has(.search:open), body:has(.search[open]) {
|
276
|
+
overflow: hidden;
|
282
277
|
}
|
283
|
-
}
|
284
278
|
|
285
|
-
.search
|
286
|
-
|
287
|
-
|
288
|
-
|
279
|
+
.search {
|
280
|
+
background-color: #000000dd;
|
281
|
+
bottom: 0;
|
282
|
+
color: var(--search-text-color);
|
283
|
+
height: 100vh;
|
284
|
+
height: 100dvh;
|
285
|
+
left: 0;
|
286
|
+
max-height: 100vh;
|
287
|
+
height: 100dvh;
|
288
|
+
max-width: 100vw;
|
289
|
+
max-width: 100dvw;
|
290
|
+
padding: 0;
|
291
|
+
position: fixed;
|
292
|
+
right: 0;
|
293
|
+
top: 0;
|
294
|
+
width: 100vw;
|
295
|
+
width: 100dvw;
|
296
|
+
|
297
|
+
@media (min-width: 64rem) {
|
298
|
+
padding-inline: 1rem;
|
299
|
+
}
|
300
|
+
}
|
289
301
|
|
290
|
-
|
291
|
-
|
302
|
+
::backdrop {
|
303
|
+
display: none;
|
304
|
+
}
|
292
305
|
|
293
|
-
|
294
|
-
|
306
|
+
.search__dialog {
|
307
|
+
background-color: var(--search-background-color);
|
308
|
+
height: 100vh;
|
309
|
+
height: 100dvh;
|
310
|
+
max-height: 100vh;
|
311
|
+
max-height: 100dvh;
|
312
|
+
max-width: 100vw;
|
313
|
+
max-width: 100dvw;
|
314
|
+
overflow: auto;
|
315
|
+
padding: 1rem;
|
316
|
+
width: 100vw;
|
317
|
+
width: 100dvw;
|
318
|
+
|
319
|
+
@media (min-width: 64rem) {
|
320
|
+
border-radius: 0.375rem;
|
321
|
+
height: auto;
|
322
|
+
margin: 60px auto auto;
|
323
|
+
max-height: calc(100vh - 120px);
|
324
|
+
max-height: calc(100dvh - 120px);
|
325
|
+
max-width: 800px;
|
326
|
+
width: auto;
|
327
|
+
}
|
295
328
|
}
|
296
|
-
}
|
297
329
|
|
298
|
-
|
299
|
-
|
300
|
-
|
330
|
+
.search__header {
|
331
|
+
align-items: center;
|
332
|
+
display: flex;
|
333
|
+
gap: 1rem;
|
334
|
+
}
|
335
|
+
|
336
|
+
.search__input {
|
337
|
+
background-color: var(--search-excerpt-background-color);
|
338
|
+
border: 1px solid #808080;
|
339
|
+
border-radius: 0.2rem;
|
340
|
+
flex: 1 0 auto;
|
341
|
+
padding: 0.3rem 0.5rem;
|
301
342
|
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
color: var(--search-text-color);
|
306
|
-
height: 100vh;
|
307
|
-
height: 100dvh;
|
308
|
-
left: 0;
|
309
|
-
max-height: 100vh;
|
310
|
-
height: 100dvh;
|
311
|
-
max-width: 100vw;
|
312
|
-
max-width: 100dvw;
|
313
|
-
position: fixed;
|
314
|
-
right: 0;
|
315
|
-
top: 0;
|
316
|
-
width: 100vw;
|
317
|
-
width: 100dvw;
|
318
|
-
|
319
|
-
@media (min-width: 64rem) {
|
320
|
-
padding-inline: 1rem;
|
343
|
+
&:focus-visible {
|
344
|
+
outline: solid 2px #0077ff;
|
345
|
+
}
|
321
346
|
}
|
322
|
-
}
|
323
347
|
|
324
|
-
|
325
|
-
|
326
|
-
|
348
|
+
.search__dismiss {
|
349
|
+
color: var(--search-text-color);
|
350
|
+
height: 1rem;
|
351
|
+
width: 1rem;
|
327
352
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
height: 100dvh;
|
332
|
-
max-height: 100vh;
|
333
|
-
max-height: 100dvh;
|
334
|
-
max-width: 100vw;
|
335
|
-
max-width: 100dvw;
|
336
|
-
overflow: auto;
|
337
|
-
padding: 1rem;
|
338
|
-
width: 100vw;
|
339
|
-
width: 100dvw;
|
340
|
-
|
341
|
-
@media (min-width: 64rem) {
|
342
|
-
border-radius: 0.375rem;
|
343
|
-
height: auto;
|
344
|
-
margin: 60px auto auto;
|
345
|
-
max-height: calc(100vh - 120px);
|
346
|
-
max-height: calc(100dvh - 120px);
|
347
|
-
max-width: 800px;
|
348
|
-
width: auto;
|
353
|
+
@media (min-width: 64rem) {
|
354
|
+
display: none;
|
355
|
+
}
|
349
356
|
}
|
350
|
-
}
|
351
357
|
|
352
|
-
.
|
353
|
-
|
354
|
-
display: flex;
|
355
|
-
gap: 1rem;
|
356
|
-
}
|
358
|
+
.search__result {
|
359
|
+
margin-top: 1.5rem;
|
357
360
|
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
flex: 1 0 auto;
|
363
|
-
padding: 0.3rem 0.5rem;
|
361
|
+
&:first-child {
|
362
|
+
margin-top: 1rem;
|
363
|
+
}
|
364
|
+
}
|
364
365
|
|
365
|
-
|
366
|
-
|
366
|
+
.search.loaded .search__result--loading {
|
367
|
+
display: none;
|
367
368
|
}
|
368
|
-
}
|
369
369
|
|
370
|
-
.
|
371
|
-
|
372
|
-
|
373
|
-
|
370
|
+
.search__result-excerpt {
|
371
|
+
background-color: var(--search-excerpt-background-color);
|
372
|
+
border: 1px solid var(--search-excerpt-border-color);
|
373
|
+
border-radius: 0.2rem;
|
374
|
+
box-shadow: 0 1px 3px 0 #0000001a;
|
375
|
+
display: block;
|
376
|
+
margin-top: 0.2rem;
|
377
|
+
padding: 0.3rem 0.5rem;
|
374
378
|
|
375
|
-
|
376
|
-
|
379
|
+
&:hover {
|
380
|
+
outline: solid 2px #0077ff;
|
381
|
+
}
|
377
382
|
}
|
378
|
-
}
|
379
383
|
|
380
|
-
|
381
|
-
margin-top: 1.5rem;
|
384
|
+
/* CSS: MENU */
|
382
385
|
|
383
|
-
|
384
|
-
|
386
|
+
:root {
|
387
|
+
--menu-accordion-color: #7f7f7f;
|
388
|
+
--menu-border-color: var(--column-border-color);
|
389
|
+
--menu-link-active-color: var(--link-active-color);
|
390
|
+
--menu-link-hover-background-color: rgba(0, 0, 0, .05);
|
391
|
+
--menu-link-color: var(--link-color);
|
385
392
|
}
|
386
|
-
}
|
387
393
|
|
388
|
-
|
389
|
-
|
390
|
-
|
394
|
+
[data-theme=dark]:root {
|
395
|
+
--menu-accordion-color: #a0a0a0;
|
396
|
+
--menu-link-hover-background-color: rgba(255, 255, 255, .05);
|
397
|
+
}
|
391
398
|
|
392
|
-
.
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
box-shadow: 0 1px 3px 0 #0000001a;
|
397
|
-
display: block;
|
398
|
-
margin-top: 0.2rem;
|
399
|
-
padding: 0.3rem 0.5rem;
|
399
|
+
.menu {
|
400
|
+
border-right: 1px solid var(--menu-border-color);
|
401
|
+
display: none;
|
402
|
+
width: 20rem;
|
400
403
|
|
401
|
-
|
402
|
-
|
404
|
+
@media (min-width: 64rem) {
|
405
|
+
display: initial;
|
406
|
+
}
|
403
407
|
}
|
404
|
-
}
|
405
408
|
|
406
|
-
|
409
|
+
.menu__sections {
|
410
|
+
padding-bottom: var(--content-padding-bottom);
|
411
|
+
position: sticky;
|
412
|
+
top: var(--nav-height);
|
413
|
+
}
|
407
414
|
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
--menu-link-active-color: var(--link-active-color);
|
412
|
-
--menu-link-hover-background-color: rgba(0, 0, 0, .05);
|
413
|
-
--menu-link-color: var(--link-color);
|
414
|
-
}
|
415
|
+
.menu__section {
|
416
|
+
padding: 0.5rem;
|
417
|
+
}
|
415
418
|
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
}
|
419
|
+
.menu__section .menu__section {
|
420
|
+
display: none;
|
421
|
+
padding: 0;
|
422
|
+
padding-left: 1.5rem;
|
423
|
+
}
|
422
424
|
|
423
|
-
.
|
424
|
-
|
425
|
-
|
426
|
-
width: 20rem;
|
425
|
+
.menu__row--expanded ~ .menu__section {
|
426
|
+
display: block;
|
427
|
+
}
|
427
428
|
|
428
|
-
|
429
|
-
|
429
|
+
.menu__row {
|
430
|
+
align-items: center;
|
431
|
+
display: flex;
|
432
|
+
justify-content: space-between;
|
430
433
|
}
|
431
|
-
}
|
432
434
|
|
433
|
-
.
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
435
|
+
.menu__link {
|
436
|
+
border-radius: 0.25rem;
|
437
|
+
color: var(--menu-link-color);
|
438
|
+
display: inline-block;
|
439
|
+
flex: 1 0 0;
|
440
|
+
overflow: hidden;
|
441
|
+
padding: 0.375rem 1rem;
|
442
|
+
text-overflow: ellipsis;
|
443
|
+
white-space: nowrap;
|
438
444
|
|
439
|
-
|
440
|
-
|
441
|
-
}
|
445
|
+
&.active {
|
446
|
+
color: var(--menu-link-active-color);
|
447
|
+
}
|
442
448
|
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
}
|
449
|
+
&:hover {
|
450
|
+
background-color: var(--menu-link-hover-background-color);
|
451
|
+
}
|
452
|
+
}
|
448
453
|
|
449
|
-
.
|
450
|
-
|
451
|
-
|
454
|
+
.menu__toggle {
|
455
|
+
align-items: center;
|
456
|
+
align-self: stretch;
|
457
|
+
border: none;
|
458
|
+
border-radius: 0.25rem;
|
459
|
+
display: flex;
|
460
|
+
flex: 0 0 auto;
|
461
|
+
justify-content: center;
|
452
462
|
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
justify-content: space-between;
|
458
|
-
}
|
463
|
+
&:hover {
|
464
|
+
background-color: var(--menu-link-hover-background-color);
|
465
|
+
}
|
466
|
+
}
|
459
467
|
|
460
|
-
.
|
461
|
-
|
462
|
-
|
463
|
-
display: inline-block;
|
464
|
-
flex: 1 0 0;
|
465
|
-
overflow: hidden;
|
466
|
-
padding: 0.375rem 1rem;
|
467
|
-
text-overflow: ellipsis;
|
468
|
-
white-space: nowrap;
|
468
|
+
.menu__toggle--full {
|
469
|
+
flex-grow: 1;
|
470
|
+
text-align: left;
|
469
471
|
|
470
|
-
|
471
|
-
|
472
|
+
& .menu__link:hover {
|
473
|
+
background: none;
|
474
|
+
}
|
472
475
|
}
|
473
476
|
|
474
|
-
|
475
|
-
|
477
|
+
/* Do not display the toggle... */
|
478
|
+
.menu__toggle {
|
479
|
+
display: none;
|
476
480
|
}
|
477
|
-
}
|
478
481
|
|
479
|
-
.
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
display: flex;
|
484
|
-
flex: 0 0 auto;
|
485
|
-
justify-content: center;
|
482
|
+
/* ...unless it has a sibling section. */
|
483
|
+
.menu__row:has(~ .menu__section) .menu__toggle {
|
484
|
+
display: flex;
|
485
|
+
}
|
486
486
|
|
487
|
-
|
488
|
-
|
487
|
+
.menu__toggle-icon {
|
488
|
+
color: var(--menu-accordion-color);
|
489
|
+
transform: rotate(90deg);
|
490
|
+
height: 2rem;
|
491
|
+
width: 2rem;
|
489
492
|
}
|
490
|
-
}
|
491
493
|
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
}
|
494
|
+
.menu__row--expanded .menu__toggle-icon {
|
495
|
+
transform: rotate(180deg);
|
496
|
+
}
|
496
497
|
|
497
|
-
/*
|
498
|
-
.menu__row:has(~ .menu__section) .menu__toggle {
|
499
|
-
display: revert;
|
500
|
-
}
|
498
|
+
/* CSS: CONTENT */
|
501
499
|
|
502
|
-
.
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
width: 2rem;
|
507
|
-
}
|
500
|
+
.content {
|
501
|
+
display: flex;
|
502
|
+
flex: 1 0 auto;
|
503
|
+
}
|
508
504
|
|
509
|
-
.
|
510
|
-
|
511
|
-
|
505
|
+
.main {
|
506
|
+
display: flex;
|
507
|
+
flex-grow: 1;
|
508
|
+
margin-inline: auto;
|
509
|
+
max-width: 82rem;
|
510
|
+
padding-bottom: var(--content-padding-bottom);
|
511
|
+
width: 100%;
|
512
|
+
|
513
|
+
@media (min-width: 64rem) {
|
514
|
+
width: calc(100% - 20rem);
|
515
|
+
}
|
516
|
+
}
|
512
517
|
|
513
|
-
|
518
|
+
.central {
|
519
|
+
flex-grow: 1;
|
520
|
+
max-width: 100%;
|
521
|
+
padding-inline: var(--nav-padding-horizontal);
|
514
522
|
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
}
|
523
|
+
@media (min-width: 64rem) {
|
524
|
+
padding-inline: 2rem;
|
525
|
+
width: 75%;
|
526
|
+
}
|
527
|
+
}
|
519
528
|
|
520
|
-
|
521
|
-
display: flex;
|
522
|
-
flex-grow: 1;
|
523
|
-
margin-inline: auto;
|
524
|
-
max-width: 82rem;
|
525
|
-
padding-bottom: var(--content-padding-bottom);
|
526
|
-
width: 100%;
|
529
|
+
/* CSS: TOC */
|
527
530
|
|
528
|
-
|
529
|
-
|
531
|
+
:root {
|
532
|
+
--sidetoc-code-background-color: var(--code-background-color);
|
533
|
+
--sidetoc-code-border-color: var(--code-border-color);
|
534
|
+
--sidetoc-link-color: var(--link-color);
|
535
|
+
--sidetoc-link-active-color: var(--link-active-color);
|
536
|
+
--toc-background-color: #e9e9e9;
|
537
|
+
--toc-code-background-color: var(--code-background-color);
|
538
|
+
--toc-code-border-color: var(--code-border-color);
|
539
|
+
--toc-divider-color: #b0b0b0;
|
540
|
+
--toc-link-active-color: black;
|
541
|
+
--toc-link-color: #606060;
|
530
542
|
}
|
531
|
-
}
|
532
|
-
|
533
|
-
.central {
|
534
|
-
flex-grow: 1;
|
535
|
-
max-width: 100%;
|
536
|
-
padding-inline: var(--nav-padding-horizontal);
|
537
543
|
|
538
|
-
|
539
|
-
|
540
|
-
|
544
|
+
[data-theme=dark]:root {
|
545
|
+
--toc-background-color: #444444;
|
546
|
+
--toc-divider-color: #909090;
|
547
|
+
--toc-link-active-color: white;
|
548
|
+
--toc-link-color: #c0c0c0;
|
541
549
|
}
|
542
|
-
}
|
543
550
|
|
544
|
-
|
545
|
-
|
546
|
-
:
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
--toc-background-color: #e9e9e9;
|
552
|
-
--toc-code-background-color: #eee;
|
553
|
-
--toc-code-border-color: #00000022;
|
554
|
-
--toc-divider-color: #b0b0b0;
|
555
|
-
--toc-link-active-color: black;
|
556
|
-
--toc-link-color: #606060;
|
557
|
-
}
|
551
|
+
.toc {
|
552
|
+
background-color: var(--toc-background-color);
|
553
|
+
border-radius: 5px;
|
554
|
+
cursor: pointer;
|
555
|
+
line-height: 1.7;
|
556
|
+
margin-block: 1rem;
|
557
|
+
user-select: none;
|
558
558
|
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
--sidetoc-link-color: var(--link-color);
|
563
|
-
--sidetoc-link-active-color: var(--link-active-color);
|
564
|
-
--toc-background-color: #444444;
|
565
|
-
--toc-code-background-color: #2b2b2b;
|
566
|
-
--toc-code-border-color: #ffffff22;
|
567
|
-
--toc-divider-color: #909090;
|
568
|
-
--toc-link-active-color: white;
|
569
|
-
--toc-link-color: #c0c0c0;
|
570
|
-
}
|
559
|
+
@media (min-width: 85rem) {
|
560
|
+
display: none;
|
561
|
+
}
|
571
562
|
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
563
|
+
&::details-content {
|
564
|
+
height: 0;
|
565
|
+
overflow: hidden;
|
566
|
+
transition-property: height, content-visibility;
|
567
|
+
transition-duration: 0.5s;
|
568
|
+
transition-behavior: allow-discrete;
|
569
|
+
}
|
578
570
|
|
579
|
-
|
580
|
-
|
571
|
+
&[open]::details-content {
|
572
|
+
height: auto;
|
573
|
+
/* On supported browsers, allow transition to height: auto; */
|
574
|
+
height: calc-size(auto, size);
|
575
|
+
}
|
581
576
|
}
|
582
577
|
|
583
|
-
|
584
|
-
|
585
|
-
overflow: hidden;
|
586
|
-
transition-property: height, content-visibility;
|
587
|
-
transition-duration: 0.5s;
|
588
|
-
transition-behavior: allow-discrete;
|
578
|
+
.toc__label {
|
579
|
+
padding: 0.3rem 0.6rem;
|
589
580
|
}
|
590
581
|
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
582
|
+
.toc__entries {
|
583
|
+
border-top: 1px solid var(--toc-divider-color);
|
584
|
+
display: flex;
|
585
|
+
flex-direction: column;
|
586
|
+
font-size: 0.8rem;
|
587
|
+
padding: 0.5rem 0.6rem;
|
588
|
+
gap: 0.4rem;
|
595
589
|
}
|
596
|
-
}
|
597
590
|
|
598
|
-
.
|
599
|
-
|
600
|
-
|
591
|
+
.toc__link {
|
592
|
+
color: var(--toc-link-color);
|
593
|
+
display: inline-block;
|
601
594
|
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
flex-direction: column;
|
606
|
-
font-size: 0.9rem;
|
607
|
-
padding: 0.5rem 0.6rem;
|
608
|
-
gap: 0.4rem;
|
609
|
-
}
|
595
|
+
&.h2 {
|
596
|
+
margin-left: 1rem;
|
597
|
+
}
|
610
598
|
|
611
|
-
|
612
|
-
|
613
|
-
|
599
|
+
&.h3 {
|
600
|
+
margin-left: 2rem;
|
601
|
+
}
|
614
602
|
|
615
|
-
|
616
|
-
|
617
|
-
|
603
|
+
&.h4 {
|
604
|
+
margin-left: 3rem;
|
605
|
+
}
|
618
606
|
|
619
|
-
|
620
|
-
|
621
|
-
|
607
|
+
&.h5 {
|
608
|
+
margin-left: 4rem;
|
609
|
+
}
|
622
610
|
|
623
|
-
|
624
|
-
|
625
|
-
|
611
|
+
&.h6 {
|
612
|
+
margin-left: 5rem;
|
613
|
+
}
|
614
|
+
|
615
|
+
&.active {
|
616
|
+
color: var(--toc-link-active-color);
|
617
|
+
}
|
618
|
+
|
619
|
+
&:hover {
|
620
|
+
color: var(--toc-link-active-color);
|
621
|
+
}
|
626
622
|
|
627
|
-
|
628
|
-
|
623
|
+
code {
|
624
|
+
background: var(--toc-code-background-color);
|
625
|
+
border-radius: 5px;
|
626
|
+
border: .1rem solid var(--toc-code-border-color);
|
627
|
+
padding: 0.1rem 0.2rem;
|
628
|
+
word-break: break-all;
|
629
|
+
}
|
629
630
|
}
|
630
631
|
|
631
|
-
|
632
|
-
|
632
|
+
.sidetoc {
|
633
|
+
display: none;
|
634
|
+
flex: 0 0 25%;
|
635
|
+
line-height: 1.7;
|
636
|
+
max-width: 25%;
|
637
|
+
|
638
|
+
@media (min-width: 85rem) {
|
639
|
+
display: initial;
|
640
|
+
}
|
633
641
|
}
|
634
642
|
|
635
|
-
|
636
|
-
|
643
|
+
.sidetoc__section {
|
644
|
+
max-height: calc(100vh - var(--nav-height));
|
645
|
+
overflow-y: auto;
|
646
|
+
padding-block: calc(0.5rem + 0.375rem); /* Align with menu */
|
647
|
+
position: sticky;
|
648
|
+
top: var(--nav-height);
|
637
649
|
}
|
638
650
|
|
639
|
-
|
640
|
-
|
651
|
+
.sidetoc__entries {
|
652
|
+
border-left: 1px solid var(--column-border-color);
|
653
|
+
display: flex;
|
654
|
+
flex-direction: column;
|
655
|
+
font-size: 0.8rem;
|
656
|
+
gap: 0.4rem;
|
657
|
+
padding-inline: 1.5rem;
|
641
658
|
}
|
642
659
|
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
660
|
+
.sidetoc__link {
|
661
|
+
color: var(--sidetoc-link-color);
|
662
|
+
display: inline-block;
|
663
|
+
|
664
|
+
&.h2 {
|
665
|
+
margin-left: 1rem;
|
666
|
+
}
|
667
|
+
|
668
|
+
&.h3 {
|
669
|
+
margin-left: 2rem;
|
670
|
+
}
|
671
|
+
|
672
|
+
&.h4 {
|
673
|
+
margin-left: 3rem;
|
674
|
+
}
|
675
|
+
|
676
|
+
&.h5 {
|
677
|
+
margin-left: 4rem;
|
678
|
+
}
|
679
|
+
|
680
|
+
&.h6 {
|
681
|
+
margin-left: 5rem;
|
682
|
+
}
|
683
|
+
|
684
|
+
&.active {
|
685
|
+
color: var(--sidetoc-link-active-color);
|
686
|
+
}
|
687
|
+
|
688
|
+
&:hover {
|
689
|
+
color: var(--sidetoc-link-active-color);
|
690
|
+
}
|
691
|
+
|
692
|
+
code {
|
693
|
+
background: var(--sidetoc-code-background-color);
|
694
|
+
border-radius: 5px;
|
695
|
+
border: .1rem solid var(--sidetoc-code-border-color);
|
696
|
+
padding: 0.1rem 0.2rem;
|
697
|
+
word-break: break-all;
|
698
|
+
}
|
649
699
|
}
|
650
|
-
}
|
651
700
|
|
652
|
-
.
|
653
|
-
|
654
|
-
|
655
|
-
|
701
|
+
.anchor-link {
|
702
|
+
margin-left: 0.5ch;
|
703
|
+
opacity: 0;
|
704
|
+
text-decoration: none;
|
705
|
+
transition-duration: 0.2s;
|
706
|
+
transition-property: opacity;
|
707
|
+
transition-timing-function: ease-in-out;
|
656
708
|
|
657
|
-
|
658
|
-
|
709
|
+
&:hover {
|
710
|
+
text-decoration: underline;
|
711
|
+
}
|
659
712
|
}
|
660
|
-
}
|
661
713
|
|
662
|
-
.
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
top: calc(var(--nav-height) + 0.5rem + 0.375rem); /* Align with menu */
|
671
|
-
}
|
714
|
+
h1:hover .anchor-link,
|
715
|
+
h2:hover .anchor-link,
|
716
|
+
h3:hover .anchor-link,
|
717
|
+
h4:hover .anchor-link,
|
718
|
+
h5:hover .anchor-link,
|
719
|
+
h6:hover .anchor-link {
|
720
|
+
opacity: 1;
|
721
|
+
}
|
672
722
|
|
673
|
-
|
674
|
-
color: var(--sidetoc-link-color);
|
675
|
-
display: inline-block;
|
723
|
+
/* CSS: FOOTER */
|
676
724
|
|
677
|
-
|
678
|
-
|
725
|
+
:root {
|
726
|
+
--footer-background-color: #e9e9e9;
|
679
727
|
}
|
680
728
|
|
681
|
-
|
682
|
-
|
729
|
+
[data-theme=dark]:root {
|
730
|
+
--footer-background-color: #444444;
|
683
731
|
}
|
684
732
|
|
685
|
-
|
686
|
-
|
733
|
+
.footer {
|
734
|
+
background-color: var(--footer-background-color);
|
735
|
+
flex: 0 0 auto;
|
736
|
+
padding: 4rem var(--nav-padding-horizontal);
|
687
737
|
}
|
688
738
|
|
689
|
-
|
690
|
-
|
739
|
+
.footer__sections {
|
740
|
+
display: grid;
|
741
|
+
gap: 1.5rem;
|
742
|
+
grid-template-columns: 1fr;
|
743
|
+
max-width: 1200px;
|
744
|
+
margin: auto;
|
745
|
+
|
746
|
+
@media (min-width: 40rem) {
|
747
|
+
grid-template-columns: repeat(2, 1fr);
|
748
|
+
}
|
749
|
+
|
750
|
+
@media (min-width: 64rem) {
|
751
|
+
grid-template-columns: repeat(4, 1fr);
|
752
|
+
}
|
691
753
|
}
|
692
754
|
|
693
|
-
|
694
|
-
|
755
|
+
.footer__section {
|
756
|
+
flex: 1 1 0;
|
695
757
|
}
|
696
758
|
|
697
|
-
|
698
|
-
|
759
|
+
.footer__heading {
|
760
|
+
font-weight: bold;
|
699
761
|
}
|
700
762
|
|
701
|
-
|
702
|
-
|
763
|
+
.footer__link:hover {
|
764
|
+
text-decoration: underline;
|
703
765
|
}
|
704
766
|
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
padding: 0.1rem 0.2rem;
|
710
|
-
word-break: break-all;
|
767
|
+
.footer__logo {
|
768
|
+
margin: 3rem auto;
|
769
|
+
height: 8rem;
|
770
|
+
width: 8rem;
|
711
771
|
}
|
712
|
-
}
|
713
772
|
|
714
|
-
|
773
|
+
.credits {
|
774
|
+
padding-block: 1rem;
|
775
|
+
text-align: center;
|
776
|
+
}
|
715
777
|
|
716
|
-
|
717
|
-
|
718
|
-
}
|
778
|
+
.credits__link {
|
779
|
+
text-decoration: underline;
|
780
|
+
}
|
719
781
|
|
720
|
-
|
721
|
-
|
722
|
-
|
782
|
+
.credits__logo {
|
783
|
+
display: inline-block;
|
784
|
+
height: 2rem;
|
785
|
+
margin-left: 0.8rem;
|
786
|
+
width: 2rem;
|
787
|
+
}
|
723
788
|
|
724
|
-
|
725
|
-
background-color: var(--footer-background-color);
|
726
|
-
flex: 0 0 auto;
|
727
|
-
padding: 4rem var(--nav-padding-horizontal);
|
728
|
-
}
|
789
|
+
/* CSS: HELPERS */
|
729
790
|
|
730
|
-
.
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
791
|
+
.external-link {
|
792
|
+
align-items: center;
|
793
|
+
display: inline-flex;
|
794
|
+
gap: 0.3rem;
|
795
|
+
margin-right: 0.5ch;
|
796
|
+
}
|
736
797
|
|
737
|
-
|
738
|
-
|
798
|
+
.external-link__icon {
|
799
|
+
height: 0.6rem;
|
800
|
+
width: 0.6rem;
|
739
801
|
}
|
740
802
|
|
741
|
-
|
742
|
-
|
803
|
+
.edit-link {
|
804
|
+
align-items: center;
|
805
|
+
display: inline-flex;
|
806
|
+
gap: 0.3rem;
|
807
|
+
margin-left: 0.5ch;
|
808
|
+
margin-top: 4rem;
|
743
809
|
}
|
744
|
-
}
|
745
810
|
|
746
|
-
.
|
747
|
-
|
748
|
-
|
811
|
+
.edit-link__icon {
|
812
|
+
height: 1rem;
|
813
|
+
width: 1rem;
|
814
|
+
}
|
749
815
|
|
750
|
-
|
751
|
-
font-weight: bold;
|
752
|
-
}
|
816
|
+
/* CSS: ALERTS */
|
753
817
|
|
754
|
-
.
|
755
|
-
|
756
|
-
|
818
|
+
.alert {
|
819
|
+
border: 1px solid;
|
820
|
+
border-left: 0.5rem solid;
|
821
|
+
border-radius: 0.375rem;
|
822
|
+
margin-bottom: 1rem;
|
823
|
+
padding: 1rem;
|
824
|
+
}
|
757
825
|
|
758
|
-
.
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
}
|
826
|
+
.alert--tip {
|
827
|
+
background: #00940011;
|
828
|
+
border-color: #009400;
|
829
|
+
}
|
763
830
|
|
764
|
-
.
|
765
|
-
|
766
|
-
|
767
|
-
}
|
831
|
+
.alert--info {
|
832
|
+
background: #87cef911;
|
833
|
+
border-color: #87cef9;
|
834
|
+
}
|
768
835
|
|
769
|
-
.
|
770
|
-
|
771
|
-
|
836
|
+
.alert--warning {
|
837
|
+
background: #fea50011;
|
838
|
+
border-color: #fea500;
|
839
|
+
}
|
772
840
|
|
773
|
-
.
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
width: 2rem;
|
778
|
-
}
|
841
|
+
.alert--danger {
|
842
|
+
background: #db153b11;
|
843
|
+
border-color: #db153b;
|
844
|
+
}
|
779
845
|
|
780
|
-
|
846
|
+
.alert__header {
|
847
|
+
align-items: center;
|
848
|
+
display: flex;
|
849
|
+
gap: 0.5ch;
|
850
|
+
margin-bottom: 1rem;
|
851
|
+
}
|
781
852
|
|
782
|
-
.
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
margin-right: 0.5ch;
|
787
|
-
}
|
853
|
+
.alert__icon {
|
854
|
+
height: 1rem;
|
855
|
+
width: 1rem;
|
856
|
+
}
|
788
857
|
|
789
|
-
.
|
790
|
-
|
791
|
-
|
792
|
-
|
858
|
+
.alert__label {
|
859
|
+
font-weight: bold;
|
860
|
+
margin: 0;
|
861
|
+
text-transform: uppercase;
|
862
|
+
}
|
793
863
|
|
794
|
-
.
|
795
|
-
|
796
|
-
|
797
|
-
gap: 0.3rem;
|
798
|
-
margin-left: 0.5ch;
|
799
|
-
margin-top: 4rem;
|
800
|
-
}
|
864
|
+
.alert__content > :last-of-type {
|
865
|
+
margin-bottom: 0;
|
866
|
+
}
|
801
867
|
|
802
|
-
|
803
|
-
height: 1rem;
|
804
|
-
width: 1rem;
|
805
|
-
}
|
868
|
+
/* CSS: ANNOUNCEMENT */
|
806
869
|
|
807
|
-
|
870
|
+
:root {
|
871
|
+
--announcement-background-color: black;
|
872
|
+
--announcement-color: white;
|
873
|
+
}
|
808
874
|
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
margin-bottom: 1rem;
|
814
|
-
padding: 1rem;
|
815
|
-
}
|
875
|
+
[data-theme=dark]:root {
|
876
|
+
--announcement-background-color: white;
|
877
|
+
--announcement-color: black;
|
878
|
+
}
|
816
879
|
|
817
|
-
.
|
818
|
-
|
819
|
-
|
820
|
-
|
880
|
+
.announcement {
|
881
|
+
background-color: var(--announcement-background-color);
|
882
|
+
color: var(--announcement-color);
|
883
|
+
font-size: 1.2rem;
|
884
|
+
font-weight: 500;
|
885
|
+
padding-block: 0.2rem;
|
886
|
+
text-align: center;
|
887
|
+
}
|
821
888
|
|
822
|
-
|
823
|
-
background: #87cef911;
|
824
|
-
border-color: #87cef9;
|
825
|
-
}
|
889
|
+
/* CSS: ARTICLE */
|
826
890
|
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
}
|
891
|
+
:root {
|
892
|
+
--article-code-background-color: var(--code-background-color);
|
893
|
+
--article-code-border-color: var(--code-border-color);
|
894
|
+
}
|
831
895
|
|
832
|
-
.
|
833
|
-
|
834
|
-
|
835
|
-
}
|
896
|
+
.article {
|
897
|
+
.highlighter-rouge {
|
898
|
+
padding-block: .5rem;
|
899
|
+
}
|
836
900
|
|
837
|
-
.
|
838
|
-
|
839
|
-
|
840
|
-
gap: 0.5ch;
|
841
|
-
margin-bottom: 1rem;
|
842
|
-
}
|
901
|
+
.highlight {
|
902
|
+
border-radius: .375rem;
|
903
|
+
}
|
843
904
|
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
905
|
+
pre {
|
906
|
+
-webkit-overflow-scrolling: touch;
|
907
|
+
box-sizing: border-box;
|
908
|
+
margin: 0;
|
909
|
+
overflow-x: auto;
|
910
|
+
padding: 1em;
|
911
|
+
width: 100%;
|
912
|
+
}
|
848
913
|
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
914
|
+
pre code {
|
915
|
+
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
916
|
+
font-size: 0.9rem;
|
917
|
+
line-height: 1.5;
|
918
|
+
white-space: pre;
|
919
|
+
word-break: normal;
|
920
|
+
word-spacing: normal;
|
921
|
+
|
922
|
+
-moz-tab-size: 4;
|
923
|
+
-o-tab-size: 4;
|
924
|
+
tab-size: 4;
|
925
|
+
|
926
|
+
-webkit-hyphens: none;
|
927
|
+
-moz-hyphens: none;
|
928
|
+
-ms-hyphens: none;
|
929
|
+
hyphens: none;
|
930
|
+
}
|
854
931
|
|
855
|
-
|
856
|
-
|
932
|
+
code:not(pre code) {
|
933
|
+
background: var(--article-code-background-color);
|
934
|
+
border-radius: 0.375rem;
|
935
|
+
border: .1rem solid var(--article-code-border-color);
|
936
|
+
display: inline;
|
937
|
+
overflow-x: auto;
|
938
|
+
overflow: auto;
|
939
|
+
padding: 0.1rem 0.2rem;
|
940
|
+
word-break: break-word;
|
941
|
+
}
|
942
|
+
}
|
857
943
|
}
|