Commit | Line | Data |
---|---|---|
24c3fcb4 JB |
1 | :root { |
2 | /* Light */ | |
a76fac14 JB |
3 | --light-color-background: #f2f4f8; |
4 | --light-color-background-secondary: #eff0f1; | |
cfc6e8df | 5 | --light-color-warning-text: #222; |
6 | --light-color-background-warning: #e6e600; | |
a76fac14 JB |
7 | --light-color-icon-background: var(--light-color-background); |
8 | --light-color-accent: #c5c7c9; | |
24c3fcb4 JB |
9 | --light-color-text: #222; |
10 | --light-color-text-aside: #707070; | |
3bd6a82e | 11 | --light-color-link: #1f70c2; |
12 | ||
13 | --light-color-ts-project: #b111c9; | |
14 | --light-color-ts-module: var(--light-color-ts-project); | |
15 | --light-color-ts-namespace: var(--light-color-ts-project); | |
16 | --light-color-ts-enum: #7e6f15; | |
17 | --light-color-ts-enum-member: var(--light-color-ts-enum); | |
18 | --light-color-ts-variable: #4760ec; | |
a76fac14 | 19 | --light-color-ts-function: #572be7; |
3bd6a82e | 20 | --light-color-ts-class: #1f70c2; |
21 | --light-color-ts-interface: #108024; | |
22 | --light-color-ts-constructor: var(--light-color-ts-class); | |
23 | --light-color-ts-property: var(--light-color-ts-variable); | |
24 | --light-color-ts-method: var(--light-color-ts-function); | |
25 | --light-color-ts-call-signature: var(--light-color-ts-method); | |
26 | --light-color-ts-index-signature: var(--light-color-ts-property); | |
27 | --light-color-ts-constructor-signature: var(--light-color-ts-constructor); | |
28 | --light-color-ts-parameter: var(--light-color-ts-variable); | |
29 | /* type literal not included as links will never be generated to it */ | |
30 | --light-color-ts-type-parameter: var(--light-color-ts-type-alias); | |
31 | --light-color-ts-accessor: var(--light-color-ts-property); | |
32 | --light-color-ts-get-signature: var(--light-color-ts-accessor); | |
33 | --light-color-ts-set-signature: var(--light-color-ts-accessor); | |
34 | /* object literal not included as it is not used and will be removed in 0.25 */ | |
35 | --light-color-ts-type-alias: #d51270; | |
36 | /* reference not included as links will be colored with the kind that it points to */ | |
37 | ||
24c3fcb4 | 38 | --light-external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23000' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>"); |
a76fac14 | 39 | --light-color-scheme: light; |
24c3fcb4 JB |
40 | |
41 | /* Dark */ | |
a76fac14 JB |
42 | --dark-color-background: #2b2e33; |
43 | --dark-color-background-secondary: #1e2024; | |
cfc6e8df | 44 | --dark-color-background-warning: #bebe00; |
45 | --dark-color-warning-text: #222; | |
a76fac14 JB |
46 | --dark-color-icon-background: var(--dark-color-background-secondary); |
47 | --dark-color-accent: #9096a2; | |
48 | --dark-color-text: #f5f5f5; | |
49 | --dark-color-text-aside: #dddddd; | |
24c3fcb4 | 50 | --dark-color-link: #00aff4; |
3bd6a82e | 51 | |
52 | --dark-color-ts-project: #e14dff; | |
53 | --dark-color-ts-module: var(--dark-color-ts-project); | |
54 | --dark-color-ts-namespace: var(--dark-color-ts-project); | |
a76fac14 | 55 | --dark-color-ts-enum: #f4d93e; |
3bd6a82e | 56 | --dark-color-ts-enum-member: var(--dark-color-ts-enum); |
a76fac14 | 57 | --dark-color-ts-variable: #4d68ff; |
3bd6a82e | 58 | --dark-color-ts-function: #9772ff; |
59 | --dark-color-ts-class: #61b0ff; | |
60 | --dark-color-ts-interface: #6cff87; | |
61 | --dark-color-ts-constructor: var(--dark-color-ts-class); | |
62 | --dark-color-ts-property: var(--dark-color-ts-variable); | |
63 | --dark-color-ts-method: var(--dark-color-ts-function); | |
64 | --dark-color-ts-call-signature: var(--dark-color-ts-method); | |
65 | --dark-color-ts-index-signature: var(--dark-color-ts-property); | |
66 | --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); | |
67 | --dark-color-ts-parameter: var(--dark-color-ts-variable); | |
68 | /* type literal not included as links will never be generated to it */ | |
69 | --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias); | |
70 | --dark-color-ts-accessor: var(--dark-color-ts-property); | |
71 | --dark-color-ts-get-signature: var(--dark-color-ts-accessor); | |
72 | --dark-color-ts-set-signature: var(--dark-color-ts-accessor); | |
73 | /* object literal not included as it is not used and will be removed in 0.25 */ | |
74 | --dark-color-ts-type-alias: #ff6492; | |
75 | /* reference not included as links will be colored with the kind that it points to */ | |
76 | ||
24c3fcb4 | 77 | --dark-external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23fff' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>"); |
a76fac14 | 78 | --dark-color-scheme: dark; |
24c3fcb4 JB |
79 | } |
80 | ||
81 | @media (prefers-color-scheme: light) { | |
82 | :root { | |
83 | --color-background: var(--light-color-background); | |
a76fac14 | 84 | --color-background-secondary: var(--light-color-background-secondary); |
cfc6e8df | 85 | --color-background-warning: var(--light-color-background-warning); |
86 | --color-warning-text: var(--light-color-warning-text); | |
a76fac14 JB |
87 | --color-icon-background: var(--light-color-icon-background); |
88 | --color-accent: var(--light-color-accent); | |
24c3fcb4 JB |
89 | --color-text: var(--light-color-text); |
90 | --color-text-aside: var(--light-color-text-aside); | |
91 | --color-link: var(--light-color-link); | |
3bd6a82e | 92 | |
93 | --color-ts-module: var(--light-color-ts-module); | |
a76fac14 | 94 | --color-ts-namespace: var(--light-color-ts-namespace); |
3bd6a82e | 95 | --color-ts-enum: var(--light-color-ts-enum); |
96 | --color-ts-enum-member: var(--light-color-ts-enum-member); | |
a76fac14 | 97 | --color-ts-variable: var(--light-color-ts-variable); |
3bd6a82e | 98 | --color-ts-function: var(--light-color-ts-function); |
99 | --color-ts-class: var(--light-color-ts-class); | |
100 | --color-ts-interface: var(--light-color-ts-interface); | |
101 | --color-ts-constructor: var(--light-color-ts-constructor); | |
102 | --color-ts-property: var(--light-color-ts-property); | |
103 | --color-ts-method: var(--light-color-ts-method); | |
104 | --color-ts-call-signature: var(--light-color-ts-call-signature); | |
105 | --color-ts-index-signature: var(--light-color-ts-index-signature); | |
106 | --color-ts-constructor-signature: var( | |
107 | --light-color-ts-constructor-signature | |
108 | ); | |
109 | --color-ts-parameter: var(--light-color-ts-parameter); | |
110 | --color-ts-type-parameter: var(--light-color-ts-type-parameter); | |
111 | --color-ts-accessor: var(--light-color-ts-accessor); | |
112 | --color-ts-get-signature: var(--light-color-ts-get-signature); | |
113 | --color-ts-set-signature: var(--light-color-ts-set-signature); | |
114 | --color-ts-type-alias: var(--light-color-ts-type-alias); | |
115 | ||
24c3fcb4 | 116 | --external-icon: var(--light-external-icon); |
a76fac14 | 117 | --color-scheme: var(--light-color-scheme); |
24c3fcb4 JB |
118 | } |
119 | } | |
120 | ||
121 | @media (prefers-color-scheme: dark) { | |
122 | :root { | |
123 | --color-background: var(--dark-color-background); | |
a76fac14 | 124 | --color-background-secondary: var(--dark-color-background-secondary); |
cfc6e8df | 125 | --color-background-warning: var(--dark-color-background-warning); |
126 | --color-warning-text: var(--dark-color-warning-text); | |
a76fac14 JB |
127 | --color-icon-background: var(--dark-color-icon-background); |
128 | --color-accent: var(--dark-color-accent); | |
24c3fcb4 JB |
129 | --color-text: var(--dark-color-text); |
130 | --color-text-aside: var(--dark-color-text-aside); | |
131 | --color-link: var(--dark-color-link); | |
3bd6a82e | 132 | |
133 | --color-ts-module: var(--dark-color-ts-module); | |
a76fac14 | 134 | --color-ts-namespace: var(--dark-color-ts-namespace); |
3bd6a82e | 135 | --color-ts-enum: var(--dark-color-ts-enum); |
136 | --color-ts-enum-member: var(--dark-color-ts-enum-member); | |
a76fac14 | 137 | --color-ts-variable: var(--dark-color-ts-variable); |
3bd6a82e | 138 | --color-ts-function: var(--dark-color-ts-function); |
139 | --color-ts-class: var(--dark-color-ts-class); | |
140 | --color-ts-interface: var(--dark-color-ts-interface); | |
141 | --color-ts-constructor: var(--dark-color-ts-constructor); | |
142 | --color-ts-property: var(--dark-color-ts-property); | |
143 | --color-ts-method: var(--dark-color-ts-method); | |
144 | --color-ts-call-signature: var(--dark-color-ts-call-signature); | |
145 | --color-ts-index-signature: var(--dark-color-ts-index-signature); | |
146 | --color-ts-constructor-signature: var( | |
147 | --dark-color-ts-constructor-signature | |
148 | ); | |
149 | --color-ts-parameter: var(--dark-color-ts-parameter); | |
150 | --color-ts-type-parameter: var(--dark-color-ts-type-parameter); | |
151 | --color-ts-accessor: var(--dark-color-ts-accessor); | |
152 | --color-ts-get-signature: var(--dark-color-ts-get-signature); | |
153 | --color-ts-set-signature: var(--dark-color-ts-set-signature); | |
154 | --color-ts-type-alias: var(--dark-color-ts-type-alias); | |
155 | ||
24c3fcb4 | 156 | --external-icon: var(--dark-external-icon); |
a76fac14 | 157 | --color-scheme: var(--dark-color-scheme); |
24c3fcb4 JB |
158 | } |
159 | } | |
160 | ||
a76fac14 JB |
161 | html { |
162 | color-scheme: var(--color-scheme); | |
163 | } | |
164 | ||
24c3fcb4 JB |
165 | body { |
166 | margin: 0; | |
167 | } | |
168 | ||
a76fac14 | 169 | :root[data-theme="light"] { |
24c3fcb4 | 170 | --color-background: var(--light-color-background); |
a76fac14 | 171 | --color-background-secondary: var(--light-color-background-secondary); |
cfc6e8df | 172 | --color-background-warning: var(--light-color-background-warning); |
173 | --color-warning-text: var(--light-color-warning-text); | |
a76fac14 JB |
174 | --color-icon-background: var(--light-color-icon-background); |
175 | --color-accent: var(--light-color-accent); | |
24c3fcb4 JB |
176 | --color-text: var(--light-color-text); |
177 | --color-text-aside: var(--light-color-text-aside); | |
178 | --color-link: var(--light-color-link); | |
3bd6a82e | 179 | |
180 | --color-ts-module: var(--light-color-ts-module); | |
a76fac14 | 181 | --color-ts-namespace: var(--light-color-ts-namespace); |
3bd6a82e | 182 | --color-ts-enum: var(--light-color-ts-enum); |
183 | --color-ts-enum-member: var(--light-color-ts-enum-member); | |
a76fac14 | 184 | --color-ts-variable: var(--light-color-ts-variable); |
3bd6a82e | 185 | --color-ts-function: var(--light-color-ts-function); |
186 | --color-ts-class: var(--light-color-ts-class); | |
187 | --color-ts-interface: var(--light-color-ts-interface); | |
188 | --color-ts-constructor: var(--light-color-ts-constructor); | |
189 | --color-ts-property: var(--light-color-ts-property); | |
190 | --color-ts-method: var(--light-color-ts-method); | |
191 | --color-ts-call-signature: var(--light-color-ts-call-signature); | |
192 | --color-ts-index-signature: var(--light-color-ts-index-signature); | |
193 | --color-ts-constructor-signature: var( | |
194 | --light-color-ts-constructor-signature | |
195 | ); | |
196 | --color-ts-parameter: var(--light-color-ts-parameter); | |
197 | --color-ts-type-parameter: var(--light-color-ts-type-parameter); | |
198 | --color-ts-accessor: var(--light-color-ts-accessor); | |
199 | --color-ts-get-signature: var(--light-color-ts-get-signature); | |
200 | --color-ts-set-signature: var(--light-color-ts-set-signature); | |
201 | --color-ts-type-alias: var(--light-color-ts-type-alias); | |
202 | ||
24c3fcb4 | 203 | --external-icon: var(--light-external-icon); |
a76fac14 | 204 | --color-scheme: var(--light-color-scheme); |
24c3fcb4 JB |
205 | } |
206 | ||
a76fac14 | 207 | :root[data-theme="dark"] { |
24c3fcb4 | 208 | --color-background: var(--dark-color-background); |
a76fac14 | 209 | --color-background-secondary: var(--dark-color-background-secondary); |
cfc6e8df | 210 | --color-background-warning: var(--dark-color-background-warning); |
211 | --color-warning-text: var(--dark-color-warning-text); | |
a76fac14 JB |
212 | --color-icon-background: var(--dark-color-icon-background); |
213 | --color-accent: var(--dark-color-accent); | |
24c3fcb4 JB |
214 | --color-text: var(--dark-color-text); |
215 | --color-text-aside: var(--dark-color-text-aside); | |
216 | --color-link: var(--dark-color-link); | |
3bd6a82e | 217 | |
218 | --color-ts-module: var(--dark-color-ts-module); | |
a76fac14 | 219 | --color-ts-namespace: var(--dark-color-ts-namespace); |
3bd6a82e | 220 | --color-ts-enum: var(--dark-color-ts-enum); |
221 | --color-ts-enum-member: var(--dark-color-ts-enum-member); | |
a76fac14 | 222 | --color-ts-variable: var(--dark-color-ts-variable); |
3bd6a82e | 223 | --color-ts-function: var(--dark-color-ts-function); |
224 | --color-ts-class: var(--dark-color-ts-class); | |
225 | --color-ts-interface: var(--dark-color-ts-interface); | |
226 | --color-ts-constructor: var(--dark-color-ts-constructor); | |
227 | --color-ts-property: var(--dark-color-ts-property); | |
228 | --color-ts-method: var(--dark-color-ts-method); | |
229 | --color-ts-call-signature: var(--dark-color-ts-call-signature); | |
230 | --color-ts-index-signature: var(--dark-color-ts-index-signature); | |
231 | --color-ts-constructor-signature: var( | |
232 | --dark-color-ts-constructor-signature | |
233 | ); | |
234 | --color-ts-parameter: var(--dark-color-ts-parameter); | |
235 | --color-ts-type-parameter: var(--dark-color-ts-type-parameter); | |
236 | --color-ts-accessor: var(--dark-color-ts-accessor); | |
237 | --color-ts-get-signature: var(--dark-color-ts-get-signature); | |
238 | --color-ts-set-signature: var(--dark-color-ts-set-signature); | |
239 | --color-ts-type-alias: var(--dark-color-ts-type-alias); | |
240 | ||
24c3fcb4 | 241 | --external-icon: var(--dark-external-icon); |
a76fac14 JB |
242 | --color-scheme: var(--dark-color-scheme); |
243 | } | |
244 | ||
cfc6e8df | 245 | .always-visible, |
246 | .always-visible .tsd-signatures { | |
247 | display: inherit !important; | |
248 | } | |
249 | ||
a76fac14 JB |
250 | h1, |
251 | h2, | |
252 | h3, | |
253 | h4, | |
254 | h5, | |
255 | h6 { | |
256 | line-height: 1.2; | |
24c3fcb4 JB |
257 | } |
258 | ||
259 | h1 { | |
a76fac14 JB |
260 | font-size: 1.875rem; |
261 | margin: 0.67rem 0; | |
24c3fcb4 JB |
262 | } |
263 | ||
264 | h2 { | |
a76fac14 JB |
265 | font-size: 1.5rem; |
266 | margin: 0.83rem 0; | |
24c3fcb4 JB |
267 | } |
268 | ||
269 | h3 { | |
a76fac14 JB |
270 | font-size: 1.25rem; |
271 | margin: 1rem 0; | |
24c3fcb4 JB |
272 | } |
273 | ||
a76fac14 JB |
274 | h4 { |
275 | font-size: 1.05rem; | |
276 | margin: 1.33rem 0; | |
24c3fcb4 JB |
277 | } |
278 | ||
279 | h5 { | |
a76fac14 JB |
280 | font-size: 1rem; |
281 | margin: 1.5rem 0; | |
24c3fcb4 JB |
282 | } |
283 | ||
284 | h6 { | |
a76fac14 JB |
285 | font-size: 0.875rem; |
286 | margin: 2.33rem 0; | |
287 | } | |
288 | ||
289 | .uppercase { | |
290 | text-transform: uppercase; | |
24c3fcb4 JB |
291 | } |
292 | ||
293 | pre { | |
294 | white-space: pre; | |
295 | white-space: pre-wrap; | |
296 | word-wrap: break-word; | |
297 | } | |
298 | ||
299 | dl, | |
300 | menu, | |
301 | ol, | |
302 | ul { | |
303 | margin: 1em 0; | |
304 | } | |
305 | ||
306 | dd { | |
307 | margin: 0 0 0 40px; | |
308 | } | |
309 | ||
310 | .container { | |
ec06e4dd | 311 | max-width: 1700px; |
a76fac14 JB |
312 | padding: 0 2rem; |
313 | } | |
314 | ||
a76fac14 JB |
315 | /* Footer */ |
316 | .tsd-generator { | |
317 | border-top: 1px solid var(--color-accent); | |
318 | padding-top: 1rem; | |
319 | padding-bottom: 1rem; | |
320 | max-height: 3.5rem; | |
321 | } | |
322 | ||
323 | .tsd-generator > p { | |
324 | margin-top: 0; | |
325 | margin-bottom: 0; | |
326 | padding: 0 1rem; | |
24c3fcb4 JB |
327 | } |
328 | ||
a76fac14 | 329 | .container-main { |
a76fac14 | 330 | margin: 0 auto; |
ec06e4dd | 331 | /* toolbar, footer, margin */ |
332 | min-height: calc(100vh - 41px - 56px - 4rem); | |
24c3fcb4 JB |
333 | } |
334 | ||
335 | @keyframes fade-in { | |
336 | from { | |
337 | opacity: 0; | |
338 | } | |
339 | to { | |
340 | opacity: 1; | |
341 | } | |
342 | } | |
343 | @keyframes fade-out { | |
344 | from { | |
345 | opacity: 1; | |
346 | visibility: visible; | |
347 | } | |
348 | to { | |
349 | opacity: 0; | |
350 | } | |
351 | } | |
352 | @keyframes fade-in-delayed { | |
353 | 0% { | |
354 | opacity: 0; | |
355 | } | |
356 | 33% { | |
357 | opacity: 0; | |
358 | } | |
359 | 100% { | |
360 | opacity: 1; | |
361 | } | |
362 | } | |
363 | @keyframes fade-out-delayed { | |
364 | 0% { | |
365 | opacity: 1; | |
366 | visibility: visible; | |
367 | } | |
368 | 66% { | |
369 | opacity: 0; | |
370 | } | |
371 | 100% { | |
372 | opacity: 0; | |
373 | } | |
374 | } | |
24c3fcb4 JB |
375 | @keyframes pop-in-from-right { |
376 | from { | |
377 | transform: translate(100%, 0); | |
378 | } | |
379 | to { | |
380 | transform: translate(0, 0); | |
381 | } | |
382 | } | |
383 | @keyframes pop-out-to-right { | |
384 | from { | |
385 | transform: translate(0, 0); | |
386 | visibility: visible; | |
387 | } | |
388 | to { | |
389 | transform: translate(100%, 0); | |
390 | } | |
391 | } | |
392 | body { | |
393 | background: var(--color-background); | |
394 | font-family: "Segoe UI", sans-serif; | |
395 | font-size: 16px; | |
396 | color: var(--color-text); | |
397 | } | |
398 | ||
399 | a { | |
400 | color: var(--color-link); | |
401 | text-decoration: none; | |
402 | } | |
403 | a:hover { | |
404 | text-decoration: underline; | |
405 | } | |
406 | a.external[target="_blank"] { | |
407 | background-image: var(--external-icon); | |
408 | background-position: top 3px right; | |
409 | background-repeat: no-repeat; | |
410 | padding-right: 13px; | |
411 | } | |
412 | ||
413 | code, | |
414 | pre { | |
415 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace; | |
416 | padding: 0.2em; | |
417 | margin: 0; | |
a76fac14 JB |
418 | font-size: 0.875rem; |
419 | border-radius: 0.8em; | |
24c3fcb4 JB |
420 | } |
421 | ||
422 | pre { | |
423 | padding: 10px; | |
a76fac14 | 424 | border: 0.1em solid var(--color-accent); |
24c3fcb4 JB |
425 | } |
426 | pre code { | |
427 | padding: 0; | |
428 | font-size: 100%; | |
429 | } | |
430 | ||
431 | blockquote { | |
432 | margin: 1em 0; | |
433 | padding-left: 1em; | |
434 | border-left: 4px solid gray; | |
435 | } | |
436 | ||
437 | .tsd-typography { | |
438 | line-height: 1.333em; | |
439 | } | |
440 | .tsd-typography ul { | |
441 | list-style: square; | |
442 | padding: 0 0 0 20px; | |
443 | margin: 0; | |
444 | } | |
445 | .tsd-typography h4, | |
446 | .tsd-typography .tsd-index-panel h3, | |
447 | .tsd-index-panel .tsd-typography h3, | |
448 | .tsd-typography h5, | |
449 | .tsd-typography h6 { | |
450 | font-size: 1em; | |
451 | margin: 0; | |
452 | } | |
453 | .tsd-typography h5, | |
454 | .tsd-typography h6 { | |
455 | font-weight: normal; | |
456 | } | |
457 | .tsd-typography p, | |
458 | .tsd-typography ul, | |
459 | .tsd-typography ol { | |
460 | margin: 1em 0; | |
461 | } | |
462 | ||
24c3fcb4 JB |
463 | .tsd-breadcrumb { |
464 | margin: 0; | |
465 | padding: 0; | |
466 | color: var(--color-text-aside); | |
467 | } | |
468 | .tsd-breadcrumb a { | |
469 | color: var(--color-text-aside); | |
470 | text-decoration: none; | |
471 | } | |
472 | .tsd-breadcrumb a:hover { | |
473 | text-decoration: underline; | |
474 | } | |
475 | .tsd-breadcrumb li { | |
476 | display: inline; | |
477 | } | |
478 | .tsd-breadcrumb li:after { | |
479 | content: " / "; | |
480 | } | |
481 | ||
a76fac14 JB |
482 | .tsd-comment-tags { |
483 | display: flex; | |
484 | flex-direction: column; | |
485 | } | |
486 | dl.tsd-comment-tag-group { | |
487 | display: flex; | |
488 | align-items: center; | |
24c3fcb4 | 489 | overflow: hidden; |
a76fac14 | 490 | margin: 0.5em 0; |
24c3fcb4 | 491 | } |
a76fac14 JB |
492 | dl.tsd-comment-tag-group dt { |
493 | display: flex; | |
494 | margin-right: 0.5em; | |
495 | font-size: 0.875em; | |
24c3fcb4 JB |
496 | font-weight: normal; |
497 | } | |
a76fac14 JB |
498 | dl.tsd-comment-tag-group dd { |
499 | margin: 0; | |
500 | } | |
501 | code.tsd-tag { | |
502 | padding: 0.25em 0.4em; | |
503 | border: 0.1em solid var(--color-accent); | |
504 | margin-right: 0.25em; | |
505 | font-size: 70%; | |
506 | } | |
507 | h1 code.tsd-tag:first-of-type { | |
508 | margin-left: 0.25em; | |
24c3fcb4 | 509 | } |
a76fac14 JB |
510 | |
511 | dl.tsd-comment-tag-group dd:before, | |
512 | dl.tsd-comment-tag-group dd:after { | |
24c3fcb4 JB |
513 | content: " "; |
514 | } | |
a76fac14 JB |
515 | dl.tsd-comment-tag-group dd pre, |
516 | dl.tsd-comment-tag-group dd:after { | |
24c3fcb4 JB |
517 | clear: both; |
518 | } | |
a76fac14 | 519 | dl.tsd-comment-tag-group p { |
24c3fcb4 JB |
520 | margin: 0; |
521 | } | |
522 | ||
523 | .tsd-panel.tsd-comment .lead { | |
524 | font-size: 1.1em; | |
525 | line-height: 1.333em; | |
526 | margin-bottom: 2em; | |
527 | } | |
528 | .tsd-panel.tsd-comment .lead:last-child { | |
529 | margin-bottom: 0; | |
530 | } | |
531 | ||
a76fac14 JB |
532 | .tsd-filter-visibility h4 { |
533 | font-size: 1rem; | |
534 | padding-top: 0.75rem; | |
535 | padding-bottom: 0.5rem; | |
536 | margin: 0; | |
24c3fcb4 | 537 | } |
a76fac14 JB |
538 | .tsd-filter-item:not(:last-child) { |
539 | margin-bottom: 0.5rem; | |
24c3fcb4 | 540 | } |
a76fac14 JB |
541 | .tsd-filter-input { |
542 | display: flex; | |
543 | width: fit-content; | |
544 | width: -moz-fit-content; | |
545 | align-items: center; | |
546 | user-select: none; | |
547 | -webkit-user-select: none; | |
548 | -moz-user-select: none; | |
549 | -ms-user-select: none; | |
550 | cursor: pointer; | |
24c3fcb4 | 551 | } |
a76fac14 JB |
552 | .tsd-filter-input input[type="checkbox"] { |
553 | cursor: pointer; | |
554 | position: absolute; | |
555 | width: 1.5em; | |
556 | height: 1.5em; | |
557 | opacity: 0; | |
24c3fcb4 | 558 | } |
a76fac14 JB |
559 | .tsd-filter-input input[type="checkbox"]:disabled { |
560 | pointer-events: none; | |
24c3fcb4 | 561 | } |
a76fac14 JB |
562 | .tsd-filter-input svg { |
563 | cursor: pointer; | |
564 | width: 1.5em; | |
565 | height: 1.5em; | |
566 | margin-right: 0.5em; | |
567 | border-radius: 0.33em; | |
568 | /* Leaving this at full opacity breaks event listeners on Firefox. | |
569 | Don't remove unless you know what you're doing. */ | |
570 | opacity: 0.99; | |
24c3fcb4 | 571 | } |
a76fac14 JB |
572 | .tsd-filter-input input[type="checkbox"]:focus + svg { |
573 | transform: scale(0.95); | |
24c3fcb4 | 574 | } |
a76fac14 JB |
575 | .tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { |
576 | transform: scale(1); | |
24c3fcb4 | 577 | } |
a76fac14 JB |
578 | .tsd-checkbox-background { |
579 | fill: var(--color-accent); | |
24c3fcb4 | 580 | } |
a76fac14 JB |
581 | input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { |
582 | stroke: var(--color-text); | |
24c3fcb4 | 583 | } |
a76fac14 JB |
584 | .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { |
585 | fill: var(--color-background); | |
586 | stroke: var(--color-accent); | |
587 | stroke-width: 0.25rem; | |
24c3fcb4 | 588 | } |
a76fac14 JB |
589 | .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { |
590 | stroke: var(--color-accent); | |
24c3fcb4 | 591 | } |
a76fac14 JB |
592 | |
593 | .tsd-theme-toggle { | |
594 | padding-top: 0.75rem; | |
24c3fcb4 | 595 | } |
a76fac14 JB |
596 | .tsd-theme-toggle > h4 { |
597 | display: inline; | |
598 | vertical-align: middle; | |
599 | margin-right: 0.75rem; | |
24c3fcb4 JB |
600 | } |
601 | ||
602 | .tsd-hierarchy { | |
603 | list-style: square; | |
24c3fcb4 JB |
604 | margin: 0; |
605 | } | |
606 | .tsd-hierarchy .target { | |
607 | font-weight: bold; | |
608 | } | |
609 | ||
a76fac14 JB |
610 | .tsd-panel-group.tsd-index-group { |
611 | margin-bottom: 0; | |
612 | } | |
613 | .tsd-index-panel .tsd-index-list { | |
24c3fcb4 JB |
614 | list-style: none; |
615 | line-height: 1.333em; | |
a76fac14 JB |
616 | margin: 0; |
617 | padding: 0.25rem 0 0 0; | |
618 | overflow: hidden; | |
619 | display: grid; | |
620 | grid-template-columns: repeat(3, 1fr); | |
621 | column-gap: 1rem; | |
622 | grid-template-rows: auto; | |
623 | } | |
624 | @media (max-width: 1024px) { | |
625 | .tsd-index-panel .tsd-index-list { | |
626 | grid-template-columns: repeat(2, 1fr); | |
24c3fcb4 JB |
627 | } |
628 | } | |
a76fac14 JB |
629 | @media (max-width: 768px) { |
630 | .tsd-index-panel .tsd-index-list { | |
631 | grid-template-columns: repeat(1, 1fr); | |
24c3fcb4 JB |
632 | } |
633 | } | |
a76fac14 | 634 | .tsd-index-panel .tsd-index-list li { |
24c3fcb4 JB |
635 | -webkit-page-break-inside: avoid; |
636 | -moz-page-break-inside: avoid; | |
637 | -ms-page-break-inside: avoid; | |
638 | -o-page-break-inside: avoid; | |
639 | page-break-inside: avoid; | |
640 | } | |
24c3fcb4 JB |
641 | |
642 | .tsd-flag { | |
643 | display: inline-block; | |
a76fac14 | 644 | padding: 0.25em 0.4em; |
24c3fcb4 JB |
645 | border-radius: 4px; |
646 | color: var(--color-comment-tag-text); | |
647 | background-color: var(--color-comment-tag); | |
648 | text-indent: 0; | |
a76fac14 JB |
649 | font-size: 75%; |
650 | line-height: 1; | |
24c3fcb4 JB |
651 | font-weight: normal; |
652 | } | |
653 | ||
654 | .tsd-anchor { | |
ec06e4dd | 655 | position: relative; |
24c3fcb4 JB |
656 | top: -100px; |
657 | } | |
658 | ||
659 | .tsd-member { | |
660 | position: relative; | |
661 | } | |
662 | .tsd-member .tsd-anchor + h3 { | |
a76fac14 JB |
663 | display: flex; |
664 | align-items: center; | |
24c3fcb4 JB |
665 | margin-top: 0; |
666 | margin-bottom: 0; | |
667 | border-bottom: none; | |
668 | } | |
24c3fcb4 | 669 | |
ec06e4dd | 670 | .tsd-navigation.settings { |
671 | margin: 1rem 0; | |
672 | } | |
673 | .tsd-navigation a, | |
674 | .tsd-page-navigation a { | |
675 | display: inline-flex; | |
676 | align-items: center; | |
3bd6a82e | 677 | padding: 0.25rem; |
24c3fcb4 JB |
678 | color: var(--color-text); |
679 | text-decoration: none; | |
3bd6a82e | 680 | box-sizing: border-box; |
24c3fcb4 | 681 | } |
ec06e4dd | 682 | .tsd-navigation a { |
683 | /* why 3rem? No idea, but it seems to work. */ | |
684 | width: calc(100% - 3rem); | |
685 | } | |
686 | .tsd-page-navigation a { | |
687 | /* why is this different? */ | |
688 | width: 100%; | |
689 | } | |
690 | .tsd-navigation a.current, | |
691 | .tsd-page-navigation a.current { | |
692 | background: var(--color-accent); | |
693 | } | |
694 | .tsd-navigation a:hover, | |
695 | .tsd-page-navigation a:hover { | |
24c3fcb4 JB |
696 | text-decoration: underline; |
697 | } | |
ec06e4dd | 698 | .tsd-navigation ul, |
699 | .tsd-page-navigation ul { | |
24c3fcb4 JB |
700 | margin: 0; |
701 | padding: 0; | |
702 | list-style: none; | |
703 | } | |
ec06e4dd | 704 | .tsd-navigation li, |
705 | .tsd-page-navigation li { | |
24c3fcb4 | 706 | padding: 0; |
ec06e4dd | 707 | max-width: 100%; |
24c3fcb4 | 708 | } |
ec06e4dd | 709 | .tsd-nested-navigation > li > a { |
710 | margin-left: 3rem; | |
24c3fcb4 | 711 | } |
ec06e4dd | 712 | .tsd-nested-navigation > li > details { |
a76fac14 | 713 | margin-left: 1.5rem; |
24c3fcb4 | 714 | } |
ec06e4dd | 715 | .tsd-small-nested-navigation > li > a { |
716 | margin-left: 1.5rem; | |
24c3fcb4 | 717 | } |
ec06e4dd | 718 | .tsd-small-nested-navigation > li > details { |
719 | margin-left: 0; | |
24c3fcb4 | 720 | } |
ec06e4dd | 721 | .tsd-page-navigation ul { |
722 | padding-left: 1.75rem; | |
a76fac14 JB |
723 | } |
724 | ||
41015374 JB |
725 | #tsd-sidebar-links a { |
726 | margin-top: 0; | |
727 | margin-bottom: 0.5rem; | |
728 | line-height: 1.25rem; | |
729 | } | |
730 | #tsd-sidebar-links a:last-of-type { | |
731 | margin-bottom: 0; | |
732 | } | |
733 | ||
a76fac14 | 734 | a.tsd-index-link { |
ec06e4dd | 735 | padding: 0.25rem 0 !important; |
a76fac14 JB |
736 | font-size: 1rem; |
737 | line-height: 1.25rem; | |
738 | display: inline-flex; | |
739 | align-items: center; | |
740 | } | |
ec06e4dd | 741 | .tsd-accordion-summary, |
742 | .tsd-accordion-summary a { | |
a76fac14 JB |
743 | user-select: none; |
744 | -moz-user-select: none; | |
745 | -webkit-user-select: none; | |
746 | -ms-user-select: none; | |
ec06e4dd | 747 | |
748 | display: flex; | |
749 | align-items: center; | |
a76fac14 | 750 | cursor: pointer; |
24c3fcb4 | 751 | } |
a76fac14 JB |
752 | .tsd-accordion-summary > * { |
753 | margin-top: 0; | |
754 | margin-bottom: 0; | |
755 | padding-top: 0; | |
756 | padding-bottom: 0; | |
24c3fcb4 | 757 | } |
a76fac14 JB |
758 | .tsd-accordion-summary::-webkit-details-marker { |
759 | display: none; | |
24c3fcb4 | 760 | } |
a76fac14 JB |
761 | .tsd-index-accordion .tsd-accordion-summary svg { |
762 | margin-right: 0.25rem; | |
24c3fcb4 | 763 | } |
a76fac14 JB |
764 | .tsd-index-content > :not(:first-child) { |
765 | margin-top: 0.75rem; | |
766 | } | |
767 | .tsd-index-heading { | |
768 | margin-top: 1.5rem; | |
769 | margin-bottom: 0.75rem; | |
770 | } | |
771 | ||
772 | .tsd-kind-icon { | |
773 | margin-right: 0.5rem; | |
774 | width: 1.25rem; | |
775 | height: 1.25rem; | |
776 | min-width: 1.25rem; | |
777 | min-height: 1.25rem; | |
778 | } | |
779 | .tsd-kind-icon path { | |
780 | transform-origin: center; | |
781 | transform: scale(1.1); | |
782 | } | |
783 | .tsd-signature > .tsd-kind-icon { | |
784 | margin-right: 0.8rem; | |
24c3fcb4 JB |
785 | } |
786 | ||
24c3fcb4 | 787 | .tsd-panel { |
a76fac14 JB |
788 | margin-bottom: 2.5rem; |
789 | } | |
790 | .tsd-panel.tsd-member { | |
791 | margin-bottom: 4rem; | |
24c3fcb4 JB |
792 | } |
793 | .tsd-panel:empty { | |
794 | display: none; | |
795 | } | |
796 | .tsd-panel > h1, | |
797 | .tsd-panel > h2, | |
798 | .tsd-panel > h3 { | |
a76fac14 JB |
799 | margin: 1.5rem -1.5rem 0.75rem -1.5rem; |
800 | padding: 0 1.5rem 0.75rem 1.5rem; | |
24c3fcb4 JB |
801 | } |
802 | .tsd-panel > h1.tsd-before-signature, | |
803 | .tsd-panel > h2.tsd-before-signature, | |
804 | .tsd-panel > h3.tsd-before-signature { | |
805 | margin-bottom: 0; | |
a76fac14 | 806 | border-bottom: none; |
24c3fcb4 JB |
807 | } |
808 | ||
809 | .tsd-panel-group { | |
a76fac14 | 810 | margin: 4rem 0; |
24c3fcb4 | 811 | } |
a76fac14 JB |
812 | .tsd-panel-group.tsd-index-group { |
813 | margin: 2rem 0; | |
814 | } | |
815 | .tsd-panel-group.tsd-index-group details { | |
816 | margin: 2rem 0; | |
24c3fcb4 JB |
817 | } |
818 | ||
819 | #tsd-search { | |
820 | transition: background-color 0.2s; | |
821 | } | |
822 | #tsd-search .title { | |
823 | position: relative; | |
824 | z-index: 2; | |
825 | } | |
826 | #tsd-search .field { | |
827 | position: absolute; | |
828 | left: 0; | |
829 | top: 0; | |
a76fac14 JB |
830 | right: 2.5rem; |
831 | height: 100%; | |
24c3fcb4 JB |
832 | } |
833 | #tsd-search .field input { | |
834 | box-sizing: border-box; | |
835 | position: relative; | |
836 | top: -50px; | |
837 | z-index: 1; | |
838 | width: 100%; | |
839 | padding: 0 10px; | |
840 | opacity: 0; | |
841 | outline: 0; | |
842 | border: 0; | |
843 | background: transparent; | |
844 | color: var(--color-text); | |
845 | } | |
846 | #tsd-search .field label { | |
847 | position: absolute; | |
848 | overflow: hidden; | |
849 | right: -40px; | |
850 | } | |
851 | #tsd-search .field input, | |
41015374 JB |
852 | #tsd-search .title, |
853 | #tsd-toolbar-links a { | |
24c3fcb4 JB |
854 | transition: opacity 0.2s; |
855 | } | |
856 | #tsd-search .results { | |
857 | position: absolute; | |
858 | visibility: hidden; | |
859 | top: 40px; | |
860 | width: 100%; | |
861 | margin: 0; | |
862 | padding: 0; | |
863 | list-style: none; | |
864 | box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); | |
865 | } | |
866 | #tsd-search .results li { | |
867 | padding: 0 10px; | |
868 | background-color: var(--color-background); | |
869 | } | |
870 | #tsd-search .results li:nth-child(even) { | |
a76fac14 | 871 | background-color: var(--color-background-secondary); |
24c3fcb4 JB |
872 | } |
873 | #tsd-search .results li.state { | |
874 | display: none; | |
875 | } | |
876 | #tsd-search .results li.current, | |
877 | #tsd-search .results li:hover { | |
a76fac14 | 878 | background-color: var(--color-accent); |
24c3fcb4 JB |
879 | } |
880 | #tsd-search .results a { | |
881 | display: block; | |
882 | } | |
883 | #tsd-search .results a:before { | |
884 | top: 10px; | |
885 | } | |
886 | #tsd-search .results span.parent { | |
887 | color: var(--color-text-aside); | |
888 | font-weight: normal; | |
889 | } | |
890 | #tsd-search.has-focus { | |
a76fac14 | 891 | background-color: var(--color-accent); |
24c3fcb4 JB |
892 | } |
893 | #tsd-search.has-focus .field input { | |
894 | top: 0; | |
895 | opacity: 1; | |
896 | } | |
41015374 JB |
897 | #tsd-search.has-focus .title, |
898 | #tsd-search.has-focus #tsd-toolbar-links a { | |
24c3fcb4 JB |
899 | z-index: 0; |
900 | opacity: 0; | |
901 | } | |
902 | #tsd-search.has-focus .results { | |
903 | visibility: visible; | |
904 | } | |
905 | #tsd-search.loading .results li.state.loading { | |
906 | display: block; | |
907 | } | |
908 | #tsd-search.failure .results li.state.failure { | |
909 | display: block; | |
910 | } | |
911 | ||
41015374 JB |
912 | #tsd-toolbar-links { |
913 | position: absolute; | |
914 | top: 0; | |
915 | right: 2rem; | |
916 | height: 100%; | |
917 | display: flex; | |
918 | align-items: center; | |
919 | justify-content: flex-end; | |
920 | } | |
921 | #tsd-toolbar-links a { | |
922 | margin-left: 1.5rem; | |
923 | } | |
924 | #tsd-toolbar-links a:hover { | |
925 | text-decoration: underline; | |
926 | } | |
927 | ||
24c3fcb4 | 928 | .tsd-signature { |
a76fac14 JB |
929 | margin: 0 0 1rem 0; |
930 | padding: 1rem 0.5rem; | |
931 | border: 1px solid var(--color-accent); | |
24c3fcb4 JB |
932 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace; |
933 | font-size: 14px; | |
934 | overflow-x: auto; | |
935 | } | |
24c3fcb4 JB |
936 | |
937 | .tsd-signature-symbol { | |
938 | color: var(--color-text-aside); | |
939 | font-weight: normal; | |
940 | } | |
941 | ||
942 | .tsd-signature-type { | |
943 | font-style: italic; | |
944 | font-weight: normal; | |
945 | } | |
946 | ||
947 | .tsd-signatures { | |
948 | padding: 0; | |
949 | margin: 0 0 1em 0; | |
a76fac14 | 950 | list-style-type: none; |
24c3fcb4 JB |
951 | } |
952 | .tsd-signatures .tsd-signature { | |
953 | margin: 0; | |
a76fac14 | 954 | border-color: var(--color-accent); |
24c3fcb4 | 955 | border-width: 1px 0; |
a76fac14 | 956 | transition: background-color 0.1s; |
24c3fcb4 | 957 | } |
a76fac14 JB |
958 | .tsd-description .tsd-signatures .tsd-signature { |
959 | border-width: 1px; | |
24c3fcb4 JB |
960 | } |
961 | ||
a76fac14 JB |
962 | ul.tsd-parameter-list, |
963 | ul.tsd-type-parameter-list { | |
24c3fcb4 JB |
964 | list-style: square; |
965 | margin: 0; | |
966 | padding-left: 20px; | |
967 | } | |
a76fac14 JB |
968 | ul.tsd-parameter-list > li.tsd-parameter-signature, |
969 | ul.tsd-type-parameter-list > li.tsd-parameter-signature { | |
24c3fcb4 JB |
970 | list-style: none; |
971 | margin-left: -20px; | |
972 | } | |
a76fac14 JB |
973 | ul.tsd-parameter-list h5, |
974 | ul.tsd-type-parameter-list h5 { | |
24c3fcb4 JB |
975 | font-size: 16px; |
976 | margin: 1em 0 0.5em 0; | |
977 | } | |
24c3fcb4 | 978 | .tsd-sources { |
a76fac14 JB |
979 | margin-top: 1rem; |
980 | font-size: 0.875em; | |
24c3fcb4 JB |
981 | } |
982 | .tsd-sources a { | |
983 | color: var(--color-text-aside); | |
984 | text-decoration: underline; | |
985 | } | |
24c3fcb4 JB |
986 | .tsd-sources ul { |
987 | list-style: none; | |
988 | padding: 0; | |
989 | } | |
990 | ||
991 | .tsd-page-toolbar { | |
ec06e4dd | 992 | position: sticky; |
24c3fcb4 JB |
993 | z-index: 1; |
994 | top: 0; | |
995 | left: 0; | |
996 | width: 100%; | |
a76fac14 JB |
997 | color: var(--color-text); |
998 | background: var(--color-background-secondary); | |
999 | border-bottom: 1px var(--color-accent) solid; | |
1000 | transition: transform 0.3s ease-in-out; | |
24c3fcb4 JB |
1001 | } |
1002 | .tsd-page-toolbar a { | |
a76fac14 | 1003 | color: var(--color-text); |
24c3fcb4 JB |
1004 | text-decoration: none; |
1005 | } | |
1006 | .tsd-page-toolbar a.title { | |
1007 | font-weight: bold; | |
1008 | } | |
1009 | .tsd-page-toolbar a.title:hover { | |
1010 | text-decoration: underline; | |
1011 | } | |
a76fac14 JB |
1012 | .tsd-page-toolbar .tsd-toolbar-contents { |
1013 | display: flex; | |
1014 | justify-content: space-between; | |
1015 | height: 2.5rem; | |
1016 | margin: 0 auto; | |
24c3fcb4 JB |
1017 | } |
1018 | .tsd-page-toolbar .table-cell { | |
24c3fcb4 JB |
1019 | position: relative; |
1020 | white-space: nowrap; | |
1021 | line-height: 40px; | |
1022 | } | |
1023 | .tsd-page-toolbar .table-cell:first-child { | |
1024 | width: 100%; | |
1025 | } | |
41015374 JB |
1026 | .tsd-page-toolbar .tsd-toolbar-icon { |
1027 | box-sizing: border-box; | |
1028 | line-height: 0; | |
1029 | padding: 12px 0; | |
1030 | } | |
24c3fcb4 | 1031 | |
24c3fcb4 JB |
1032 | .tsd-widget { |
1033 | display: inline-block; | |
1034 | overflow: hidden; | |
1035 | opacity: 0.8; | |
1036 | height: 40px; | |
1037 | transition: opacity 0.1s, background-color 0.2s; | |
1038 | vertical-align: bottom; | |
1039 | cursor: pointer; | |
1040 | } | |
1041 | .tsd-widget:hover { | |
1042 | opacity: 0.9; | |
1043 | } | |
1044 | .tsd-widget.active { | |
1045 | opacity: 1; | |
a76fac14 | 1046 | background-color: var(--color-accent); |
24c3fcb4 JB |
1047 | } |
1048 | .tsd-widget.no-caption { | |
1049 | width: 40px; | |
1050 | } | |
1051 | .tsd-widget.no-caption:before { | |
1052 | margin: 0; | |
1053 | } | |
a76fac14 | 1054 | |
24c3fcb4 JB |
1055 | .tsd-widget.options, |
1056 | .tsd-widget.menu { | |
1057 | display: none; | |
1058 | } | |
24c3fcb4 JB |
1059 | input[type="checkbox"] + .tsd-widget:before { |
1060 | background-position: -120px 0; | |
1061 | } | |
1062 | input[type="checkbox"]:checked + .tsd-widget:before { | |
1063 | background-position: -160px 0; | |
1064 | } | |
1065 | ||
a76fac14 JB |
1066 | img { |
1067 | max-width: 100%; | |
24c3fcb4 | 1068 | } |
a76fac14 JB |
1069 | |
1070 | .tsd-anchor-icon { | |
1071 | display: inline-flex; | |
1072 | align-items: center; | |
1073 | margin-left: 0.5rem; | |
1074 | vertical-align: middle; | |
1075 | color: var(--color-text); | |
24c3fcb4 | 1076 | } |
a76fac14 JB |
1077 | |
1078 | .tsd-anchor-icon svg { | |
1079 | width: 1em; | |
1080 | height: 1em; | |
24c3fcb4 | 1081 | visibility: hidden; |
24c3fcb4 | 1082 | } |
a76fac14 JB |
1083 | |
1084 | .tsd-anchor-link:hover > .tsd-anchor-icon svg { | |
1085 | visibility: visible; | |
24c3fcb4 | 1086 | } |
a76fac14 JB |
1087 | |
1088 | .deprecated { | |
1089 | text-decoration: line-through; | |
24c3fcb4 | 1090 | } |
a76fac14 | 1091 | |
cfc6e8df | 1092 | .warning { |
1093 | padding: 1rem; | |
1094 | color: var(--color-warning-text); | |
1095 | background: var(--color-background-warning); | |
1096 | } | |
1097 | ||
3bd6a82e | 1098 | .tsd-kind-project { |
1099 | color: var(--color-ts-project); | |
1100 | } | |
1101 | .tsd-kind-module { | |
1102 | color: var(--color-ts-module); | |
1103 | } | |
1104 | .tsd-kind-namespace { | |
1105 | color: var(--color-ts-namespace); | |
1106 | } | |
1107 | .tsd-kind-enum { | |
1108 | color: var(--color-ts-enum); | |
1109 | } | |
1110 | .tsd-kind-enum-member { | |
1111 | color: var(--color-ts-enum-member); | |
1112 | } | |
1113 | .tsd-kind-variable { | |
1114 | color: var(--color-ts-variable); | |
1115 | } | |
1116 | .tsd-kind-function { | |
1117 | color: var(--color-ts-function); | |
1118 | } | |
1119 | .tsd-kind-class { | |
1120 | color: var(--color-ts-class); | |
1121 | } | |
1122 | .tsd-kind-interface { | |
1123 | color: var(--color-ts-interface); | |
1124 | } | |
1125 | .tsd-kind-constructor { | |
1126 | color: var(--color-ts-constructor); | |
1127 | } | |
1128 | .tsd-kind-property { | |
1129 | color: var(--color-ts-property); | |
1130 | } | |
1131 | .tsd-kind-method { | |
1132 | color: var(--color-ts-method); | |
1133 | } | |
1134 | .tsd-kind-call-signature { | |
1135 | color: var(--color-ts-call-signature); | |
1136 | } | |
1137 | .tsd-kind-index-signature { | |
1138 | color: var(--color-ts-index-signature); | |
1139 | } | |
1140 | .tsd-kind-constructor-signature { | |
1141 | color: var(--color-ts-constructor-signature); | |
1142 | } | |
1143 | .tsd-kind-parameter { | |
1144 | color: var(--color-ts-parameter); | |
1145 | } | |
1146 | .tsd-kind-type-literal { | |
1147 | color: var(--color-ts-type-literal); | |
1148 | } | |
1149 | .tsd-kind-type-parameter { | |
1150 | color: var(--color-ts-type-parameter); | |
1151 | } | |
1152 | .tsd-kind-accessor { | |
1153 | color: var(--color-ts-accessor); | |
1154 | } | |
1155 | .tsd-kind-get-signature { | |
1156 | color: var(--color-ts-get-signature); | |
1157 | } | |
1158 | .tsd-kind-set-signature { | |
1159 | color: var(--color-ts-set-signature); | |
1160 | } | |
1161 | .tsd-kind-type-alias { | |
1162 | color: var(--color-ts-type-alias); | |
1163 | } | |
1164 | ||
1165 | /* if we have a kind icon, don't color the text by kind */ | |
1166 | .tsd-kind-icon ~ span { | |
1167 | color: var(--color-text); | |
1168 | } | |
1169 | ||
a76fac14 JB |
1170 | * { |
1171 | scrollbar-width: thin; | |
1172 | scrollbar-color: var(--color-accent) var(--color-icon-background); | |
24c3fcb4 | 1173 | } |
a76fac14 JB |
1174 | |
1175 | *::-webkit-scrollbar { | |
1176 | width: 0.75rem; | |
24c3fcb4 | 1177 | } |
a76fac14 JB |
1178 | |
1179 | *::-webkit-scrollbar-track { | |
1180 | background: var(--color-icon-background); | |
24c3fcb4 JB |
1181 | } |
1182 | ||
a76fac14 JB |
1183 | *::-webkit-scrollbar-thumb { |
1184 | background-color: var(--color-accent); | |
1185 | border-radius: 999rem; | |
1186 | border: 0.25rem solid var(--color-icon-background); | |
24c3fcb4 | 1187 | } |
ec06e4dd | 1188 | |
1189 | /* mobile */ | |
1190 | @media (max-width: 769px) { | |
1191 | .tsd-widget.options, | |
1192 | .tsd-widget.menu { | |
1193 | display: inline-block; | |
1194 | } | |
1195 | ||
1196 | .container-main { | |
1197 | display: flex; | |
1198 | } | |
1199 | html .col-content { | |
1200 | float: none; | |
1201 | max-width: 100%; | |
1202 | width: 100%; | |
1203 | } | |
1204 | html .col-sidebar { | |
1205 | position: fixed !important; | |
1206 | overflow-y: auto; | |
1207 | -webkit-overflow-scrolling: touch; | |
1208 | z-index: 1024; | |
1209 | top: 0 !important; | |
1210 | bottom: 0 !important; | |
1211 | left: auto !important; | |
1212 | right: 0 !important; | |
1213 | padding: 1.5rem 1.5rem 0 0; | |
1214 | width: 75vw; | |
1215 | visibility: hidden; | |
1216 | background-color: var(--color-background); | |
1217 | transform: translate(100%, 0); | |
1218 | } | |
1219 | html .col-sidebar > *:last-child { | |
1220 | padding-bottom: 20px; | |
1221 | } | |
1222 | html .overlay { | |
1223 | content: ""; | |
1224 | display: block; | |
1225 | position: fixed; | |
1226 | z-index: 1023; | |
1227 | top: 0; | |
1228 | left: 0; | |
1229 | right: 0; | |
1230 | bottom: 0; | |
1231 | background-color: rgba(0, 0, 0, 0.75); | |
1232 | visibility: hidden; | |
1233 | } | |
1234 | ||
1235 | .to-has-menu .overlay { | |
1236 | animation: fade-in 0.4s; | |
1237 | } | |
1238 | ||
1239 | .to-has-menu .col-sidebar { | |
1240 | animation: pop-in-from-right 0.4s; | |
1241 | } | |
1242 | ||
1243 | .from-has-menu .overlay { | |
1244 | animation: fade-out 0.4s; | |
1245 | } | |
1246 | ||
1247 | .from-has-menu .col-sidebar { | |
1248 | animation: pop-out-to-right 0.4s; | |
1249 | } | |
1250 | ||
1251 | .has-menu body { | |
1252 | overflow: hidden; | |
1253 | } | |
1254 | .has-menu .overlay { | |
1255 | visibility: visible; | |
1256 | } | |
1257 | .has-menu .col-sidebar { | |
1258 | visibility: visible; | |
1259 | transform: translate(0, 0); | |
1260 | display: flex; | |
1261 | flex-direction: column; | |
1262 | gap: 1.5rem; | |
1263 | max-height: 100vh; | |
1264 | padding: 1rem 2rem; | |
1265 | } | |
1266 | .has-menu .tsd-navigation { | |
1267 | max-height: 100%; | |
1268 | } | |
1269 | } | |
1270 | ||
1271 | /* one sidebar */ | |
1272 | @media (min-width: 770px) { | |
1273 | .container-main { | |
1274 | display: grid; | |
1275 | grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); | |
1276 | grid-template-areas: "sidebar content"; | |
1277 | margin: 2rem auto; | |
1278 | } | |
1279 | ||
1280 | .col-sidebar { | |
1281 | grid-area: sidebar; | |
1282 | } | |
1283 | .col-content { | |
1284 | grid-area: content; | |
1285 | padding: 0 1rem; | |
1286 | } | |
1287 | } | |
1288 | @media (min-width: 770px) and (max-width: 1399px) { | |
1289 | .col-sidebar { | |
1290 | max-height: calc(100vh - 2rem - 42px); | |
1291 | overflow: auto; | |
1292 | position: sticky; | |
1293 | top: 42px; | |
1294 | padding-top: 1rem; | |
1295 | } | |
3bd6a82e | 1296 | .site-menu { |
1297 | margin-top: 1rem; | |
1298 | } | |
ec06e4dd | 1299 | } |
1300 | ||
1301 | /* two sidebars */ | |
1302 | @media (min-width: 1200px) { | |
1303 | .container-main { | |
1304 | grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); | |
1305 | grid-template-areas: "sidebar content toc"; | |
1306 | } | |
1307 | ||
1308 | .col-sidebar { | |
1309 | display: contents; | |
1310 | } | |
1311 | ||
1312 | .page-menu { | |
1313 | grid-area: toc; | |
1314 | padding-left: 1rem; | |
1315 | } | |
1316 | .site-menu { | |
1317 | grid-area: sidebar; | |
1318 | } | |
1319 | ||
1320 | .site-menu { | |
1321 | margin-top: 1rem 0; | |
1322 | } | |
1323 | ||
1324 | .page-menu, | |
1325 | .site-menu { | |
1326 | max-height: calc(100vh - 2rem - 42px); | |
1327 | overflow: auto; | |
1328 | position: sticky; | |
1329 | top: 42px; | |
1330 | } | |
1331 | } |