@clarusjs/theme-docs 0.3.0 → 0.4.1

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.
package/src/theme.css CHANGED
@@ -1,7 +1,412 @@
1
- /* @clarusjs/theme-docs: a quiet reading layout. Every colour, font and size is a custom property on :root (tokens). */
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme {
4
+ :root, :host {
5
+ --spacing: 0.25rem;
6
+ --text-xs: 0.75rem;
7
+ --text-xs--line-height: calc(1 / 0.75);
8
+ --text-sm: 0.875rem;
9
+ --text-sm--line-height: calc(1.25 / 0.875);
10
+ --font-weight-normal: 400;
11
+ --font-weight-medium: 500;
12
+ --font-weight-semibold: 600;
13
+ --font-weight-bold: 700;
14
+ --tracking-wider: 0.05em;
15
+ --leading-snug: 1.375;
16
+ --radius-md: 0.375rem;
17
+ --radius-lg: 0.5rem;
18
+ --radius-xl: 0.75rem;
19
+ --default-transition-duration: 150ms;
20
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
21
+ }
22
+ }
23
+ .m-0 {
24
+ margin: 0px;
25
+ }
26
+ .m-3 {
27
+ margin: calc(var(--spacing) * 3);
28
+ }
29
+ .my-1 {
30
+ margin-block: var(--spacing);
31
+ }
32
+ .my-1\.5 {
33
+ margin-block: calc(var(--spacing) * 1.5);
34
+ }
35
+ .mt-0 {
36
+ margin-top: 0px;
37
+ }
38
+ .mt-0\.5 {
39
+ margin-top: calc(var(--spacing) * 0.5);
40
+ }
41
+ .mt-3 {
42
+ margin-top: calc(var(--spacing) * 3);
43
+ }
44
+ .mt-auto {
45
+ margin-top: auto;
46
+ }
47
+ .mb-1 {
48
+ margin-bottom: var(--spacing);
49
+ }
50
+ .mb-1\.5 {
51
+ margin-bottom: calc(var(--spacing) * 1.5);
52
+ }
53
+ .mb-3 {
54
+ margin-bottom: calc(var(--spacing) * 3);
55
+ }
56
+ .mb-4 {
57
+ margin-bottom: calc(var(--spacing) * 4);
58
+ }
59
+ .-ml-px {
60
+ margin-left: -1px;
61
+ }
62
+ .ml-\[10px\] {
63
+ margin-left: 10px;
64
+ }
65
+ .ml-\[46px\] {
66
+ margin-left: 46px;
67
+ }
68
+ .block {
69
+ display: block;
70
+ }
71
+ .flex {
72
+ display: flex;
73
+ }
74
+ .grid {
75
+ display: grid;
76
+ }
77
+ .size-2 {
78
+ width: calc(var(--spacing) * 2);
79
+ height: calc(var(--spacing) * 2);
80
+ }
81
+ .size-7 {
82
+ width: calc(var(--spacing) * 7);
83
+ height: calc(var(--spacing) * 7);
84
+ }
85
+ .size-\[22px\] {
86
+ width: 22px;
87
+ height: 22px;
88
+ }
89
+ .h-1\.5 {
90
+ height: calc(var(--spacing) * 1.5);
91
+ }
92
+ .h-9 {
93
+ height: calc(var(--spacing) * 9);
94
+ }
95
+ .w-full {
96
+ width: 100%;
97
+ }
98
+ .min-w-0 {
99
+ min-width: 0px;
100
+ }
101
+ .flex-1 {
102
+ flex: 1;
103
+ }
104
+ .flex-none {
105
+ flex: none;
106
+ }
107
+ .cursor-pointer {
108
+ cursor: pointer;
109
+ }
110
+ .list-none {
111
+ list-style-type: none;
112
+ }
113
+ .auto-cols-fr {
114
+ grid-auto-columns: minmax(0, 1fr);
115
+ }
116
+ .grid-flow-col {
117
+ grid-auto-flow: column;
118
+ }
119
+ .flex-col {
120
+ flex-direction: column;
121
+ }
122
+ .place-items-center {
123
+ place-items: center;
124
+ }
125
+ .items-center {
126
+ align-items: center;
127
+ }
128
+ .justify-between {
129
+ justify-content: space-between;
130
+ }
131
+ .gap-1 {
132
+ gap: var(--spacing);
133
+ }
134
+ .gap-2 {
135
+ gap: calc(var(--spacing) * 2);
136
+ }
137
+ .gap-2\.5 {
138
+ gap: calc(var(--spacing) * 2.5);
139
+ }
140
+ .gap-3 {
141
+ gap: calc(var(--spacing) * 3);
142
+ }
143
+ .gap-x-3 {
144
+ column-gap: calc(var(--spacing) * 3);
145
+ }
146
+ .gap-y-1 {
147
+ row-gap: var(--spacing);
148
+ }
149
+ .overflow-y-auto {
150
+ overflow-y: auto;
151
+ }
152
+ .rounded {
153
+ border-radius: 0.25rem;
154
+ }
155
+ .rounded-full {
156
+ border-radius: calc(infinity * 1px);
157
+ }
158
+ .rounded-lg {
159
+ border-radius: var(--radius-lg);
160
+ }
161
+ .rounded-md {
162
+ border-radius: var(--radius-md);
163
+ }
164
+ .rounded-xl {
165
+ border-radius: var(--radius-xl);
166
+ }
167
+ .rounded-r-md {
168
+ border-top-right-radius: var(--radius-md);
169
+ border-bottom-right-radius: var(--radius-md);
170
+ }
171
+ .border {
172
+ border-style: var(--tw-border-style);
173
+ border-width: 1px;
174
+ }
175
+ .border-2 {
176
+ border-style: var(--tw-border-style);
177
+ border-width: 2px;
178
+ }
179
+ .border-t {
180
+ border-top-style: var(--tw-border-style);
181
+ border-top-width: 1px;
182
+ }
183
+ .border-b {
184
+ border-bottom-style: var(--tw-border-style);
185
+ border-bottom-width: 1px;
186
+ }
187
+ .border-l {
188
+ border-left-style: var(--tw-border-style);
189
+ border-left-width: 1px;
190
+ }
191
+ .border-l-2 {
192
+ border-left-style: var(--tw-border-style);
193
+ border-left-width: 2px;
194
+ }
195
+ .border-rule {
196
+ border-color: var(--rule);
197
+ }
198
+ .border-transparent {
199
+ border-color: transparent;
200
+ }
201
+ .bg-accent-soft {
202
+ background-color: var(--accent-soft);
203
+ }
204
+ .bg-bg {
205
+ background-color: var(--bg);
206
+ }
207
+ .bg-surface {
208
+ background-color: var(--surface);
209
+ }
210
+ .bg-xp-soft {
211
+ background-color: var(--xp-soft);
212
+ }
213
+ .p-0 {
214
+ padding: 0px;
215
+ }
216
+ .p-1 {
217
+ padding: var(--spacing);
218
+ }
219
+ .p-3 {
220
+ padding: calc(var(--spacing) * 3);
221
+ }
222
+ .px-1\.5 {
223
+ padding-inline: calc(var(--spacing) * 1.5);
224
+ }
225
+ .px-2\.5 {
226
+ padding-inline: calc(var(--spacing) * 2.5);
227
+ }
228
+ .px-3\.5 {
229
+ padding-inline: calc(var(--spacing) * 3.5);
230
+ }
231
+ .px-4 {
232
+ padding-inline: calc(var(--spacing) * 4);
233
+ }
234
+ .py-1 {
235
+ padding-block: var(--spacing);
236
+ }
237
+ .py-1\.5 {
238
+ padding-block: calc(var(--spacing) * 1.5);
239
+ }
240
+ .py-2 {
241
+ padding-block: calc(var(--spacing) * 2);
242
+ }
243
+ .py-2\.5 {
244
+ padding-block: calc(var(--spacing) * 2.5);
245
+ }
246
+ .py-3 {
247
+ padding-block: calc(var(--spacing) * 3);
248
+ }
249
+ .py-\[5px\] {
250
+ padding-block: 5px;
251
+ }
252
+ .py-px {
253
+ padding-block: 1px;
254
+ }
255
+ .pt-3 {
256
+ padding-top: calc(var(--spacing) * 3);
257
+ }
258
+ .pt-5 {
259
+ padding-top: calc(var(--spacing) * 5);
260
+ }
261
+ .pr-1 {
262
+ padding-right: var(--spacing);
263
+ }
264
+ .pr-2 {
265
+ padding-right: calc(var(--spacing) * 2);
266
+ }
267
+ .pb-4 {
268
+ padding-bottom: calc(var(--spacing) * 4);
269
+ }
270
+ .pl-3 {
271
+ padding-left: calc(var(--spacing) * 3);
272
+ }
273
+ .text-center {
274
+ text-align: center;
275
+ }
276
+ .text-left {
277
+ text-align: left;
278
+ }
279
+ .font-sans {
280
+ font-family: var(--sans);
281
+ }
282
+ .text-sm {
283
+ font-size: var(--text-sm);
284
+ line-height: var(--tw-leading, var(--text-sm--line-height));
285
+ }
286
+ .text-xs {
287
+ font-size: var(--text-xs);
288
+ line-height: var(--tw-leading, var(--text-xs--line-height));
289
+ }
290
+ .text-\[10\.5px\] {
291
+ font-size: 10.5px;
292
+ }
293
+ .text-\[11px\] {
294
+ font-size: 11px;
295
+ }
296
+ .text-\[13px\] {
297
+ font-size: 13px;
298
+ }
299
+ .text-\[17px\] {
300
+ font-size: 17px;
301
+ }
302
+ .leading-4 {
303
+ --tw-leading: calc(var(--spacing) * 4);
304
+ line-height: calc(var(--spacing) * 4);
305
+ }
306
+ .leading-snug {
307
+ --tw-leading: var(--leading-snug);
308
+ line-height: var(--leading-snug);
309
+ }
310
+ .font-bold {
311
+ --tw-font-weight: var(--font-weight-bold);
312
+ font-weight: var(--font-weight-bold);
313
+ }
314
+ .font-medium {
315
+ --tw-font-weight: var(--font-weight-medium);
316
+ font-weight: var(--font-weight-medium);
317
+ }
318
+ .font-semibold {
319
+ --tw-font-weight: var(--font-weight-semibold);
320
+ font-weight: var(--font-weight-semibold);
321
+ }
322
+ .tracking-wider {
323
+ --tw-tracking: var(--tracking-wider);
324
+ letter-spacing: var(--tracking-wider);
325
+ }
326
+ .text-accent {
327
+ color: var(--accent);
328
+ }
329
+ .text-fg {
330
+ color: var(--fg);
331
+ }
332
+ .text-fg\/80 {
333
+ color: var(--fg);
334
+ @supports (color: color-mix(in lab, red, red)) {
335
+ color: color-mix(in oklab, var(--fg) 80%, transparent);
336
+ }
337
+ }
338
+ .text-muted {
339
+ color: var(--muted);
340
+ }
341
+ .text-xp {
342
+ color: var(--xp);
343
+ }
344
+ .uppercase {
345
+ text-transform: uppercase;
346
+ }
347
+ .no-underline {
348
+ text-decoration-line: none;
349
+ }
350
+ .transition-colors {
351
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
352
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
353
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
354
+ }
355
+ .transition-transform {
356
+ transition-property: transform, translate, scale, rotate;
357
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
358
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
359
+ }
360
+ .select-none {
361
+ -webkit-user-select: none;
362
+ user-select: none;
363
+ }
364
+ :is(:where(.group):is([open], :popover-open, :open) .group-open\:rotate-90) {
365
+ rotate: 90deg;
366
+ }
367
+ @media (hover: hover) {
368
+ .hover\:border-accent:hover {
369
+ border-color: var(--accent);
370
+ }
371
+ .hover\:text-fg:hover {
372
+ color: var(--fg);
373
+ }
374
+ }
375
+ .aria-\[current\=page\]\:border-accent[aria-current="page"] {
376
+ border-color: var(--accent);
377
+ }
378
+ .aria-\[current\=page\]\:bg-accent-soft[aria-current="page"] {
379
+ background-color: var(--accent-soft);
380
+ }
381
+ .aria-\[current\=page\]\:font-semibold[aria-current="page"] {
382
+ --tw-font-weight: var(--font-weight-semibold);
383
+ font-weight: var(--font-weight-semibold);
384
+ }
385
+ .aria-\[current\=page\]\:text-accent[aria-current="page"] {
386
+ color: var(--accent);
387
+ }
388
+ .aria-\[current\=true\]\:bg-bg[aria-current="true"] {
389
+ background-color: var(--bg);
390
+ }
391
+ .aria-\[current\=true\]\:text-accent[aria-current="true"] {
392
+ color: var(--accent);
393
+ }
394
+ .aria-\[current\=true\]\:shadow-sm[aria-current="true"] {
395
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
396
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
397
+ }
398
+ .\[\&_a\]\:text-accent a {
399
+ color: var(--accent);
400
+ }
401
+ .\[\&_a\]\:no-underline a {
402
+ text-decoration-line: none;
403
+ }
404
+ .\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker {
405
+ display: none;
406
+ }
2
407
  :root {
3
408
  --header-height: 64px;
4
- --page-width: 1440px; /* the header, sidebar, content and contents columns together */
409
+ --page-width: 1440px;
5
410
  --sidebar-width: 260px;
6
411
  --toc-width: 220px;
7
412
  --bg: #fbfcfc;
@@ -12,7 +417,6 @@
12
417
  --accent: #0b6e70;
13
418
  --accent-soft: rgba(11, 110, 112, 0.1);
14
419
  --code-bg: #f1f5f5;
15
- /* Highlighted code: the theme's own background, and line tints light enough that every token keeps WCAG AA. */
16
420
  --shiki-bg: #ffffff;
17
421
  --line-highlight: rgba(11, 110, 112, 0.07);
18
422
  --line-add: rgba(47, 158, 110, 0.1);
@@ -21,7 +425,6 @@
21
425
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
22
426
  color-scheme: light;
23
427
  }
24
- /* Dark: when the system is dark and light wasn't chosen, or when dark was chosen (theme toggle). */
25
428
  @media (prefers-color-scheme: dark) {
26
429
  :root:not([data-theme='light']) {
27
430
  --bg: #0c1213;
@@ -32,10 +435,10 @@
32
435
  --accent: #4cc9cb;
33
436
  --accent-soft: rgba(76, 201, 203, 0.12);
34
437
  --code-bg: #121b1c;
35
- --shiki-bg: var(--code-bg);
36
- --line-highlight: rgba(76, 201, 203, 0.12);
37
- --line-add: rgba(47, 158, 110, 0.14);
38
- --line-remove: rgba(208, 69, 59, 0.14);
438
+ --shiki-bg: var(--code-bg);
439
+ --line-highlight: rgba(76, 201, 203, 0.12);
440
+ --line-add: rgba(47, 158, 110, 0.14);
441
+ --line-remove: rgba(208, 69, 59, 0.14);
39
442
  color-scheme: dark;
40
443
  }
41
444
  }
@@ -54,25 +457,48 @@
54
457
  --line-remove: rgba(208, 69, 59, 0.14);
55
458
  color-scheme: dark;
56
459
  }
57
- :root[data-theme='light'] { color-scheme: light; }
58
-
59
- * { box-sizing: border-box; }
60
- html { -webkit-text-size-adjust: 100%; }
460
+ :root[data-theme='light'] {
461
+ color-scheme: light;
462
+ }
463
+ * {
464
+ box-sizing: border-box;
465
+ }
466
+ html {
467
+ -webkit-text-size-adjust: 100%;
468
+ }
61
469
  body {
62
470
  margin: 0;
63
471
  background: var(--bg);
64
472
  color: var(--fg);
65
473
  font: 16px/1.65 var(--sans);
66
474
  }
67
- a { color: var(--accent); text-underline-offset: 3px; }
68
- /* Skip link: off screen until it has keyboard focus. */
69
- .skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; }
70
- .skip-link:focus { top: 12px; }
71
- /* Focused by the skip link and after navigation (the new page's heading or <main>), not controls: no ring after a
72
- click; keyboard users keep it so they can see where they are. */
73
- [tabindex="-1"]:focus:not(:focus-visible) { outline: none; } /* keyboard focus (the skip link) keeps its ring */
74
- a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
75
-
475
+ a {
476
+ color: var(--accent);
477
+ text-underline-offset: 3px;
478
+ }
479
+ .skip-link {
480
+ position: absolute;
481
+ left: 12px;
482
+ top: -48px;
483
+ z-index: 100;
484
+ padding: 8px 14px;
485
+ border-radius: 8px;
486
+ background: var(--accent);
487
+ color: var(--bg);
488
+ font-weight: 600;
489
+ text-decoration: none;
490
+ }
491
+ .skip-link:focus {
492
+ top: 12px;
493
+ }
494
+ [tabindex="-1"]:focus:not(:focus-visible) {
495
+ outline: none;
496
+ }
497
+ a:focus-visible, button:focus-visible {
498
+ outline: 2px solid var(--accent);
499
+ outline-offset: 2px;
500
+ border-radius: 4px;
501
+ }
76
502
  .site-header {
77
503
  position: sticky;
78
504
  top: 0;
@@ -81,34 +507,85 @@ a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outlin
81
507
  align-items: center;
82
508
  gap: 12px 24px;
83
509
  background: var(--bg);
84
- /* Its content lines up with the page below (.docs, at most --page-width wide), not the window's edges. */
85
510
  box-sizing: border-box;
86
- min-height: var(--header-height); /* what the sticky sidebar and contents sit under */
511
+ min-height: var(--header-height);
87
512
  padding: 0 max(16px, env(safe-area-inset-right, 0px), calc((100% - var(--page-width)) / 2 + 16px)) 0 max(16px, env(safe-area-inset-left, 0px), calc((100% - var(--page-width)) / 2 + 16px));
88
513
  border-bottom: 1px solid var(--rule);
89
514
  }
90
- .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 650; font-size: 18px; }
91
- .js { color: var(--accent); font-weight: 500; }
92
- .site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
93
- .site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
94
- .site-header nav a:hover { color: var(--fg); }
95
- .site-header nav a[aria-current] { color: var(--accent); font-weight: 600; }
96
-
515
+ .brand {
516
+ display: inline-flex;
517
+ align-items: center;
518
+ color: var(--fg);
519
+ text-decoration-line: none;
520
+ gap: 10px;
521
+ font-weight: 650;
522
+ font-size: 18px;
523
+ }
524
+ .js {
525
+ color: var(--accent);
526
+ font-weight: 500;
527
+ }
528
+ .site-header nav {
529
+ display: flex;
530
+ flex-wrap: wrap;
531
+ gap: 4px 18px;
532
+ }
533
+ .site-header nav a {
534
+ color: var(--muted);
535
+ text-decoration-line: none;
536
+ font-size: 15px;
537
+ }
538
+ .site-header nav a:hover {
539
+ color: var(--fg);
540
+ }
541
+ .site-header nav a[aria-current] {
542
+ --tw-font-weight: var(--font-weight-semibold);
543
+ font-weight: var(--font-weight-semibold);
544
+ color: var(--accent);
545
+ }
97
546
  .content {
98
547
  max-width: 760px;
99
548
  margin: 0 auto;
100
549
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px));
101
550
  }
102
- /* app: a tool that fills the window under the header (a playground); it lays itself out. */
103
- .content.app { max-width: none; margin: 0; padding: 0; height: calc(100dvh - var(--header-height)); display: flex; flex-direction: column; }
104
- @media (max-width: 899px) { .content.app { height: auto; } }
105
- h1, h2 { line-height: 1.2; text-wrap: balance; }
106
- h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 16px; letter-spacing: -0.01em; }
107
- h2 { font-size: 22px; margin: 40px 0 12px; }
108
- p, ul, ol { margin: 0 0 16px; }
109
- li { margin-bottom: 6px; }
110
-
111
- code { font: 0.9em var(--mono); background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
551
+ .content.app {
552
+ max-width: none;
553
+ margin: 0;
554
+ padding: 0;
555
+ height: calc(100dvh - var(--header-height));
556
+ display: flex;
557
+ flex-direction: column;
558
+ }
559
+ @media (max-width: 899px) {
560
+ .content.app {
561
+ height: auto;
562
+ }
563
+ }
564
+ h1, h2 {
565
+ line-height: 1.2;
566
+ text-wrap: balance;
567
+ }
568
+ h1 {
569
+ font-size: clamp(30px, 5vw, 40px);
570
+ margin: 0 0 16px;
571
+ letter-spacing: -0.01em;
572
+ }
573
+ h2 {
574
+ font-size: 22px;
575
+ margin: 40px 0 12px;
576
+ }
577
+ p, ul, ol {
578
+ margin: 0 0 16px;
579
+ }
580
+ li {
581
+ margin-bottom: 6px;
582
+ }
583
+ code {
584
+ font: 0.9em var(--mono);
585
+ background: var(--code-bg);
586
+ padding: 0.1em 0.35em;
587
+ border-radius: 4px;
588
+ }
112
589
  pre {
113
590
  background: var(--code-bg);
114
591
  border: 1px solid var(--rule);
@@ -117,176 +594,668 @@ pre {
117
594
  overflow-x: auto;
118
595
  margin: 0 0 20px;
119
596
  }
120
- pre code { background: none; padding: 0; font-size: 14px; line-height: 1.55; }
121
-
122
-
597
+ pre code {
598
+ background: none;
599
+ padding: 0;
600
+ font-size: 14px;
601
+ line-height: 1.55;
602
+ }
123
603
  .site-footer {
124
- border-top: 1px solid var(--rule);
604
+ border-top-style: var(--tw-border-style);
605
+ border-top-width: 1px;
606
+ border-color: var(--rule);
607
+ text-align: center;
125
608
  color: var(--muted);
126
609
  font-size: 14px;
127
- text-align: center;
128
610
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px));
129
611
  }
130
-
131
- .sample { position: relative; }
132
- .sample pre { padding-right: 72px; }
612
+ .sample {
613
+ position: relative;
614
+ }
615
+ .sample pre {
616
+ padding-right: 72px;
617
+ }
133
618
  .copy {
134
- position: absolute; top: 8px; right: 8px;
135
- font: 600 12px var(--sans); padding: 4px 10px; border-radius: 6px;
136
- border: 1px solid var(--rule); background: var(--bg); color: var(--muted); cursor: pointer;
619
+ position: absolute;
620
+ cursor: pointer;
621
+ border-style: var(--tw-border-style);
622
+ border-width: 1px;
623
+ border-color: var(--rule);
624
+ background-color: var(--bg);
625
+ color: var(--muted);
626
+ top: 8px;
627
+ right: 8px;
628
+ font: 600 12px var(--sans);
629
+ padding: 4px 10px;
630
+ border-radius: 6px;
631
+ }
632
+ .copy:hover {
633
+ border-color: var(--accent);
634
+ color: var(--accent);
137
635
  }
138
- .copy:hover { color: var(--accent); border-color: var(--accent); }
139
636
  .theme-toggle {
140
- font-size: 16px; line-height: 1; width: 30px; height: 30px; border-radius: 8px;
141
- border: 1px solid var(--rule); background: transparent; color: var(--fg); cursor: pointer;
142
- }
143
- .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
144
- .site-header nav { align-items: center; }
145
-
146
- /* Docs pages: sidebar, content and "On this page" (from 1280px a column, below that a box above the content). */
147
- .docs { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width); max-width: var(--page-width); margin: 0 auto; }
148
- .docs .content { margin: 0; max-width: 760px; min-width: 0; }
149
- .sidebar { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 28px 16px 40px max(16px, env(safe-area-inset-left, 0px)); border-right: 1px solid var(--rule); }
150
- .sidebar .group { margin: 20px 0 6px; font-size: 13px; font-weight: 650; color: var(--fg); }
151
- .sidebar .group:first-child { margin-top: 0; }
152
- .sidebar ul { list-style: none; padding: 0; margin: 0; }
153
- .sidebar li { margin: 0; }
154
- .sidebar a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 14px; }
155
- .sidebar a:hover { color: var(--fg); }
156
- .sidebar a[aria-current='page'] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
157
- .crumb { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
158
- .lead { font-size: 18px; color: var(--muted); }
159
- .page-footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); }
160
- .edit { font-size: 14px; }
161
- .updated { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
162
- .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
163
- .pager a { display: block; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; font-weight: 600; }
164
- .pager a:hover { border-color: var(--accent); }
165
- .pager small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
166
- .pager .next { grid-column: 2; text-align: right; }
167
- table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
168
- th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
169
- .content table { display: block; overflow-x: auto; }
170
-
171
-
172
- .persist { display: contents; }
173
-
174
- /* Header: section links, then (pushed right) social icons, the ⋯ overflow menu and the theme toggle. */
175
- .top-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
176
- .header-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
177
- .social { display: flex; align-items: center; gap: 2px; }
178
- .social a, .more-button, .menu-button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
179
- .social a:hover, .more-button:hover, .menu-button:hover { color: var(--fg); background: var(--accent-soft); }
180
- .npm { padding: 1px 5px; border: 1.8px solid currentColor; border-radius: 4px; font: 700 11px/1.3 var(--mono); }
181
- .more-button, .menu-button { display: none; }
182
- .more { inset: auto; margin: 0; padding: 6px; min-width: 200px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--fg); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); position-area: bottom span-left; }
183
- .more a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--fg); text-decoration: none; }
184
- .more a:hover { background: var(--accent-soft); }
185
-
186
- /* Search: a button in the header, a modal dialog with the results. */
187
- .search-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
188
- .search-button:hover { color: var(--fg); border-color: var(--accent); }
189
- .search-button kbd { padding: 1px 6px; border: 1px solid var(--rule); border-radius: 6px; font: 12px var(--mono); }
190
- .search-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px)); margin: 72px auto auto; padding: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3); }
191
- .search-dialog::backdrop { background: rgba(15, 23, 25, 0.45); }
192
- .search-box { display: flex; flex-direction: column; max-height: inherit; }
193
- .search-box input { height: 52px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: inherit; font: inherit; font-size: 17px; }
194
- .search-box input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
195
- .search-status { margin: 0; padding: 8px 16px 0; font-size: 13px; color: var(--muted); }
196
- .search-status:empty { display: none; }
197
- #search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
198
- #search-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; }
199
- #search-results [aria-selected="true"] a, #search-results a:hover { background: var(--accent-soft); }
200
- .search-heading { font-weight: 650; }
201
- .search-page { font-size: 13px; color: var(--accent); }
202
- .search-text { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
203
-
204
- /* The sidebar is a popover (so it can be a drawer on small screens): shown in place from 1024px. */
205
- /* inset first: it would reset top. */
206
- .sidebar[popover] { display: block; position: sticky; inset: auto; top: var(--header-height); width: auto; height: auto; max-height: calc(100vh - var(--header-height)); margin: 0; border: 0; border-right: 1px solid var(--rule); background: transparent; color: inherit; overflow-y: auto; }
207
- .sidebar-head, .sidebar-links { display: none; }
208
-
209
- /* On this page */
210
- .toc { position: sticky; top: var(--header-height); align-self: start; max-height: calc(100vh - var(--header-height)); overflow-y: auto; padding: 36px 16px; font-size: 14px; }
211
- .toc p { margin: 0 0 8px; font-weight: 650; }
212
- .toc ul, .toc-inline ul { list-style: none; margin: 0; padding: 0; }
213
- .toc li, .toc-inline li { margin: 0 0 6px; }
214
- .toc li.sub, .toc-inline li.sub { padding-left: 14px; }
215
- .toc a, .toc-inline a { color: var(--muted); text-decoration: none; }
216
- .toc a:hover, .toc-inline a:hover { color: var(--accent); }
217
- .toc-inline { display: none; margin: 0 0 24px; border: 1px solid var(--rule); border-radius: 10px; }
218
- .toc-inline > summary { min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 650; cursor: pointer; }
219
- .toc-inline ul { padding: 0 14px 12px; font-size: 14px; }
220
-
221
- /* Below 1280px: no room for the column; "On this page" is a box above the content, social links fold into ⋯. */
637
+ cursor: pointer;
638
+ border-style: var(--tw-border-style);
639
+ border-width: 1px;
640
+ border-color: var(--rule);
641
+ background-color: transparent;
642
+ color: var(--fg);
643
+ font-size: 16px;
644
+ line-height: 1;
645
+ width: 30px;
646
+ height: 30px;
647
+ border-radius: 8px;
648
+ }
649
+ .theme-toggle:hover {
650
+ border-color: var(--accent);
651
+ color: var(--accent);
652
+ }
653
+ .site-header nav {
654
+ align-items: center;
655
+ }
656
+ .docs {
657
+ display: grid;
658
+ grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
659
+ max-width: var(--page-width);
660
+ margin: 0 auto;
661
+ }
662
+ .docs .content {
663
+ margin: 0;
664
+ max-width: 760px;
665
+ min-width: 0;
666
+ }
667
+ .sidebar {
668
+ position: sticky;
669
+ top: 0;
670
+ align-self: start;
671
+ max-height: 100vh;
672
+ overflow-y: auto;
673
+ padding: 28px 16px 40px max(16px, env(safe-area-inset-left, 0px));
674
+ border-right: 1px solid var(--rule);
675
+ }
676
+ .crumb {
677
+ --tw-font-weight: var(--font-weight-semibold);
678
+ font-weight: var(--font-weight-semibold);
679
+ color: var(--accent);
680
+ margin: 0 0 6px;
681
+ font-size: 13px;
682
+ letter-spacing: 0.04em;
683
+ }
684
+ .lead {
685
+ color: var(--muted);
686
+ font-size: 18px;
687
+ }
688
+ .page-footer {
689
+ border-top-style: var(--tw-border-style);
690
+ border-top-width: 1px;
691
+ border-color: var(--rule);
692
+ margin-top: 48px;
693
+ padding-top: 16px;
694
+ }
695
+ .edit {
696
+ font-size: 14px;
697
+ }
698
+ .updated {
699
+ color: var(--muted);
700
+ margin: 4px 0 0;
701
+ font-size: 14px;
702
+ }
703
+ .pager {
704
+ display: grid;
705
+ grid-template-columns: 1fr 1fr;
706
+ gap: 12px;
707
+ margin-top: 20px;
708
+ }
709
+ .pager a {
710
+ display: block;
711
+ border-style: var(--tw-border-style);
712
+ border-width: 1px;
713
+ border-color: var(--rule);
714
+ --tw-font-weight: var(--font-weight-semibold);
715
+ font-weight: var(--font-weight-semibold);
716
+ text-decoration-line: none;
717
+ padding: 12px 14px;
718
+ border-radius: 8px;
719
+ }
720
+ .pager a:hover {
721
+ border-color: var(--accent);
722
+ }
723
+ .pager small {
724
+ display: block;
725
+ --tw-font-weight: var(--font-weight-normal);
726
+ font-weight: var(--font-weight-normal);
727
+ color: var(--muted);
728
+ font-size: 12px;
729
+ }
730
+ .pager .next {
731
+ grid-column-start: 2;
732
+ text-align: right;
733
+ }
734
+ table {
735
+ width: 100%;
736
+ border-collapse: collapse;
737
+ margin: 0 0 16px;
738
+ font-size: 15px;
739
+ }
740
+ th, td {
741
+ text-align: left;
742
+ padding: 8px 10px;
743
+ border-bottom: 1px solid var(--rule);
744
+ vertical-align: top;
745
+ }
746
+ .content table {
747
+ display: block;
748
+ overflow-x: auto;
749
+ }
750
+ .persist {
751
+ display: contents;
752
+ }
753
+ .top-nav {
754
+ display: flex;
755
+ flex-wrap: wrap;
756
+ gap: 4px 18px;
757
+ }
758
+ .header-end {
759
+ margin-left: auto;
760
+ display: flex;
761
+ align-items: center;
762
+ gap: 6px;
763
+ }
764
+ .social {
765
+ display: flex;
766
+ align-items: center;
767
+ gap: 2px;
768
+ }
769
+ .social a, .more-button, .menu-button {
770
+ display: inline-flex;
771
+ cursor: pointer;
772
+ align-items: center;
773
+ justify-content: center;
774
+ border-style: var(--tw-border-style);
775
+ border-width: 0px;
776
+ background-color: transparent;
777
+ color: var(--muted);
778
+ text-decoration-line: none;
779
+ min-width: 40px;
780
+ height: 40px;
781
+ padding: 0 6px;
782
+ border-radius: 8px;
783
+ }
784
+ .social a:hover, .more-button:hover, .menu-button:hover {
785
+ background-color: var(--accent-soft);
786
+ color: var(--fg);
787
+ }
788
+ .npm {
789
+ padding: 1px 5px;
790
+ border: 1.8px solid currentColor;
791
+ border-radius: 4px;
792
+ font: 700 11px/1.3 var(--mono);
793
+ }
794
+ .more-button, .menu-button {
795
+ display: none;
796
+ }
797
+ .more {
798
+ margin: 0px;
799
+ border-style: var(--tw-border-style);
800
+ border-width: 1px;
801
+ border-color: var(--rule);
802
+ background-color: var(--bg);
803
+ color: var(--fg);
804
+ inset: auto;
805
+ padding: 6px;
806
+ min-width: 200px;
807
+ border-radius: 12px;
808
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
809
+ position-area: bottom span-left;
810
+ }
811
+ .more a {
812
+ display: flex;
813
+ align-items: center;
814
+ color: var(--fg);
815
+ text-decoration-line: none;
816
+ min-height: 44px;
817
+ padding: 0 12px;
818
+ border-radius: 8px;
819
+ }
820
+ .more a:hover {
821
+ background-color: var(--accent-soft);
822
+ }
823
+ .search-button {
824
+ display: inline-flex;
825
+ cursor: pointer;
826
+ align-items: center;
827
+ border-style: var(--tw-border-style);
828
+ border-width: 1px;
829
+ border-color: var(--rule);
830
+ background-color: var(--bg);
831
+ color: var(--muted);
832
+ gap: 8px;
833
+ height: 40px;
834
+ min-width: 40px;
835
+ padding: 0 10px;
836
+ border-radius: 10px;
837
+ font: inherit;
838
+ font-size: 14px;
839
+ }
840
+ .search-button:hover {
841
+ border-color: var(--accent);
842
+ color: var(--fg);
843
+ }
844
+ .search-button kbd {
845
+ border-style: var(--tw-border-style);
846
+ border-width: 1px;
847
+ border-color: var(--rule);
848
+ padding: 1px 6px;
849
+ border-radius: 6px;
850
+ font: 12px var(--mono);
851
+ }
852
+ .search-dialog {
853
+ border-style: var(--tw-border-style);
854
+ border-width: 1px;
855
+ border-color: var(--rule);
856
+ background-color: var(--bg);
857
+ padding: 0px;
858
+ color: var(--fg);
859
+ width: min(640px, calc(100vw - 32px));
860
+ max-height: min(560px, calc(100vh - 96px));
861
+ margin: 72px auto auto;
862
+ border-radius: 14px;
863
+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
864
+ }
865
+ .search-dialog::backdrop {
866
+ background: rgba(15, 23, 25, 0.45);
867
+ }
868
+ .search-box {
869
+ display: flex;
870
+ flex-direction: column;
871
+ max-height: inherit;
872
+ }
873
+ .search-box input {
874
+ border-style: var(--tw-border-style);
875
+ border-width: 0px;
876
+ border-bottom-style: var(--tw-border-style);
877
+ border-bottom-width: 1px;
878
+ border-color: var(--rule);
879
+ background-color: transparent;
880
+ color: inherit;
881
+ height: 52px;
882
+ padding: 0 16px;
883
+ font: inherit;
884
+ font-size: 17px;
885
+ }
886
+ .search-box input:focus {
887
+ outline: 2px solid var(--accent);
888
+ outline-offset: -2px;
889
+ }
890
+ .search-status {
891
+ margin: 0px;
892
+ color: var(--muted);
893
+ padding: 8px 16px 0;
894
+ font-size: 13px;
895
+ }
896
+ .search-status:empty {
897
+ display: none;
898
+ }
899
+ #search-results {
900
+ margin: 0px;
901
+ list-style-type: none;
902
+ overflow-y: auto;
903
+ padding: 8px;
904
+ }
905
+ #search-results a {
906
+ display: grid;
907
+ color: var(--fg);
908
+ text-decoration-line: none;
909
+ gap: 2px;
910
+ padding: 10px 12px;
911
+ border-radius: 10px;
912
+ }
913
+ #search-results [aria-selected="true"] a, #search-results a:hover {
914
+ background-color: var(--accent-soft);
915
+ }
916
+ .search-heading {
917
+ font-weight: 650;
918
+ }
919
+ .search-page {
920
+ color: var(--accent);
921
+ font-size: 13px;
922
+ }
923
+ .search-text {
924
+ overflow: hidden;
925
+ display: -webkit-box;
926
+ -webkit-box-orient: vertical;
927
+ -webkit-line-clamp: 2;
928
+ color: var(--muted);
929
+ font-size: 13px;
930
+ }
931
+ @media (min-width: 1024px) {
932
+ body:has(.sidebar) .site-header .search-button {
933
+ display: none;
934
+ }
935
+ }
936
+ .sidebar[popover] {
937
+ display: block;
938
+ position: sticky;
939
+ inset: auto;
940
+ top: var(--header-height);
941
+ width: auto;
942
+ height: auto;
943
+ max-height: calc(100vh - var(--header-height));
944
+ margin: 0;
945
+ border: 0;
946
+ border-right: 1px solid var(--rule);
947
+ background: transparent;
948
+ color: inherit;
949
+ overflow-y: auto;
950
+ }
951
+ .sidebar-head, .sidebar-links, .sidebar-switch {
952
+ display: none;
953
+ }
954
+ .toc {
955
+ position: sticky;
956
+ top: var(--header-height);
957
+ align-self: start;
958
+ max-height: calc(100vh - var(--header-height));
959
+ overflow-y: auto;
960
+ padding: 36px 16px;
961
+ font-size: 14px;
962
+ }
963
+ .toc p {
964
+ margin: 0 0 8px;
965
+ font-weight: 650;
966
+ }
967
+ .toc ul, .toc-inline ul {
968
+ margin: 0px;
969
+ list-style-type: none;
970
+ padding: 0px;
971
+ }
972
+ .toc li, .toc-inline li {
973
+ margin: 0 0 6px;
974
+ }
975
+ .toc li.sub, .toc-inline li.sub {
976
+ padding-left: 14px;
977
+ }
978
+ .toc a, .toc-inline a {
979
+ color: var(--muted);
980
+ text-decoration-line: none;
981
+ }
982
+ .toc a:hover, .toc-inline a:hover {
983
+ color: var(--accent);
984
+ }
985
+ .toc-inline {
986
+ display: none;
987
+ border-style: var(--tw-border-style);
988
+ border-width: 1px;
989
+ border-color: var(--rule);
990
+ margin: 0 0 24px;
991
+ border-radius: 10px;
992
+ }
993
+ .toc-inline > summary {
994
+ display: flex;
995
+ cursor: pointer;
996
+ align-items: center;
997
+ min-height: 44px;
998
+ padding: 0 14px;
999
+ font-size: 14px;
1000
+ font-weight: 650;
1001
+ }
1002
+ .toc-inline ul {
1003
+ padding: 0 14px 12px;
1004
+ font-size: 14px;
1005
+ }
222
1006
  @media (max-width: 1279px) {
223
- .docs { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
224
- .toc { display: none; }
225
- .toc-inline { display: block; }
226
- .social { display: none; }
227
- .more-button { display: inline-flex; }
228
- }
229
-
230
- /* Below 1024px: the sidebar is a drawer from the ☰ button; the page takes the full width. */
1007
+ .docs {
1008
+ grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
1009
+ }
1010
+ .toc {
1011
+ display: none;
1012
+ }
1013
+ .toc-inline {
1014
+ display: block;
1015
+ }
1016
+ .social {
1017
+ display: none;
1018
+ }
1019
+ .more-button {
1020
+ display: inline-flex;
1021
+ }
1022
+ }
231
1023
  @media (max-width: 1023px) {
232
- .docs { display: block; }
233
- .menu-button { display: inline-flex; }
234
- .sidebar[popover] { display: none; }
235
- .sidebar[popover]:popover-open { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: min(340px, 86vw); height: 100%; max-height: none; padding: 0 12px 16px; border-right: 1px solid var(--rule); background: var(--bg); box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25); }
236
- .sidebar[popover]::backdrop { background: rgba(15, 23, 25, 0.45); }
237
- .sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-weight: 700; border-bottom: 1px solid var(--rule); margin: 0 -12px 8px; padding: 0 8px 0 16px; }
238
- .sidebar-head button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
239
- .sidebar a { padding: 9px 10px; font-size: 15px; }
240
- .sidebar-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
241
- .more-button, .social { display: none; }
242
- .search-label, .search-button kbd { display: none; }
243
- }
244
-
245
- /* Phones: the section links move into the drawer. */
1024
+ .docs {
1025
+ display: block;
1026
+ }
1027
+ .menu-button {
1028
+ display: inline-flex;
1029
+ }
1030
+ .sidebar[popover] {
1031
+ display: none;
1032
+ }
1033
+ .sidebar[popover]:popover-open {
1034
+ display: flex;
1035
+ flex-direction: column;
1036
+ position: fixed;
1037
+ inset: 0 auto 0 0;
1038
+ width: min(340px, 86vw);
1039
+ height: 100%;
1040
+ max-height: none;
1041
+ padding: 0 12px 16px;
1042
+ border-right: 1px solid var(--rule);
1043
+ background: var(--bg);
1044
+ box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
1045
+ }
1046
+ .sidebar[popover]::backdrop {
1047
+ background: rgba(15, 23, 25, 0.45);
1048
+ }
1049
+ .sidebar-head {
1050
+ display: flex;
1051
+ align-items: center;
1052
+ justify-content: space-between;
1053
+ border-bottom-style: var(--tw-border-style);
1054
+ border-bottom-width: 1px;
1055
+ border-color: var(--rule);
1056
+ --tw-font-weight: var(--font-weight-bold);
1057
+ font-weight: var(--font-weight-bold);
1058
+ min-height: 60px;
1059
+ margin: 0 -12px 8px;
1060
+ padding: 0 8px 0 16px;
1061
+ }
1062
+ .sidebar-head button {
1063
+ cursor: pointer;
1064
+ border-style: var(--tw-border-style);
1065
+ border-width: 0px;
1066
+ background-color: transparent;
1067
+ color: var(--muted);
1068
+ width: 44px;
1069
+ height: 44px;
1070
+ border-radius: 8px;
1071
+ }
1072
+ .sidebar-links {
1073
+ display: flex;
1074
+ flex-wrap: wrap;
1075
+ position: sticky;
1076
+ bottom: -16px;
1077
+ margin: auto -12px -16px;
1078
+ padding: 12px 16px 16px;
1079
+ background: var(--bg);
1080
+ }
1081
+ .sidebar-switch {
1082
+ display: grid;
1083
+ }
1084
+ .sidebar .sidebar-search, .sidebar .group-icon {
1085
+ display: none;
1086
+ }
1087
+ .sidebar summary {
1088
+ font-size: 15px;
1089
+ padding-block: 10px;
1090
+ }
1091
+ .sidebar details a {
1092
+ font-size: 15px;
1093
+ padding-block: 6px;
1094
+ }
1095
+ .more-button, .social {
1096
+ display: none;
1097
+ }
1098
+ .search-button kbd {
1099
+ display: none;
1100
+ }
1101
+ .search-label {
1102
+ position: absolute;
1103
+ width: 1px;
1104
+ height: 1px;
1105
+ overflow: hidden;
1106
+ clip-path: inset(50%);
1107
+ white-space: nowrap;
1108
+ }
1109
+ }
246
1110
  @media (max-width: 699px) {
247
- .site-header .top-nav { display: none; }
248
- }
249
-
250
- /* ::: details blocks from Markdown: a native <details>. */
251
- details.custom-block { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; margin: 20px 0; }
252
- details.custom-block > summary { cursor: pointer; font-weight: 600; }
253
- details.custom-block[open] > summary { margin-bottom: 8px; }
254
-
255
- /* Highlighted code from Markdown (Shiki, build time). Tokens carry both themes as variables; the page picks one. */
256
- .code-block { position: relative; margin: 0 0 20px; }
257
- .code-block pre { margin: 0; padding-right: 72px; }
258
- .code-block .lang { position: absolute; top: 8px; right: 64px; font: 12px var(--mono); color: var(--muted); pointer-events: none; }
259
- .code-block .code-title { margin: 0; padding: 6px 12px; font: 600 13px/20px var(--mono); border: 1px solid var(--rule); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--code-bg); }
260
- .code-block .code-title + .lang + pre { border-top-left-radius: 0; border-top-right-radius: 0; }
261
- .shiki span { color: var(--shiki-light); }
262
- .shiki { background: var(--shiki-bg); border: 1px solid var(--rule); }
263
- @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .shiki span { color: var(--shiki-dark); } }
264
- :root[data-theme='dark'] .shiki span { color: var(--shiki-dark); }
265
- .shiki code { display: block; }
266
- .shiki .line { display: inline-block; width: 100%; }
267
- .shiki .line.highlighted { background: var(--line-highlight); }
268
- .shiki .line.diff.add { background: var(--line-add); }
269
- .shiki .line.diff.remove { background: var(--line-remove); }
270
- .shiki .line.diff.add::before { content: '+ '; }
271
- .shiki .line.diff.remove::before { content: '- '; }
272
- .shiki.has-focused .line:not(.focused) { opacity: 0.45; filter: blur(0.5px); }
273
- .shiki.has-focused:hover .line { opacity: 1; filter: none; }
274
- .code-block.line-numbers pre { padding-left: 44px; }
275
- .line-numbers-column { position: absolute; top: 14px; left: 0; width: 32px; display: flex; flex-direction: column; text-align: right; font: 14px/1.55 var(--mono); color: var(--muted); }
276
- /* Below a title (6 + 20 + 6 px, and its 1px top border) the code, and so the numbers, start lower. */
277
- .code-block .code-title ~ .line-numbers-column { top: calc(14px + 33px); }
278
-
279
- /* ::: code-group: radio tabs, no JavaScript. The checked tab's label is followed by its block. */
280
- .code-group { display: flex; flex-wrap: wrap; margin: 0 0 20px; }
281
- .code-group > input { position: absolute; opacity: 0; pointer-events: none; }
282
- .code-group > label { order: 0; font: 600 13px var(--mono); padding: 6px 12px; border: 1px solid var(--rule); border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--muted); cursor: pointer; }
283
- .code-group > input:checked + label { color: var(--accent); background: var(--code-bg); }
284
- .code-group > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
285
- .code-group > .code-block { order: 1; width: 100%; display: none; margin: 0; }
286
- .code-group > input:checked + label + .code-block { display: block; }
287
- .code-group > .code-block pre { border-top-left-radius: 0; }
288
-
289
- /* Visitors who ask for less motion get none: transitions and animations end at once, scrolling jumps. */
1111
+ .site-header .top-nav {
1112
+ display: none;
1113
+ }
1114
+ }
1115
+ details.custom-block {
1116
+ border: 1px solid var(--rule);
1117
+ border-radius: 8px;
1118
+ padding: 10px 14px;
1119
+ margin: 20px 0;
1120
+ }
1121
+ details.custom-block > summary {
1122
+ cursor: pointer;
1123
+ font-weight: 600;
1124
+ }
1125
+ details.custom-block[open] > summary {
1126
+ margin-bottom: 8px;
1127
+ }
1128
+ .code-block {
1129
+ position: relative;
1130
+ margin: 0 0 20px;
1131
+ }
1132
+ .code-block pre {
1133
+ margin: 0;
1134
+ padding-right: 72px;
1135
+ }
1136
+ .code-block .lang {
1137
+ position: absolute;
1138
+ top: 8px;
1139
+ right: 64px;
1140
+ font: 12px var(--mono);
1141
+ color: var(--muted);
1142
+ pointer-events: none;
1143
+ }
1144
+ .code-block .code-title {
1145
+ margin: 0;
1146
+ padding: 6px 12px;
1147
+ font: 600 13px/20px var(--mono);
1148
+ border: 1px solid var(--rule);
1149
+ border-bottom: 0;
1150
+ border-radius: 8px 8px 0 0;
1151
+ background: var(--code-bg);
1152
+ }
1153
+ .code-block .code-title + .lang + pre {
1154
+ border-top-left-radius: 0;
1155
+ border-top-right-radius: 0;
1156
+ }
1157
+ .shiki span {
1158
+ color: var(--shiki-light);
1159
+ }
1160
+ .shiki {
1161
+ background: var(--shiki-bg);
1162
+ border: 1px solid var(--rule);
1163
+ }
1164
+ @media (prefers-color-scheme: dark) {
1165
+ :root:not([data-theme='light']) .shiki span {
1166
+ color: var(--shiki-dark);
1167
+ }
1168
+ }
1169
+ :root[data-theme='dark'] .shiki span {
1170
+ color: var(--shiki-dark);
1171
+ }
1172
+ .shiki code {
1173
+ display: block;
1174
+ }
1175
+ .shiki .line {
1176
+ display: inline-block;
1177
+ width: 100%;
1178
+ }
1179
+ .shiki .line.highlighted {
1180
+ background: var(--line-highlight);
1181
+ }
1182
+ .shiki .line.diff.add {
1183
+ background: var(--line-add);
1184
+ }
1185
+ .shiki .line.diff.remove {
1186
+ background: var(--line-remove);
1187
+ }
1188
+ .shiki .line.diff.add::before {
1189
+ content: '+ ';
1190
+ }
1191
+ .shiki .line.diff.remove::before {
1192
+ content: '- ';
1193
+ }
1194
+ .shiki.has-focused .line:not(.focused) {
1195
+ opacity: 0.45;
1196
+ filter: blur(0.5px);
1197
+ }
1198
+ .shiki.has-focused:hover .line {
1199
+ opacity: 1;
1200
+ filter: none;
1201
+ }
1202
+ .code-block.line-numbers pre {
1203
+ padding-left: 44px;
1204
+ }
1205
+ .line-numbers-column {
1206
+ position: absolute;
1207
+ top: 14px;
1208
+ left: 0;
1209
+ width: 32px;
1210
+ display: flex;
1211
+ flex-direction: column;
1212
+ text-align: right;
1213
+ font: 14px/1.55 var(--mono);
1214
+ color: var(--muted);
1215
+ }
1216
+ .code-block .code-title ~ .line-numbers-column {
1217
+ top: calc(14px + 33px);
1218
+ }
1219
+ .code-group {
1220
+ display: flex;
1221
+ flex-wrap: wrap;
1222
+ margin: 0 0 20px;
1223
+ }
1224
+ .code-group > input {
1225
+ position: absolute;
1226
+ opacity: 0;
1227
+ pointer-events: none;
1228
+ }
1229
+ .code-group > label {
1230
+ order: 0;
1231
+ font: 600 13px var(--mono);
1232
+ padding: 6px 12px;
1233
+ border: 1px solid var(--rule);
1234
+ border-bottom: 0;
1235
+ border-radius: 8px 8px 0 0;
1236
+ color: var(--muted);
1237
+ cursor: pointer;
1238
+ }
1239
+ .code-group > input:checked + label {
1240
+ color: var(--accent);
1241
+ background: var(--code-bg);
1242
+ }
1243
+ .code-group > input:focus-visible + label {
1244
+ outline: 2px solid var(--accent);
1245
+ outline-offset: 2px;
1246
+ }
1247
+ .code-group > .code-block {
1248
+ order: 1;
1249
+ width: 100%;
1250
+ display: none;
1251
+ margin: 0;
1252
+ }
1253
+ .code-group > input:checked + label + .code-block {
1254
+ display: block;
1255
+ }
1256
+ .code-group > .code-block pre {
1257
+ border-top-left-radius: 0;
1258
+ }
290
1259
  @media (prefers-reduced-motion: reduce) {
291
1260
  *, *::before, *::after {
292
1261
  animation-duration: 0.01ms !important;
@@ -295,68 +1264,407 @@ details.custom-block[open] > summary { margin-bottom: 8px; }
295
1264
  scroll-behavior: auto !important;
296
1265
  }
297
1266
  }
298
-
299
- /* Right and wrong (quizzes, the lesson bar): green and red that keep their contrast in both themes. */
300
- :root { --ok: #17703c; --ok-soft: rgba(23, 112, 60, 0.1); --bad: #b42318; --bad-soft: rgba(180, 35, 24, 0.08); }
1267
+ :root {
1268
+ --ok: #17703c;
1269
+ --ok-soft: rgba(23, 112, 60, 0.1);
1270
+ --bad: #b42318;
1271
+ --bad-soft: rgba(180, 35, 24, 0.08);
1272
+ }
1273
+ @media (prefers-color-scheme: dark) {
1274
+ :root:not([data-theme='light']) {
1275
+ --ok: #4ade80;
1276
+ --ok-soft: rgba(74, 222, 128, 0.12);
1277
+ --bad: #f87171;
1278
+ --bad-soft: rgba(248, 113, 113, 0.12);
1279
+ }
1280
+ }
1281
+ :root[data-theme='dark'] {
1282
+ --ok: #4ade80;
1283
+ --ok-soft: rgba(74, 222, 128, 0.12);
1284
+ --bad: #f87171;
1285
+ --bad-soft: rgba(248, 113, 113, 0.12);
1286
+ }
1287
+ :root {
1288
+ --xp: #8a6100;
1289
+ --xp-soft: #fff6d6;
1290
+ }
301
1291
  @media (prefers-color-scheme: dark) {
302
- :root:not([data-theme='light']) { --ok: #4ade80; --ok-soft: rgba(74, 222, 128, 0.12); --bad: #f87171; --bad-soft: rgba(248, 113, 113, 0.12); }
303
- }
304
- :root[data-theme='dark'] { --ok: #4ade80; --ok-soft: rgba(74, 222, 128, 0.12); --bad: #f87171; --bad-soft: rgba(248, 113, 113, 0.12); }
305
-
306
- /* Quizzes: big options to tap, then the right one green and a wrong pick red. */
307
- .quiz { margin: 24px 0; padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
308
- .quiz-question { font-weight: 650; margin: 0 0 12px; }
309
- .quiz-options { display: grid; gap: 8px; }
310
- .quiz-options label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--bg); cursor: pointer; }
311
- .quiz-options label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
312
- .quiz-options label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
313
- .quiz .quiz-options label.right { border-color: var(--ok); background: var(--ok-soft); }
314
- .quiz .quiz-options label.wrong { border-color: var(--bad); background: var(--bad-soft); }
315
- .quiz-options .mark { margin-left: auto; font-size: 13px; font-weight: 700; }
316
- .quiz-options .right .mark { color: var(--ok); }
317
- .quiz-options .wrong .mark { color: var(--bad); }
318
- .quiz-options input { accent-color: var(--accent); width: 18px; height: 18px; }
319
- .quiz-check { margin-top: 12px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; }
320
- .quiz-check:disabled { opacity: 0.5; cursor: default; }
321
- .quiz-status { margin: 8px 0 0; font-size: 14px; }
322
- .quiz-status:empty { display: none; }
323
- .quiz-answer { margin-top: 12px; font-size: 15px; }
324
- .quiz-answer > summary { cursor: pointer; color: var(--muted); }
325
- .quiz-correct { font-weight: 650; margin: 8px 0; }
326
-
327
- /* Learn: the XP chip, lesson states in the sidebar (a hint: every lesson stays open), the progress page. */
328
- .xp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
329
- .xp-chip[hidden] { display: none; }
330
- .xp-chip svg { color: #c99400; }
331
- .xp-chip:hover { border-color: var(--accent); }
332
- .sidebar a[data-status]::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--rule); vertical-align: -1px; }
333
- .sidebar a[data-status="done"]::before { background: var(--ok); border-color: var(--ok); }
334
- .sidebar a[data-status="current"]::before { border-color: var(--accent); }
335
- .sidebar a[data-status="locked"] { color: var(--muted); }
336
- .status-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
337
- .progress-board .status-note { position: static; width: auto; height: auto; clip-path: none; color: var(--muted); font-size: 14px; }
338
- .progress-note { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
339
- .progress-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 24px; }
340
- .progress-stats div { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
341
- .progress-stats dt { font-size: 13px; color: var(--muted); }
342
- .progress-stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; }
343
- .badges { display: grid; gap: 8px; padding: 0; list-style: none; }
344
- .badges li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 12px; color: var(--muted); }
345
- .badges li.earned { border-style: solid; border-color: var(--ok); color: var(--fg); background: var(--ok-soft); }
346
- .badges em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 700; }
347
- .progress-lessons li[data-status="done"] a::after { content: ' ✓'; color: var(--ok); }
348
- .progress-reset { margin-top: 16px; min-height: 44px; padding: 0 16px; border: 1px solid var(--bad); border-radius: 10px; background: transparent; color: var(--bad); font: inherit; font-weight: 600; cursor: pointer; }
349
-
350
- /* While a page change runs (fragments or the client router set data-cl-navigating on <html>): a thin bar at the top.
351
- Shown after a short delay, so fast swaps don't flash it. */
1292
+ :root:not([data-theme='light']) {
1293
+ --xp: #ffd23f;
1294
+ --xp-soft: rgba(255, 210, 63, 0.12);
1295
+ }
1296
+ }
1297
+ :root[data-theme='dark'] {
1298
+ --xp: #ffd23f;
1299
+ --xp-soft: rgba(255, 210, 63, 0.12);
1300
+ }
1301
+ .quiz {
1302
+ border-style: var(--tw-border-style);
1303
+ border-width: 1px;
1304
+ border-color: var(--rule);
1305
+ background-color: var(--surface);
1306
+ margin: 24px 0;
1307
+ padding: 18px;
1308
+ border-radius: 14px;
1309
+ }
1310
+ .quiz-question {
1311
+ font-weight: 650;
1312
+ margin: 0 0 12px;
1313
+ }
1314
+ .quiz-options {
1315
+ display: grid;
1316
+ gap: 8px;
1317
+ }
1318
+ .quiz-options label {
1319
+ display: flex;
1320
+ cursor: pointer;
1321
+ align-items: center;
1322
+ background-color: var(--bg);
1323
+ gap: 10px;
1324
+ min-height: 48px;
1325
+ padding: 0 14px;
1326
+ border: 1.5px solid var(--rule);
1327
+ border-radius: 12px;
1328
+ }
1329
+ .quiz-options label:has(input:checked) {
1330
+ border-color: var(--accent);
1331
+ background-color: var(--accent-soft);
1332
+ }
1333
+ .quiz-options label:has(input:focus-visible) {
1334
+ outline: 2px solid var(--accent);
1335
+ outline-offset: 2px;
1336
+ }
1337
+ .quiz .quiz-options label.right {
1338
+ border-color: var(--ok);
1339
+ background: var(--ok-soft);
1340
+ }
1341
+ .quiz .quiz-options label.wrong {
1342
+ border-color: var(--bad);
1343
+ background: var(--bad-soft);
1344
+ }
1345
+ .quiz-options .mark {
1346
+ margin-left: auto;
1347
+ font-size: 13px;
1348
+ font-weight: 700;
1349
+ }
1350
+ .quiz-options .right .mark {
1351
+ color: var(--ok);
1352
+ }
1353
+ .quiz-options .wrong .mark {
1354
+ color: var(--bad);
1355
+ }
1356
+ .quiz-options input {
1357
+ accent-color: var(--accent);
1358
+ width: 18px;
1359
+ height: 18px;
1360
+ }
1361
+ .quiz-check {
1362
+ cursor: pointer;
1363
+ border-style: var(--tw-border-style);
1364
+ border-width: 0px;
1365
+ background-color: var(--accent);
1366
+ color: var(--bg);
1367
+ margin-top: 12px;
1368
+ min-height: 44px;
1369
+ padding: 0 18px;
1370
+ border-radius: 10px;
1371
+ font: inherit;
1372
+ font-weight: 700;
1373
+ }
1374
+ .quiz-check:disabled {
1375
+ opacity: 0.5;
1376
+ cursor: default;
1377
+ }
1378
+ .quiz-status {
1379
+ margin: 8px 0 0;
1380
+ font-size: 14px;
1381
+ }
1382
+ .quiz-status:empty {
1383
+ display: none;
1384
+ }
1385
+ .quiz-answer {
1386
+ margin-top: 12px;
1387
+ font-size: 15px;
1388
+ }
1389
+ .quiz-answer > summary {
1390
+ cursor: pointer;
1391
+ color: var(--muted);
1392
+ }
1393
+ .quiz-correct {
1394
+ font-weight: 650;
1395
+ margin: 8px 0;
1396
+ }
1397
+ .xp-chip {
1398
+ display: inline-flex;
1399
+ align-items: center;
1400
+ border-style: var(--tw-border-style);
1401
+ border-width: 1px;
1402
+ border-color: var(--rule);
1403
+ background-color: var(--bg);
1404
+ --tw-font-weight: var(--font-weight-bold);
1405
+ font-weight: var(--font-weight-bold);
1406
+ white-space: nowrap;
1407
+ color: var(--fg);
1408
+ text-decoration-line: none;
1409
+ gap: 6px;
1410
+ min-height: 36px;
1411
+ padding: 0 12px;
1412
+ border-radius: 999px;
1413
+ font-size: 14px;
1414
+ }
1415
+ .xp-chip[hidden] {
1416
+ display: none;
1417
+ }
1418
+ .xp-chip svg {
1419
+ color: #c99400;
1420
+ }
1421
+ .xp-chip:hover {
1422
+ border-color: var(--accent);
1423
+ }
1424
+ .sidebar a[data-status]::before {
1425
+ content: '';
1426
+ display: inline-block;
1427
+ width: 10px;
1428
+ height: 10px;
1429
+ margin-right: 8px;
1430
+ border-radius: 50%;
1431
+ border: 2px solid var(--rule);
1432
+ vertical-align: -1px;
1433
+ }
1434
+ .sidebar a[data-status="done"]::before {
1435
+ background: var(--ok);
1436
+ border-color: var(--ok);
1437
+ }
1438
+ .sidebar a[data-status="current"]::before {
1439
+ border-color: var(--accent);
1440
+ }
1441
+ .sidebar a[data-status="locked"] {
1442
+ color: var(--muted);
1443
+ }
1444
+ .status-note {
1445
+ position: absolute;
1446
+ width: 1px;
1447
+ height: 1px;
1448
+ overflow: hidden;
1449
+ clip-path: inset(50%);
1450
+ white-space: nowrap;
1451
+ }
1452
+ .progress-board .status-note {
1453
+ position: static;
1454
+ width: auto;
1455
+ height: auto;
1456
+ clip-path: none;
1457
+ color: var(--muted);
1458
+ font-size: 14px;
1459
+ }
1460
+ .progress-note {
1461
+ border-style: var(--tw-border-style);
1462
+ border-width: 1px;
1463
+ border-color: var(--rule);
1464
+ background-color: var(--surface);
1465
+ padding: 12px 14px;
1466
+ border-radius: 10px;
1467
+ }
1468
+ .progress-stats {
1469
+ display: grid;
1470
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
1471
+ gap: 12px;
1472
+ margin: 0 0 24px;
1473
+ }
1474
+ .progress-stats div {
1475
+ border-style: var(--tw-border-style);
1476
+ border-width: 1px;
1477
+ border-color: var(--rule);
1478
+ background-color: var(--surface);
1479
+ padding: 14px 16px;
1480
+ border-radius: 12px;
1481
+ }
1482
+ .progress-stats dt {
1483
+ color: var(--muted);
1484
+ font-size: 13px;
1485
+ }
1486
+ .progress-stats dd {
1487
+ margin: 4px 0 0;
1488
+ font-size: 22px;
1489
+ font-weight: 800;
1490
+ }
1491
+ .badges {
1492
+ display: grid;
1493
+ list-style-type: none;
1494
+ padding: 0px;
1495
+ gap: 8px;
1496
+ }
1497
+ .badges li {
1498
+ display: flex;
1499
+ flex-wrap: wrap;
1500
+ align-items: baseline;
1501
+ gap: 4px 10px;
1502
+ margin: 0;
1503
+ padding: 12px 14px;
1504
+ border: 1px dashed var(--rule);
1505
+ border-radius: 12px;
1506
+ color: var(--muted);
1507
+ }
1508
+ .badges li.earned {
1509
+ border-style: solid;
1510
+ border-color: var(--ok);
1511
+ color: var(--fg);
1512
+ background: var(--ok-soft);
1513
+ }
1514
+ .badges em {
1515
+ margin-left: auto;
1516
+ font-style: normal;
1517
+ font-size: 13px;
1518
+ font-weight: 700;
1519
+ }
1520
+ .progress-lessons li[data-status="done"] a::after {
1521
+ content: ' ✓';
1522
+ color: var(--ok);
1523
+ }
1524
+ .progress-reset {
1525
+ cursor: pointer;
1526
+ background-color: transparent;
1527
+ margin-top: 16px;
1528
+ min-height: 44px;
1529
+ padding: 0 16px;
1530
+ border: 1px solid var(--bad);
1531
+ border-radius: 10px;
1532
+ color: var(--bad);
1533
+ font: inherit;
1534
+ font-weight: 600;
1535
+ }
352
1536
  html[data-cl-navigating]::before {
353
- content: ''; position: fixed; inset: 0 auto auto 0; z-index: 20; height: 3px; width: 100%; background: var(--accent);
354
- transform-origin: left; animation: cl-navigating 8s cubic-bezier(0.1, 0.7, 0.2, 1) 150ms both;
1537
+ content: '';
1538
+ position: fixed;
1539
+ inset: 0 auto auto 0;
1540
+ z-index: 20;
1541
+ height: 3px;
1542
+ width: 100%;
1543
+ background: var(--accent);
1544
+ transform-origin: left;
1545
+ animation: cl-navigating 8s cubic-bezier(0.1, 0.7, 0.2, 1) 150ms both;
1546
+ }
1547
+ @keyframes cl-navigating {
1548
+ from {
1549
+ transform: scaleX(0);
1550
+ }
1551
+ to {
1552
+ transform: scaleX(0.9);
1553
+ }
355
1554
  }
356
- @keyframes cl-navigating { from { transform: scaleX(0); } to { transform: scaleX(0.9); } }
357
- @media (prefers-reduced-motion: reduce) { html[data-cl-navigating]::before { animation: none; transform: scaleX(1); opacity: 0.6; } }
358
-
359
- /* View transitions (config.viewTransitions): the default cross-fade, none with reduced motion. */
360
1555
  @media (prefers-reduced-motion: reduce) {
361
- ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
1556
+ html[data-cl-navigating]::before {
1557
+ animation: none;
1558
+ transform: scaleX(1);
1559
+ opacity: 0.6;
1560
+ }
1561
+ ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
1562
+ animation: none;
1563
+ }
1564
+ }
1565
+ @property --tw-border-style {
1566
+ syntax: "*";
1567
+ inherits: false;
1568
+ initial-value: solid;
1569
+ }
1570
+ @property --tw-leading {
1571
+ syntax: "*";
1572
+ inherits: false;
1573
+ }
1574
+ @property --tw-font-weight {
1575
+ syntax: "*";
1576
+ inherits: false;
1577
+ }
1578
+ @property --tw-tracking {
1579
+ syntax: "*";
1580
+ inherits: false;
1581
+ }
1582
+ @property --tw-shadow {
1583
+ syntax: "*";
1584
+ inherits: false;
1585
+ initial-value: 0 0 #0000;
1586
+ }
1587
+ @property --tw-shadow-color {
1588
+ syntax: "*";
1589
+ inherits: false;
1590
+ }
1591
+ @property --tw-shadow-alpha {
1592
+ syntax: "<percentage>";
1593
+ inherits: false;
1594
+ initial-value: 100%;
1595
+ }
1596
+ @property --tw-inset-shadow {
1597
+ syntax: "*";
1598
+ inherits: false;
1599
+ initial-value: 0 0 #0000;
1600
+ }
1601
+ @property --tw-inset-shadow-color {
1602
+ syntax: "*";
1603
+ inherits: false;
1604
+ }
1605
+ @property --tw-inset-shadow-alpha {
1606
+ syntax: "<percentage>";
1607
+ inherits: false;
1608
+ initial-value: 100%;
1609
+ }
1610
+ @property --tw-ring-color {
1611
+ syntax: "*";
1612
+ inherits: false;
1613
+ }
1614
+ @property --tw-ring-shadow {
1615
+ syntax: "*";
1616
+ inherits: false;
1617
+ initial-value: 0 0 #0000;
1618
+ }
1619
+ @property --tw-inset-ring-color {
1620
+ syntax: "*";
1621
+ inherits: false;
1622
+ }
1623
+ @property --tw-inset-ring-shadow {
1624
+ syntax: "*";
1625
+ inherits: false;
1626
+ initial-value: 0 0 #0000;
1627
+ }
1628
+ @property --tw-ring-inset {
1629
+ syntax: "*";
1630
+ inherits: false;
1631
+ }
1632
+ @property --tw-ring-offset-width {
1633
+ syntax: "<length>";
1634
+ inherits: false;
1635
+ initial-value: 0px;
1636
+ }
1637
+ @property --tw-ring-offset-color {
1638
+ syntax: "*";
1639
+ inherits: false;
1640
+ initial-value: #fff;
1641
+ }
1642
+ @property --tw-ring-offset-shadow {
1643
+ syntax: "*";
1644
+ inherits: false;
1645
+ initial-value: 0 0 #0000;
1646
+ }
1647
+ @layer properties {
1648
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1649
+ *, ::before, ::after, ::backdrop {
1650
+ --tw-border-style: solid;
1651
+ --tw-leading: initial;
1652
+ --tw-font-weight: initial;
1653
+ --tw-tracking: initial;
1654
+ --tw-shadow: 0 0 #0000;
1655
+ --tw-shadow-color: initial;
1656
+ --tw-shadow-alpha: 100%;
1657
+ --tw-inset-shadow: 0 0 #0000;
1658
+ --tw-inset-shadow-color: initial;
1659
+ --tw-inset-shadow-alpha: 100%;
1660
+ --tw-ring-color: initial;
1661
+ --tw-ring-shadow: 0 0 #0000;
1662
+ --tw-inset-ring-color: initial;
1663
+ --tw-inset-ring-shadow: 0 0 #0000;
1664
+ --tw-ring-inset: initial;
1665
+ --tw-ring-offset-width: 0px;
1666
+ --tw-ring-offset-color: #fff;
1667
+ --tw-ring-offset-shadow: 0 0 #0000;
1668
+ }
1669
+ }
362
1670
  }