@teurons/vds-diagrams 0.0.0-stage → 0.3.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.
- package/README.md +170 -2
- package/dist/cli.js +2244 -0
- package/dist/diagrams.css +991 -0
- package/dist/grid.d.ts +1 -0
- package/dist/grid.js +283 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2044 -0
- package/dist/skills/vds-aggregates/SKILL.md +115 -0
- package/dist/skills/vds-ask-or-park/SKILL.md +101 -0
- package/dist/skills/vds-book-to-spec/SKILL.md +136 -0
- package/dist/skills/vds-build-from-published/SKILL.md +89 -0
- package/dist/skills/vds-change/SKILL.md +113 -0
- package/dist/skills/vds-context-map/SKILL.md +125 -0
- package/dist/skills/vds-contexts/SKILL.md +134 -0
- package/dist/skills/vds-diagrams/SKILL.md +88 -0
- package/dist/skills/vds-entities-and-values/SKILL.md +108 -0
- package/dist/skills/vds-language/SKILL.md +106 -0
- package/dist/skills/vds-model-review/SKILL.md +123 -0
- package/dist/skills/vds-ports-and-adapters/SKILL.md +119 -0
- package/dist/skills/vds-publish/SKILL.md +123 -0
- package/dist/skills/vds-reframe/SKILL.md +122 -0
- package/dist/skills/vds-requirements/SKILL.md +128 -0
- package/dist/skills/vds-requirements-review/SKILL.md +121 -0
- package/dist/skills/vds-scenarios/SKILL.md +142 -0
- package/dist/skills/vds-slice-blocks/SKILL.md +127 -0
- package/dist/skills/vds-story-walk/SKILL.md +128 -0
- package/dist/skills/vds-strip-invented/SKILL.md +130 -0
- package/dist/skills/vds-subdomains/SKILL.md +127 -0
- package/dist/skills/vds-which-skill/FILE-SHAPES.md +312 -0
- package/dist/skills/vds-which-skill/SKILL.md +125 -0
- package/dist/types/diagrams/src/grid/camera.d.ts +32 -0
- package/dist/types/diagrams/src/grid/capability.d.ts +11 -0
- package/dist/types/diagrams/src/grid/fold-uj.d.ts +2 -0
- package/dist/types/diagrams/src/grid/grid-canvas.d.ts +95 -0
- package/dist/types/diagrams/src/grid/index.d.ts +5 -0
- package/dist/types/diagrams/src/grid/input.d.ts +93 -0
- package/dist/types/diagrams/src/grid/route.d.ts +21 -0
- package/dist/types/engine/js/bridge.d.ts +12 -0
- package/dist/types/engine/js/index.d.ts +73 -0
- package/dist/types/vds-diagrams/src/canvas.d.ts +43 -0
- package/dist/types/vds-diagrams/src/from-scenarios.d.ts +4 -0
- package/dist/types/vds-diagrams/src/grid-folds.d.ts +1 -0
- package/dist/types/vds-diagrams/src/grid.d.ts +2 -0
- package/dist/types/vds-diagrams/src/index.d.ts +6 -0
- package/dist/types/vds-diagrams/src/types.d.ts +39 -0
- package/dist/types/vds-diagrams/src/user-journey.d.ts +54 -0
- package/dist/types/vds-diagrams/src/workspace.d.ts +25 -0
- package/dist/vds_engine.wasm +0 -0
- package/dist/workspace.d.ts +1 -0
- package/dist/workspace.js +113 -0
- package/package.json +68 -3
|
@@ -0,0 +1,991 @@
|
|
|
1
|
+
/* @teurons/vds-diagrams: the diagram canvas. Tokens follow Teurons UI colours, so light and dark both
|
|
2
|
+
hold; the studio's page (.ws-page) shares them. */
|
|
3
|
+
.ws-page,
|
|
4
|
+
.vds-diagrams {
|
|
5
|
+
--ws-ink: var(--color-foreground);
|
|
6
|
+
--ws-muted: var(--color-muted-foreground);
|
|
7
|
+
--ws-faint: color-mix(in srgb, var(--color-muted-foreground) 60%, var(--color-background));
|
|
8
|
+
--ws-hair: var(--color-border);
|
|
9
|
+
--ws-paper: var(--color-background);
|
|
10
|
+
--ws-raise: var(--color-muted);
|
|
11
|
+
--ws-problem: var(--color-warning);
|
|
12
|
+
--ws-problem-bg: color-mix(in srgb, var(--color-warning) 10%, var(--color-background));
|
|
13
|
+
--ws-solution: var(--color-info);
|
|
14
|
+
--ws-solution-bg: color-mix(in srgb, var(--color-info) 10%, var(--color-background));
|
|
15
|
+
--ws-on-solution: var(--color-info-foreground);
|
|
16
|
+
--ws-cmd: var(--color-info);
|
|
17
|
+
/* A line in the decision colour: lighter than its text, still about 3:1 on paper. */
|
|
18
|
+
--ws-cmd-line: color-mix(in oklab, var(--ws-cmd) 58%, var(--ws-paper));
|
|
19
|
+
--ws-rm: var(--color-success);
|
|
20
|
+
--ws-evt: var(--color-warning);
|
|
21
|
+
/* Dilger draws an outside system's events in yellow (p237). */
|
|
22
|
+
--ws-ext: var(--color-yellow-400, oklch(85.2% 0.199 91.936));
|
|
23
|
+
--ws-err: var(--color-error, oklch(57.7% 0.245 27.325));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── the diagram canvas (ScenarioDiagram and CapabilityDiagram on @vds/diagrams' grid canvas) ── */
|
|
27
|
+
.fc-body {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: 12px;
|
|
30
|
+
height: calc(100svh - 160px);
|
|
31
|
+
min-height: 420px;
|
|
32
|
+
}
|
|
33
|
+
.fl-card {
|
|
34
|
+
display: grid;
|
|
35
|
+
gap: 2px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
padding: 8px 10px;
|
|
39
|
+
border: 1px solid var(--ws-hair);
|
|
40
|
+
border-radius: 9px;
|
|
41
|
+
background: var(--ws-paper);
|
|
42
|
+
font: inherit;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
line-height: 1.3;
|
|
45
|
+
text-align: left;
|
|
46
|
+
color: var(--ws-ink);
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
transition-property: border-color, box-shadow;
|
|
49
|
+
transition-duration: 150ms;
|
|
50
|
+
transition-timing-function: ease-out;
|
|
51
|
+
}
|
|
52
|
+
.fl-card b {
|
|
53
|
+
font-weight: 650;
|
|
54
|
+
font-size: 12.5px;
|
|
55
|
+
}
|
|
56
|
+
.fl-card small {
|
|
57
|
+
font-size: 10.5px;
|
|
58
|
+
color: var(--ws-muted);
|
|
59
|
+
}
|
|
60
|
+
.fl-card:focus-visible {
|
|
61
|
+
outline: 2px solid var(--ws-ink);
|
|
62
|
+
outline-offset: 2px;
|
|
63
|
+
}
|
|
64
|
+
.fl-num {
|
|
65
|
+
margin-right: 3px;
|
|
66
|
+
padding: 1px 5px;
|
|
67
|
+
border-radius: 5px;
|
|
68
|
+
background: var(--ws-ink);
|
|
69
|
+
color: var(--ws-paper);
|
|
70
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
71
|
+
font-size: 10px;
|
|
72
|
+
font-style: normal;
|
|
73
|
+
font-weight: 700;
|
|
74
|
+
font-variant-numeric: tabular-nums;
|
|
75
|
+
}
|
|
76
|
+
.fl-scr {
|
|
77
|
+
position: relative;
|
|
78
|
+
z-index: 2;
|
|
79
|
+
gap: 4px;
|
|
80
|
+
padding: 10px 14px 11px;
|
|
81
|
+
border-width: 1.5px;
|
|
82
|
+
border-radius: 14px;
|
|
83
|
+
}
|
|
84
|
+
.fl-scr .fl-kind {
|
|
85
|
+
font-size: 10px;
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
text-transform: uppercase;
|
|
88
|
+
letter-spacing: 0.08em;
|
|
89
|
+
}
|
|
90
|
+
.fl-scr b {
|
|
91
|
+
font-size: 13.5px;
|
|
92
|
+
}
|
|
93
|
+
.fl-cmd {
|
|
94
|
+
border-color: var(--ws-cmd);
|
|
95
|
+
background: color-mix(in srgb, var(--ws-cmd) 6%, var(--color-background));
|
|
96
|
+
}
|
|
97
|
+
.fl-cmd b {
|
|
98
|
+
color: var(--ws-cmd);
|
|
99
|
+
}
|
|
100
|
+
.fl-cmd .fl-num {
|
|
101
|
+
background: var(--ws-cmd);
|
|
102
|
+
}
|
|
103
|
+
.fl-rm {
|
|
104
|
+
border-color: var(--ws-rm);
|
|
105
|
+
background: color-mix(in srgb, var(--ws-rm) 6%, var(--color-background));
|
|
106
|
+
}
|
|
107
|
+
.fl-rm b {
|
|
108
|
+
color: var(--ws-rm);
|
|
109
|
+
}
|
|
110
|
+
.fl-rm .fl-num {
|
|
111
|
+
background: var(--ws-rm);
|
|
112
|
+
}
|
|
113
|
+
.fl-evt {
|
|
114
|
+
border-color: var(--ws-evt);
|
|
115
|
+
background: color-mix(in srgb, var(--ws-evt) 6%, var(--color-background));
|
|
116
|
+
}
|
|
117
|
+
.fl-evt b {
|
|
118
|
+
color: var(--ws-evt);
|
|
119
|
+
}
|
|
120
|
+
.fl-evt .fl-num {
|
|
121
|
+
background: var(--ws-evt);
|
|
122
|
+
}
|
|
123
|
+
.fl-auto {
|
|
124
|
+
border-style: dashed;
|
|
125
|
+
}
|
|
126
|
+
/* What the product sends for analytics: outside the domain, so drawn quiet. */
|
|
127
|
+
.fl-ana {
|
|
128
|
+
border-style: dotted;
|
|
129
|
+
border-color: var(--ws-muted);
|
|
130
|
+
}
|
|
131
|
+
.fl-ana b {
|
|
132
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
133
|
+
font-size: 11px;
|
|
134
|
+
font-weight: 500;
|
|
135
|
+
overflow-wrap: anywhere;
|
|
136
|
+
}
|
|
137
|
+
.fl-ext,
|
|
138
|
+
.fl-call {
|
|
139
|
+
border-color: var(--ws-ext);
|
|
140
|
+
background: color-mix(in srgb, var(--ws-ext) 14%, var(--color-background));
|
|
141
|
+
}
|
|
142
|
+
.fl-call {
|
|
143
|
+
border-style: dashed;
|
|
144
|
+
}
|
|
145
|
+
.fl-ext .fl-num,
|
|
146
|
+
.fl-call .fl-num {
|
|
147
|
+
background: var(--ws-ext);
|
|
148
|
+
color: oklch(21% 0 0);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* The UJ view's boxes: a message reaching the person, a decision, an automation
|
|
152
|
+
that decides, a screen state, an error state, and the end. */
|
|
153
|
+
.fl-msg {
|
|
154
|
+
position: relative;
|
|
155
|
+
z-index: 2;
|
|
156
|
+
gap: 4px;
|
|
157
|
+
padding: 8px 12px 9px;
|
|
158
|
+
border-style: dashed;
|
|
159
|
+
border-radius: 14px;
|
|
160
|
+
}
|
|
161
|
+
.fl-msg .fl-kind {
|
|
162
|
+
font-size: 10px;
|
|
163
|
+
font-weight: 700;
|
|
164
|
+
text-transform: uppercase;
|
|
165
|
+
letter-spacing: 0.08em;
|
|
166
|
+
}
|
|
167
|
+
.fl-dec,
|
|
168
|
+
.fl-rule {
|
|
169
|
+
border-color: var(--ws-cmd-line);
|
|
170
|
+
border-width: 1.5px;
|
|
171
|
+
background: color-mix(in oklab, var(--ws-cmd) 5%, var(--color-background));
|
|
172
|
+
}
|
|
173
|
+
.fl-dec b,
|
|
174
|
+
.fl-rule b {
|
|
175
|
+
color: var(--ws-cmd);
|
|
176
|
+
}
|
|
177
|
+
.fl-dec .fl-num,
|
|
178
|
+
.fl-rule .fl-num {
|
|
179
|
+
background: color-mix(in oklab, var(--ws-cmd) 82%, var(--ws-paper));
|
|
180
|
+
}
|
|
181
|
+
.fl-rule {
|
|
182
|
+
border-style: dashed;
|
|
183
|
+
}
|
|
184
|
+
.fl-state {
|
|
185
|
+
border-color: var(--ws-rm);
|
|
186
|
+
background: color-mix(in srgb, var(--ws-rm) 6%, var(--color-background));
|
|
187
|
+
}
|
|
188
|
+
.fl-state .fl-num {
|
|
189
|
+
background: var(--ws-rm);
|
|
190
|
+
}
|
|
191
|
+
.fl-err {
|
|
192
|
+
border-color: var(--ws-err);
|
|
193
|
+
background: color-mix(in srgb, var(--ws-err) 8%, var(--color-background));
|
|
194
|
+
}
|
|
195
|
+
.fl-err b {
|
|
196
|
+
color: var(--ws-err);
|
|
197
|
+
}
|
|
198
|
+
.fl-err .fl-num {
|
|
199
|
+
background: var(--ws-err);
|
|
200
|
+
}
|
|
201
|
+
.fl-tr {
|
|
202
|
+
border-color: var(--ws-ext);
|
|
203
|
+
background: color-mix(in srgb, var(--ws-ext) 14%, var(--color-background));
|
|
204
|
+
}
|
|
205
|
+
.fl-tr .fl-num {
|
|
206
|
+
background: var(--ws-ext);
|
|
207
|
+
color: oklch(21% 0 0);
|
|
208
|
+
}
|
|
209
|
+
/* A check a screen's decision manager asks: a rhombus, its points where the arrows meet. */
|
|
210
|
+
.fl-chk {
|
|
211
|
+
width: 76%;
|
|
212
|
+
margin: 24px auto;
|
|
213
|
+
isolation: isolate;
|
|
214
|
+
position: relative;
|
|
215
|
+
min-height: 92px;
|
|
216
|
+
padding: 24px 46px;
|
|
217
|
+
border: 0;
|
|
218
|
+
background: transparent;
|
|
219
|
+
text-align: center;
|
|
220
|
+
align-content: center;
|
|
221
|
+
}
|
|
222
|
+
.fl-chk::before,
|
|
223
|
+
.fl-chk::after {
|
|
224
|
+
content: "";
|
|
225
|
+
position: absolute;
|
|
226
|
+
z-index: -1;
|
|
227
|
+
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
|
|
228
|
+
}
|
|
229
|
+
.fl-chk::before {
|
|
230
|
+
inset: 0;
|
|
231
|
+
background: var(--ws-cmd);
|
|
232
|
+
}
|
|
233
|
+
/* A picked check: its rhombus edge goes dark and thick; no square outline round it. */
|
|
234
|
+
.gd .fl-chk {
|
|
235
|
+
outline: none !important;
|
|
236
|
+
}
|
|
237
|
+
.gd .fl-chk::before {
|
|
238
|
+
background: color-mix(
|
|
239
|
+
in srgb,
|
|
240
|
+
var(--ws-ink) calc(var(--gd-picked, 0) * 100%),
|
|
241
|
+
var(--ws-cmd-line)
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
.gd .fl-chk::after {
|
|
245
|
+
inset: calc(1.5px + var(--gd-picked, 0) * 1.5px) calc(2.5px + var(--gd-picked, 0) * 2.5px);
|
|
246
|
+
}
|
|
247
|
+
.fl-chk::after {
|
|
248
|
+
inset: 1.5px 2.5px;
|
|
249
|
+
background: color-mix(in oklab, var(--ws-cmd) 5%, var(--ws-paper));
|
|
250
|
+
}
|
|
251
|
+
.fl-chk b {
|
|
252
|
+
font-weight: 600;
|
|
253
|
+
color: var(--ws-cmd);
|
|
254
|
+
}
|
|
255
|
+
.fl-chk .fl-num {
|
|
256
|
+
background: color-mix(in oklab, var(--ws-cmd) 82%, var(--ws-paper));
|
|
257
|
+
}
|
|
258
|
+
.fl-end {
|
|
259
|
+
border-style: dotted;
|
|
260
|
+
border-color: var(--ws-muted);
|
|
261
|
+
}
|
|
262
|
+
/* A box's states, errors and messages: quiet lines under its title, an error in red. */
|
|
263
|
+
.fl-lines {
|
|
264
|
+
display: grid;
|
|
265
|
+
gap: 3px;
|
|
266
|
+
margin: 6px 0 0;
|
|
267
|
+
padding: 6px 0 0;
|
|
268
|
+
border-top: 1px solid var(--ws-hair);
|
|
269
|
+
list-style: none;
|
|
270
|
+
font-size: 12px;
|
|
271
|
+
font-weight: 450;
|
|
272
|
+
color: var(--ws-muted);
|
|
273
|
+
}
|
|
274
|
+
.fl-lines li {
|
|
275
|
+
position: relative;
|
|
276
|
+
padding-left: 12px;
|
|
277
|
+
text-wrap: pretty;
|
|
278
|
+
}
|
|
279
|
+
.fl-lines li::before {
|
|
280
|
+
content: "";
|
|
281
|
+
position: absolute;
|
|
282
|
+
left: 2px;
|
|
283
|
+
top: 0.5em;
|
|
284
|
+
width: 5px;
|
|
285
|
+
height: 5px;
|
|
286
|
+
border-radius: 50%;
|
|
287
|
+
background: currentColor;
|
|
288
|
+
opacity: 0.6;
|
|
289
|
+
}
|
|
290
|
+
.fl-lines li[data-tone="err"] {
|
|
291
|
+
color: var(--ws-err);
|
|
292
|
+
}
|
|
293
|
+
.fl-lines li[data-tone="err"]::before {
|
|
294
|
+
border-radius: 1px;
|
|
295
|
+
transform: rotate(45deg);
|
|
296
|
+
opacity: 1;
|
|
297
|
+
}
|
|
298
|
+
/* A decision as a switch: each way its own block, divided edge to edge, the arrow leaving
|
|
299
|
+
from the block's right edge. */
|
|
300
|
+
.fl-lines:has(> li[data-tone="way"]) {
|
|
301
|
+
gap: 0;
|
|
302
|
+
margin: 8px -10px -8px;
|
|
303
|
+
padding: 0;
|
|
304
|
+
border-top: 1px solid color-mix(in srgb, var(--ws-cmd) 35%, transparent);
|
|
305
|
+
}
|
|
306
|
+
.fl-lines li[data-tone="way"] {
|
|
307
|
+
padding: 7px 10px 7px 34px;
|
|
308
|
+
background: var(--ws-paper);
|
|
309
|
+
color: var(--ws-ink);
|
|
310
|
+
}
|
|
311
|
+
.fl-lines li[data-tone="way"] + li[data-tone="way"] {
|
|
312
|
+
border-top: 1px solid color-mix(in srgb, var(--ws-cmd) 35%, transparent);
|
|
313
|
+
}
|
|
314
|
+
.fl-lines li[data-tone="way"]:last-child {
|
|
315
|
+
border-radius: 0 0 8px 8px;
|
|
316
|
+
}
|
|
317
|
+
.fl-way {
|
|
318
|
+
position: absolute;
|
|
319
|
+
left: 10px;
|
|
320
|
+
top: 7px;
|
|
321
|
+
min-width: 15px;
|
|
322
|
+
padding: 0 3px;
|
|
323
|
+
border-radius: 4px;
|
|
324
|
+
background: var(--ws-cmd);
|
|
325
|
+
color: var(--ws-paper);
|
|
326
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
327
|
+
font-size: 9.5px;
|
|
328
|
+
font-style: normal;
|
|
329
|
+
font-weight: 700;
|
|
330
|
+
text-align: center;
|
|
331
|
+
}
|
|
332
|
+
.fl-lines li[data-tone="way"]::before {
|
|
333
|
+
display: none;
|
|
334
|
+
}
|
|
335
|
+
.fl-lines li[data-tone="msg"]::before {
|
|
336
|
+
border-radius: 1px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.gd {
|
|
340
|
+
--ax-w: 136px;
|
|
341
|
+
--ax-h: 54px;
|
|
342
|
+
--ws-st: var(--ws-ink);
|
|
343
|
+
--ws-lane: color-mix(in srgb, var(--color-muted) 50%, var(--color-background));
|
|
344
|
+
flex: 1;
|
|
345
|
+
min-width: 0;
|
|
346
|
+
position: relative;
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
display: grid;
|
|
349
|
+
grid-template-columns: var(--ax-w) 1fr;
|
|
350
|
+
grid-template-rows: var(--ax-h) 1fr;
|
|
351
|
+
background: var(--ws-paper);
|
|
352
|
+
border: 1px solid var(--ws-hair);
|
|
353
|
+
border-radius: 12px;
|
|
354
|
+
user-select: none;
|
|
355
|
+
}
|
|
356
|
+
.gd-viewport {
|
|
357
|
+
grid-area: 2 / 2;
|
|
358
|
+
position: relative;
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
touch-action: none;
|
|
361
|
+
}
|
|
362
|
+
.gd-viewport .react-flow {
|
|
363
|
+
background: transparent;
|
|
364
|
+
}
|
|
365
|
+
.gd-corner {
|
|
366
|
+
grid-area: 1 / 1;
|
|
367
|
+
z-index: 3;
|
|
368
|
+
display: flex;
|
|
369
|
+
flex-direction: column;
|
|
370
|
+
justify-content: center;
|
|
371
|
+
padding: 0 14px;
|
|
372
|
+
border-right: 1px solid var(--ws-hair);
|
|
373
|
+
border-bottom: 1px solid var(--ws-hair);
|
|
374
|
+
background: var(--ws-paper);
|
|
375
|
+
font-size: 10px;
|
|
376
|
+
font-weight: 700;
|
|
377
|
+
text-transform: uppercase;
|
|
378
|
+
letter-spacing: 0.08em;
|
|
379
|
+
color: var(--ws-muted);
|
|
380
|
+
white-space: nowrap;
|
|
381
|
+
}
|
|
382
|
+
.gd-x {
|
|
383
|
+
grid-area: 1 / 2;
|
|
384
|
+
position: relative;
|
|
385
|
+
overflow: hidden;
|
|
386
|
+
z-index: 2;
|
|
387
|
+
border-bottom: 1px solid var(--ws-hair);
|
|
388
|
+
background: var(--ws-paper);
|
|
389
|
+
}
|
|
390
|
+
.gd-x-track {
|
|
391
|
+
position: absolute;
|
|
392
|
+
inset: 0;
|
|
393
|
+
}
|
|
394
|
+
.gd-x-track::before {
|
|
395
|
+
content: "";
|
|
396
|
+
position: absolute;
|
|
397
|
+
left: 0;
|
|
398
|
+
right: 0;
|
|
399
|
+
top: 50%;
|
|
400
|
+
border-top: 1.5px solid var(--ws-hair);
|
|
401
|
+
}
|
|
402
|
+
.gd-col {
|
|
403
|
+
position: absolute;
|
|
404
|
+
top: 0;
|
|
405
|
+
bottom: 0;
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: center;
|
|
408
|
+
justify-content: center;
|
|
409
|
+
}
|
|
410
|
+
.gd-pill {
|
|
411
|
+
position: relative;
|
|
412
|
+
display: inline-flex;
|
|
413
|
+
align-items: center;
|
|
414
|
+
gap: 7px;
|
|
415
|
+
max-width: calc(100% - 8px);
|
|
416
|
+
box-sizing: border-box;
|
|
417
|
+
padding: 4px 11px 4px 5px;
|
|
418
|
+
border: 1px solid var(--ws-hair);
|
|
419
|
+
border-radius: 18px;
|
|
420
|
+
text-align: left;
|
|
421
|
+
line-height: 1.15;
|
|
422
|
+
background: var(--ws-paper);
|
|
423
|
+
color: var(--ws-ink);
|
|
424
|
+
font: inherit;
|
|
425
|
+
font-size: 12.5px;
|
|
426
|
+
font-weight: 650;
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
}
|
|
429
|
+
.gd-pill .nm {
|
|
430
|
+
text-wrap: balance;
|
|
431
|
+
}
|
|
432
|
+
.gd-pill .n {
|
|
433
|
+
flex: 0 0 auto;
|
|
434
|
+
display: grid;
|
|
435
|
+
place-items: center;
|
|
436
|
+
min-width: 20px;
|
|
437
|
+
height: 20px;
|
|
438
|
+
border-radius: 999px;
|
|
439
|
+
background: var(--ws-raise);
|
|
440
|
+
font-size: 11px;
|
|
441
|
+
font-variant-numeric: tabular-nums;
|
|
442
|
+
}
|
|
443
|
+
.gd-pill.on {
|
|
444
|
+
background: var(--ws-st);
|
|
445
|
+
border-color: var(--ws-st);
|
|
446
|
+
color: var(--ws-paper);
|
|
447
|
+
}
|
|
448
|
+
.gd-pill.on .n {
|
|
449
|
+
background: color-mix(in srgb, var(--color-background) 22%, transparent);
|
|
450
|
+
}
|
|
451
|
+
.gd-y {
|
|
452
|
+
grid-area: 2 / 1;
|
|
453
|
+
position: relative;
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
z-index: 2;
|
|
456
|
+
border-right: 1px solid var(--ws-hair);
|
|
457
|
+
background: var(--ws-paper);
|
|
458
|
+
}
|
|
459
|
+
.gd-row {
|
|
460
|
+
container-type: size;
|
|
461
|
+
overflow: clip;
|
|
462
|
+
position: absolute;
|
|
463
|
+
left: 0;
|
|
464
|
+
right: 0;
|
|
465
|
+
box-sizing: border-box;
|
|
466
|
+
padding: 12px 14px;
|
|
467
|
+
border-bottom: 1px solid var(--ws-hair);
|
|
468
|
+
font-size: 12.5px;
|
|
469
|
+
line-height: 1.25;
|
|
470
|
+
}
|
|
471
|
+
/* A lane's name never spills into the next lane when zoomed out: the row clips, a short row
|
|
472
|
+
drops the small line under the name, and a thin divider keeps its label on one line. */
|
|
473
|
+
@container (max-height: 46px) {
|
|
474
|
+
.gd-row .gd-row-label small {
|
|
475
|
+
overflow: hidden;
|
|
476
|
+
white-space: nowrap;
|
|
477
|
+
text-overflow: ellipsis;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
@container (max-height: 30px) {
|
|
481
|
+
.gd-row .gd-row-label small {
|
|
482
|
+
display: none;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
@container (max-height: 26px) {
|
|
486
|
+
.gd-row.gd-divider .gd-row-label {
|
|
487
|
+
min-width: 0;
|
|
488
|
+
}
|
|
489
|
+
.gd-row.gd-divider b,
|
|
490
|
+
.gd-row-label b {
|
|
491
|
+
overflow: hidden;
|
|
492
|
+
white-space: nowrap;
|
|
493
|
+
text-overflow: ellipsis;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
.gd-row-label {
|
|
497
|
+
position: sticky;
|
|
498
|
+
top: 12px;
|
|
499
|
+
display: block;
|
|
500
|
+
}
|
|
501
|
+
.gd-row b {
|
|
502
|
+
display: block;
|
|
503
|
+
font-weight: 600;
|
|
504
|
+
}
|
|
505
|
+
.gd-row small {
|
|
506
|
+
display: block;
|
|
507
|
+
font-size: 11px;
|
|
508
|
+
color: var(--ws-muted);
|
|
509
|
+
}
|
|
510
|
+
.gd-row.gd-mid,
|
|
511
|
+
.gd-table .gd-mid td,
|
|
512
|
+
.gd-row.gd-actor,
|
|
513
|
+
.gd-row.gd-auto,
|
|
514
|
+
.gd-table .gd-actor td,
|
|
515
|
+
.gd-table .gd-auto td {
|
|
516
|
+
background: var(--ws-lane);
|
|
517
|
+
}
|
|
518
|
+
.gd-row.gd-mid b {
|
|
519
|
+
font-size: 11px;
|
|
520
|
+
font-weight: 700;
|
|
521
|
+
text-transform: uppercase;
|
|
522
|
+
letter-spacing: 0.08em;
|
|
523
|
+
color: var(--ws-muted);
|
|
524
|
+
}
|
|
525
|
+
.gd-row.gd-divider {
|
|
526
|
+
display: flex;
|
|
527
|
+
align-items: center;
|
|
528
|
+
padding: 0 14px;
|
|
529
|
+
background: var(--ws-hair);
|
|
530
|
+
}
|
|
531
|
+
.gd-row.gd-divider .gd-row-label {
|
|
532
|
+
position: static;
|
|
533
|
+
}
|
|
534
|
+
.gd-row.gd-divider b {
|
|
535
|
+
font-size: 10px;
|
|
536
|
+
font-weight: 800;
|
|
537
|
+
line-height: 1.3;
|
|
538
|
+
text-transform: uppercase;
|
|
539
|
+
letter-spacing: 0.1em;
|
|
540
|
+
}
|
|
541
|
+
.gd-zoom {
|
|
542
|
+
position: absolute;
|
|
543
|
+
right: 12px;
|
|
544
|
+
bottom: 12px;
|
|
545
|
+
z-index: 6;
|
|
546
|
+
display: flex;
|
|
547
|
+
align-items: center;
|
|
548
|
+
gap: 4px;
|
|
549
|
+
padding: 4px;
|
|
550
|
+
background: var(--ws-paper);
|
|
551
|
+
border: 1px solid var(--ws-hair);
|
|
552
|
+
border-radius: 12px;
|
|
553
|
+
}
|
|
554
|
+
.gd-zoom [data-slot="grid-zoom-level"] {
|
|
555
|
+
min-width: 36px;
|
|
556
|
+
text-align: center;
|
|
557
|
+
color: var(--ws-muted);
|
|
558
|
+
}
|
|
559
|
+
.gd-sheet {
|
|
560
|
+
position: relative;
|
|
561
|
+
width: max-content;
|
|
562
|
+
padding: 0 60px 60px 0;
|
|
563
|
+
}
|
|
564
|
+
.gd-slice {
|
|
565
|
+
position: absolute;
|
|
566
|
+
width: 0;
|
|
567
|
+
border-left: 1.5px dashed var(--ws-hair);
|
|
568
|
+
pointer-events: none;
|
|
569
|
+
}
|
|
570
|
+
.gd-table {
|
|
571
|
+
border-collapse: separate;
|
|
572
|
+
border-spacing: 0;
|
|
573
|
+
font-size: 13px;
|
|
574
|
+
}
|
|
575
|
+
.gd-table td {
|
|
576
|
+
box-sizing: border-box;
|
|
577
|
+
padding: 22px 30px;
|
|
578
|
+
vertical-align: top;
|
|
579
|
+
border-bottom: 1px solid var(--ws-hair);
|
|
580
|
+
background: var(--ws-paper);
|
|
581
|
+
}
|
|
582
|
+
.gd-spacer td {
|
|
583
|
+
width: 260px;
|
|
584
|
+
height: 0;
|
|
585
|
+
padding: 0 30px;
|
|
586
|
+
border: 0;
|
|
587
|
+
}
|
|
588
|
+
/* In the UJ view arrows cross between columns, so the columns stand further apart. */
|
|
589
|
+
.fc-body[data-drawing="journey"] .gd-table td {
|
|
590
|
+
padding: 26px 72px;
|
|
591
|
+
}
|
|
592
|
+
.fc-body[data-drawing="journey"] .gd-spacer td {
|
|
593
|
+
width: 404px;
|
|
594
|
+
padding: 0 72px;
|
|
595
|
+
}
|
|
596
|
+
.gd-table .gd-divider td {
|
|
597
|
+
height: 22px;
|
|
598
|
+
padding: 0;
|
|
599
|
+
background: var(--ws-hair);
|
|
600
|
+
border-bottom: 0;
|
|
601
|
+
}
|
|
602
|
+
.gd-table .gd-divider.gd-tall td {
|
|
603
|
+
height: 36px;
|
|
604
|
+
}
|
|
605
|
+
.gd-stack {
|
|
606
|
+
display: grid;
|
|
607
|
+
gap: 8px;
|
|
608
|
+
}
|
|
609
|
+
.gd-handle {
|
|
610
|
+
opacity: 0;
|
|
611
|
+
pointer-events: none;
|
|
612
|
+
width: 1px;
|
|
613
|
+
height: 1px;
|
|
614
|
+
min-width: 0;
|
|
615
|
+
min-height: 0;
|
|
616
|
+
border: 0;
|
|
617
|
+
}
|
|
618
|
+
.react-flow__node-backdrop {
|
|
619
|
+
pointer-events: none;
|
|
620
|
+
}
|
|
621
|
+
.react-flow__node-backdrop td > * {
|
|
622
|
+
visibility: hidden;
|
|
623
|
+
}
|
|
624
|
+
.react-flow__node-cell {
|
|
625
|
+
pointer-events: all !important;
|
|
626
|
+
}
|
|
627
|
+
.react-flow__node-cell td {
|
|
628
|
+
background: transparent !important;
|
|
629
|
+
border-color: transparent !important;
|
|
630
|
+
}
|
|
631
|
+
.gd .react-flow__edge {
|
|
632
|
+
pointer-events: none;
|
|
633
|
+
}
|
|
634
|
+
.gd-arrow path {
|
|
635
|
+
fill: none;
|
|
636
|
+
}
|
|
637
|
+
.gd-arrow[data-tone="screen_move"] path {
|
|
638
|
+
stroke: var(--ws-ink);
|
|
639
|
+
stroke-dasharray: 5 4;
|
|
640
|
+
}
|
|
641
|
+
/* The UJ view: the way through screens and decisions is drawn strong; the work it
|
|
642
|
+
sets off and the states it leaves on a screen are quiet. */
|
|
643
|
+
.gd-arrow[data-tone="journey"] {
|
|
644
|
+
--gd-tone: color-mix(in oklab, var(--ws-ink) 55%, var(--ws-paper));
|
|
645
|
+
--gd-w: 1.4px;
|
|
646
|
+
}
|
|
647
|
+
/* A check's yes is the way on, in the decision colour; its no runs quietly down to the next
|
|
648
|
+
check. */
|
|
649
|
+
.gd-arrow[data-tone="yes"] {
|
|
650
|
+
--gd-tone: color-mix(in oklab, var(--ws-cmd) 80%, var(--ws-paper));
|
|
651
|
+
--gd-w: 1.5px;
|
|
652
|
+
}
|
|
653
|
+
.gd-arrow[data-tone="no"] {
|
|
654
|
+
--gd-tone: color-mix(
|
|
655
|
+
in oklab,
|
|
656
|
+
color-mix(in oklab, var(--ws-muted) 88%, var(--ws-cmd)) 75%,
|
|
657
|
+
var(--ws-paper)
|
|
658
|
+
);
|
|
659
|
+
--gd-w: 1.25px;
|
|
660
|
+
}
|
|
661
|
+
/* Touch points: a filled dot where an arrow leaves, a ring where it lands on a box. The
|
|
662
|
+
canvas draws both hidden; the UJ view shows them. */
|
|
663
|
+
.gd-out,
|
|
664
|
+
.gd-in {
|
|
665
|
+
display: none;
|
|
666
|
+
}
|
|
667
|
+
.fc-body[data-drawing="journey"] .gd-out {
|
|
668
|
+
display: inline;
|
|
669
|
+
fill: var(--gd-tone, var(--ws-muted));
|
|
670
|
+
}
|
|
671
|
+
.fc-body[data-drawing="journey"] .gd-in {
|
|
672
|
+
display: inline;
|
|
673
|
+
fill: var(--ws-paper);
|
|
674
|
+
stroke: var(--gd-tone, var(--ws-muted));
|
|
675
|
+
stroke-width: 1.25;
|
|
676
|
+
}
|
|
677
|
+
.gd-arrow[data-tone="yes"] text {
|
|
678
|
+
fill: var(--ws-cmd);
|
|
679
|
+
}
|
|
680
|
+
.gd-arrow[data-tone="work"] path,
|
|
681
|
+
.gd-arrow[data-tone="message"] path,
|
|
682
|
+
.gd-arrow[data-tone="state"] path {
|
|
683
|
+
stroke-dasharray: 4 3;
|
|
684
|
+
}
|
|
685
|
+
/* An arrow's colour and weight come from its tone; the arrows of the box under the pointer go
|
|
686
|
+
dark and a little heavier, the rest untouched. */
|
|
687
|
+
.gd-arrow path {
|
|
688
|
+
stroke: color-mix(
|
|
689
|
+
in srgb,
|
|
690
|
+
var(--ws-ink) calc(var(--gd-hover, 0) * 100%),
|
|
691
|
+
var(--gd-tone, var(--ws-muted))
|
|
692
|
+
);
|
|
693
|
+
stroke-width: calc(var(--gd-w, 1.3px) + var(--gd-hover, 0) * 1px);
|
|
694
|
+
}
|
|
695
|
+
.gd-arrow path.gd-under {
|
|
696
|
+
display: none;
|
|
697
|
+
}
|
|
698
|
+
.fc-body[data-drawing="journey"] .gd-arrow path.gd-under {
|
|
699
|
+
display: inline;
|
|
700
|
+
fill: none;
|
|
701
|
+
stroke: var(--uj-band, var(--ws-lane));
|
|
702
|
+
stroke-width: calc(var(--gd-w, 1.3px) + 3px);
|
|
703
|
+
}
|
|
704
|
+
.gd-arrow.on path:not(.gd-under) {
|
|
705
|
+
stroke: var(--ws-ink);
|
|
706
|
+
stroke-width: 2.6;
|
|
707
|
+
}
|
|
708
|
+
.gd-arrow.dim {
|
|
709
|
+
opacity: 0.1;
|
|
710
|
+
}
|
|
711
|
+
.gd-arrow text {
|
|
712
|
+
font-size: 11px;
|
|
713
|
+
font-weight: 600;
|
|
714
|
+
fill: var(--ws-muted);
|
|
715
|
+
paint-order: stroke;
|
|
716
|
+
stroke: var(--ws-paper);
|
|
717
|
+
stroke-width: 7px;
|
|
718
|
+
stroke-linejoin: round;
|
|
719
|
+
}
|
|
720
|
+
.gd-head.off {
|
|
721
|
+
fill: var(--ws-muted);
|
|
722
|
+
}
|
|
723
|
+
.gd-head.on {
|
|
724
|
+
fill: var(--ws-ink);
|
|
725
|
+
}
|
|
726
|
+
/* In the UJ view a head takes its own line's colour. */
|
|
727
|
+
.fc-body[data-drawing="journey"] .gd-head {
|
|
728
|
+
fill: context-stroke;
|
|
729
|
+
}
|
|
730
|
+
.gd.picking .react-flow__node-cell [data-station] {
|
|
731
|
+
opacity: 0.12;
|
|
732
|
+
transition: opacity 160ms ease-out;
|
|
733
|
+
}
|
|
734
|
+
@media (prefers-reduced-motion: reduce) {
|
|
735
|
+
.gd.picking .react-flow__node-cell [data-station],
|
|
736
|
+
.fl-card {
|
|
737
|
+
transition: none;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
@media (max-width: 44em) {
|
|
741
|
+
.fc-body {
|
|
742
|
+
flex-direction: column;
|
|
743
|
+
height: auto;
|
|
744
|
+
}
|
|
745
|
+
.fc-body .gd {
|
|
746
|
+
height: 60vh;
|
|
747
|
+
flex: none;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/* React Flow drawn in Teurons colours (the flow canvas); the host imports React Flow's own
|
|
752
|
+
stylesheet first. */
|
|
753
|
+
.react-flow {
|
|
754
|
+
--xy-background-color: var(--color-background);
|
|
755
|
+
--xy-background-pattern-color: var(--color-border);
|
|
756
|
+
--xy-edge-stroke: var(--color-muted-foreground);
|
|
757
|
+
--xy-edge-label-background-color: var(--color-background);
|
|
758
|
+
--xy-edge-label-color: var(--color-foreground);
|
|
759
|
+
--xy-controls-button-background-color: var(--color-background);
|
|
760
|
+
--xy-controls-button-color: var(--color-foreground);
|
|
761
|
+
--xy-controls-button-border-color: var(--color-border);
|
|
762
|
+
--xy-controls-button-background-color-hover: var(--color-muted);
|
|
763
|
+
}
|
|
764
|
+
.react-flow__node {
|
|
765
|
+
font: inherit;
|
|
766
|
+
}
|
|
767
|
+
.react-flow__edge-text {
|
|
768
|
+
font-size: 12px;
|
|
769
|
+
}
|
|
770
|
+
/* A pick: its arrows go dark, everything it does not reach fades. */
|
|
771
|
+
.react-flow__node,
|
|
772
|
+
.react-flow__edge {
|
|
773
|
+
transition: opacity 150ms ease-out;
|
|
774
|
+
}
|
|
775
|
+
.react-flow__node.is-faded,
|
|
776
|
+
.react-flow__edge.is-faded {
|
|
777
|
+
opacity: 0.25;
|
|
778
|
+
}
|
|
779
|
+
.react-flow__edge.is-lit path {
|
|
780
|
+
stroke: var(--color-foreground);
|
|
781
|
+
stroke-width: 2;
|
|
782
|
+
}
|
|
783
|
+
@media (prefers-reduced-motion: reduce) {
|
|
784
|
+
.react-flow__node,
|
|
785
|
+
.react-flow__edge {
|
|
786
|
+
transition: none;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
@media (pointer: coarse) {
|
|
790
|
+
.react-flow__controls-button {
|
|
791
|
+
width: 44px;
|
|
792
|
+
height: 44px;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/* UJ view: a key to its marks, in the corner under the lane names. */
|
|
797
|
+
.fc-body[data-drawing="journey"] {
|
|
798
|
+
position: relative;
|
|
799
|
+
}
|
|
800
|
+
.fc-key {
|
|
801
|
+
position: absolute;
|
|
802
|
+
left: 12px;
|
|
803
|
+
bottom: 12px;
|
|
804
|
+
z-index: 6;
|
|
805
|
+
min-height: 28px;
|
|
806
|
+
padding: 4px 12px;
|
|
807
|
+
border: 1px solid var(--ws-hair);
|
|
808
|
+
border-radius: 999px;
|
|
809
|
+
background: var(--ws-paper);
|
|
810
|
+
color: var(--ws-muted);
|
|
811
|
+
font-size: 11px;
|
|
812
|
+
font-weight: 600;
|
|
813
|
+
letter-spacing: 0.02em;
|
|
814
|
+
cursor: help;
|
|
815
|
+
transition: color 150ms ease-out;
|
|
816
|
+
}
|
|
817
|
+
.fc-key:hover,
|
|
818
|
+
.fc-key:focus-visible {
|
|
819
|
+
color: var(--ws-ink);
|
|
820
|
+
}
|
|
821
|
+
.fc-key-list {
|
|
822
|
+
/* The popover opens outside the page's theme, so the key names the colours it draws with. */
|
|
823
|
+
--ws-cmd: var(--color-info);
|
|
824
|
+
--ws-paper: var(--color-background);
|
|
825
|
+
--ws-muted: var(--color-muted-foreground);
|
|
826
|
+
display: grid;
|
|
827
|
+
gap: 6px;
|
|
828
|
+
font-size: 12px;
|
|
829
|
+
}
|
|
830
|
+
.fc-key-list > span {
|
|
831
|
+
display: flex;
|
|
832
|
+
align-items: center;
|
|
833
|
+
gap: 8px;
|
|
834
|
+
}
|
|
835
|
+
.fc-key-list .k-out {
|
|
836
|
+
fill: color-mix(in oklab, var(--ws-cmd) 80%, var(--ws-paper));
|
|
837
|
+
}
|
|
838
|
+
.fc-key-list .k-in {
|
|
839
|
+
fill: var(--ws-paper);
|
|
840
|
+
stroke: color-mix(in oklab, var(--ws-cmd) 80%, var(--ws-paper));
|
|
841
|
+
stroke-width: 1.25;
|
|
842
|
+
}
|
|
843
|
+
.fc-key-list .k-yes {
|
|
844
|
+
stroke: color-mix(in oklab, var(--ws-cmd) 80%, var(--ws-paper));
|
|
845
|
+
stroke-width: 1.5;
|
|
846
|
+
}
|
|
847
|
+
.fc-key-list .k-no {
|
|
848
|
+
stroke: color-mix(in oklab, var(--ws-muted) 75%, var(--ws-paper));
|
|
849
|
+
stroke-width: 1.25;
|
|
850
|
+
}
|
|
851
|
+
.fc-key-list .k-err {
|
|
852
|
+
fill: var(--color-error, oklch(57.7% 0.245 27.325));
|
|
853
|
+
}
|
|
854
|
+
.fc-key-list .k-other {
|
|
855
|
+
fill: var(--ws-muted);
|
|
856
|
+
}
|
|
857
|
+
.fc-tip {
|
|
858
|
+
display: flex;
|
|
859
|
+
flex-direction: column;
|
|
860
|
+
gap: 2px;
|
|
861
|
+
max-width: 320px;
|
|
862
|
+
}
|
|
863
|
+
.fc-tip b {
|
|
864
|
+
margin-bottom: 4px;
|
|
865
|
+
font-weight: 600;
|
|
866
|
+
}
|
|
867
|
+
.fc-tip i {
|
|
868
|
+
font-style: normal;
|
|
869
|
+
font-variant-numeric: tabular-nums;
|
|
870
|
+
opacity: 0.6;
|
|
871
|
+
}
|
|
872
|
+
.gd-label-n {
|
|
873
|
+
font-weight: 500;
|
|
874
|
+
font-variant-numeric: tabular-nums;
|
|
875
|
+
opacity: 0.65;
|
|
876
|
+
}
|
|
877
|
+
.fc-key-list .k-auto {
|
|
878
|
+
fill: none;
|
|
879
|
+
stroke: color-mix(in oklab, var(--ws-cmd) 60%, var(--ws-paper));
|
|
880
|
+
stroke-dasharray: 3 2;
|
|
881
|
+
}
|
|
882
|
+
/* Zebra lanes: every other lane is tinted, the rest plain, so a lane reads across a wide flow. */
|
|
883
|
+
.fc-body[data-drawing="journey"] {
|
|
884
|
+
--uj-band: color-mix(in oklab, var(--ws-ink) 4%, var(--ws-paper));
|
|
885
|
+
}
|
|
886
|
+
.fc-body[data-drawing="journey"] .gd-row:nth-child(odd),
|
|
887
|
+
.fc-body[data-drawing="journey"] .gd-table tr:nth-child(even) td {
|
|
888
|
+
background: var(--ws-paper);
|
|
889
|
+
}
|
|
890
|
+
.fc-body[data-drawing="journey"] .gd-row:nth-child(even),
|
|
891
|
+
.fc-body[data-drawing="journey"] .gd-table tr:nth-child(odd):not(.gd-spacer) td {
|
|
892
|
+
background: var(--uj-band);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/* An arrow's unseen hit line, and the card a resting pointer on it shows: where it leaves, its
|
|
896
|
+
answer and where it goes. Small, beside the pointer, never in its way. */
|
|
897
|
+
.gd-arrow path.gd-hit {
|
|
898
|
+
display: none;
|
|
899
|
+
}
|
|
900
|
+
.fc-body[data-drawing="journey"] .gd-arrow path.gd-hit {
|
|
901
|
+
display: inline;
|
|
902
|
+
fill: none;
|
|
903
|
+
stroke: transparent;
|
|
904
|
+
stroke-width: 10px;
|
|
905
|
+
}
|
|
906
|
+
/* The arrow the card describes goes dark, as under a hovered box. */
|
|
907
|
+
.gd-arrow[data-tip] {
|
|
908
|
+
--gd-hover: 1;
|
|
909
|
+
}
|
|
910
|
+
.fc-arrow-tip {
|
|
911
|
+
position: fixed;
|
|
912
|
+
z-index: 50;
|
|
913
|
+
display: grid;
|
|
914
|
+
gap: 2px;
|
|
915
|
+
max-width: 280px;
|
|
916
|
+
padding: 6px 10px;
|
|
917
|
+
border: 1px solid var(--ws-hair);
|
|
918
|
+
border-radius: 8px;
|
|
919
|
+
background: var(--ws-paper);
|
|
920
|
+
box-shadow:
|
|
921
|
+
0 1px 2px rgb(0 0 0 / 0.04),
|
|
922
|
+
0 4px 12px rgb(0 0 0 / 0.06);
|
|
923
|
+
color: var(--ws-ink);
|
|
924
|
+
font-size: 12px;
|
|
925
|
+
line-height: 1.35;
|
|
926
|
+
pointer-events: none;
|
|
927
|
+
}
|
|
928
|
+
.fc-arrow-tip > span {
|
|
929
|
+
animation: fc-tip-in 120ms ease-out;
|
|
930
|
+
}
|
|
931
|
+
.fc-arrow-tip .from {
|
|
932
|
+
color: var(--ws-muted);
|
|
933
|
+
}
|
|
934
|
+
.fc-arrow-tip i {
|
|
935
|
+
font-style: normal;
|
|
936
|
+
font-variant-numeric: tabular-nums;
|
|
937
|
+
}
|
|
938
|
+
.fc-arrow-tip b {
|
|
939
|
+
font-weight: 600;
|
|
940
|
+
}
|
|
941
|
+
@keyframes fc-tip-in {
|
|
942
|
+
from {
|
|
943
|
+
opacity: 0;
|
|
944
|
+
transform: translateY(2px);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
@media (prefers-reduced-motion: reduce) {
|
|
948
|
+
.fc-arrow-tip > span {
|
|
949
|
+
animation: none;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
.fc-body[data-drawing="journey"] .gd-arrow path {
|
|
953
|
+
transition:
|
|
954
|
+
stroke 120ms ease-out,
|
|
955
|
+
stroke-width 120ms ease-out;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
/* Full or UJ view of a scenario flow, in the canvas's top-right corner, out of the arrows' way. */
|
|
959
|
+
.fc-body {
|
|
960
|
+
position: relative;
|
|
961
|
+
}
|
|
962
|
+
.fc-views {
|
|
963
|
+
position: absolute;
|
|
964
|
+
top: 12px;
|
|
965
|
+
right: 12px;
|
|
966
|
+
z-index: 6;
|
|
967
|
+
width: max-content;
|
|
968
|
+
/* Sits over the step headers: an opaque ground so a panned pill slides under, not through. */
|
|
969
|
+
box-shadow: 0 0 0 8px var(--ws-paper);
|
|
970
|
+
}
|
|
971
|
+
.fc-views [aria-selected="true"] {
|
|
972
|
+
font-weight: 600;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/* A screen drawn inside its box from its own json-render spec: a phone-width frame at a fixed
|
|
976
|
+
zoom, read-only, so a click still picks the box. */
|
|
977
|
+
.fl-screen {
|
|
978
|
+
display: block;
|
|
979
|
+
margin-top: 8px;
|
|
980
|
+
border: 1px solid var(--ws-hair);
|
|
981
|
+
border-radius: 10px;
|
|
982
|
+
overflow: hidden;
|
|
983
|
+
background: var(--ws-paper);
|
|
984
|
+
pointer-events: none;
|
|
985
|
+
text-align: start;
|
|
986
|
+
}
|
|
987
|
+
.fl-screen-frame {
|
|
988
|
+
display: block;
|
|
989
|
+
width: 390px;
|
|
990
|
+
zoom: 0.6;
|
|
991
|
+
}
|