@sparkelf/dsh-genui 0.11.4-patch.2 → 0.13.0-sparkelf.3
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/CHANGELOG.md +76 -0
- package/ICON-NAMES.md +30 -0
- package/README.md +26 -28
- package/README.zh-CN.md +26 -28
- package/SKILL.md +128 -19
- package/THIRD_PARTY_NOTICES.md +42 -0
- package/assets/genui-icon.svg +20 -0
- package/assets/genui-logo.svg +18 -0
- package/lib/assets/icons.js +1 -0
- package/lib/assets/mermaid.js +325 -325
- package/lib/assets/standalone-runtime.js +10 -9
- package/lib/client.js +32 -31
- package/lib/index.js +523 -80
- package/lib/types/client/action-context.d.ts +1 -1
- package/lib/types/client/artifact/types.d.ts +1 -1
- package/lib/types/client/asset-loader.d.ts +2 -2
- package/lib/types/client/blocks/blocks.d.ts +12 -0
- package/lib/types/client/blocks/icon.d.ts +4 -0
- package/lib/types/client/dom-fence.d.ts +2 -1
- package/lib/types/client/fence-render.d.ts +5 -21
- package/lib/types/client/file-address.d.ts +4 -0
- package/lib/types/client/file-link-context.d.ts +49 -0
- package/lib/types/client/file-link.d.ts +17 -0
- package/lib/types/client/gallery.d.ts +8 -2
- package/lib/types/client/genui-runtime/diagnostics.d.ts +1 -1
- package/lib/types/client/genui-runtime/limits.d.ts +4 -0
- package/lib/types/client/genui-runtime/schema.d.ts +14 -1
- package/lib/types/client/guard.d.ts +4 -1
- package/lib/types/client/i18n/en.d.ts +5 -1
- package/lib/types/client/i18n/index.d.ts +1 -1
- package/lib/types/client/icons/asset-icons.d.ts +1 -0
- package/lib/types/client/icons/icon-data-full.d.ts +23 -0
- package/lib/types/client/icons/icon-data.d.ts +24 -0
- package/lib/types/client/icons/icon-lazy.d.ts +18 -0
- package/lib/types/client/icons/icon-names-full.d.ts +12 -0
- package/lib/types/client/index.d.ts +5 -15
- package/lib/types/client/inline.d.ts +1 -1
- package/lib/types/client/mermaid-colors.d.ts +2 -0
- package/lib/types/client/mermaid-core.d.ts +2 -1
- package/lib/types/client/mermaid-lazy.d.ts +5 -1
- package/lib/types/client/panel-command.d.ts +21 -1
- package/lib/types/client/panel.d.ts +6 -1
- package/lib/types/client/primitive-adapter.d.ts +0 -2
- package/lib/types/client/session-resolver.d.ts +13 -2
- package/lib/types/client/source-fence.d.ts +1 -1
- package/lib/types/client/spec.d.ts +127 -3
- package/lib/types/client/standalone/asset-loader.d.ts +1 -1
- package/lib/types/client/standalone/primitive-adapter.d.ts +0 -4
- package/lib/types/plugin/fence-feedback.d.ts +11 -7
- package/lib/types/plugin/index.d.ts +6 -2
- package/lib/types/shared/fence-language.d.ts +14 -0
- package/lib/types/shared/fence-repair.d.ts +2 -1
- package/lib/types/shared/fence-resolve.d.ts +1 -1
- package/package.json +92 -83
- package/src/client/EChartNode.tsx +17 -3
- package/src/client/GenuiBlock.module.css +411 -76
- package/src/client/action-context.ts +5 -15
- package/src/client/artifact/ArtifactExport.module.css +34 -3
- package/src/client/artifact/ExportableGenuiBlock.tsx +23 -2
- package/src/client/artifact/portability.ts +6 -1
- package/src/client/artifact/types.ts +1 -1
- package/src/client/asset-loader.ts +3 -3
- package/src/client/blocks/advanced.tsx +101 -14
- package/src/client/blocks/blocks.tsx +143 -0
- package/src/client/blocks/charts.tsx +22 -6
- package/src/client/blocks/icon.tsx +93 -0
- package/src/client/blocks/image.tsx +1 -0
- package/src/client/blocks/render-node.tsx +84 -52
- package/src/client/dom-fence.tsx +546 -72
- package/src/client/fence-render.tsx +5 -21
- package/src/client/file-address.ts +37 -0
- package/src/client/file-link-context.tsx +116 -0
- package/src/client/file-link.ts +46 -0
- package/src/client/gallery.ts +161 -133
- package/src/client/genui-runtime/diagnostics.ts +1 -1
- package/src/client/genui-runtime/limits.ts +4 -0
- package/src/client/genui-runtime/normalize.ts +42 -6
- package/src/client/genui-runtime/schema.ts +39 -7
- package/src/client/guard.ts +170 -15
- package/src/client/i18n/en.ts +5 -1
- package/src/client/i18n/index.ts +1 -1
- package/src/client/i18n/zh.ts +5 -1
- package/src/client/icons/asset-icons.ts +16 -0
- package/src/client/icons/icon-data-full.ts +5715 -0
- package/src/client/icons/icon-data.ts +507 -0
- package/src/client/icons/icon-lazy.ts +80 -0
- package/src/client/icons/icon-names-full.ts +12 -0
- package/src/client/index.tsx +27 -51
- package/src/client/inline.ts +17 -6
- package/src/client/mermaid-colors.ts +40 -0
- package/src/client/mermaid-core.ts +69 -61
- package/src/client/mermaid-lazy.ts +99 -4
- package/src/client/panel-command.ts +16 -2
- package/src/client/panel.tsx +18 -5
- package/src/client/parse-partial.ts +6 -1
- package/src/client/primitive-adapter.ts +0 -11
- package/src/client/session-resolver.ts +12 -21
- package/src/client/source-fence.ts +4 -2
- package/src/client/spec.ts +149 -2
- package/src/client/standalone/asset-loader.ts +1 -1
- package/src/client/standalone/primitive-adapter.tsx +1 -9
- package/src/client/table-details.ts +4 -3
- package/src/plugin/fence-feedback.ts +60 -14
- package/src/plugin/index.ts +45 -20
- package/src/plugin/tool.ts +11 -2
- package/src/shared/fence-language.ts +30 -0
- package/src/shared/fence-repair.ts +37 -1
- package/src/shared/fence-resolve.ts +1 -1
- package/tsdown.config.ts +7 -8
- package/lib/invariant.js +0 -19
- package/lib/types/plugin/invariant.d.ts +0 -15
- package/src/plugin/invariant.ts +0 -30
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
sizes/gaps/radii (17 font sizes, 6 radii, 10+ gap values, 13 tint levels)
|
|
5
5
|
into five scales:
|
|
6
6
|
|
|
7
|
-
· type
|
|
8
|
-
|
|
7
|
+
· type mega 52 / stat-hero 44 / stat 34 / display 28 / h1 24 / h2 19 /
|
|
8
|
+
h3 16 / body 14.5 / title 13.5 / meta 12.5 / data 12 (v11)
|
|
9
|
+
· spacing 4 · 8 · 12 · 16 · 24 (--dsl-g-gap-*; 24 is the section step)
|
|
10
|
+
· motion fast 0.15s / grow 0.6s / reveal 0.45s on one ease-out curve (v11)
|
|
9
11
|
· radius surface 12 · control 8 · pill 999
|
|
10
12
|
· color one brand accent for interaction+data; success/warn/error only
|
|
11
13
|
for state; tints normalized to 8% (subtle) / 14% (strong)
|
|
@@ -23,7 +25,14 @@ body[data-ds-dark-theme] .block,
|
|
|
23
25
|
body[data-ds-dark-theme] .panel {
|
|
24
26
|
--dsl-g-surface: color-mix(in srgb, var(--dsw-alias-label-primary) 4%,
|
|
25
27
|
var(--dsw-alias-bg-layer-2, var(--dsw-alias-bg-layer-1, var(--dsw-alias-markdown-code-block, transparent))));
|
|
26
|
-
--dsl-g-shadow-card:
|
|
28
|
+
--dsl-g-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.18);
|
|
29
|
+
/* A hue over a near-black page loses more contrast than the same hue over
|
|
30
|
+
white (the base colour is already dark), so the surface wash needs a
|
|
31
|
+
higher alpha to read at all: 18% dark against 12% light. `tint-strong`
|
|
32
|
+
is deliberately NOT bumped: it drives focus glow and data accents, whose
|
|
33
|
+
weight was tuned separately. */
|
|
34
|
+
--dsl-g-tint: 18%;
|
|
35
|
+
--dsl-g-tint-quiet: 12%;
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
.block,
|
|
@@ -40,9 +49,13 @@ body[data-ds-dark-theme] .panel {
|
|
|
40
49
|
|
|
41
50
|
/* Design system v4: the v3 scale was too compressed — every level sat
|
|
42
51
|
within 26..12px, so nothing dominated. v4 restores a display contrast
|
|
43
|
-
(
|
|
44
|
-
the
|
|
45
|
-
|
|
52
|
+
(34/28/24/19/16) against a 14.5px body, and the reading floor stays 12px.
|
|
53
|
+
v11 names the three big figures by their OWNER: stat values, the single
|
|
54
|
+
hero stat, and the hero cover's mega figure are three different jobs on
|
|
55
|
+
one scale (before v11: "--dsl-g-font-hero", a bare 44px and a bare 52px). */
|
|
56
|
+
--dsl-g-font-stat: 34px;
|
|
57
|
+
--dsl-g-font-stat-hero: 44px;
|
|
58
|
+
--dsl-g-font-mega: 52px;
|
|
46
59
|
--dsl-g-font-display: 28px;
|
|
47
60
|
--dsl-g-font-h1: 24px;
|
|
48
61
|
--dsl-g-font-h2: 19px;
|
|
@@ -53,10 +66,18 @@ body[data-ds-dark-theme] .panel {
|
|
|
53
66
|
--dsl-g-font-data: 12px;
|
|
54
67
|
|
|
55
68
|
--dsl-g-gap-lg: 16px;
|
|
69
|
+
--dsl-g-gap-xl: 24px;
|
|
56
70
|
--dsl-g-gap-md: 12px;
|
|
57
71
|
--dsl-g-gap-sm: 8px;
|
|
58
72
|
--dsl-g-gap-xs: 4px;
|
|
59
73
|
|
|
74
|
+
/* Motion (v11): one deceleration curve; durations named by JOB, not by
|
|
75
|
+
component — control feedback, data growth, entrance reveal. */
|
|
76
|
+
--dsl-g-dur-fast: 0.15s;
|
|
77
|
+
--dsl-g-dur-grow: 0.6s;
|
|
78
|
+
--dsl-g-dur-reveal: 0.45s;
|
|
79
|
+
--dsl-g-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
|
|
80
|
+
|
|
60
81
|
--dsl-g-border: var(--dsw-alias-border-l1, var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.12)));
|
|
61
82
|
--dsl-g-border-strong: var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.12));
|
|
62
83
|
--dsl-g-accent: var(--dsw-alias-state-business-primary, #4f8ef7);
|
|
@@ -64,10 +85,21 @@ body[data-ds-dark-theme] .panel {
|
|
|
64
85
|
/* Row/surface hover: a 4% wash of the theme's own label color works on
|
|
65
86
|
* dark AND light hosts without any off-brand literal. */
|
|
66
87
|
--dsl-g-hover: color-mix(in srgb, var(--dsw-alias-label-primary) 4%, transparent);
|
|
88
|
+
--dsl-g-hover-strong: color-mix(in srgb, var(--dsw-alias-label-primary) 8%, transparent);
|
|
67
89
|
/* Zebra rows / table header wash: half the hover strength, so a striped
|
|
68
90
|
table still reads as one surface rather than a stack of bands. */
|
|
69
91
|
--dsl-g-zebra: color-mix(in srgb, var(--dsw-alias-label-primary) 2.5%, transparent);
|
|
70
|
-
|
|
92
|
+
/* Semantic surface wash (v12). 8% was the v2 normalization, chosen when the
|
|
93
|
+
only consumer was a hover band. On a white canvas 8% of a saturated hue
|
|
94
|
+
lands under a 3% lightness step: badges, callouts, card tones and the new
|
|
95
|
+
icon plate all resolved to plain white, so every "tinted" surface read as
|
|
96
|
+
un-coloured and the block relied on its text alone. 12% light / 18% dark
|
|
97
|
+
keeps the host hue (no fixed pastels — those block dark theme) while
|
|
98
|
+
producing a visible step. `--dsl-g-tint-strong` stays at 14% for focus
|
|
99
|
+
glow and data accents; `--dsl-g-tint-quiet` keeps the old 8% for bands
|
|
100
|
+
that must not compete with content (zebra-adjacent washes). */
|
|
101
|
+
--dsl-g-tint: 12%;
|
|
102
|
+
--dsl-g-tint-quiet: 8%;
|
|
71
103
|
--dsl-g-tint-strong: 14%;
|
|
72
104
|
--dsl-g-font-mono: var(--ds-font-family-code, ui-monospace, 'SF Mono', monospace);
|
|
73
105
|
/* Elevation is theme-specific, because the two themes lift a card off the
|
|
@@ -91,8 +123,8 @@ body[data-ds-dark-theme] .panel {
|
|
|
91
123
|
/* Borders separate, shadows lift (design standard: "shadows over borders"):
|
|
92
124
|
the outline stays quiet and the layered shadow carries the depth, with the
|
|
93
125
|
first layer at the documented minimum `0 1px 3px rgba(0,0,0,0.10)`. */
|
|
94
|
-
--dsl-g-border-surface: color-mix(in srgb, var(--dsw-alias-label-primary)
|
|
95
|
-
--dsl-g-shadow-card:
|
|
126
|
+
--dsl-g-border-surface: color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);
|
|
127
|
+
--dsl-g-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.10), 0 8px 24px rgba(0, 0, 0, 0.06);
|
|
96
128
|
}
|
|
97
129
|
|
|
98
130
|
.block {
|
|
@@ -111,14 +143,16 @@ body[data-ds-dark-theme] .panel {
|
|
|
111
143
|
.panel *, .panel *::before, .panel *::after { box-sizing: border-box; }
|
|
112
144
|
|
|
113
145
|
.banner {
|
|
114
|
-
/* Hierarchy through type, not decoration:
|
|
115
|
-
|
|
116
|
-
|
|
146
|
+
/* Hierarchy through type, not decoration: the fence title reads as the page
|
|
147
|
+
heading (h1, 800) with a section-scale breath below it (gap-xl, v11) —
|
|
148
|
+
components under it start a new "chapter", not another row. The accent
|
|
149
|
+
bars v4 added read as PPT chrome and are gone. */
|
|
150
|
+
font-size: var(--dsl-g-font-h1);
|
|
117
151
|
font-weight: 800;
|
|
118
152
|
letter-spacing: -0.02em;
|
|
119
153
|
color: var(--dsw-alias-label-primary);
|
|
120
|
-
padding-bottom:
|
|
121
|
-
margin-bottom:
|
|
154
|
+
padding-bottom: var(--dsl-g-gap-md);
|
|
155
|
+
margin-bottom: var(--dsl-g-gap-xl);
|
|
122
156
|
border-bottom: 1px solid var(--dsl-g-border);
|
|
123
157
|
}
|
|
124
158
|
|
|
@@ -151,6 +185,30 @@ body[data-ds-dark-theme] .panel {
|
|
|
151
185
|
margin: var(--dsl-g-gap-xs) 0;
|
|
152
186
|
}
|
|
153
187
|
|
|
188
|
+
/* Labeled divider (`divider.label`, B2): a chapter break — hairline + meta
|
|
189
|
+
label + hairline. It separates CHAPTERS, not list rows, so it breathes at
|
|
190
|
+
the section step (gap-xl); the unlabeled hairline stays quiet above. */
|
|
191
|
+
.dividerLabeled {
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
gap: var(--dsl-g-gap-md);
|
|
195
|
+
margin: var(--dsl-g-gap-xl) 0;
|
|
196
|
+
}
|
|
197
|
+
.dividerLabeled::before,
|
|
198
|
+
.dividerLabeled::after {
|
|
199
|
+
content: "";
|
|
200
|
+
flex: 1;
|
|
201
|
+
height: 1px;
|
|
202
|
+
background: var(--dsw-alias-markdown-hr, var(--dsl-g-border));
|
|
203
|
+
}
|
|
204
|
+
.dividerLabelText {
|
|
205
|
+
font-size: var(--dsl-g-font-meta);
|
|
206
|
+
font-weight: 600;
|
|
207
|
+
color: var(--dsw-alias-label-secondary);
|
|
208
|
+
white-space: pre-line;
|
|
209
|
+
text-align: center;
|
|
210
|
+
}
|
|
211
|
+
|
|
154
212
|
.card {
|
|
155
213
|
/* Elevated surface: on the dark theme layer-1 (35,35,36) sits only ~14 units
|
|
156
214
|
above the page (21,21,23) and read as "a black box". layer-2 (44,44,46) is
|
|
@@ -189,6 +247,17 @@ body[data-ds-dark-theme] .panel {
|
|
|
189
247
|
color: var(--dsw-alias-label-secondary);
|
|
190
248
|
}
|
|
191
249
|
|
|
250
|
+
/* Card eyebrow (`card.eyebrow`, B3): the heroLabel language on a card — meta
|
|
251
|
+
uppercase overline for chaptering a card GROUP. Sparingly: not every card
|
|
252
|
+
in a row carries one. */
|
|
253
|
+
.cardEyebrow {
|
|
254
|
+
font-size: var(--dsl-g-font-meta);
|
|
255
|
+
font-weight: 700;
|
|
256
|
+
letter-spacing: 0.1em;
|
|
257
|
+
text-transform: uppercase;
|
|
258
|
+
color: var(--dsw-alias-label-tertiary);
|
|
259
|
+
}
|
|
260
|
+
|
|
192
261
|
/* ---------- text ---------- */
|
|
193
262
|
|
|
194
263
|
.text { color: var(--dsw-alias-label-primary); white-space: pre-line; }
|
|
@@ -212,7 +281,17 @@ body[data-ds-dark-theme] .panel {
|
|
|
212
281
|
.text.body { font-size: var(--dsl-g-font-body); line-height: 1.7; color: var(--dsw-alias-label-primary); text-wrap: pretty; max-width: 68ch; }
|
|
213
282
|
.text.muted { font-size: var(--dsl-g-font-title); line-height: 1.65; color: var(--dsw-alias-label-secondary); }
|
|
214
283
|
.text.caption { font-size: var(--dsl-g-font-meta); line-height: 1.6; color: var(--dsw-alias-label-secondary); }
|
|
284
|
+
/* Display: the one-per-answer focal line (B1) — bigger than h1, carries the
|
|
285
|
+
opening statement of a report; vocabulary lives on the v11 scale. */
|
|
286
|
+
.text.display {
|
|
287
|
+
font-size: var(--dsl-g-font-display);
|
|
288
|
+
font-weight: 800;
|
|
289
|
+
line-height: 1.25;
|
|
290
|
+
letter-spacing: -0.02em;
|
|
291
|
+
}
|
|
215
292
|
.text.center { text-align: center; }
|
|
293
|
+
.text.left { text-align: left; }
|
|
294
|
+
.text.right { text-align: right; }
|
|
216
295
|
|
|
217
296
|
/* ---------- controls ---------- */
|
|
218
297
|
|
|
@@ -227,7 +306,7 @@ body[data-ds-dark-theme] .panel {
|
|
|
227
306
|
font-family: inherit;
|
|
228
307
|
line-height: 1.4;
|
|
229
308
|
cursor: pointer;
|
|
230
|
-
transition: border-color
|
|
309
|
+
transition: border-color var(--dsl-g-dur-fast), background var(--dsl-g-dur-fast), transform var(--dsl-g-dur-fast);
|
|
231
310
|
text-align: center;
|
|
232
311
|
white-space: pre-line;
|
|
233
312
|
/* A button in a `col` must hug its label; only `full: true` stretches.
|
|
@@ -236,10 +315,14 @@ body[data-ds-dark-theme] .panel {
|
|
|
236
315
|
align-self: flex-start;
|
|
237
316
|
}
|
|
238
317
|
|
|
239
|
-
|
|
240
|
-
|
|
318
|
+
/* Hover = the shared 4% label wash, painted as a background-image so it
|
|
319
|
+
overlays whatever surface each variant owns (tinted danger/success keep
|
|
320
|
+
their hue; ghost washes over the surface it sits on). v11 retires the
|
|
321
|
+
brightness-filter hover: filters ignored the theme's own hover language. */
|
|
322
|
+
.button:hover:not(:disabled) { border-color: var(--dsl-g-accent); background-image: linear-gradient(var(--dsl-g-hover), var(--dsl-g-hover)); }
|
|
323
|
+
.button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--dsl-g-accent) 92%, #fff); }
|
|
241
324
|
/* Press feedback: a 1px sink makes every actionable control feel mechanical. */
|
|
242
|
-
.button:active:not(:disabled) { transform: translateY(1px);
|
|
325
|
+
.button:active:not(:disabled) { transform: translateY(1px); }
|
|
243
326
|
/* Display-only buttons (no action): honest disabled affordance — the
|
|
244
327
|
* clickable-looking dead button was the top interaction complaint. */
|
|
245
328
|
.button:disabled {
|
|
@@ -331,6 +414,14 @@ body[data-ds-dark-theme] .panel {
|
|
|
331
414
|
border-radius: var(--dsl-g-radius-surface);
|
|
332
415
|
}
|
|
333
416
|
.mediaLabel { font-size: var(--dsl-g-font-title); font-weight: 600; color: var(--dsw-alias-label-primary); }
|
|
417
|
+
/* Image caption (`image.caption`, B4): the magazine note UNDER the picture —
|
|
418
|
+
source, reading or credit; quieter and smaller than the alt label above. */
|
|
419
|
+
.mediaCaption {
|
|
420
|
+
font-size: var(--dsl-g-font-data);
|
|
421
|
+
color: var(--dsw-alias-label-tertiary);
|
|
422
|
+
line-height: 1.5;
|
|
423
|
+
text-align: center;
|
|
424
|
+
}
|
|
334
425
|
.mediaPlayer { display: block; width: 100%; min-width: 0; border-radius: var(--dsl-g-radius-control); }
|
|
335
426
|
/* Reserve the box before the bytes arrive: without an intrinsic ratio an
|
|
336
427
|
unloaded <img> collapses to 0px and the card looks broken. */
|
|
@@ -379,6 +470,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
379
470
|
font-size: var(--dsl-g-font-meta);
|
|
380
471
|
font-weight: 700;
|
|
381
472
|
letter-spacing: 0.1em;
|
|
473
|
+
text-transform: uppercase;
|
|
382
474
|
color: var(--dsw-alias-label-secondary);
|
|
383
475
|
}
|
|
384
476
|
.heroTop { display: flex; align-items: baseline; gap: var(--dsl-g-gap-md); flex-wrap: wrap; }
|
|
@@ -387,7 +479,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
387
479
|
align-items: baseline;
|
|
388
480
|
gap: 4px;
|
|
389
481
|
font-family: var(--dsl-g-font-mono);
|
|
390
|
-
font-size:
|
|
482
|
+
font-size: var(--dsl-g-font-mega);
|
|
391
483
|
font-weight: 750;
|
|
392
484
|
letter-spacing: -0.028em;
|
|
393
485
|
line-height: 1;
|
|
@@ -396,7 +488,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
396
488
|
}
|
|
397
489
|
.heroUnit { font-size: 0.44em; font-weight: 650; letter-spacing: 0; color: var(--dsw-alias-label-secondary); }
|
|
398
490
|
.heroSpark { margin-left: auto; width: 168px; align-self: center; }
|
|
399
|
-
.heroTitle { font-size:
|
|
491
|
+
.heroTitle { font-size: var(--dsl-g-font-h2); font-weight: 700; letter-spacing: -0.01em; color: var(--dsw-alias-label-primary); line-height: 1.3; }
|
|
400
492
|
.heroSubtitle { font-size: var(--dsl-g-font-title); color: var(--dsw-alias-label-secondary); line-height: 1.6; text-wrap: pretty; }
|
|
401
493
|
|
|
402
494
|
/* ---------- inline markup (inline.ts) ----------
|
|
@@ -420,6 +512,9 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
420
512
|
}
|
|
421
513
|
.inlineLink { color: var(--dsl-g-accent); text-decoration: underline; text-underline-offset: 2px; }
|
|
422
514
|
.inlineLink:hover { text-decoration-thickness: 2px; }
|
|
515
|
+
.inlineFileLink { padding: 0; border: 0; background: none; color: var(--dsl-g-accent); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
516
|
+
.inlineFileLink:hover { text-decoration-thickness: 2px; }
|
|
517
|
+
.inlineFileLink:focus-visible { outline: 2px solid var(--dsl-g-accent); outline-offset: 2px; border-radius: 3px; }
|
|
423
518
|
|
|
424
519
|
/* ---------- badges / stat / progress ---------- */
|
|
425
520
|
|
|
@@ -475,13 +570,14 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
475
570
|
}
|
|
476
571
|
/* Hero stat: one number is the answer's anchor (use it once per fence). */
|
|
477
572
|
.statHero { padding: 18px 20px 20px; }
|
|
478
|
-
.statHero .statValue { font-size:
|
|
479
|
-
.statHero .statLabel { font-size:
|
|
573
|
+
.statHero .statValue { font-size: var(--dsl-g-font-stat-hero); line-height: 1.02; letter-spacing: -0.035em; }
|
|
574
|
+
.statHero .statLabel { font-size: var(--dsl-g-font-title); }
|
|
480
575
|
.grid > .stat, .row > .stat { border-left: 1px solid var(--dsl-g-border); }
|
|
481
576
|
.statLabel {
|
|
482
577
|
font-size: var(--dsl-g-font-meta);
|
|
483
578
|
color: var(--dsw-alias-label-secondary);
|
|
484
579
|
letter-spacing: 0.05em;
|
|
580
|
+
text-transform: uppercase;
|
|
485
581
|
line-height: 1.4;
|
|
486
582
|
}
|
|
487
583
|
.statValue {
|
|
@@ -489,7 +585,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
489
585
|
align-items: baseline;
|
|
490
586
|
gap: 3px;
|
|
491
587
|
font-family: var(--dsl-g-font-mono);
|
|
492
|
-
font-size: var(--dsl-g-font-
|
|
588
|
+
font-size: var(--dsl-g-font-stat);
|
|
493
589
|
font-weight: 700;
|
|
494
590
|
letter-spacing: -0.03em;
|
|
495
591
|
font-variant-numeric: tabular-nums;
|
|
@@ -549,7 +645,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
549
645
|
border-radius: var(--dsl-g-radius-pill);
|
|
550
646
|
/* A faint top sheen keeps the accent bar from reading as a flat slab. */
|
|
551
647
|
background: linear-gradient(180deg, color-mix(in srgb, var(--dsl-g-accent) 85%, white), var(--dsl-g-accent));
|
|
552
|
-
transition: width
|
|
648
|
+
transition: width var(--dsl-g-dur-grow) var(--dsl-g-ease-out);
|
|
553
649
|
}
|
|
554
650
|
|
|
555
651
|
/* ---------- list / table / chart / tabs / avatar ---------- */
|
|
@@ -581,20 +677,24 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
581
677
|
.liDesc { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-secondary); line-height: 1.55; }
|
|
582
678
|
|
|
583
679
|
.tableWrap {
|
|
584
|
-
|
|
585
|
-
|
|
680
|
+
border-radius: var(--dsl-g-radius-control);
|
|
681
|
+
border: 1px solid var(--dsl-g-border-surface);
|
|
682
|
+
/* A table whose nowrap cells exceed the column width must scroll, not clip
|
|
683
|
+
(mirrors the shell markdown table's .tableScroll pattern). */
|
|
586
684
|
overflow-x: auto;
|
|
587
685
|
overscroll-behavior-x: contain;
|
|
588
686
|
max-width: 100%;
|
|
589
687
|
min-width: 0;
|
|
590
688
|
}
|
|
591
|
-
.table { width: 100%; border-collapse: collapse; font-size: var(--dsl-g-font-title); }
|
|
689
|
+
.table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: var(--dsl-g-font-title); }
|
|
592
690
|
.table th {
|
|
593
691
|
text-align: left;
|
|
594
692
|
padding: 9px var(--dsl-g-gap-md);
|
|
595
693
|
color: var(--dsw-alias-label-secondary);
|
|
596
694
|
font-weight: 700;
|
|
597
695
|
font-size: var(--dsl-g-font-meta);
|
|
696
|
+
letter-spacing: 0.06em;
|
|
697
|
+
text-transform: uppercase;
|
|
598
698
|
border-bottom: 1px solid var(--dsl-g-border-strong);
|
|
599
699
|
background: var(--dsl-g-zebra);
|
|
600
700
|
white-space: nowrap;
|
|
@@ -645,6 +745,18 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
645
745
|
/* An inline code span keeps its own spacing too (a pasted snippet often lives
|
|
646
746
|
inside backticks), matching the block-level code surface. */
|
|
647
747
|
.inlineCode { white-space: pre-wrap; }
|
|
748
|
+
/* Table cells are single-line by default, so a chip inside them must not
|
|
749
|
+
re-open line breaking. Host shells render message bodies inside `.markdown`,
|
|
750
|
+
which makes every chip an atomic `inline-flex` box and inherits
|
|
751
|
+
`overflow-wrap: anywhere` into the cell; together with `pre-wrap` the chip's
|
|
752
|
+
automatic minimum size collapses, the column can then be sized below its
|
|
753
|
+
content, and the still-unbroken text is painted over the next column (#280).
|
|
754
|
+
Keep the cell's own line-breaking contract for every table section. */
|
|
755
|
+
.table > thead > tr > th:not(.tdCode):not(.tdMultiline) .inlineCode,
|
|
756
|
+
.table > tbody > tr:not(.detailRow) > td:not(.tdCode):not(.tdMultiline) .inlineCode,
|
|
757
|
+
.table > tfoot > tr > td:not(.tdCode):not(.tdMultiline) .inlineCode {
|
|
758
|
+
white-space: pre;
|
|
759
|
+
}
|
|
648
760
|
/* Rich-text owners must paint the real newlines kept by renderInline. Scope
|
|
649
761
|
this to prose/labels: table data keeps nowrap and code keeps pre-wrap. For
|
|
650
762
|
flex controls, target the label span so emphasis and plain text share one
|
|
@@ -658,9 +770,11 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
658
770
|
.accBody,
|
|
659
771
|
.banner,
|
|
660
772
|
.cardTitle,
|
|
661
|
-
.mediaLabel,
|
|
662
|
-
.
|
|
663
|
-
.
|
|
773
|
+
.mediaLabel,
|
|
774
|
+
.mediaCaption,
|
|
775
|
+
.heroLabel,
|
|
776
|
+
.heroTitle,
|
|
777
|
+
.cardEyebrow,
|
|
664
778
|
.heroSubtitle,
|
|
665
779
|
.statLabel,
|
|
666
780
|
.ringLabel,
|
|
@@ -698,7 +812,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
698
812
|
font-weight: inherit;
|
|
699
813
|
cursor: pointer;
|
|
700
814
|
text-align: left;
|
|
701
|
-
transition: color
|
|
815
|
+
transition: color var(--dsl-g-dur-fast);
|
|
702
816
|
}
|
|
703
817
|
.table th.thNum .thSort { text-align: right; width: 100%; }
|
|
704
818
|
.thSort:hover { color: var(--dsw-alias-label-primary); }
|
|
@@ -825,9 +939,9 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
825
939
|
gap: 2px;
|
|
826
940
|
border-radius: 5px 5px 0 0;
|
|
827
941
|
overflow: hidden;
|
|
828
|
-
transition: height
|
|
942
|
+
transition: height var(--dsl-g-dur-grow) var(--dsl-g-ease-out);
|
|
829
943
|
}
|
|
830
|
-
.stackSeg { width: 100%; transition: height
|
|
944
|
+
.stackSeg { width: 100%; transition: height var(--dsl-g-dur-grow) var(--dsl-g-ease-out), filter var(--dsl-g-dur-fast); }
|
|
831
945
|
.stackSeg:hover { filter: brightness(1.15); }
|
|
832
946
|
.barFill {
|
|
833
947
|
position: absolute;
|
|
@@ -836,7 +950,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
836
950
|
border-radius: 5px 5px 0 0;
|
|
837
951
|
min-height: 2px;
|
|
838
952
|
background: linear-gradient(180deg, color-mix(in srgb, var(--dsl-g-accent) 78%, white), var(--dsl-g-accent));
|
|
839
|
-
transition: height
|
|
953
|
+
transition: height var(--dsl-g-dur-grow) var(--dsl-g-ease-out), filter var(--dsl-g-dur-fast);
|
|
840
954
|
}
|
|
841
955
|
.barFill:hover { filter: brightness(1.18); }
|
|
842
956
|
.barLabel {
|
|
@@ -866,7 +980,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
866
980
|
margin-bottom: -1px;
|
|
867
981
|
cursor: pointer;
|
|
868
982
|
line-height: 1.5;
|
|
869
|
-
transition: color
|
|
983
|
+
transition: color var(--dsl-g-dur-fast), background var(--dsl-g-dur-fast), border-bottom-color var(--dsl-g-dur-fast);
|
|
870
984
|
}
|
|
871
985
|
.tab:hover { color: var(--dsw-alias-label-primary); background: var(--dsl-g-hover); }
|
|
872
986
|
.tabActive { color: var(--dsw-alias-label-primary); font-weight: 650; border-bottom-color: var(--dsl-g-accent); }
|
|
@@ -945,7 +1059,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
945
1059
|
/* The rail behind a finished step picks up the success tint, so the sequence
|
|
946
1060
|
reads as progress instead of a row of badges. */
|
|
947
1061
|
.stepDone:not(:last-child)::before { background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 45%, transparent); }
|
|
948
|
-
.stepTitle { transition: color
|
|
1062
|
+
.stepTitle { transition: color var(--dsl-g-dur-fast); }
|
|
949
1063
|
.stepActive .stepTitle { color: var(--dsl-g-accent); }
|
|
950
1064
|
.stepMarker {
|
|
951
1065
|
width: 24px;
|
|
@@ -965,7 +1079,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
965
1079
|
background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 18%, transparent);
|
|
966
1080
|
border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 55%, transparent);
|
|
967
1081
|
color: var(--dsw-alias-state-success-primary, #2f9e6b);
|
|
968
|
-
font-size:
|
|
1082
|
+
font-size: var(--dsl-g-font-title);
|
|
969
1083
|
}
|
|
970
1084
|
.stepActive .stepMarker {
|
|
971
1085
|
background: color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint-strong), transparent);
|
|
@@ -999,7 +1113,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
999
1113
|
|
|
1000
1114
|
.lineChart { position: relative; display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
1001
1115
|
.linePath { fill: none; stroke: var(--dsl-g-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
|
|
1002
|
-
.lineDot { fill: var(--dsl-g-accent); transition: filter
|
|
1116
|
+
.lineDot { fill: var(--dsl-g-accent); transition: filter var(--dsl-g-dur-fast); }
|
|
1003
1117
|
.lineDot:hover { filter: brightness(1.3); }
|
|
1004
1118
|
.lineGrid { stroke: var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.07)); stroke-width: 1; }
|
|
1005
1119
|
.lineGridAxis { stroke: var(--dsl-g-border-strong); stroke-width: 1; }
|
|
@@ -1035,15 +1149,15 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1035
1149
|
overflow: hidden;
|
|
1036
1150
|
text-overflow: ellipsis;
|
|
1037
1151
|
}
|
|
1038
|
-
.groupedFill { flex: 0 0 auto; width: 100%; border-radius: 4px 4px 2px 2px; min-height: 3px; background: var(--dsl-g-accent); transition: filter
|
|
1152
|
+
.groupedFill { flex: 0 0 auto; width: 100%; border-radius: 4px 4px 2px 2px; min-height: 3px; background: var(--dsl-g-accent); transition: filter var(--dsl-g-dur-fast); }
|
|
1039
1153
|
.groupedFill:hover { filter: brightness(1.18); }
|
|
1040
1154
|
|
|
1041
1155
|
.donut { position: relative; display: flex; align-items: center; gap: var(--dsl-g-gap-lg); }
|
|
1042
1156
|
.donutTrack { stroke: var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)); }
|
|
1043
|
-
.donutSeg { transition: filter
|
|
1157
|
+
.donutSeg { transition: filter var(--dsl-g-dur-fast); }
|
|
1044
1158
|
.donutSeg:hover { filter: brightness(1.18); }
|
|
1045
1159
|
.donutTotal { fill: var(--dsw-alias-label-primary); font-size: var(--dsl-g-font-h2); font-weight: 700; }
|
|
1046
|
-
.donutTotalLabel { fill: var(--dsw-alias-label-tertiary); font-size:
|
|
1160
|
+
.donutTotalLabel { fill: var(--dsw-alias-label-tertiary); font-size: var(--dsl-g-font-data); }
|
|
1047
1161
|
.donutLegend { display: flex; flex-direction: column; justify-content: center; gap: var(--dsl-g-gap-sm); font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-secondary); line-height: 1.5; }
|
|
1048
1162
|
.donutPct { color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
|
|
1049
1163
|
|
|
@@ -1051,11 +1165,11 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1051
1165
|
|
|
1052
1166
|
.ring { display: flex; align-items: center; gap: var(--dsl-g-gap-md); }
|
|
1053
1167
|
.ringTrack { stroke: color-mix(in srgb, var(--dsw-alias-label-primary) 8%, transparent); }
|
|
1054
|
-
.ringFill { stroke: var(--dsl-g-accent); transition: stroke-dasharray
|
|
1168
|
+
.ringFill { stroke: var(--dsl-g-accent); transition: stroke-dasharray var(--dsl-g-dur-grow) var(--dsl-g-ease-out); }
|
|
1055
1169
|
.ringValue {
|
|
1056
1170
|
fill: var(--dsw-alias-label-primary);
|
|
1057
1171
|
font-family: var(--dsl-g-font-mono);
|
|
1058
|
-
font-size:
|
|
1172
|
+
font-size: var(--dsl-g-font-h3);
|
|
1059
1173
|
font-weight: 700;
|
|
1060
1174
|
font-variant-numeric: tabular-nums;
|
|
1061
1175
|
}
|
|
@@ -1107,7 +1221,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1107
1221
|
font-family: inherit;
|
|
1108
1222
|
font-size: var(--dsl-g-font-meta);
|
|
1109
1223
|
cursor: pointer;
|
|
1110
|
-
transition: color
|
|
1224
|
+
transition: color var(--dsl-g-dur-fast), border-color var(--dsl-g-dur-fast), background var(--dsl-g-dur-fast);
|
|
1111
1225
|
}
|
|
1112
1226
|
.tableTool:hover { color: var(--dsw-alias-label-primary); border-color: var(--dsl-g-border-strong); background: var(--dsl-g-hover); }
|
|
1113
1227
|
.tableTool:focus-visible { outline: 2px solid var(--dsl-g-accent); outline-offset: 1px; }
|
|
@@ -1121,11 +1235,17 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1121
1235
|
/* Master-detail rows (table.details): a chevron in the first cell opens a
|
|
1122
1236
|
full-width panel underneath, so a table can drill down without leaving the
|
|
1123
1237
|
page or opening a modal. */
|
|
1124
|
-
.detailCell { padding-left: var(--dsl-g-gap-sm); }
|
|
1238
|
+
.detailCell { position: relative; padding-left: var(--dsl-g-gap-sm); }
|
|
1125
1239
|
.detailToggle {
|
|
1240
|
+
position: relative;
|
|
1241
|
+
z-index: 1;
|
|
1126
1242
|
display: inline-flex;
|
|
1127
1243
|
align-items: center;
|
|
1128
|
-
|
|
1244
|
+
justify-content: center;
|
|
1245
|
+
vertical-align: middle;
|
|
1246
|
+
width: 24px;
|
|
1247
|
+
height: 24px;
|
|
1248
|
+
margin-right: 4px;
|
|
1129
1249
|
padding: 0;
|
|
1130
1250
|
border: none;
|
|
1131
1251
|
background: none;
|
|
@@ -1136,12 +1256,16 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1136
1256
|
text-align: left;
|
|
1137
1257
|
}
|
|
1138
1258
|
.detailToggle:hover { color: var(--dsl-g-accent); }
|
|
1259
|
+
.detailCell:hover .detailToggle { color: var(--dsl-g-accent); }
|
|
1139
1260
|
.detailToggle:focus-visible { outline: 2px solid var(--dsl-g-accent); outline-offset: 2px; border-radius: 4px; }
|
|
1261
|
+
.detailContent { position: relative; z-index: 1; vertical-align: middle; cursor: pointer; }
|
|
1262
|
+
/* Chevron glyphs share ONE optical size (11px) across every collapsible —
|
|
1263
|
+
they are icon glyphs, not type-scale members, but they must agree. */
|
|
1140
1264
|
.detailChevron {
|
|
1141
1265
|
flex-shrink: 0;
|
|
1142
|
-
font-size:
|
|
1266
|
+
font-size: 11px;
|
|
1143
1267
|
color: var(--dsw-alias-label-tertiary);
|
|
1144
|
-
transition: transform
|
|
1268
|
+
transition: transform var(--dsl-g-dur-fast) var(--dsl-g-ease-out);
|
|
1145
1269
|
}
|
|
1146
1270
|
.detailChevron[data-open="true"] { transform: rotate(90deg); }
|
|
1147
1271
|
.table tbody tr.detailRow > td {
|
|
@@ -1176,10 +1300,17 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1176
1300
|
.table tbody tr.groupRow:first-child td { box-shadow: none; padding-top: 10px; }
|
|
1177
1301
|
.table tbody tr.groupRow:hover { background: none; }
|
|
1178
1302
|
.table tbody tr.groupRow:nth-child(even) { background: none; }
|
|
1303
|
+
.groupRow td { position: relative; }
|
|
1179
1304
|
.groupToggle {
|
|
1305
|
+
position: relative;
|
|
1306
|
+
z-index: 1;
|
|
1180
1307
|
display: inline-flex;
|
|
1181
1308
|
align-items: center;
|
|
1182
|
-
|
|
1309
|
+
justify-content: center;
|
|
1310
|
+
vertical-align: middle;
|
|
1311
|
+
width: 24px;
|
|
1312
|
+
height: 24px;
|
|
1313
|
+
margin-right: 7px;
|
|
1183
1314
|
padding: 0;
|
|
1184
1315
|
border: none;
|
|
1185
1316
|
background: none;
|
|
@@ -1191,7 +1322,9 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1191
1322
|
cursor: pointer;
|
|
1192
1323
|
}
|
|
1193
1324
|
.groupToggle:hover { color: var(--dsl-g-accent); }
|
|
1325
|
+
.groupLabel:hover { color: var(--dsl-g-accent); }
|
|
1194
1326
|
.groupToggle:focus-visible { outline: 2px solid var(--dsl-g-accent); outline-offset: 2px; border-radius: 4px; }
|
|
1327
|
+
.groupLabel { position: relative; z-index: 1; display: inline-flex; vertical-align: middle; align-items: center; gap: 7px; cursor: pointer; }
|
|
1195
1328
|
.groupChevron { color: var(--dsw-alias-label-tertiary); font-size: 11px; width: 10px; }
|
|
1196
1329
|
.groupCount {
|
|
1197
1330
|
padding: 0 7px;
|
|
@@ -1263,7 +1396,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1263
1396
|
min-width: 2px;
|
|
1264
1397
|
border-radius: var(--dsl-g-radius-sm);
|
|
1265
1398
|
background: var(--dsl-g-accent);
|
|
1266
|
-
transition: width
|
|
1399
|
+
transition: width var(--dsl-g-dur-grow) var(--dsl-g-ease-out);
|
|
1267
1400
|
}
|
|
1268
1401
|
.hbarValue {
|
|
1269
1402
|
width: 64px;
|
|
@@ -1393,7 +1526,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1393
1526
|
border: 1px solid var(--dsl-g-border);
|
|
1394
1527
|
background: var(--dsw-alias-bg-base, #17171a);
|
|
1395
1528
|
position: relative;
|
|
1396
|
-
transition: background
|
|
1529
|
+
transition: background var(--dsl-g-dur-fast);
|
|
1397
1530
|
}
|
|
1398
1531
|
.switchOn { background: var(--dsl-g-accent); border-color: transparent; }
|
|
1399
1532
|
.switchKnob {
|
|
@@ -1403,7 +1536,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1403
1536
|
border-radius: 50%;
|
|
1404
1537
|
background: #fff;
|
|
1405
1538
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
1406
|
-
transition: left
|
|
1539
|
+
transition: left var(--dsl-g-dur-fast);
|
|
1407
1540
|
}
|
|
1408
1541
|
.switchOn .switchKnob { left: 19px; }
|
|
1409
1542
|
|
|
@@ -1479,7 +1612,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1479
1612
|
font-family: inherit;
|
|
1480
1613
|
line-height: 1.5;
|
|
1481
1614
|
text-align: left;
|
|
1482
|
-
transition: background
|
|
1615
|
+
transition: background var(--dsl-g-dur-fast), color var(--dsl-g-dur-fast);
|
|
1483
1616
|
}
|
|
1484
1617
|
.accHead:hover { background: var(--dsl-g-hover); }
|
|
1485
1618
|
.accHead[aria-expanded="true"] { border-bottom: 1px solid var(--dsl-g-border); }
|
|
@@ -1489,7 +1622,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1489
1622
|
flex-shrink: 0;
|
|
1490
1623
|
color: var(--dsw-alias-label-tertiary);
|
|
1491
1624
|
font-size: 11px;
|
|
1492
|
-
transition: transform
|
|
1625
|
+
transition: transform var(--dsl-g-dur-fast) var(--dsl-g-ease-out);
|
|
1493
1626
|
}
|
|
1494
1627
|
.accChevron[data-open="true"] { transform: rotate(90deg); }
|
|
1495
1628
|
.accBody {
|
|
@@ -1513,7 +1646,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1513
1646
|
font-family: inherit;
|
|
1514
1647
|
cursor: pointer;
|
|
1515
1648
|
width: fit-content;
|
|
1516
|
-
transition: all
|
|
1649
|
+
transition: all var(--dsl-g-dur-fast);
|
|
1517
1650
|
}
|
|
1518
1651
|
.copyChip:hover { border-color: var(--dsl-g-accent); }
|
|
1519
1652
|
.copyChip:active { transform: translateY(1px); }
|
|
@@ -1604,7 +1737,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1604
1737
|
/* A soft halo instead of a hard ring: the dot reads as a marker on the rail
|
|
1605
1738
|
rather than a bullet stuck to the text. */
|
|
1606
1739
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsl-g-accent) 16%, transparent);
|
|
1607
|
-
transition: transform
|
|
1740
|
+
transition: transform var(--dsl-g-dur-fast) var(--dsl-g-ease-out);
|
|
1608
1741
|
}
|
|
1609
1742
|
.tlItem:hover .tlDot { transform: scale(1.15); }
|
|
1610
1743
|
.tlLine { flex: 1; width: 1px; margin: 4px 0 0; background: var(--dsl-g-border); }
|
|
@@ -1646,7 +1779,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1646
1779
|
min-height: 26px;
|
|
1647
1780
|
padding: 2px var(--dsl-g-gap-xs);
|
|
1648
1781
|
border-radius: var(--dsl-g-radius-sm);
|
|
1649
|
-
transition: background
|
|
1782
|
+
transition: background var(--dsl-g-dur-fast);
|
|
1650
1783
|
}
|
|
1651
1784
|
.ftRow:hover { background: color-mix(in srgb, var(--dsw-alias-label-primary) 5%, transparent); }
|
|
1652
1785
|
/* One hairline per depth level: the rail that makes a tree read as a tree. */
|
|
@@ -1665,7 +1798,7 @@ img.mediaPlayer { aspect-ratio: 16 / 9; object-fit: cover; background: var(--dsl
|
|
|
1665
1798
|
font-size: 10px;
|
|
1666
1799
|
line-height: 1;
|
|
1667
1800
|
color: var(--dsw-alias-label-tertiary);
|
|
1668
|
-
transition: transform
|
|
1801
|
+
transition: transform var(--dsl-g-dur-fast) var(--dsl-g-ease-out);
|
|
1669
1802
|
transform-origin: 50% 50%;
|
|
1670
1803
|
}
|
|
1671
1804
|
.ftChevron[data-open="true"] { transform: rotate(90deg); }
|
|
@@ -1768,14 +1901,14 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
1768
1901
|
}
|
|
1769
1902
|
|
|
1770
1903
|
.reveal {
|
|
1771
|
-
animation: genuiReveal
|
|
1904
|
+
animation: genuiReveal var(--dsl-g-dur-reveal) var(--dsl-g-ease-out) backwards;
|
|
1772
1905
|
}
|
|
1773
1906
|
|
|
1774
1907
|
/* "✓ 已触发" confirmation chip: appears next to the button without layout
|
|
1775
1908
|
shift risk (it inherits the flex row's gap). `backwards`, not `both`: the
|
|
1776
1909
|
chip's natural (post-animation) style is already visible/no-transform, so
|
|
1777
1910
|
pinning the end keyframe would only retain an unnecessary transform. */
|
|
1778
|
-
.btnSent { animation: genuiPopIn 0.2s ease backwards; }
|
|
1911
|
+
.btnSent { animation: genuiPopIn 0.2s var(--dsl-g-ease-out) backwards; }
|
|
1779
1912
|
|
|
1780
1913
|
/* 尊重用户的减弱动效偏好 */
|
|
1781
1914
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -1852,12 +1985,13 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
1852
1985
|
color: var(--dsw-alias-label-secondary);
|
|
1853
1986
|
cursor: pointer;
|
|
1854
1987
|
line-height: 1.5;
|
|
1855
|
-
transition: border-color
|
|
1988
|
+
transition: border-color var(--dsl-g-dur-fast), background var(--dsl-g-dur-fast);
|
|
1856
1989
|
}
|
|
1857
1990
|
.quizOpt:hover:not(:disabled) { border-color: var(--dsl-g-accent); background: var(--dsl-g-accent-soft); }
|
|
1858
1991
|
.quizOpt:focus-visible, .button:focus-visible, .tab:focus-visible, .accHead:focus-visible,
|
|
1859
1992
|
.copyChip:focus-visible, .link:focus-visible, .quizRetry:focus-visible, .resetBtn:focus-visible,
|
|
1860
|
-
.playBtn:focus-visible, .bcText:focus-visible
|
|
1993
|
+
.playBtn:focus-visible, .bcText:focus-visible, .panelToggle:focus-visible,
|
|
1994
|
+
.panelTpl:focus-visible, .panelClose:focus-visible {
|
|
1861
1995
|
outline: 2px solid var(--dsl-g-accent);
|
|
1862
1996
|
outline-offset: 1px;
|
|
1863
1997
|
}
|
|
@@ -2016,7 +2150,7 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2016
2150
|
cursor: pointer;
|
|
2017
2151
|
}
|
|
2018
2152
|
|
|
2019
|
-
.panelToggle:hover { background:
|
|
2153
|
+
.panelToggle:hover { background: var(--dsl-g-hover); }
|
|
2020
2154
|
|
|
2021
2155
|
/* In-place dismiss (issue #23): a compact ✕ at the right end of the header,
|
|
2022
2156
|
distinct from the collapse/expand toggle. Applies the exact `/panel clear`
|
|
@@ -2034,20 +2168,18 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2034
2168
|
border-radius: 6px;
|
|
2035
2169
|
background: transparent;
|
|
2036
2170
|
color: inherit;
|
|
2037
|
-
font-size:
|
|
2171
|
+
font-size: var(--dsl-g-font-title);
|
|
2038
2172
|
line-height: 1;
|
|
2039
2173
|
cursor: pointer;
|
|
2040
2174
|
opacity: 0.65;
|
|
2041
2175
|
}
|
|
2042
2176
|
|
|
2043
2177
|
.panelClose:hover {
|
|
2044
|
-
background:
|
|
2178
|
+
background: var(--dsl-g-hover-strong);
|
|
2045
2179
|
opacity: 1;
|
|
2046
2180
|
}
|
|
2047
2181
|
|
|
2048
2182
|
.panelClose:focus-visible {
|
|
2049
|
-
outline: 1px solid var(--dsw-alias-state-business-primary, #4f8ef7);
|
|
2050
|
-
outline-offset: 1px;
|
|
2051
2183
|
opacity: 1;
|
|
2052
2184
|
}
|
|
2053
2185
|
|
|
@@ -2063,14 +2195,14 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2063
2195
|
border-radius: 8px;
|
|
2064
2196
|
background: transparent;
|
|
2065
2197
|
color: var(--dsw-alias-label-secondary, rgba(255, 255, 255, 0.6));
|
|
2066
|
-
font-size:
|
|
2198
|
+
font-size: var(--dsl-g-font-data);
|
|
2067
2199
|
line-height: 1.5;
|
|
2068
2200
|
cursor: pointer;
|
|
2069
2201
|
opacity: 0.85;
|
|
2070
2202
|
}
|
|
2071
2203
|
|
|
2072
2204
|
.panelTpl:hover {
|
|
2073
|
-
background:
|
|
2205
|
+
background: var(--dsl-g-hover-strong);
|
|
2074
2206
|
opacity: 1;
|
|
2075
2207
|
}
|
|
2076
2208
|
|
|
@@ -2087,7 +2219,7 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2087
2219
|
flex: 1;
|
|
2088
2220
|
min-width: 0;
|
|
2089
2221
|
padding: 0 8px;
|
|
2090
|
-
font-size:
|
|
2222
|
+
font-size: var(--dsl-g-font-data);
|
|
2091
2223
|
line-height: 1.5;
|
|
2092
2224
|
color: var(--dsw-alias-label-secondary, rgba(255, 255, 255, 0.6));
|
|
2093
2225
|
}
|
|
@@ -2095,7 +2227,7 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2095
2227
|
.panelFlash {
|
|
2096
2228
|
padding: 6px 12px;
|
|
2097
2229
|
border-top: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.12));
|
|
2098
|
-
font-size:
|
|
2230
|
+
font-size: var(--dsl-g-font-data);
|
|
2099
2231
|
line-height: 1.5;
|
|
2100
2232
|
color: var(--dsw-alias-state-success-primary, #6ccb5f);
|
|
2101
2233
|
background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #6ccb5f) 8%, transparent);
|
|
@@ -2104,7 +2236,7 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2104
2236
|
.panelHint {
|
|
2105
2237
|
padding: 6px 14px;
|
|
2106
2238
|
border-top: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.12));
|
|
2107
|
-
font-size:
|
|
2239
|
+
font-size: var(--dsl-g-font-data);
|
|
2108
2240
|
line-height: 1.5;
|
|
2109
2241
|
color: var(--dsw-alias-state-business-primary, #4f8ef7);
|
|
2110
2242
|
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4f8ef7) 8%, transparent);
|
|
@@ -2145,21 +2277,21 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2145
2277
|
}
|
|
2146
2278
|
|
|
2147
2279
|
.achToastName {
|
|
2148
|
-
font-size:
|
|
2280
|
+
font-size: var(--dsl-g-font-title);
|
|
2149
2281
|
font-weight: 600;
|
|
2150
2282
|
color: var(--dsw-alias-state-business-primary, #4f8ef7);
|
|
2151
2283
|
}
|
|
2152
2284
|
|
|
2153
2285
|
.achToastDesc {
|
|
2154
2286
|
margin-top: 2px;
|
|
2155
|
-
font-size:
|
|
2287
|
+
font-size: var(--dsl-g-font-data);
|
|
2156
2288
|
line-height: 1.5;
|
|
2157
2289
|
color: var(--dsw-alias-label-secondary, rgba(255, 255, 255, 0.6));
|
|
2158
2290
|
}
|
|
2159
2291
|
|
|
2160
2292
|
.panelBadge {
|
|
2161
2293
|
flex: none;
|
|
2162
|
-
font-size:
|
|
2294
|
+
font-size: var(--dsl-g-font-data);
|
|
2163
2295
|
line-height: 1.6;
|
|
2164
2296
|
padding: 0 var(--dsl-g-gap-sm);
|
|
2165
2297
|
border-radius: 6px;
|
|
@@ -2208,7 +2340,7 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2208
2340
|
cursor: ns-resize;
|
|
2209
2341
|
touch-action: none;
|
|
2210
2342
|
background: transparent;
|
|
2211
|
-
transition: background
|
|
2343
|
+
transition: background var(--dsl-g-dur-fast);
|
|
2212
2344
|
}
|
|
2213
2345
|
|
|
2214
2346
|
.panelResizeHandle:hover,
|
|
@@ -2219,3 +2351,206 @@ button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
|
2219
2351
|
/* Formula markup remains phrasing content inside labels and buttons. */
|
|
2220
2352
|
.inlineMath { display: inline; }
|
|
2221
2353
|
.inlineMath [class~="katex-display"] { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
|
|
2354
|
+
|
|
2355
|
+
/* ---------- v12: icon + blocks (figure primitives) ---------- */
|
|
2356
|
+
|
|
2357
|
+
/* Inline glyph. Size comes from the node (16/20/24/32) so an icon can sit on
|
|
2358
|
+
a title's optical baseline; the plate form adds the tinted rounded square
|
|
2359
|
+
that marks a stage in a figure. */
|
|
2360
|
+
.iconNode {
|
|
2361
|
+
display: inline-flex;
|
|
2362
|
+
align-items: center;
|
|
2363
|
+
justify-content: center;
|
|
2364
|
+
flex: none;
|
|
2365
|
+
line-height: 0;
|
|
2366
|
+
vertical-align: -0.15em;
|
|
2367
|
+
color: var(--dsw-alias-label-primary);
|
|
2368
|
+
}
|
|
2369
|
+
.iconNode svg { display: block; }
|
|
2370
|
+
.iconNode[data-tile="true"] {
|
|
2371
|
+
border-radius: 10px;
|
|
2372
|
+
background: color-mix(in srgb, currentColor var(--dsl-g-tint), transparent);
|
|
2373
|
+
}
|
|
2374
|
+
/* Tones pick the *foreground*; the plate derives its wash from currentColor,
|
|
2375
|
+
so one declaration keeps glyph and plate on the same hue. */
|
|
2376
|
+
.iconNode[data-tone="muted"] { color: var(--dsw-alias-label-secondary); }
|
|
2377
|
+
.iconNode[data-tone="info"] { color: var(--dsl-g-accent); }
|
|
2378
|
+
.iconNode[data-tone="success"] { color: var(--dsw-alias-state-success-primary, #3ecf8e); }
|
|
2379
|
+
.iconNode[data-tone="warning"] { color: var(--dsw-alias-state-warn-primary, #f5b83d); }
|
|
2380
|
+
.iconNode[data-tone="danger"] { color: var(--dsw-alias-state-error-primary, #ff6b6b); }
|
|
2381
|
+
.iconDot {
|
|
2382
|
+
display: block;
|
|
2383
|
+
border-radius: 50%;
|
|
2384
|
+
background: currentColor;
|
|
2385
|
+
opacity: 0.55;
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
/* Block figure: rows of filled cells. Rows are independent grids, so a
|
|
2389
|
+
8 → 4 → 2 → 1 ladder and a fixed `columns` lane grid share one renderer. */
|
|
2390
|
+
.blocksFigure { margin: 0; display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); min-width: 0; }
|
|
2391
|
+
.blocksTitle {
|
|
2392
|
+
font-size: var(--dsl-g-font-title);
|
|
2393
|
+
font-weight: 650;
|
|
2394
|
+
letter-spacing: -0.01em;
|
|
2395
|
+
color: var(--dsw-alias-label-primary);
|
|
2396
|
+
}
|
|
2397
|
+
.blocksRows { display: flex; flex-direction: column; gap: var(--dsl-g-gap-xs); min-width: 0; }
|
|
2398
|
+
.blocksRow {
|
|
2399
|
+
display: flex;
|
|
2400
|
+
align-items: center;
|
|
2401
|
+
gap: var(--dsl-g-gap-sm);
|
|
2402
|
+
min-width: 0;
|
|
2403
|
+
}
|
|
2404
|
+
.blocksRowLabel {
|
|
2405
|
+
flex: none;
|
|
2406
|
+
min-width: 3.2em;
|
|
2407
|
+
font-size: var(--dsl-g-font-meta);
|
|
2408
|
+
color: var(--dsw-alias-label-secondary);
|
|
2409
|
+
font-variant-numeric: tabular-nums;
|
|
2410
|
+
}
|
|
2411
|
+
.blocksCells {
|
|
2412
|
+
flex: 1 1 auto;
|
|
2413
|
+
display: grid;
|
|
2414
|
+
gap: 4px;
|
|
2415
|
+
min-width: 0;
|
|
2416
|
+
}
|
|
2417
|
+
.blocksCell {
|
|
2418
|
+
display: flex;
|
|
2419
|
+
align-items: center;
|
|
2420
|
+
justify-content: center;
|
|
2421
|
+
min-height: 32px;
|
|
2422
|
+
padding: 6px 4px;
|
|
2423
|
+
border-radius: 6px;
|
|
2424
|
+
/* Default fill is the accent wash: a block without an explicit colour must
|
|
2425
|
+
still read as a block, never as invisible text. */
|
|
2426
|
+
background: color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint-strong), transparent);
|
|
2427
|
+
color: var(--dsw-alias-label-primary);
|
|
2428
|
+
font-size: var(--dsl-g-font-meta);
|
|
2429
|
+
font-weight: 650;
|
|
2430
|
+
line-height: 1.2;
|
|
2431
|
+
text-align: center;
|
|
2432
|
+
overflow-wrap: anywhere;
|
|
2433
|
+
min-width: 0;
|
|
2434
|
+
}
|
|
2435
|
+
.blocksGap {
|
|
2436
|
+
display: flex;
|
|
2437
|
+
align-items: center;
|
|
2438
|
+
justify-content: center;
|
|
2439
|
+
min-height: 32px;
|
|
2440
|
+
border-radius: 6px;
|
|
2441
|
+
color: var(--dsw-alias-label-caption, var(--dsw-alias-label-secondary));
|
|
2442
|
+
font-size: var(--dsl-g-font-meta);
|
|
2443
|
+
line-height: 1.2;
|
|
2444
|
+
opacity: 0.6;
|
|
2445
|
+
}
|
|
2446
|
+
.blocksGapPad { min-height: 32px; }
|
|
2447
|
+
.blocksCaption {
|
|
2448
|
+
font-size: var(--dsl-g-font-meta);
|
|
2449
|
+
line-height: 1.55;
|
|
2450
|
+
color: var(--dsw-alias-label-secondary);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
/* Cell wrapper: the cell box plus the optional caption hanging under it, so a
|
|
2454
|
+
bit grid can name the sign bit without breaking the row's baseline. */
|
|
2455
|
+
.blocksCellWrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
2456
|
+
.blocksSub {
|
|
2457
|
+
font-size: var(--dsl-g-font-data);
|
|
2458
|
+
line-height: 1.3;
|
|
2459
|
+
color: var(--dsw-alias-label-secondary);
|
|
2460
|
+
text-align: center;
|
|
2461
|
+
}
|
|
2462
|
+
/* `variant: "outline"` — bit grids, matrices: a hairline box, no fill, so a
|
|
2463
|
+
single highlighted cell is the only thing carrying colour. */
|
|
2464
|
+
.blocksCellOutline {
|
|
2465
|
+
background: transparent;
|
|
2466
|
+
border: 1px solid var(--dsl-g-border);
|
|
2467
|
+
color: var(--dsw-alias-label-primary);
|
|
2468
|
+
font-weight: 600;
|
|
2469
|
+
}
|
|
2470
|
+
.blocksCell[data-tone] {
|
|
2471
|
+
background: color-mix(in srgb, var(--dsl-g-tone, var(--dsl-g-accent)) var(--dsl-g-tint), transparent);
|
|
2472
|
+
color: var(--dsw-alias-label-primary);
|
|
2473
|
+
border: 1px solid color-mix(in srgb, var(--dsl-g-tone, var(--dsl-g-accent)) 30%, transparent);
|
|
2474
|
+
}
|
|
2475
|
+
.blocksCell[data-tone="accent"] { --dsl-g-tone: var(--dsl-g-accent); }
|
|
2476
|
+
.blocksCell[data-tone="success"] { --dsl-g-tone: var(--dsw-alias-state-success-primary, #3ecf8e); }
|
|
2477
|
+
.blocksCell[data-tone="warning"] { --dsl-g-tone: var(--dsw-alias-state-warn-primary, #f5b83d); }
|
|
2478
|
+
.blocksCell[data-tone="danger"] { --dsl-g-tone: var(--dsw-alias-state-error-primary, #ff6b6b); }
|
|
2479
|
+
.blocksCell[data-tone="muted"] { --dsl-g-tone: var(--dsw-alias-label-tertiary, #8a8f9c); }
|
|
2480
|
+
|
|
2481
|
+
/* Row main-axis alignment (`row.justify`). Centering is what a figure header
|
|
2482
|
+
needs: an icon plate + title stacked over a caption. */
|
|
2483
|
+
.row.justifyCenter { justify-content: center; }
|
|
2484
|
+
.row.justifyEnd { justify-content: flex-end; }
|
|
2485
|
+
.row.justifyBetween { justify-content: space-between; }
|
|
2486
|
+
|
|
2487
|
+
/* ---------- v12.2: flat figure panels, connectors, run styling ---------- */
|
|
2488
|
+
|
|
2489
|
+
/* `card.flat`: a printed block, not a floating card. Figures in the reference
|
|
2490
|
+
style are drawn flat — elevation on every nested panel was what made the
|
|
2491
|
+
first pass read as a stack of chips. */
|
|
2492
|
+
.card.cardFlat {
|
|
2493
|
+
box-shadow: none;
|
|
2494
|
+
background: color-mix(in srgb, var(--dsw-alias-label-primary) 2.5%, transparent);
|
|
2495
|
+
border-color: var(--dsl-g-border);
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
/* `text.mono`: hex / binary / identifiers without the inline-code pill. */
|
|
2499
|
+
/* `text.mono`: monospace run without the inline-code pill. It deliberately
|
|
2500
|
+
does NOT set a font size — an unconditional `title` size here silently
|
|
2501
|
+
overrode `size: "caption"` / `size: "h2"` and made every mono run the same
|
|
2502
|
+
optical size. */
|
|
2503
|
+
.text.textMono {
|
|
2504
|
+
font-family: var(--dsl-g-font-mono);
|
|
2505
|
+
letter-spacing: 0;
|
|
2506
|
+
font-variant-numeric: tabular-nums;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
/* `text.tone`: a red run without wrapping it in a badge. */
|
|
2510
|
+
.text[data-tone="danger"] { color: var(--dsw-alias-state-error-primary, #ff6b6b); }
|
|
2511
|
+
.text[data-tone="success"] { color: var(--dsw-alias-state-success-primary, #3ecf8e); }
|
|
2512
|
+
.text[data-tone="warning"] { color: var(--dsw-alias-state-warn-primary, #f5b83d); }
|
|
2513
|
+
.text[data-tone="info"] { color: var(--dsl-g-accent); }
|
|
2514
|
+
.text[data-tone="muted"] { color: var(--dsw-alias-label-secondary); }
|
|
2515
|
+
|
|
2516
|
+
/* `arrow`: a hairline connector. Fixed length, chevron head, centred — the
|
|
2517
|
+
`↓` text glyph could not hold a gap or keep its optical weight. */
|
|
2518
|
+
.arrow {
|
|
2519
|
+
display: flex;
|
|
2520
|
+
flex-direction: column;
|
|
2521
|
+
align-items: center;
|
|
2522
|
+
gap: 2px;
|
|
2523
|
+
color: var(--dsw-alias-label-tertiary, var(--dsw-alias-label-secondary));
|
|
2524
|
+
line-height: 1;
|
|
2525
|
+
}
|
|
2526
|
+
.arrow[data-dir="down"] { padding: 2px 0; }
|
|
2527
|
+
.arrow[data-dir="right"] {
|
|
2528
|
+
flex-direction: row;
|
|
2529
|
+
justify-content: flex-start;
|
|
2530
|
+
padding: 0 2px;
|
|
2531
|
+
}
|
|
2532
|
+
.arrow svg { display: block; overflow: visible; }
|
|
2533
|
+
.arrowLabel {
|
|
2534
|
+
font-size: var(--dsl-g-font-data);
|
|
2535
|
+
color: var(--dsw-alias-label-secondary);
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
/* `variant: "plain"` — digits, not a table: no box, no fill, larger type so an
|
|
2539
|
+
8-bit string keeps the reference's optical weight. */
|
|
2540
|
+
.blocksCell.blocksCellPlain {
|
|
2541
|
+
background: transparent;
|
|
2542
|
+
border: 0;
|
|
2543
|
+
font-size: var(--dsl-g-font-h2);
|
|
2544
|
+
font-weight: 650;
|
|
2545
|
+
letter-spacing: -0.01em;
|
|
2546
|
+
padding: 2px 0;
|
|
2547
|
+
}
|
|
2548
|
+
/* A plain cell that carries a tone keeps its tint but not the outline. The
|
|
2549
|
+
background must be re-declared: `.blocksCellPlain` also matches at the same
|
|
2550
|
+
specificity and comes later in the file, so it would otherwise win with
|
|
2551
|
+
`transparent` and erase the highlight. */
|
|
2552
|
+
.blocksCell.blocksCellPlain[data-tone] {
|
|
2553
|
+
border: 0;
|
|
2554
|
+
background: color-mix(in srgb, var(--dsl-g-tone, var(--dsl-g-accent)) var(--dsl-g-tint), transparent);
|
|
2555
|
+
border-radius: 10px;
|
|
2556
|
+
}
|