@skeudo/html 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,904 @@
1
+ /* Skeudo's styles, for every view. */
2
+ /* Skeudo styles shared by every view: the color tokens, in light and dark. Colors follow the spec:
3
+ violet, blue, aqua, orange, red, plus amber for dangers and green, blue and red for changes. */
4
+
5
+ :root {
6
+ --sk-font: ui-monospace, 'JetBrains Mono', 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
7
+ --sk-bg: #fbfbfd;
8
+ --sk-fg: #1f2330;
9
+ --sk-muted: #5b6275;
10
+ --sk-faint: #9aa1b2;
11
+ --sk-border: #e3e5ec;
12
+ --sk-guide: #e6e8ee;
13
+ --sk-row-hover: #f1f2f7;
14
+ --sk-card: #ffffff;
15
+
16
+ --sk-violet: #6d28d9;
17
+ --sk-blue: #1d4ed8;
18
+ --sk-aqua: #0f766e;
19
+ --sk-orange: #c2410c;
20
+ --sk-red: #b91c1c;
21
+ --sk-green: #15803d;
22
+ --sk-amber: #a15c07;
23
+ --sk-neutral: #556070;
24
+ --sk-untrusted: #be185d;
25
+ --sk-secret: #7c3aed;
26
+
27
+ --sk-hl-bg: #fde68a;
28
+ --sk-pin-bg: #fcd34d;
29
+ --sk-indent: 4ch;
30
+ }
31
+
32
+ @media (prefers-color-scheme: dark) {
33
+ :root:not([data-theme='light']) {
34
+ --sk-bg: #171a21;
35
+ --sk-fg: #e4e6ee;
36
+ --sk-muted: #9aa1b4;
37
+ --sk-faint: #5e6578;
38
+ --sk-border: #2a2f3a;
39
+ --sk-guide: #272c37;
40
+ --sk-row-hover: #1e222b;
41
+ --sk-card: #1f232c;
42
+
43
+ --sk-violet: #a78bfa;
44
+ --sk-blue: #93c5fd;
45
+ --sk-aqua: #5eead4;
46
+ --sk-orange: #fdba74;
47
+ --sk-red: #fca5a5;
48
+ --sk-green: #86efac;
49
+ --sk-amber: #fcd34d;
50
+ --sk-neutral: #a3acbd;
51
+ --sk-untrusted: #f9a8d4;
52
+ --sk-secret: #c4b5fd;
53
+
54
+ --sk-hl-bg: #5b4a12;
55
+ --sk-pin-bg: #7a5f0e;
56
+ }
57
+ }
58
+
59
+ :root[data-theme='dark'] {
60
+ --sk-bg: #171a21;
61
+ --sk-fg: #e4e6ee;
62
+ --sk-muted: #9aa1b4;
63
+ --sk-faint: #5e6578;
64
+ --sk-border: #2a2f3a;
65
+ --sk-guide: #272c37;
66
+ --sk-row-hover: #1e222b;
67
+ --sk-card: #1f232c;
68
+
69
+ --sk-violet: #a78bfa;
70
+ --sk-blue: #93c5fd;
71
+ --sk-aqua: #5eead4;
72
+ --sk-orange: #fdba74;
73
+ --sk-red: #fca5a5;
74
+ --sk-green: #86efac;
75
+ --sk-amber: #fcd34d;
76
+ --sk-neutral: #a3acbd;
77
+ --sk-untrusted: #f9a8d4;
78
+ --sk-secret: #c4b5fd;
79
+
80
+ --sk-hl-bg: #5b4a12;
81
+ --sk-pin-bg: #7a5f0e;
82
+ }
83
+ /* The popover explanations show in, for every view (popover.ts). It sits on the page's body, outside
84
+ the sketch, so it sets its own font. */
85
+ .sk-doc-pop {
86
+ position: fixed;
87
+ z-index: 1000;
88
+ max-width: min(34rem, calc(100vw - 16px));
89
+ padding: 0.45rem 0.7rem;
90
+ border: 1px solid var(--sk-border);
91
+ border-radius: 6px;
92
+ background: var(--sk-bg);
93
+ color: var(--sk-fg);
94
+ box-shadow: 0 6px 20px rgb(0 0 0 / 0.16);
95
+ font: 13px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif;
96
+ white-space: pre-line;
97
+ overflow-wrap: anywhere;
98
+ text-align: left;
99
+ pointer-events: none;
100
+ }
101
+ .sk-doc-pop[hidden] { display: none; }
102
+ .sk-doc-pop p {
103
+ max-width: 26rem;
104
+ margin: 0;
105
+ }
106
+ .sk-doc-pop p + p { margin-top: 0.5em; }
107
+ /* Styles for code sketches. The colors are the tokens in shared/base.css. */
108
+
109
+ /* ---------- Layout ---------- */
110
+
111
+ /* .sketch is the box and the size container; .sk-lines is the grid inside it. */
112
+ .sketch {
113
+ --sk-lh: 1.8;
114
+ container: sketch / inline-size;
115
+ font-family: var(--sk-font);
116
+ font-size: 13.5px;
117
+ line-height: var(--sk-lh);
118
+ color: var(--sk-fg);
119
+ background: var(--sk-bg);
120
+ border: 1px solid var(--sk-border);
121
+ border-radius: 8px;
122
+ padding: 0.6rem 0;
123
+ overflow-x: auto;
124
+ text-align: left;
125
+ }
126
+ .sketch,
127
+ .sketch * { box-sizing: border-box; }
128
+
129
+ /* Gutter, code, and trailing tags. The tag column takes the remaining width. */
130
+ .sk-lines {
131
+ display: grid;
132
+ grid-template-columns: auto max-content minmax(22ch, 1fr);
133
+ }
134
+
135
+ /* Each line is a row of the grid with two rows of its own. The second one holds tags moved under
136
+ the code, and is empty otherwise. Everything is placed explicitly so the guides can overlap. */
137
+ .sk-row {
138
+ --sk-under-indent: calc((var(--d, 0) + 1) * var(--sk-indent));
139
+ display: grid;
140
+ grid-column: 1 / -1;
141
+ grid-template-columns: subgrid;
142
+ }
143
+ .sk-row:hover { background: var(--sk-row-hover); }
144
+ .sk-has-diag { box-shadow: inset 3px 0 var(--sk-amber); }
145
+
146
+ /* Indentation guides. The row draws them so they run on beside tags moved under the code. */
147
+ .sk-row::before {
148
+ content: '';
149
+ grid-area: 1 / 2 / span 2;
150
+ width: calc(var(--d, 0) * var(--sk-indent));
151
+ background: repeating-linear-gradient(to right, var(--sk-guide) 0 1px, transparent 1px var(--sk-indent));
152
+ background-position: 0.5ch 0;
153
+ pointer-events: none;
154
+ }
155
+
156
+ .sk-gut {
157
+ grid-area: 1 / 1 / span 2;
158
+ padding-left: 1rem;
159
+ text-align: right;
160
+ color: var(--sk-faint);
161
+ font-size: 0.78em;
162
+ /* Same line box as the code, so the numbers sit on its baseline. */
163
+ line-height: calc(var(--sk-lh) / 0.78);
164
+ user-select: none;
165
+ }
166
+ .sketch.sk-gutter .sk-gut { min-width: calc(1rem + 4.5ch); padding-right: 1.5ch; }
167
+ .sk-src { color: inherit; text-decoration: none; }
168
+ a.sk-src:hover { color: var(--sk-blue); text-decoration: underline; }
169
+ .sk-src-inherited { opacity: 0.6; }
170
+
171
+ .sk-code {
172
+ grid-area: 1 / 2;
173
+ position: relative; /* holds the hidden text */
174
+ white-space: pre;
175
+ }
176
+ /* A line's indentation: its spaces, and a width for hosts that drop them. */
177
+ .sk-ind {
178
+ display: inline-block;
179
+ min-width: calc(var(--d, 0) * var(--sk-indent));
180
+ }
181
+
182
+ /* Tags wrap between each other, and a long note wraps beside its pill, so nothing is cut.
183
+ The first line of tags stays centered on the code line. */
184
+ .sk-tags {
185
+ --sk-tag-lh: 1.4;
186
+ grid-area: 1 / 3;
187
+ display: flex;
188
+ flex-wrap: wrap;
189
+ align-items: baseline;
190
+ gap: 0.15rem 0.45rem;
191
+ padding: calc((var(--sk-lh) - var(--sk-tag-lh)) * 0.5em) 1rem calc((var(--sk-lh) - var(--sk-tag-lh)) * 0.5em) 3ch;
192
+ line-height: var(--sk-tag-lh);
193
+ }
194
+ .sk-tags .sk-tagw {
195
+ display: inline-flex;
196
+ align-items: baseline;
197
+ min-width: 0;
198
+ }
199
+ .sk-tags .sk-tag { flex: none; }
200
+ .sk-tags .sk-note {
201
+ position: relative; /* holds the hidden brackets */
202
+ min-width: 0;
203
+ white-space: normal;
204
+ overflow-wrap: anywhere;
205
+ }
206
+
207
+ /* Crowded lines: when a line's tags don't fit on one line in the tag column, they move under its code,
208
+ across the code and tag columns, one level deeper. The renderer marks each line with the box width
209
+ its tags need, rounded up to 10ch (`sk-fit-90`), or `sk-under` when that is more than 250ch. */
210
+ .sk-under > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); }
211
+ @container sketch (max-width: 60ch) { .sk-fit-60 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
212
+ @container sketch (max-width: 70ch) { .sk-fit-70 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
213
+ @container sketch (max-width: 80ch) { .sk-fit-80 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
214
+ @container sketch (max-width: 90ch) { .sk-fit-90 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
215
+ @container sketch (max-width: 100ch) { .sk-fit-100 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
216
+ @container sketch (max-width: 110ch) { .sk-fit-110 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
217
+ @container sketch (max-width: 120ch) { .sk-fit-120 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
218
+ @container sketch (max-width: 130ch) { .sk-fit-130 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
219
+ @container sketch (max-width: 140ch) { .sk-fit-140 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
220
+ @container sketch (max-width: 150ch) { .sk-fit-150 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
221
+ @container sketch (max-width: 160ch) { .sk-fit-160 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
222
+ @container sketch (max-width: 170ch) { .sk-fit-170 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
223
+ @container sketch (max-width: 180ch) { .sk-fit-180 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
224
+ @container sketch (max-width: 190ch) { .sk-fit-190 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
225
+ @container sketch (max-width: 200ch) { .sk-fit-200 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
226
+ @container sketch (max-width: 210ch) { .sk-fit-210 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
227
+ @container sketch (max-width: 220ch) { .sk-fit-220 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
228
+ @container sketch (max-width: 230ch) { .sk-fit-230 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
229
+ @container sketch (max-width: 240ch) { .sk-fit-240 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
230
+ @container sketch (max-width: 250ch) { .sk-fit-250 > .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); } }
231
+
232
+ /* Narrow boxes: code wraps (continuation lines hang 2ch past the indentation) and all trailing tags
233
+ move under the code. Nothing scrolls sideways. */
234
+ @container sketch (max-width: 36rem) {
235
+ .sk-lines { grid-template-columns: auto minmax(0, 1fr); }
236
+ .sk-code {
237
+ --sk-hang: calc(var(--d, 0) * var(--sk-indent) + 2ch);
238
+ white-space: pre-wrap;
239
+ overflow-wrap: anywhere;
240
+ padding-left: var(--sk-hang);
241
+ padding-right: 1rem;
242
+ text-indent: calc(-1 * var(--sk-hang));
243
+ }
244
+ .sk-code * { text-indent: 0; }
245
+ .sk-tags { grid-area: 2 / 2 / auto / -1; padding-left: var(--sk-under-indent); }
246
+ .sk-tags:empty { display: none; }
247
+ }
248
+
249
+ /* ---------- Tags ---------- */
250
+
251
+ .sk-x {
252
+ position: absolute;
253
+ width: 1px;
254
+ height: 1px;
255
+ overflow: hidden;
256
+ clip-path: inset(50%);
257
+ white-space: pre;
258
+ }
259
+
260
+ .sk-tagw { white-space: nowrap; }
261
+
262
+ .sk-tag {
263
+ --sk-c: var(--sk-neutral);
264
+ white-space: nowrap;
265
+ display: inline-flex;
266
+ align-items: baseline;
267
+ font-family: var(--sk-font);
268
+ font-size: 0.8em;
269
+ line-height: 1.5;
270
+ padding: 0 0.5em;
271
+ border-radius: 999px;
272
+ border: 1px solid color-mix(in srgb, var(--sk-c) 38%, transparent);
273
+ background: color-mix(in srgb, var(--sk-c) 13%, transparent);
274
+ color: var(--sk-c);
275
+ vertical-align: 0.08em;
276
+ }
277
+ .sk-kind { font-weight: 650; }
278
+ .sk-mod { font-weight: 800; margin-left: 0.05em; }
279
+ .sk-val {
280
+ margin-left: 0.4em;
281
+ padding-left: 0.4em;
282
+ border-left: 1px solid color-mix(in srgb, var(--sk-c) 38%, transparent);
283
+ }
284
+
285
+ .sk-k-read { --sk-c: var(--sk-aqua); }
286
+ .sk-k-write { --sk-c: var(--sk-orange); }
287
+ .sk-k-fail { --sk-c: var(--sk-red); }
288
+ .sk-k-danger { --sk-c: var(--sk-amber); }
289
+ .sk-k-untrusted { --sk-c: var(--sk-untrusted); }
290
+ .sk-k-secret { --sk-c: var(--sk-secret); }
291
+ .sk-k-unsure { --sk-c: var(--sk-neutral); border-style: dotted; }
292
+ .sk-k-src { --sk-c: var(--sk-blue); }
293
+ .sk-k-new { --sk-c: var(--sk-green); }
294
+ .sk-k-changed { --sk-c: var(--sk-blue); }
295
+ .sk-k-removed { --sk-c: var(--sk-red); }
296
+
297
+ /* Conditional (?): dashed outline in the effect's color. */
298
+ .sk-cond {
299
+ background: transparent;
300
+ border-style: dashed;
301
+ border-color: var(--sk-c);
302
+ }
303
+ /* Unverified (~): lighter fill; the ~ stays visible. */
304
+ .sk-unv {
305
+ background: color-mix(in srgb, var(--sk-c) 5%, transparent);
306
+ border-color: color-mix(in srgb, var(--sk-c) 22%, transparent);
307
+ }
308
+ .sk-unv .sk-kind,
309
+ .sk-unv .sk-val { opacity: 0.8; }
310
+ /* Runtime system (*): dashed outline, so it stands out. */
311
+ .sk-rt .sk-val {
312
+ border-left: none;
313
+ margin-left: 0.35em;
314
+ padding: 0 0.35em;
315
+ outline: 1.5px dashed var(--sk-c);
316
+ outline-offset: -1px;
317
+ border-radius: 999px;
318
+ font-weight: 800;
319
+ }
320
+
321
+ .sk-note {
322
+ margin-left: 0.4em;
323
+ font-size: 0.8em;
324
+ color: var(--sk-muted);
325
+ }
326
+ .sk-note-danger {
327
+ color: var(--sk-amber);
328
+ font-weight: 650;
329
+ }
330
+ .sk-bang { margin-right: 0.25em; font-weight: 800; }
331
+
332
+ /* ---------- Changes ---------- */
333
+
334
+ /* A bar on the gutter's inner edge, as in a diff, beside every line a change covers. */
335
+ .sk-ch > .sk-gut {
336
+ background: linear-gradient(var(--sk-ch), var(--sk-ch)) no-repeat right 0.35rem top 0 / 3px 100%;
337
+ }
338
+ .sk-ch-new { --sk-ch: var(--sk-green); }
339
+ .sk-ch-changed { --sk-ch: var(--sk-blue); }
340
+ .sk-ch-removed { --sk-ch: var(--sk-red); }
341
+ /* Removed lines: the code is struck through and the effects it no longer has are dimmed. */
342
+ .sk-ch-removed > .sk-code { opacity: 0.6; }
343
+ .sk-struck {
344
+ text-decoration: line-through;
345
+ text-decoration-color: color-mix(in srgb, var(--sk-red) 70%, transparent);
346
+ }
347
+ .sk-ch-removed > .sk-tags .sk-tagw:not(:has(.sk-k-removed)) { opacity: 0.5; }
348
+
349
+ /* ---------- Code ---------- */
350
+
351
+ .sk-word { color: var(--sk-violet); }
352
+ .sk-fn { color: var(--sk-blue); font-weight: 700; }
353
+
354
+ .sk-call {
355
+ color: var(--sk-blue);
356
+ text-decoration: underline dotted color-mix(in srgb, var(--sk-blue) 60%, transparent);
357
+ text-underline-offset: 3px;
358
+ }
359
+ a.sk-call:hover { text-decoration-style: solid; }
360
+ .sk-call.sk-linked { cursor: pointer; }
361
+
362
+ .sk-var {
363
+ font-weight: 700;
364
+ border-radius: 3px;
365
+ cursor: pointer;
366
+ }
367
+ .sk-def { font-weight: 800; }
368
+ .sk-lbl-untrusted {
369
+ text-decoration: underline wavy var(--sk-untrusted);
370
+ text-decoration-thickness: 1px;
371
+ text-underline-offset: 3px;
372
+ }
373
+ .sk-lbl-secret {
374
+ text-decoration: underline solid var(--sk-secret);
375
+ text-decoration-thickness: 2px;
376
+ text-underline-offset: 3px;
377
+ }
378
+
379
+ .sk-hl { background: var(--sk-hl-bg); }
380
+ .sk-pin { background: var(--sk-pin-bg); }
381
+ .sk-val.sk-hl,
382
+ .sk-val.sk-pin { border-radius: 3px; }
383
+
384
+ .sk-file {
385
+ color: var(--sk-muted);
386
+ font-size: 0.78em;
387
+ text-decoration: none;
388
+ }
389
+ a.sk-file:hover { color: var(--sk-blue); text-decoration: underline; }
390
+
391
+ /* A source link whose tooltip carries a note, such as a warning that the lines may have moved. */
392
+ .sk-src.sk-src-note,
393
+ .sk-file.sk-src-note { color: var(--sk-amber); }
394
+ .sk-call.sk-src-note { text-decoration-color: var(--sk-amber); }
395
+
396
+ /* ---------- Explanations ---------- */
397
+
398
+ /* A line with a ::doc has a small circled "i" after its code, drawn here so copying the code leaves it out. */
399
+ .sk-doc-mark {
400
+ display: inline-block;
401
+ width: 1.5em;
402
+ height: 1.5em;
403
+ margin-left: calc(1ch / 0.72);
404
+ font-size: 0.72em;
405
+ line-height: calc(1.5em - 2px);
406
+ text-align: center;
407
+ vertical-align: 0.15em;
408
+ border: 1px solid color-mix(in srgb, var(--sk-muted) 50%, transparent);
409
+ border-radius: 50%;
410
+ color: var(--sk-muted);
411
+ user-select: none;
412
+ }
413
+ .sk-doc-mark::before {
414
+ content: 'i';
415
+ font: italic 700 1em/1 Georgia, 'Times New Roman', serif;
416
+ }
417
+ .sk-row:hover .sk-doc-mark,
418
+ .sk-code:focus .sk-doc-mark,
419
+ .sk-doc-scope .sk-doc-mark {
420
+ color: var(--sk-blue);
421
+ border-color: color-mix(in srgb, var(--sk-blue) 60%, transparent);
422
+ }
423
+ .sk-call.sk-has-doc:not(.sk-linked) { cursor: help; }
424
+ .sk-has-doc:focus { outline: none; }
425
+ .sk-has-doc:focus-visible {
426
+ outline: 1.5px solid color-mix(in srgb, var(--sk-blue) 60%, transparent);
427
+ outline-offset: 1px;
428
+ border-radius: 3px;
429
+ }
430
+ /* The rows a block header's explanation covers, while it shows. */
431
+ .sk-row.sk-doc-scope { background: var(--sk-row-hover); }
432
+
433
+ .sk-doc-info {
434
+ margin-top: 0.35rem;
435
+ color: var(--sk-muted);
436
+ font-size: 0.9em;
437
+ }
438
+
439
+ /* Inline code made only of tags, as the Markdown plugins render it: a span, not a code element, so
440
+ host styles for inline code don't box the pills, and MDX sites don't turn them into code blocks. */
441
+ .sk-inline {
442
+ white-space: nowrap;
443
+ }
444
+ /* Styles for data sketches. The colors are the tokens in shared/base.css. Table rules carry an extra
445
+ class, and rows an always-true :nth-child(n), so a host page's table styles, such as borders and
446
+ striped rows, don't apply. */
447
+
448
+ /* ---------- Layout ---------- */
449
+
450
+ /* .skd is the box and the size container; .skd-body puts the story beside the tables. */
451
+ .skd {
452
+ --skd-new-bg: color-mix(in srgb, var(--sk-green) 13%, transparent);
453
+ --skd-chg-bg: color-mix(in srgb, var(--sk-blue) 13%, transparent);
454
+ --skd-del-bg: color-mix(in srgb, var(--sk-red) 9%, transparent);
455
+ /* Reads are aqua, the code view's color for them. */
456
+ --skd-read: var(--sk-aqua);
457
+ position: relative;
458
+ container: skd / inline-size;
459
+ font: 13.5px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
460
+ color: var(--sk-fg);
461
+ background: var(--sk-bg);
462
+ border: 1px solid var(--sk-border);
463
+ border-radius: 8px;
464
+ padding: 14px;
465
+ text-align: left;
466
+ }
467
+ .skd,
468
+ .skd * { box-sizing: border-box; }
469
+ .skd:focus { outline: none; }
470
+ .skd-body {
471
+ display: grid;
472
+ grid-template-columns: minmax(11em, 15em) minmax(0, 1fr);
473
+ gap: 18px 22px;
474
+ align-items: start;
475
+ }
476
+ .skd-body.skd-no-story { grid-template-columns: minmax(0, 1fr); }
477
+ /* In a narrow space, the story goes above the tables. */
478
+ @container skd (max-width: 44em) {
479
+ .skd-body { grid-template-columns: minmax(0, 1fr); }
480
+ }
481
+
482
+ /* ---------- Story ---------- */
483
+
484
+ .skd-steps {
485
+ list-style: none;
486
+ margin: 0;
487
+ padding: 0;
488
+ }
489
+ .skd-step {
490
+ display: flex;
491
+ align-items: baseline;
492
+ margin: 0;
493
+ padding-right: 6px;
494
+ border-radius: 6px;
495
+ color: var(--sk-muted);
496
+ }
497
+ /* The current step keeps the same weight as the others, so its title never wraps differently. */
498
+ .skd-step.skd-cur {
499
+ color: var(--sk-fg);
500
+ background: var(--sk-card);
501
+ box-shadow: 0 0 0 1px var(--sk-border);
502
+ }
503
+ .skd[data-skd-live] .skd-step:not(.skd-cur, .skd-past) { color: var(--sk-faint); }
504
+ .skd[data-skd-live] .skd-step { cursor: pointer; }
505
+ .skd[data-skd-live] .skd-step:hover { color: var(--sk-fg); }
506
+ .skd-go {
507
+ display: flex;
508
+ flex: 0 1 auto;
509
+ gap: 8px;
510
+ align-items: baseline;
511
+ min-width: 0;
512
+ margin: 0;
513
+ padding: 5px 2px 5px 8px;
514
+ border: 0;
515
+ background: none;
516
+ color: inherit;
517
+ font: inherit;
518
+ text-align: left;
519
+ cursor: inherit;
520
+ }
521
+ .skd-go:focus { outline: none; }
522
+ .skd-go:focus-visible .skd-title {
523
+ outline: 1.5px solid color-mix(in srgb, var(--sk-blue) 60%, transparent);
524
+ outline-offset: 2px;
525
+ border-radius: 2px;
526
+ }
527
+ .skd-n {
528
+ flex: none;
529
+ min-width: 1.2em;
530
+ text-align: right;
531
+ font-variant-numeric: tabular-nums;
532
+ color: var(--sk-faint);
533
+ }
534
+ .skd-cur .skd-n { color: var(--sk-muted); }
535
+
536
+ /* A step with substeps lists them under its title, on a thin line. They are always listed, so the list
537
+ keeps its height as the reader steps. */
538
+ .skd-step.skd-multi { display: block; }
539
+ .skd-head {
540
+ display: flex;
541
+ align-items: baseline;
542
+ }
543
+ .skd-subs {
544
+ margin: -2px 0 6px calc(8px + 1.2em + 3px);
545
+ padding: 0;
546
+ list-style: none;
547
+ border-left: 1.5px solid var(--sk-border);
548
+ }
549
+ .skd-sub {
550
+ display: flex;
551
+ align-items: baseline;
552
+ margin: 0 0 0 -1.5px;
553
+ border-left: 1.5px solid transparent;
554
+ }
555
+ .skd-sub .skd-go {
556
+ padding: 2px 2px 2px 8px;
557
+ font-size: 12.5px;
558
+ line-height: 1.35;
559
+ }
560
+ .skd[data-skd-live] .skd-step:not(.skd-cur) .skd-sub { color: var(--sk-faint); }
561
+ .skd-step.skd-cur .skd-sub { color: var(--sk-muted); }
562
+ .skd-step.skd-cur .skd-sub.skd-cur {
563
+ color: var(--sk-fg);
564
+ border-left-color: var(--sk-fg);
565
+ }
566
+ .skd[data-skd-live] .skd-sub:hover { color: var(--sk-fg); }
567
+
568
+ /* The arrows show only once enhance() makes them work. */
569
+ .skd-nav {
570
+ display: none;
571
+ gap: 6px;
572
+ align-items: center;
573
+ margin: 10px 0 0 8px;
574
+ color: var(--sk-faint);
575
+ font-size: 12px;
576
+ }
577
+ .skd[data-skd-live] .skd-nav { display: flex; }
578
+ .skd-nav button {
579
+ width: 32px;
580
+ height: 28px;
581
+ margin: 0;
582
+ padding: 0;
583
+ border: 1px solid var(--sk-border);
584
+ border-radius: 6px;
585
+ background: var(--sk-card);
586
+ color: var(--sk-fg);
587
+ font: inherit;
588
+ cursor: pointer;
589
+ }
590
+ .skd-nav button:disabled {
591
+ opacity: 0.35;
592
+ cursor: default;
593
+ }
594
+
595
+ .skd-legend {
596
+ display: flex;
597
+ flex-wrap: wrap;
598
+ gap: 4px 12px;
599
+ margin: 12px 0 0 8px;
600
+ color: var(--sk-muted);
601
+ font-size: 12px;
602
+ }
603
+ .skd-legend > span::before {
604
+ content: '';
605
+ display: inline-block;
606
+ width: 10px;
607
+ height: 10px;
608
+ margin-right: 5px;
609
+ vertical-align: -1px;
610
+ border-radius: 3px;
611
+ background: var(--skd-c-bg);
612
+ outline: 1px solid var(--skd-c);
613
+ }
614
+ .skd-l-new { --skd-c: var(--sk-green); --skd-c-bg: var(--skd-new-bg); }
615
+ .skd-l-chg { --skd-c: var(--sk-blue); --skd-c-bg: var(--skd-chg-bg); }
616
+ .skd-l-del { --skd-c: var(--sk-red); --skd-c-bg: var(--skd-del-bg); }
617
+ .skd-l-read { --skd-c: var(--skd-read); --skd-c-bg: transparent; }
618
+
619
+ /* ---------- Explanations ---------- */
620
+
621
+ /* A step or table with an explanation has a small circled "i", drawn here so copying the page leaves it out. */
622
+ .skd-mark {
623
+ display: inline-grid;
624
+ flex: none;
625
+ place-items: center;
626
+ width: 15px;
627
+ height: 15px;
628
+ margin: 0 0 0 4px;
629
+ padding: 0;
630
+ border: 1px solid color-mix(in srgb, var(--sk-muted) 50%, transparent);
631
+ border-radius: 50%;
632
+ background: none;
633
+ color: var(--sk-muted);
634
+ font-size: 10px;
635
+ line-height: 1;
636
+ cursor: pointer;
637
+ user-select: none;
638
+ align-self: center;
639
+ }
640
+ .skd-mark::before {
641
+ content: 'i';
642
+ font: italic 700 1em/1 Georgia, 'Times New Roman', serif;
643
+ }
644
+ .skd-mark:hover,
645
+ .skd-doc-on .skd-mark {
646
+ color: var(--sk-blue);
647
+ border-color: color-mix(in srgb, var(--sk-blue) 60%, transparent);
648
+ }
649
+ /* In the list, only the current or hovered step or substep shows its mark, to keep the list quiet. */
650
+ .skd-step .skd-mark { visibility: hidden; }
651
+ .skd-step:is(.skd-cur, :hover) > .skd-mark,
652
+ .skd-step:is(.skd-cur, :hover) > .skd-head > .skd-mark,
653
+ .skd-sub:is(.skd-cur, :hover) > .skd-mark,
654
+ .skd-doc-on > .skd-mark { visibility: visible; }
655
+ .skd-sub .skd-mark {
656
+ width: 14px;
657
+ height: 14px;
658
+ font-size: 9.5px;
659
+ }
660
+
661
+ /* ---------- Tables ---------- */
662
+
663
+ .skd-board {
664
+ display: flex;
665
+ flex-wrap: wrap;
666
+ gap: 14px;
667
+ align-items: flex-start;
668
+ min-width: 0;
669
+ }
670
+ .skd-table {
671
+ max-width: 100%;
672
+ padding: 8px 4px 4px;
673
+ overflow-x: auto;
674
+ border: 1px solid var(--sk-border);
675
+ border-radius: 8px;
676
+ background: var(--sk-card);
677
+ }
678
+ .skd-name {
679
+ display: flex;
680
+ align-items: center;
681
+ margin: 0 8px 4px;
682
+ font-weight: 600;
683
+ }
684
+ .skd .skd-grid {
685
+ display: table;
686
+ margin: 0;
687
+ font: inherit;
688
+ border: 0;
689
+ border-collapse: collapse;
690
+ background: none;
691
+ }
692
+ /* Host table styles stay out, such as the striped head and rows of Docusaurus. */
693
+ .skd .skd-grid thead,
694
+ .skd .skd-grid tbody,
695
+ .skd .skd-grid tr:nth-child(n) {
696
+ border: 0;
697
+ background: none;
698
+ }
699
+ .skd .skd-grid th,
700
+ .skd .skd-grid td {
701
+ border: 0;
702
+ background: none;
703
+ white-space: nowrap;
704
+ text-align: left;
705
+ vertical-align: middle;
706
+ }
707
+ .skd .skd-grid th {
708
+ padding: 2px 8px 4px;
709
+ color: var(--sk-muted);
710
+ font-size: 12px;
711
+ font-weight: 400;
712
+ }
713
+ .skd .skd-grid td {
714
+ height: 28px;
715
+ padding: 0 8px;
716
+ }
717
+ .skd .skd-grid td:first-child { border-radius: 5px 0 0 5px; }
718
+ .skd .skd-grid td:last-child { border-radius: 0 5px 5px 0; }
719
+ .skd .skd-grid tbody[hidden] { display: none; }
720
+ .skd-id {
721
+ color: var(--sk-muted);
722
+ font: 12px var(--sk-font);
723
+ }
724
+ .skd-null,
725
+ .skd-slot .skd-id { color: var(--sk-faint); }
726
+ /* A value longer than the renderer's cap (MAX_WIDTH in render.ts) is cut off; its cell's tooltip has all of it. */
727
+ .skd-long {
728
+ display: inline-block;
729
+ max-width: 24ch;
730
+ overflow: hidden;
731
+ text-overflow: ellipsis;
732
+ vertical-align: bottom;
733
+ }
734
+ .skd-ref {
735
+ padding: 0 5px;
736
+ border: 1px solid color-mix(in srgb, var(--sk-fg) 22%, transparent);
737
+ border-radius: 4px;
738
+ font: 12px var(--sk-font);
739
+ }
740
+ .skd-ref.skd-broken {
741
+ border-style: dashed;
742
+ border-color: var(--sk-red);
743
+ }
744
+
745
+ /* ---------- Folders ---------- */
746
+
747
+ /* A folder is a card with a tab on top that holds its name, ending with a slash. */
748
+ .skd-folder {
749
+ display: flex;
750
+ flex-direction: column;
751
+ align-items: flex-start;
752
+ max-width: 100%;
753
+ }
754
+ .skd-folder > .skd-name {
755
+ position: relative;
756
+ z-index: 1;
757
+ margin: 0;
758
+ padding: 3px 10px 2px;
759
+ border: 1px solid var(--sk-border);
760
+ border-bottom-color: var(--sk-card);
761
+ border-radius: 7px 7px 0 0;
762
+ background: var(--sk-card);
763
+ }
764
+ .skd-slash {
765
+ color: var(--sk-muted);
766
+ font-weight: 400;
767
+ }
768
+ .skd-files {
769
+ max-width: 100%;
770
+ margin-top: -1px;
771
+ padding: 4px;
772
+ overflow-x: auto;
773
+ border: 1px solid var(--sk-border);
774
+ border-radius: 0 8px 8px 8px;
775
+ background: var(--sk-card);
776
+ }
777
+ /* The path is what a file is, so it reads as the row's main text, not as a faint id. The folders it
778
+ shares with the path above are dimmed. */
779
+ .skd .skd-folder .skd-path { color: var(--sk-fg); }
780
+ .skd-same { color: var(--sk-faint); }
781
+ .skd .skd-folder tr.skd-removed .skd-path,
782
+ .skd .skd-folder tr.skd-removed .skd-same { color: var(--sk-muted); }
783
+
784
+ /* ---------- Groups ---------- */
785
+
786
+ /* A light frame around some tables, with its label on top. Its tables wrap inside it. */
787
+ .skd-group {
788
+ flex: 0 1 auto;
789
+ min-width: 0;
790
+ max-width: 100%;
791
+ padding: 6px 8px 8px;
792
+ border: 1px solid var(--sk-border);
793
+ border-radius: 12px;
794
+ background: color-mix(in srgb, var(--sk-fg) 2.5%, transparent);
795
+ }
796
+ .skd-group-name {
797
+ display: flex;
798
+ align-items: center;
799
+ margin: 0 4px 6px;
800
+ color: var(--sk-muted);
801
+ font-size: 12.5px;
802
+ font-weight: 600;
803
+ }
804
+ /* A label longer than the values' cap (MAX_WIDTH in render.ts) is cut off; its tooltip has all of it. */
805
+ .skd-group-name > span:first-child {
806
+ max-width: 24ch;
807
+ overflow: hidden;
808
+ text-overflow: ellipsis;
809
+ white-space: nowrap;
810
+ }
811
+ .skd-group-body {
812
+ display: flex;
813
+ flex-wrap: wrap;
814
+ gap: 10px;
815
+ align-items: flex-start;
816
+ }
817
+
818
+ /* What the current step changed. These are the colors every view uses for changes. */
819
+ .skd .skd-grid tr.skd-new td { background: var(--skd-new-bg); }
820
+ .skd .skd-grid tr.skd-removed td {
821
+ background: var(--skd-del-bg);
822
+ color: var(--sk-muted);
823
+ text-decoration: line-through;
824
+ text-decoration-color: var(--sk-red);
825
+ }
826
+ .skd .skd-grid td.skd-chg { background: var(--skd-chg-bg); }
827
+ @keyframes skd-flash {
828
+ from { filter: saturate(3) brightness(0.92); }
829
+ to { filter: none; }
830
+ }
831
+ @media (prefers-reduced-motion: no-preference) {
832
+ .skd[data-skd-live] tr.skd-new td,
833
+ .skd[data-skd-live] tr.skd-removed td,
834
+ .skd[data-skd-live] td.skd-chg { animation: skd-flash 0.9s ease-out; }
835
+ }
836
+
837
+ /* A row a read finds has a ring, so it can't be mistaken for a change, which fills. */
838
+ .skd .skd-grid tr.skd-read td { box-shadow: inset 0 1.5px var(--skd-read), inset 0 -1.5px var(--skd-read); }
839
+ .skd .skd-grid tr.skd-read td:first-child {
840
+ box-shadow: inset 1.5px 0 var(--skd-read), inset 0 1.5px var(--skd-read), inset 0 -1.5px var(--skd-read);
841
+ }
842
+ .skd .skd-grid tr.skd-read td:last-child {
843
+ box-shadow: inset -1.5px 0 var(--skd-read), inset 0 1.5px var(--skd-read), inset 0 -1.5px var(--skd-read);
844
+ }
845
+ .skd .skd-grid tr.skd-read td:first-child:last-child { box-shadow: inset 0 0 0 1.5px var(--skd-read); }
846
+ /* What the read matched on: the id, the prefix of a path, or the cells of the lookup's columns, whose
847
+ names are underlined while the read shows. */
848
+ .skd .skd-grid td.skd-read-key,
849
+ .skd .skd-grid .skd-read-key { color: var(--skd-read); }
850
+ .skd .skd-grid td.skd-read-key .skd-ref { border-color: var(--skd-read); }
851
+ .skd .skd-grid th.skd-on {
852
+ color: var(--skd-read);
853
+ text-decoration: underline 1.5px;
854
+ text-underline-offset: 3px;
855
+ }
856
+ @media (prefers-reduced-motion: no-preference) {
857
+ .skd[data-skd-live] tr.skd-read td { animation: skd-flash 0.9s ease-out; }
858
+ }
859
+ /* A read that finds nothing: a badge beside the table's name. A table keeps room for it, so nothing
860
+ moves; a folder's tab would look empty, so it grows instead. */
861
+ .skd-nomatch {
862
+ margin-left: 8px;
863
+ padding: 0 6px;
864
+ border: 1px dashed var(--skd-read);
865
+ border-radius: 4px;
866
+ color: var(--skd-read);
867
+ font-size: 11.5px;
868
+ font-weight: 400;
869
+ line-height: 1.5;
870
+ white-space: nowrap;
871
+ }
872
+ .skd-nomatch:not(.skd-on) { visibility: hidden; }
873
+ .skd-folder .skd-nomatch:not(.skd-on) { display: none; }
874
+
875
+ /* The lines enhance() draws from the current step to the rows its reads find. They never take a click. */
876
+ .skd-lines {
877
+ position: absolute;
878
+ inset: 0;
879
+ z-index: 2;
880
+ width: 100%;
881
+ height: 100%;
882
+ overflow: visible;
883
+ pointer-events: none;
884
+ color: var(--skd-read);
885
+ }
886
+ .skd-lines .skd-line {
887
+ fill: none;
888
+ stroke: currentColor;
889
+ stroke-width: 1.5;
890
+ opacity: 0.85;
891
+ }
892
+ .skd-lines .skd-arrow { fill: currentColor; opacity: 0.85; }
893
+
894
+ /* A reference and the row it points at, while either is hovered. */
895
+ .skd .skd-grid tr.skd-hl td,
896
+ .skd-ref.skd-hl { background: var(--sk-hl-bg); }
897
+ .skd-ref.skd-hl { border-color: transparent; }
898
+
899
+ .skd-warnings {
900
+ margin: 12px 0 0;
901
+ padding-left: 18px;
902
+ color: var(--sk-amber);
903
+ font-size: 12px;
904
+ }