@ofrnsb/whiteboard 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -2
- package/dist/boards-ykaNj5ns.d.ts +540 -0
- package/dist/chunk-ORDEALPW.js +1981 -0
- package/dist/chunk-ORDEALPW.js.map +1 -0
- package/dist/cli/index.js +2272 -0
- package/dist/core/index.d.ts +1495 -0
- package/dist/core/index.js +809 -0
- package/dist/core/index.js.map +1 -0
- package/dist/fonts/PatrickHand-OFL.txt +93 -0
- package/dist/fonts/PatrickHand-Regular.ttf +0 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +3745 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +797 -0
- package/package.json +70 -4
package/dist/style.css
ADDED
|
@@ -0,0 +1,797 @@
|
|
|
1
|
+
/* Design tokens of the board (simpul's domain theme), scoped to the board so it never restyles the host app.
|
|
2
|
+
Override any of them on .sp-wb to fit the board to your product. */
|
|
3
|
+
.sp-wb {
|
|
4
|
+
--ap-backdrop: #e8ecf2; --ap-surface: #edf0f5; --ap-ink: #0f1b33; --ap-ink-2: #38435a; --ap-ink-3: #424c62;
|
|
5
|
+
--ap-accent: #1a3fc0; --ap-accent-ink: #ffffff; --ap-accent-tint: color-mix(in srgb, var(--ap-accent) 9%, var(--ap-surface));
|
|
6
|
+
--ap-bad: #9c1d28; --ap-bad-tint: color-mix(in srgb, var(--ap-bad) 9%, var(--ap-surface));
|
|
7
|
+
--ap-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", system-ui, sans-serif;
|
|
8
|
+
--ap-float: 0 1px 2px rgba(28, 44, 78, 0.05), 0 14px 34px -14px rgba(28, 44, 78, 0.22);
|
|
9
|
+
--ap-hairline: color-mix(in srgb, var(--ap-ink) 8%, transparent);
|
|
10
|
+
--ap-sunk: color-mix(in srgb, var(--ap-ink) 4.8%, var(--ap-backdrop));
|
|
11
|
+
--ap-ease: cubic-bezier(0.16, 1, 0.3, 1); --ap-d1: 120ms; --ap-d2: 180ms; --ap-d3: 240ms; --ap-d4: 360ms;
|
|
12
|
+
--ap-skel-anim: wb-pulse calc(var(--ap-d4) * 4) var(--ap-ease) infinite alternate;
|
|
13
|
+
--ap-radius-card: 28px; --ap-lift: 0 1px 2px rgba(28, 44, 78, 0.05), 0 8px 20px -10px rgba(28, 44, 78, 0.22);
|
|
14
|
+
--sp-input: var(--ap-surface); --sp-rule: color-mix(in srgb, var(--ap-ink) 16%, transparent); --sp-stamp: #065a36;
|
|
15
|
+
font-family: var(--ap-font);
|
|
16
|
+
}
|
|
17
|
+
.dark .sp-wb, [data-theme="dark"] .sp-wb {
|
|
18
|
+
--ap-backdrop: #0f1420; --ap-surface: #161c2a; --ap-ink: #e6ebf5; --ap-ink-2: #c3cad8; --ap-ink-3: #a3acbe;
|
|
19
|
+
--ap-accent: #7da2ff; --ap-accent-ink: #0b1430; --ap-bad: #ff8a92; --sp-stamp: #4fd59c;
|
|
20
|
+
--ap-float: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -14px rgba(0, 0, 0, 0.6);
|
|
21
|
+
}
|
|
22
|
+
/* The board as a raised card on the host's surface. */
|
|
23
|
+
.sp-lego.sp-wb { background: var(--ap-surface); border-radius: var(--ap-radius-card); box-shadow: var(--ap-lift); padding: 6px 0 8px; min-width: 0; }
|
|
24
|
+
.sp-wb .ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
25
|
+
@keyframes wb-pulse { from { opacity: 0.55; } to { opacity: 1; } }
|
|
26
|
+
|
|
27
|
+
/* Whiteboard in the Buku besar style: ivory ledger paper ruled at 32px (scaled with the zoom), paper slips, quiet-edged
|
|
28
|
+
boxes, one ink-filled highlight, red only for what needs action. Only the floating dock, bars and menus cast a shadow. */
|
|
29
|
+
.sp-wb {
|
|
30
|
+
/* Warm, saturated slips that read as paper in daylight: the illustrated board's palette. */
|
|
31
|
+
--sp-wb-yellow: #fbe7a1;
|
|
32
|
+
--sp-wb-orange: #f9c98b;
|
|
33
|
+
--sp-wb-peach: #fad3bd;
|
|
34
|
+
--sp-wb-sand: #f1e2c6;
|
|
35
|
+
--sp-wb-green: #cdebc0;
|
|
36
|
+
--sp-wb-blue: #cfe2f6;
|
|
37
|
+
--sp-wb-pink: #f8cbd6;
|
|
38
|
+
--sp-wb-purple: #dcd0f3;
|
|
39
|
+
--sp-wb-gray: color-mix(in srgb, var(--ap-ink) 8%, var(--ap-surface));
|
|
40
|
+
--sp-wb-edge: color-mix(in srgb, var(--ap-ink) 24%, transparent);
|
|
41
|
+
/* The road, its milestones and the thin lines that tie cards to them. */
|
|
42
|
+
--sp-wb-road: #e9c08f;
|
|
43
|
+
--sp-wb-road-edge: #d9a76e;
|
|
44
|
+
--sp-wb-mark: #b5452f;
|
|
45
|
+
--sp-wb-mark-ink: #fffaf3;
|
|
46
|
+
--sp-wb-tie: #c98a5a;
|
|
47
|
+
--sp-wb-card-shadow: 0 1px 2px rgba(60, 40, 20, 0.08), 0 6px 16px -8px rgba(60, 40, 20, 0.22);
|
|
48
|
+
--sp-wb-card-lift: 0 2px 4px rgba(60, 40, 20, 0.08), 0 14px 28px -12px rgba(60, 40, 20, 0.3);
|
|
49
|
+
display: flex; flex-direction: column; padding: 0; overflow: hidden;
|
|
50
|
+
}
|
|
51
|
+
.sp-wb[data-full] { position: fixed; inset: 0; z-index: 1000; border-radius: 0; background: var(--ap-backdrop); }
|
|
52
|
+
|
|
53
|
+
/* ---------- Head ---------- */
|
|
54
|
+
.sp-wb-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 16px; }
|
|
55
|
+
.sp-wb-title { display: grid; gap: 2px; min-width: 0; flex: 1; }
|
|
56
|
+
.sp-wb-title strong { font-size: 15px; font-weight: 600; color: var(--ap-ink); overflow-wrap: anywhere; }
|
|
57
|
+
.sp-wb-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ap-ink-2); font-size: 13px; }
|
|
58
|
+
.sp-wb-saving { color: var(--ap-ink-3); }
|
|
59
|
+
.sp-wb-anchor { position: relative; }
|
|
60
|
+
|
|
61
|
+
.sp-wb-btn {
|
|
62
|
+
display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px;
|
|
63
|
+
background: transparent; color: var(--ap-ink-2); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer;
|
|
64
|
+
transition: background-color var(--ap-d2) var(--ap-ease), color var(--ap-d2) var(--ap-ease), transform var(--ap-d1) var(--ap-ease);
|
|
65
|
+
}
|
|
66
|
+
.sp-wb-btn[aria-pressed="true"] { background: var(--ap-ink); color: var(--ap-surface); }
|
|
67
|
+
.sp-wb-btn:disabled { opacity: 0.45; cursor: default; }
|
|
68
|
+
.sp-wb-btn:not(:disabled):active { transform: translateY(1px); }
|
|
69
|
+
@media (hover: hover) { .sp-wb-btn:not(:disabled):not([aria-pressed="true"]):hover { background: var(--ap-sunk); color: var(--ap-ink); } }
|
|
70
|
+
@media (pointer: coarse) { .sp-wb-btn { min-height: 44px; } }
|
|
71
|
+
|
|
72
|
+
/* ---------- Canvas ---------- */
|
|
73
|
+
.sp-wb-view {
|
|
74
|
+
position: relative; height: min(72vh, 680px); margin: 0 8px 8px; overflow: hidden; overscroll-behavior: contain; outline: none; touch-action: none; cursor: default;
|
|
75
|
+
border-radius: 10px; background-color: var(--sp-input);
|
|
76
|
+
/* A dot grid that pans and zooms with the board: a working surface, not imitation paper. */
|
|
77
|
+
background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ap-ink) 16%, transparent) 1px, transparent 1.5px);
|
|
78
|
+
}
|
|
79
|
+
.sp-wb-view:focus { outline: none; }
|
|
80
|
+
.sp-wb-view:focus-visible { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ap-accent) 35%, transparent); }
|
|
81
|
+
.sp-wb[data-full] .sp-wb-view { flex: 1; height: auto; margin: 0 12px 12px; }
|
|
82
|
+
.sp-wb-view[data-tool="pan"] { cursor: grab; }
|
|
83
|
+
.sp-wb-view[data-tool="pan"]:active { cursor: grabbing; }
|
|
84
|
+
.sp-wb-view:is([data-tool="text"], [data-tool="note"], [data-tool="shape"], [data-tool="frame"], [data-tool="pen"], [data-tool="link"]),
|
|
85
|
+
.sp-wb-view:is([data-tool="text"], [data-tool="note"], [data-tool="shape"], [data-tool="frame"], [data-tool="pen"], [data-tool="link"]) :is(.sp-wb-note, .sp-wb-frame) { cursor: crosshair; }
|
|
86
|
+
.sp-wb-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
|
|
87
|
+
|
|
88
|
+
/* Frames: the name sits above the frame like a ledger heading; the body is lighter paper with a hairline edge. */
|
|
89
|
+
.sp-lego .sp-wb-frame { position: absolute; border-radius: 6px; background: color-mix(in srgb, var(--ap-surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--ap-hairline); }
|
|
90
|
+
.sp-wb-frame-head { position: absolute; left: 0; bottom: 100%; display: flex; align-items: baseline; gap: 8px; max-width: 100%; min-height: 30px; padding: 0 2px 6px; cursor: move; }
|
|
91
|
+
.sp-wb-frame-head strong { font-size: 15px; font-weight: 600; color: var(--ap-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
92
|
+
.sp-wb-frame-head span { font-size: 13px; color: var(--ap-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
93
|
+
.sp-wb-frame-input { min-width: 220px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--ap-surface); color: var(--ap-ink); font: inherit; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ap-ink); outline: none; }
|
|
94
|
+
.sp-lego .sp-wb-frame[data-target] { box-shadow: inset 0 0 0 2px var(--ap-ink); }
|
|
95
|
+
.sp-lego .sp-wb-frame[data-hot] { box-shadow: inset 0 0 0 1.5px var(--ap-bad); }
|
|
96
|
+
|
|
97
|
+
/* Items. Every item shares the frame of a slip: position, size, focus ring, selection and the agent's outline. */
|
|
98
|
+
.sp-lego .sp-wb-note {
|
|
99
|
+
position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 6px;
|
|
100
|
+
background: var(--sp-wb-yellow); color: var(--ap-ink); box-shadow: none; outline: none; cursor: default;
|
|
101
|
+
transition: box-shadow var(--ap-d2) var(--ap-ease), opacity var(--ap-d2) var(--ap-ease);
|
|
102
|
+
}
|
|
103
|
+
.sp-lego .sp-wb-note:focus-visible { box-shadow: 0 0 0 2px var(--ap-ink); }
|
|
104
|
+
.sp-lego .sp-wb-note[data-selected] { box-shadow: 0 0 0 2px var(--ap-ink); }
|
|
105
|
+
.sp-lego .sp-wb-note[data-hot] { box-shadow: 0 0 0 2px var(--ap-bad); }
|
|
106
|
+
.sp-lego .sp-wb-note[data-target] { box-shadow: 0 0 0 3px var(--ap-ink); }
|
|
107
|
+
.sp-lego .sp-wb-note[data-moving] { z-index: 5; opacity: 0.92; }
|
|
108
|
+
.sp-wb-note[data-color="blue"] { background: var(--sp-wb-blue); }
|
|
109
|
+
.sp-wb-note[data-color="green"] { background: var(--sp-wb-green); }
|
|
110
|
+
.sp-wb-note[data-color="pink"] { background: var(--sp-wb-pink); }
|
|
111
|
+
.sp-wb-note[data-color="purple"] { background: var(--sp-wb-purple); }
|
|
112
|
+
.sp-wb-note[data-color="gray"] { background: var(--sp-wb-gray); }
|
|
113
|
+
.sp-wb-note[data-color="paper"] { background: var(--ap-surface); }
|
|
114
|
+
.sp-wb-note[data-color="ink"] { background: var(--ap-ink); color: var(--ap-surface); }
|
|
115
|
+
.sp-wb-note[data-color="red"] { background: color-mix(in srgb, var(--ap-bad) 7%, var(--ap-surface)); color: var(--ap-bad); }
|
|
116
|
+
|
|
117
|
+
/* Boxes: a quiet ruled edge, bold title then text, centred. */
|
|
118
|
+
.sp-wb-note[data-shape="box"], .sp-wb-note[data-shape="ellipse"] { justify-content: center; align-items: center; padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--sp-wb-edge); text-align: center; }
|
|
119
|
+
.sp-lego .sp-wb-note[data-shape="box"]:not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible),
|
|
120
|
+
.sp-lego .sp-wb-note[data-shape="ellipse"]:not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: inset 0 0 0 1px var(--sp-wb-edge); }
|
|
121
|
+
.sp-lego .sp-wb-note[data-shape][data-color="ink"]:not([data-selected]):not([data-hot]):not(:focus-visible) { box-shadow: none; }
|
|
122
|
+
.sp-lego .sp-wb-note[data-shape][data-color="red"]:not([data-selected]):not(:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--ap-bad); }
|
|
123
|
+
.sp-lego .sp-wb-note[data-shape="ellipse"] { border-radius: 50%; padding: 10px 22px; }
|
|
124
|
+
.sp-wb-body { display: grid; gap: 2px; min-width: 0; max-height: 100%; overflow: hidden; position: relative; z-index: 1; }
|
|
125
|
+
.sp-wb-body strong { font-size: 14px; font-weight: 700; line-height: 19px; overflow-wrap: anywhere; }
|
|
126
|
+
.sp-wb-body span { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; opacity: 0.86; }
|
|
127
|
+
.sp-wb-body em { font-style: normal; font-size: 12px; opacity: 0.72; }
|
|
128
|
+
|
|
129
|
+
/* Cloud and cylinder draw their outline in SVG; the item itself stays transparent. */
|
|
130
|
+
.sp-lego .sp-wb-note:is([data-shape="cloud"], [data-shape="cylinder"]) { justify-content: center; align-items: center; text-align: center; background: none; padding: 14px 18px; }
|
|
131
|
+
.sp-lego .sp-wb-note:is([data-shape="cloud"], [data-shape="cylinder"]):not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: none; }
|
|
132
|
+
.sp-wb-note[data-shape="cylinder"] { padding-top: 24px; }
|
|
133
|
+
/* Polygons are their outline: the item itself stays transparent, its words inset by the shape (set inline). */
|
|
134
|
+
.sp-lego .sp-wb-note:is([data-shape="diamond"], [data-shape="triangle"], [data-shape="pentagon"], [data-shape="hexagon"], [data-shape="parallelogram"]) { background: none; padding: 0; }
|
|
135
|
+
.sp-lego .sp-wb-note:is([data-shape="diamond"], [data-shape="triangle"], [data-shape="pentagon"], [data-shape="hexagon"], [data-shape="parallelogram"]):not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: none; }
|
|
136
|
+
.sp-wb-shape-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
|
|
137
|
+
.sp-wb-shape-bg :is(path, ellipse) { fill: var(--ap-surface); stroke: var(--sp-wb-edge); stroke-width: 1; }
|
|
138
|
+
.sp-wb-note:is([data-color="ink"]) .sp-wb-shape-bg :is(path, ellipse) { fill: var(--ap-ink); stroke: var(--ap-ink); }
|
|
139
|
+
.sp-wb-note[data-color="ink"] .sp-wb-shape-bg ellipse { stroke: var(--ap-surface); }
|
|
140
|
+
.sp-wb-note:is([data-color="red"]) .sp-wb-shape-bg :is(path, ellipse) { fill: color-mix(in srgb, var(--ap-bad) 7%, var(--ap-surface)); stroke: var(--ap-bad); stroke-width: 1.5; }
|
|
141
|
+
.sp-wb-note[data-color="yellow"] .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-yellow); }
|
|
142
|
+
.sp-wb-note[data-color="blue"] .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-blue); }
|
|
143
|
+
.sp-wb-note[data-color="green"] .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-green); }
|
|
144
|
+
.sp-wb-note[data-color="pink"] .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-pink); }
|
|
145
|
+
.sp-wb-note[data-color="gray"] .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-gray); }
|
|
146
|
+
|
|
147
|
+
/* Text: no fill, a type scale from note text to a board heading. */
|
|
148
|
+
.sp-lego .sp-wb-note[data-shape="text"] { background: none; padding: 2px 4px; justify-content: center; }
|
|
149
|
+
.sp-lego .sp-wb-note[data-shape="text"][data-color] { background: none; }
|
|
150
|
+
.sp-lego .sp-wb-note[data-shape="text"]:not([data-selected]):not([data-hot]):not(:focus-visible) { box-shadow: none; }
|
|
151
|
+
.sp-wb-note[data-shape="text"] .sp-wb-text { -webkit-line-clamp: unset; display: block; }
|
|
152
|
+
.sp-wb-note[data-size="s"] .sp-wb-text { font-size: 13px; line-height: 18px; }
|
|
153
|
+
.sp-wb-note[data-size="m"] .sp-wb-text { font-size: 16px; line-height: 22px; }
|
|
154
|
+
.sp-wb-note[data-size="l"] .sp-wb-text { font-size: 22px; line-height: 28px; font-weight: 600; }
|
|
155
|
+
.sp-wb-note[data-size="xl"] .sp-wb-text { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; }
|
|
156
|
+
|
|
157
|
+
/* Pen marks. */
|
|
158
|
+
.sp-lego .sp-wb-note[data-shape="ink"] { background: none; padding: 0; }
|
|
159
|
+
.sp-wb-ink { position: absolute; inset: 0; overflow: visible; }
|
|
160
|
+
.sp-wb-ink[data-brush="spidol"] path { fill-opacity: 0.82; }
|
|
161
|
+
.sp-wb-pen-live { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
|
|
162
|
+
|
|
163
|
+
.sp-wb-text { position: relative; z-index: 1; margin: 0; font-size: 15px; line-height: 21px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
|
|
164
|
+
.sp-wb-placeholder { color: var(--ap-ink-3); }
|
|
165
|
+
.sp-wb-meta { margin: 0; font-size: 13px; font-weight: 600; color: var(--ap-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
166
|
+
.sp-wb-by { margin: auto 0 0; font-size: 12px; color: var(--ap-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
167
|
+
.sp-wb-edit { position: relative; z-index: 1; flex: 1; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; line-height: 21px; text-align: inherit; resize: none; outline: none; }
|
|
168
|
+
.sp-wb-note[data-size="xl"] .sp-wb-edit { font-size: 32px; line-height: 38px; font-weight: 600; }
|
|
169
|
+
.sp-wb-note[data-size="l"] .sp-wb-edit { font-size: 22px; line-height: 28px; font-weight: 600; }
|
|
170
|
+
|
|
171
|
+
/* New items from the agent or a teammate settle in. */
|
|
172
|
+
/* Items sit at the world origin and are placed with translate, so moving one never re-lays out the board. */
|
|
173
|
+
.sp-lego .sp-wb-note, .sp-lego .sp-wb-frame { left: 0; top: 0; }
|
|
174
|
+
.sp-wb-note[data-born], .sp-wb-frame[data-born] { animation: sp-wb-in var(--ap-d3) var(--ap-ease) both; }
|
|
175
|
+
.sp-wb-note[data-leaving], .sp-wb-frame[data-leaving] { pointer-events: none; animation: sp-wb-out calc(var(--sp-wb-fade-ms, 420ms) * 1.4) cubic-bezier(0.4, 0, 0.2, 1) forwards; }
|
|
176
|
+
.sp-wb-note[data-leaving] *, .sp-wb-frame[data-leaving] * { pointer-events: none; }
|
|
177
|
+
@keyframes sp-wb-out { to { opacity: 0; transform: scale(0.98); } }
|
|
178
|
+
@keyframes sp-wb-in { from { opacity: 0; transform: scale(0.98); } }
|
|
179
|
+
|
|
180
|
+
/* Resize grips: visible on hover, focus or selection. */
|
|
181
|
+
.sp-wb-resize { position: absolute; z-index: 2; right: 1px; bottom: 1px; width: 18px; height: 18px; cursor: nwse-resize; opacity: 0; touch-action: none;
|
|
182
|
+
background: linear-gradient(135deg, transparent 52%, var(--sp-wb-edge) 52% 60%, transparent 60% 72%, var(--sp-wb-edge) 72% 80%, transparent 80%);
|
|
183
|
+
transition: opacity var(--ap-d2) var(--ap-ease); }
|
|
184
|
+
.sp-wb-note:hover .sp-wb-resize, .sp-wb-note:focus-visible .sp-wb-resize, .sp-wb-note[data-selected] .sp-wb-resize, .sp-wb-frame:hover > .sp-wb-resize { opacity: 1; }
|
|
185
|
+
@media (hover: none) { .sp-wb-resize { opacity: 1; width: 28px; height: 28px; } }
|
|
186
|
+
|
|
187
|
+
/* Connectors. A wide invisible stroke takes the click; the visible one shows route, dash and selection. */
|
|
188
|
+
.sp-wb-links { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; color: color-mix(in srgb, var(--ap-ink) 72%, transparent); }
|
|
189
|
+
.sp-wb-link-line { fill: none; stroke: currentColor; stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: stroke-width var(--ap-d2) var(--ap-ease); }
|
|
190
|
+
.sp-wb-link-g[data-dashed] .sp-wb-link-line { stroke-dasharray: 6 5; }
|
|
191
|
+
.sp-wb-link-g[data-selected] { color: var(--ap-ink); }
|
|
192
|
+
.sp-wb-link-g[data-selected] .sp-wb-link-line { stroke-width: 2.5; }
|
|
193
|
+
.sp-wb-link-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
|
|
194
|
+
.sp-wb-link-end { fill: var(--ap-surface); stroke: var(--ap-ink); stroke-width: 1.5; }
|
|
195
|
+
.sp-wb-link-label rect { fill: var(--ap-surface); stroke: var(--ap-hairline); }
|
|
196
|
+
.sp-wb-link-label text { fill: var(--ap-ink-2); font-size: 12px; font-family: var(--ap-font); }
|
|
197
|
+
.sp-wb-link-preview { fill: none; stroke: var(--ap-ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
|
|
198
|
+
|
|
199
|
+
/* Selection rectangle and frame being drawn. */
|
|
200
|
+
.sp-wb-box { position: absolute; border-radius: 6px; background: color-mix(in srgb, var(--ap-ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--ap-ink); pointer-events: none; }
|
|
201
|
+
.sp-wb-box[data-frame-draw] { background: color-mix(in srgb, var(--ap-surface) 60%, transparent); box-shadow: inset 0 0 0 1.5px var(--ap-ink); }
|
|
202
|
+
|
|
203
|
+
/* The agent at work: a marching outline round what it is drawing, and a label chip that stays the same size at any zoom. */
|
|
204
|
+
.sp-wb-presence { position: absolute; pointer-events: none; border-radius: 8px; outline: 1.5px dashed var(--ap-accent); outline-offset: 0; animation: sp-wb-march calc(var(--ap-d4) * 4) var(--ap-ease) infinite; }
|
|
205
|
+
@keyframes sp-wb-march { 50% { outline-color: color-mix(in srgb, var(--ap-accent) 45%, transparent); } }
|
|
206
|
+
.sp-wb-presence-chip {
|
|
207
|
+
position: absolute; left: 0; bottom: 100%; transform-origin: 0 100%; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px;
|
|
208
|
+
padding: 4px 10px; border-radius: 6px; background: var(--ap-accent); color: var(--ap-surface); font-size: 13px; font-weight: 600; white-space: nowrap;
|
|
209
|
+
}
|
|
210
|
+
.sp-wb-presence-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: sp-wb-pulse calc(var(--ap-d4) * 2.5) var(--ap-ease) infinite alternate; }
|
|
211
|
+
@keyframes sp-wb-pulse { to { opacity: 0.3; } }
|
|
212
|
+
|
|
213
|
+
.sp-wb-empty { position: absolute; inset: 0 0 120px; display: grid; place-items: center; margin: 0; padding: 24px; color: var(--ap-ink-2); font-size: 15px; text-align: center; pointer-events: none; }
|
|
214
|
+
|
|
215
|
+
/* ---------- Floating layers (the only things that cast a shadow) ---------- */
|
|
216
|
+
.sp-wb-float { position: absolute; z-index: 10; }
|
|
217
|
+
.sp-wb-zoomctl { top: 10px; right: 10px; }
|
|
218
|
+
.sp-wb-zoomctl > .sp-wb-btn { background: var(--ap-surface); box-shadow: var(--ap-float); }
|
|
219
|
+
.sp-wb-pop {
|
|
220
|
+
position: absolute; z-index: 20; display: grid; min-width: 168px; padding: 4px; border-radius: 8px; background: var(--ap-surface); box-shadow: var(--ap-float);
|
|
221
|
+
}
|
|
222
|
+
.sp-wb-pop-right { top: calc(100% + 6px); right: 0; }
|
|
223
|
+
.sp-wb-pop-up { bottom: calc(100% + 8px); left: 50%; translate: -50% 0; }
|
|
224
|
+
.sp-wb-pop button { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--ap-ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; transition: background-color var(--ap-d2) var(--ap-ease); }
|
|
225
|
+
.sp-wb-pop button[aria-checked="true"] { font-weight: 700; }
|
|
226
|
+
@media (hover: hover) { .sp-wb-pop button:hover { background: var(--ap-sunk); } }
|
|
227
|
+
@media (pointer: coarse) { .sp-wb-pop button { min-height: 44px; } }
|
|
228
|
+
|
|
229
|
+
.sp-wb-bar {
|
|
230
|
+
display: flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: min(720px, calc(100% - 24px)); padding: 4px; translate: -50% 0;
|
|
231
|
+
border-radius: 8px; background: var(--ap-surface); box-shadow: var(--ap-float);
|
|
232
|
+
}
|
|
233
|
+
.sp-wb-count { padding: 0 8px; color: var(--ap-ink-2); font-size: 13px; white-space: nowrap; }
|
|
234
|
+
.sp-wb-swatches { display: flex; }
|
|
235
|
+
.sp-wb-swatch { display: grid; place-items: center; width: 28px; height: 36px; border: 0; background: transparent; cursor: pointer; }
|
|
236
|
+
.sp-wb-swatch span { width: 18px; height: 18px; border-radius: 50%; background: var(--sp-wb-yellow); box-shadow: inset 0 0 0 1px var(--sp-wb-edge); transition: box-shadow var(--ap-d2) var(--ap-ease); }
|
|
237
|
+
.sp-wb-swatch[aria-pressed="true"] span { box-shadow: inset 0 0 0 1px var(--sp-wb-edge), 0 0 0 2px var(--ap-surface), 0 0 0 3.5px var(--ap-ink); }
|
|
238
|
+
.sp-wb-swatch[data-color="blue"] span { background: var(--sp-wb-blue); }
|
|
239
|
+
.sp-wb-swatch[data-color="green"] span { background: var(--sp-wb-green); }
|
|
240
|
+
.sp-wb-swatch[data-color="pink"] span { background: var(--sp-wb-pink); }
|
|
241
|
+
.sp-wb-swatch[data-color="gray"] span { background: var(--sp-wb-gray); }
|
|
242
|
+
.sp-wb-swatch[data-color="paper"] span { background: var(--ap-surface); }
|
|
243
|
+
.sp-wb-swatch[data-color="ink"] span { background: var(--ap-ink); }
|
|
244
|
+
.sp-wb-swatch[data-color="red"] span { background: var(--ap-bad); }
|
|
245
|
+
@media (pointer: coarse) { .sp-wb-swatch { width: 36px; height: 44px; } }
|
|
246
|
+
.sp-wb-seg { display: inline-flex; gap: 0; padding: 0 4px; box-shadow: inset 1px 0 0 var(--ap-hairline), inset -1px 0 0 var(--ap-hairline); }
|
|
247
|
+
.sp-wb-ask { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 220px; }
|
|
248
|
+
.sp-wb-ask input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--ap-sunk); color: var(--ap-ink); font: inherit; font-size: 14px; outline: none; }
|
|
249
|
+
.sp-wb-ask input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ap-ink); }
|
|
250
|
+
|
|
251
|
+
/* Bottom dock: a change request for the agent above the tool strip. */
|
|
252
|
+
.sp-wb-dock { left: 50%; bottom: 12px; translate: -50% 0; display: grid; gap: 8px; width: min(720px, calc(100% - 24px)); justify-items: center; }
|
|
253
|
+
.sp-wb-change { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px; border-radius: 8px; background: var(--ap-surface); box-shadow: var(--ap-float); }
|
|
254
|
+
.sp-wb-change input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--ap-ink); font: inherit; font-size: 15px; outline: none; }
|
|
255
|
+
.sp-wb-change:focus-within { box-shadow: var(--ap-float), inset 0 0 0 1.5px var(--ap-ink); }
|
|
256
|
+
.sp-wb-send:not(:disabled) { background: var(--ap-ink); color: var(--ap-surface); }
|
|
257
|
+
@media (hover: hover) { .sp-wb-send:not(:disabled):hover { background: var(--ap-ink-2); color: var(--ap-surface); } }
|
|
258
|
+
.sp-wb-toolbar { display: flex; align-items: stretch; gap: 2px; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: 8px; background: var(--ap-surface); box-shadow: var(--ap-float); scrollbar-width: none; }
|
|
259
|
+
.sp-wb-tool {
|
|
260
|
+
display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 52px; min-height: 48px; padding: 4px 6px; border: 0; border-radius: 6px;
|
|
261
|
+
background: transparent; color: var(--ap-ink-2); font: inherit; font-size: 11px; line-height: 14px; cursor: pointer;
|
|
262
|
+
transition: background-color var(--ap-d2) var(--ap-ease), color var(--ap-d2) var(--ap-ease), transform var(--ap-d1) var(--ap-ease);
|
|
263
|
+
}
|
|
264
|
+
.sp-wb-tool span { white-space: nowrap; }
|
|
265
|
+
.sp-wb-tool[aria-pressed="true"] { background: var(--ap-ink); color: var(--ap-surface); }
|
|
266
|
+
.sp-wb-tool:active { transform: translateY(1px); }
|
|
267
|
+
@media (hover: hover) { .sp-wb-tool:not([aria-pressed="true"]):hover { background: var(--ap-sunk); color: var(--ap-ink); } }
|
|
268
|
+
.sp-wb-agent { margin-left: 4px; box-shadow: inset 1px 0 0 var(--ap-hairline); border-radius: 0 2px 2px 0; color: var(--ap-ink); font-weight: 600; }
|
|
269
|
+
|
|
270
|
+
/* ---------- States ---------- */
|
|
271
|
+
.sp-wb-error { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; color: var(--ap-bad); font-size: 13px; }
|
|
272
|
+
.sp-wb-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; border: 0; background: transparent; color: var(--ap-ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
|
|
273
|
+
.sp-wb-state { display: grid; justify-items: start; gap: 8px; margin: 0 8px 8px; padding: 18px; border-radius: 6px; background: var(--ap-bad-tint); color: var(--ap-ink); font-size: 14px; }
|
|
274
|
+
.sp-wb-loading { display: grid; align-content: start; gap: 12px; padding: 24px; cursor: default; background-image: none; }
|
|
275
|
+
.sp-wb-loading span { height: 88px; width: 60%; border-radius: 6px; background: var(--ap-surface); animation: var(--ap-skel-anim); }
|
|
276
|
+
.sp-wb-loading span:nth-child(2) { width: 44%; }
|
|
277
|
+
.sp-wb-loading span:nth-child(3) { width: 52%; }
|
|
278
|
+
|
|
279
|
+
@media (max-width: 640px) {
|
|
280
|
+
.sp-wb-view { height: min(78vh, 620px); }
|
|
281
|
+
.sp-wb-tool { min-width: 46px; }
|
|
282
|
+
}
|
|
283
|
+
@media (prefers-reduced-motion: reduce) {
|
|
284
|
+
.sp-wb-ink { animation: none; }
|
|
285
|
+
.sp-wb-btn, .sp-wb-tool, .sp-lego .sp-wb-note, .sp-wb-resize, .sp-wb-link-line { transition: none; }
|
|
286
|
+
.sp-wb-btn:active, .sp-wb-tool:active { transform: none; }
|
|
287
|
+
.sp-wb-note[data-born], .sp-wb-frame[data-born] { animation: sp-wb-fade var(--ap-d3) var(--ap-ease) both; }
|
|
288
|
+
.sp-wb-presence, .sp-wb-presence-chip i, .sp-wb-loading span { animation: none; }
|
|
289
|
+
}
|
|
290
|
+
@keyframes sp-wb-fade { from { opacity: 0; } }
|
|
291
|
+
|
|
292
|
+
/* ---------- Wiring handles: four on the selected item, constant size on screen ---------- */
|
|
293
|
+
.sp-wb-handle {
|
|
294
|
+
position: absolute; z-index: 5; width: 14px; height: 14px; border-radius: 50%;
|
|
295
|
+
background: var(--ap-accent); box-shadow: 0 0 0 2.5px var(--ap-surface), 0 1px 3px rgba(40, 32, 20, 0.25);
|
|
296
|
+
cursor: crosshair; touch-action: none; animation: sp-wb-handle-in var(--ap-d2) var(--ap-ease) both;
|
|
297
|
+
}
|
|
298
|
+
.sp-wb-handle::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
|
|
299
|
+
@media (hover: hover) { .sp-wb-handle:hover { background: color-mix(in srgb, var(--ap-accent) 80%, var(--ap-ink)); } }
|
|
300
|
+
@keyframes sp-wb-handle-in { from { opacity: 0; } }
|
|
301
|
+
|
|
302
|
+
/* ---------- Staged pictures: not built yet (outline) and new in this step (accent edge) ---------- */
|
|
303
|
+
.sp-lego .sp-wb-note[data-color="outline"] { background: transparent; color: var(--ap-ink-2); }
|
|
304
|
+
.sp-lego .sp-wb-note[data-color="outline"]:not([data-selected]):not([data-hot]):not(:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--sp-rule); }
|
|
305
|
+
.sp-lego .sp-wb-note[data-color="new"] { background: var(--ap-surface); }
|
|
306
|
+
.sp-lego .sp-wb-note[data-color="new"]:not([data-selected]):not([data-hot]):not(:focus-visible) { box-shadow: inset 0 0 0 2px var(--ap-accent); }
|
|
307
|
+
.sp-wb-swatch[data-color="outline"] span { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ap-ink-3); }
|
|
308
|
+
.sp-wb-swatch[data-color="new"] span { background: var(--ap-surface); box-shadow: inset 0 0 0 2.5px var(--ap-accent); }
|
|
309
|
+
|
|
310
|
+
/* Text editors stay inside their item: they may grow with it, never past it. */
|
|
311
|
+
.sp-wb-edit { resize: none; max-width: 100%; max-height: 100%; overflow: auto; }
|
|
312
|
+
.sp-wb textarea, .sp-wb input { max-width: 100%; }
|
|
313
|
+
|
|
314
|
+
/* The agent's latest change is marked in the ink accent; red is kept for danger. */
|
|
315
|
+
.sp-lego .sp-wb-frame[data-hot] { box-shadow: inset 0 0 0 1.5px var(--ap-accent); }
|
|
316
|
+
.sp-lego .sp-wb-note[data-hot] { box-shadow: 0 0 0 2px var(--ap-accent); }
|
|
317
|
+
.sp-wb-btn[aria-pressed="true"], .sp-wb-tool[aria-pressed="true"] { background: var(--ap-accent-tint); color: var(--ap-accent); }
|
|
318
|
+
/* The selection and arrow toolbars dock at the top centre of the board: never clipped at an edge, never over the item. */
|
|
319
|
+
.sp-wb-bar[data-dock="top"] { left: 50%; top: 60px; max-width: calc(100% - 24px); }
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
/* ======================================================================================================
|
|
323
|
+
Illustrated board: warm cards with an emoji illustration, a winding road with milestone pills, stickers,
|
|
324
|
+
curved connectors and matrix cells. Everything moves on the product's tokens and stays still under
|
|
325
|
+
reduced motion.
|
|
326
|
+
====================================================================================================== */
|
|
327
|
+
|
|
328
|
+
/* The canvas: a light square grid, like the reference boards. */
|
|
329
|
+
.sp-wb-view {
|
|
330
|
+
background-color: color-mix(in srgb, var(--ap-surface) 82%, var(--sp-input));
|
|
331
|
+
background-image:
|
|
332
|
+
linear-gradient(color-mix(in srgb, var(--ap-ink) 6%, transparent) 1px, transparent 1px),
|
|
333
|
+
linear-gradient(90deg, color-mix(in srgb, var(--ap-ink) 6%, transparent) 1px, transparent 1px);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Colours for the warm slips. */
|
|
337
|
+
.sp-wb-note[data-color="yellow"] { background: var(--sp-wb-yellow); }
|
|
338
|
+
.sp-wb-note[data-color="orange"] { background: var(--sp-wb-orange); }
|
|
339
|
+
.sp-wb-note[data-color="peach"] { background: var(--sp-wb-peach); }
|
|
340
|
+
.sp-wb-note[data-color="sand"] { background: var(--sp-wb-sand); }
|
|
341
|
+
.sp-wb-note[data-color="purple"] { background: var(--sp-wb-purple); }
|
|
342
|
+
.sp-wb-swatch[data-color="orange"] span { background: var(--sp-wb-orange); }
|
|
343
|
+
.sp-wb-swatch[data-color="peach"] span { background: var(--sp-wb-peach); }
|
|
344
|
+
.sp-wb-swatch[data-color="sand"] span { background: var(--sp-wb-sand); }
|
|
345
|
+
.sp-wb-swatch[data-color="purple"] span { background: var(--sp-wb-purple); }
|
|
346
|
+
.sp-wb-note:is([data-color="orange"]) .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-orange); }
|
|
347
|
+
.sp-wb-note:is([data-color="peach"]) .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-peach); }
|
|
348
|
+
.sp-wb-note:is([data-color="sand"]) .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-sand); }
|
|
349
|
+
.sp-wb-note:is([data-color="purple"]) .sp-wb-shape-bg :is(path, ellipse) { fill: var(--sp-wb-purple); }
|
|
350
|
+
|
|
351
|
+
/* Cards: soft shadow, rounded, a readable title and body; they lift a little under the pointer. */
|
|
352
|
+
.sp-lego .sp-wb-note:is([data-shape="note"], :not([data-shape])) ,
|
|
353
|
+
.sp-lego .sp-wb-note[data-shape="box"] {
|
|
354
|
+
border-radius: 10px; box-shadow: var(--sp-wb-card-shadow);
|
|
355
|
+
transition: box-shadow var(--ap-d2) var(--ap-ease), transform var(--ap-d2) var(--ap-ease), opacity var(--ap-d2) var(--ap-ease);
|
|
356
|
+
}
|
|
357
|
+
.sp-lego .sp-wb-note[data-shape="note"]:not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: var(--sp-wb-card-shadow); }
|
|
358
|
+
.sp-lego .sp-wb-note[data-shape="box"]:not([data-color="paper"]):not([data-color="outline"]):not([data-color="new"]):not([data-color="red"]):not([data-color="ink"]):not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: var(--sp-wb-card-shadow); }
|
|
359
|
+
@media (hover: hover) {
|
|
360
|
+
.sp-lego .sp-wb-note:is([data-shape="note"], [data-shape="box"], [data-shape="sticker"]):not([data-moving]):not([data-leaving]):hover { transform: translateY(-2px); }
|
|
361
|
+
.sp-lego .sp-wb-note[data-shape="note"]:not([data-selected]):not([data-hot]):not([data-moving]):hover { box-shadow: var(--sp-wb-card-lift); }
|
|
362
|
+
}
|
|
363
|
+
.sp-wb-note[data-shape="note"] { gap: 4px; padding: 14px 16px; }
|
|
364
|
+
.sp-wb-note[data-shape="note"] .sp-wb-text { font-size: 14px; line-height: 20px; -webkit-line-clamp: 5; }
|
|
365
|
+
.sp-wb-title-line { position: relative; z-index: 1; font-size: 15.5px; font-weight: 700; line-height: 21px; overflow-wrap: anywhere; }
|
|
366
|
+
.sp-wb-body strong { font-size: 15.5px; line-height: 21px; }
|
|
367
|
+
.sp-wb-body span { font-size: 14px; line-height: 20px; }
|
|
368
|
+
|
|
369
|
+
/* A card with an illustration: the emoji sits large at the top, everything centred under it. */
|
|
370
|
+
.sp-wb-note[data-icon] { align-items: center; justify-content: flex-start; text-align: center; padding-top: 12px; }
|
|
371
|
+
.sp-wb-note[data-icon] .sp-wb-body { justify-items: center; }
|
|
372
|
+
.sp-wb-icon {
|
|
373
|
+
position: relative; z-index: 1; display: block; width: 64px; height: 64px; margin: 0 auto 6px;
|
|
374
|
+
filter: drop-shadow(0 3px 2px rgba(60, 40, 20, 0.16));
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* Author, owner and "Agen" lines stay out of the way until the card is hovered or selected. */
|
|
378
|
+
.sp-wb-note[data-shape="note"] :is(.sp-wb-by, .sp-wb-meta), .sp-wb-body em { opacity: 0; max-height: 0; overflow: hidden; transition: opacity var(--ap-d2) var(--ap-ease); }
|
|
379
|
+
.sp-wb-note[data-shape="note"]:is(:hover, [data-selected], :focus-visible) :is(.sp-wb-by, .sp-wb-meta),
|
|
380
|
+
.sp-wb-note:is(:hover, [data-selected], :focus-visible) .sp-wb-body em { opacity: 1; max-height: 40px; }
|
|
381
|
+
|
|
382
|
+
/* The road: a thick tan band with a darker edge, under everything. It does not take the pointer, so the board behind it still pans and selects. */
|
|
383
|
+
.sp-lego .sp-wb-note[data-shape="track"] { background: none; padding: 0; pointer-events: none; }
|
|
384
|
+
.sp-lego .sp-wb-note[data-shape="track"]:not([data-selected]):not(:focus-visible) { box-shadow: none; }
|
|
385
|
+
.sp-wb-track { position: absolute; inset: 0; overflow: visible; }
|
|
386
|
+
.sp-wb-track path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
|
|
387
|
+
.sp-wb-track-edge { stroke: var(--sp-wb-road-edge); stroke-width: 32; }
|
|
388
|
+
.sp-wb-track-road { stroke: var(--sp-wb-road); stroke-width: 26; }
|
|
389
|
+
.sp-lego .sp-wb-note[data-shape="track"] .sp-wb-resize { display: none; }
|
|
390
|
+
|
|
391
|
+
/* Milestone pills and step dots sit on the road. */
|
|
392
|
+
.sp-lego .sp-wb-note:is([data-shape="pill"], [data-shape="dot"]) {
|
|
393
|
+
align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; text-align: center;
|
|
394
|
+
background: var(--sp-wb-mark); color: var(--sp-wb-mark-ink); box-shadow: 0 2px 0 color-mix(in srgb, var(--sp-wb-mark) 60%, black), 0 4px 10px -4px rgba(60, 30, 20, 0.35);
|
|
395
|
+
}
|
|
396
|
+
.sp-lego .sp-wb-note[data-shape="dot"] { padding: 0; background: var(--ap-surface); color: var(--ap-ink-2); box-shadow: 0 0 0 2px var(--sp-wb-road-edge); }
|
|
397
|
+
.sp-lego .sp-wb-note:is([data-shape="pill"], [data-shape="dot"]):is([data-selected], :focus-visible) { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
|
|
398
|
+
.sp-wb-tag { font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; }
|
|
399
|
+
.sp-wb-note[data-shape="dot"] .sp-wb-tag { font-size: 11px; font-weight: 600; }
|
|
400
|
+
.sp-wb-note:is([data-shape="pill"], [data-shape="dot"]) .sp-wb-resize { display: none; }
|
|
401
|
+
|
|
402
|
+
/* Matrix cells: hairline grid, very light fill; a label (when any) sits small in the corner. */
|
|
403
|
+
.sp-lego .sp-wb-note[data-shape="cell"] { justify-content: flex-start; padding: 6px 8px; border-radius: 0; background: color-mix(in srgb, var(--ap-surface) 70%, transparent); }
|
|
404
|
+
.sp-lego .sp-wb-note[data-shape="cell"]:not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--ap-ink) 16%, transparent); }
|
|
405
|
+
.sp-wb-note[data-shape="cell"][data-color]:not([data-color="paper"]) { background: color-mix(in srgb, var(--sp-wb-blue) 70%, var(--ap-surface)); }
|
|
406
|
+
.sp-wb-cell-label { position: relative; z-index: 1; font-size: 13px; font-weight: 600; color: var(--ap-ink-2); }
|
|
407
|
+
.sp-wb-note[data-shape="cell"][data-color="blue"] .sp-wb-cell-label { color: color-mix(in srgb, #1e4f80 90%, black); }
|
|
408
|
+
|
|
409
|
+
/* Stickers: a big emoji with no card, and an optional caption under it; they wobble when you reach for them. */
|
|
410
|
+
.sp-lego .sp-wb-note[data-shape="sticker"] { align-items: center; justify-content: center; gap: 2px; padding: 0; background: none; text-align: center; }
|
|
411
|
+
.sp-lego .sp-wb-note[data-shape="sticker"]:not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: none; }
|
|
412
|
+
.sp-lego .sp-wb-note[data-shape="sticker"]:is([data-selected], :focus-visible) { box-shadow: none; outline: 2px dashed var(--ap-accent); outline-offset: 4px; border-radius: 12px; }
|
|
413
|
+
.sp-wb-sticker { display: block; filter: drop-shadow(0 6px 4px rgba(60, 40, 20, 0.18)); transform-origin: 50% 80%; }
|
|
414
|
+
.sp-wb-sticker svg, .sp-wb-icon svg, .sp-wb-pick-art svg { display: block; width: 100%; height: 100%; }
|
|
415
|
+
.sp-wb-caption { font-size: 14px; font-weight: 600; line-height: 18px; color: var(--ap-ink); overflow-wrap: anywhere; }
|
|
416
|
+
@media (hover: hover) { .sp-wb-note[data-shape="sticker"]:not([data-moving]):hover .sp-wb-sticker { animation: sp-wb-wobble calc(var(--ap-d4) * 1.6) var(--ap-ease); } }
|
|
417
|
+
@keyframes sp-wb-wobble { 25% { rotate: -6deg; scale: 1.05; } 55% { rotate: 4deg; } 80% { rotate: -1.5deg; } }
|
|
418
|
+
|
|
419
|
+
/* Frames: a white card with the section name and its description inside the top. */
|
|
420
|
+
.sp-lego .sp-wb-frame { border-radius: 14px; background: var(--ap-surface); box-shadow: var(--sp-wb-card-shadow); }
|
|
421
|
+
.sp-lego .sp-wb-frame:not([data-target]):not([data-hot]) { box-shadow: var(--sp-wb-card-shadow); }
|
|
422
|
+
.sp-wb-frame-head { top: 0; bottom: auto; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 16px 0; min-height: 0; max-width: calc(100% - 16px); }
|
|
423
|
+
.sp-wb-frame-head strong { font-size: 17px; line-height: 22px; font-weight: 650; }
|
|
424
|
+
.sp-wb-frame-head span { font-size: 13px; line-height: 16px; color: var(--ap-ink-2); }
|
|
425
|
+
.sp-lego .sp-wb-frame[data-open] { background: none; box-shadow: none; }
|
|
426
|
+
.sp-lego .sp-wb-frame[data-open] .sp-wb-frame-head { opacity: 0; }
|
|
427
|
+
.sp-lego .sp-wb-frame[data-open]:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ap-ink) 10%, transparent); }
|
|
428
|
+
.sp-lego .sp-wb-frame[data-open]:hover .sp-wb-frame-head { opacity: 1; }
|
|
429
|
+
|
|
430
|
+
/* The board heading: a page title with its subtitle under it. */
|
|
431
|
+
.sp-wb-note[data-shape="text"] .sp-wb-text { overflow: visible; }
|
|
432
|
+
.sp-wb-note[data-size="xl"] .sp-wb-text { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.02em; }
|
|
433
|
+
.sp-wb-note[data-size="l"] .sp-wb-text { font-size: 26px; line-height: 32px; font-weight: 650; letter-spacing: -0.01em; }
|
|
434
|
+
.sp-wb-note[data-size="s"] .sp-wb-text { font-size: 15px; line-height: 20px; color: var(--ap-ink-2); }
|
|
435
|
+
.sp-wb-note[data-size="xl"] .sp-wb-edit { font-size: 40px; line-height: 46px; font-weight: 700; }
|
|
436
|
+
|
|
437
|
+
/* Connectors: curves end in a round arrowhead and start from a small dot; card-to-milestone ties are thin and warm. */
|
|
438
|
+
.sp-wb-link-g[data-route="curve"] .sp-wb-link-line { stroke-width: 1.75; stroke-linecap: round; }
|
|
439
|
+
.sp-wb-link-tail { fill: currentColor; }
|
|
440
|
+
.sp-wb-link-g[data-thin] { color: var(--sp-wb-tie); }
|
|
441
|
+
.sp-wb-link-g[data-thin] .sp-wb-link-line { stroke-width: 1.5; }
|
|
442
|
+
.sp-wb-link-label rect { fill: var(--ap-surface); stroke: none; filter: drop-shadow(0 1px 2px rgba(60, 40, 20, 0.12)); }
|
|
443
|
+
|
|
444
|
+
/* New items pop in and settle; agent edits glow once; the stickers menu is a small grid. */
|
|
445
|
+
@keyframes sp-wb-in { from { opacity: 0; transform: scale(0.9) translateY(6px); } 70% { opacity: 1; transform: scale(1.015); } }
|
|
446
|
+
.sp-lego .sp-wb-note[data-hot]:not([data-born]) { animation: sp-wb-glow calc(var(--ap-d4) * 3) var(--ap-ease) 1; }
|
|
447
|
+
@keyframes sp-wb-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ap-accent) 45%, transparent), var(--sp-wb-card-shadow); } 100% { box-shadow: 0 0 0 10px transparent, var(--sp-wb-card-shadow); } }
|
|
448
|
+
.sp-wb-stickers { grid-template-columns: repeat(6, 44px); gap: 2px; min-width: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
|
|
449
|
+
.sp-wb-stickers button { justify-content: center; min-height: 44px; padding: 0; transition: background-color var(--ap-d2) var(--ap-ease), transform var(--ap-d1) var(--ap-ease); }
|
|
450
|
+
@media (hover: hover) { .sp-wb-stickers button:hover { transform: scale(1.12); } }
|
|
451
|
+
|
|
452
|
+
@media (prefers-reduced-motion: reduce) {
|
|
453
|
+
.sp-lego .sp-wb-note:hover { transform: none !important; }
|
|
454
|
+
.sp-wb-note[data-shape="sticker"]:hover .sp-wb-sticker, .sp-lego .sp-wb-note[data-hot] { animation: none !important; }
|
|
455
|
+
.sp-wb-stickers button:hover { transform: none; }
|
|
456
|
+
.sp-wb-note :is(.sp-wb-by, .sp-wb-meta), .sp-wb-body em { transition: none; }
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* A pill in a slip colour is a header (matrix columns and rows): a soft tab, not a milestone. */
|
|
460
|
+
.sp-lego .sp-wb-note[data-shape="pill"]:is([data-color="yellow"], [data-color="blue"], [data-color="green"], [data-color="pink"], [data-color="purple"], [data-color="orange"], [data-color="peach"], [data-color="sand"], [data-color="gray"]) {
|
|
461
|
+
border-radius: 8px; color: var(--ap-ink); box-shadow: none;
|
|
462
|
+
}
|
|
463
|
+
.sp-wb-note[data-shape="pill"][data-color="blue"] { background: var(--sp-wb-blue); color: #1e4f80; }
|
|
464
|
+
.sp-wb-note[data-shape="pill"][data-color="yellow"] { background: var(--sp-wb-yellow); }
|
|
465
|
+
.sp-wb-note[data-shape="pill"][data-color="green"] { background: var(--sp-wb-green); }
|
|
466
|
+
.sp-wb-note[data-shape="pill"][data-color="pink"] { background: var(--sp-wb-pink); }
|
|
467
|
+
.sp-wb-note[data-shape="pill"][data-color="purple"] { background: var(--sp-wb-purple); }
|
|
468
|
+
.sp-wb-note[data-shape="pill"][data-color="orange"] { background: var(--sp-wb-orange); }
|
|
469
|
+
.sp-wb-note[data-shape="pill"][data-color="peach"] { background: var(--sp-wb-peach); }
|
|
470
|
+
.sp-wb-note[data-shape="pill"][data-color="sand"] { background: var(--sp-wb-sand); }
|
|
471
|
+
.sp-wb-note[data-shape="pill"][data-color="gray"] { background: var(--sp-wb-gray); }
|
|
472
|
+
.sp-wb-note[data-shape="pill"]:not([data-color="red"]):not([data-color="ink"]) .sp-wb-tag { font-size: 14px; font-weight: 650; }
|
|
473
|
+
.sp-lego .sp-wb-note[data-shape="pill"][data-color="red"]:not([data-selected]):not([data-hot]):not(:focus-visible) {
|
|
474
|
+
background: var(--sp-wb-mark); color: var(--sp-wb-mark-ink); box-shadow: 0 2px 0 color-mix(in srgb, var(--sp-wb-mark) 60%, black), 0 4px 10px -4px rgba(60, 30, 20, 0.35);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.sp-wb-pick-art { display: block; width: 28px; height: 28px; }
|
|
478
|
+
|
|
479
|
+
/* ======================================================================================================
|
|
480
|
+
The board's hand (MIT libraries): pen strokes as filled ink (perfect-freehand), arrows between boxes
|
|
481
|
+
(perfect-arrows), hand-inked outlines in the "Tinta" look (roughjs) and the agent's edits ringed in stamp
|
|
482
|
+
ink (rough-notation). "Rapi" keeps the clean vectors.
|
|
483
|
+
====================================================================================================== */
|
|
484
|
+
.sp-wb { --sp-wb-inkline: color-mix(in srgb, var(--ap-ink) 68%, transparent); }
|
|
485
|
+
|
|
486
|
+
/* Pen ink: a filled nib outline, in the product's ink, the stamp's blue or the danger red. */
|
|
487
|
+
.sp-wb-ink path, .sp-wb-pen-live path { fill: var(--ap-ink); stroke: none; }
|
|
488
|
+
.sp-wb-note[data-shape="ink"][data-color="blue"] .sp-wb-ink path, .sp-wb-pen-live[data-color="blue"] path { fill: var(--sp-stamp); }
|
|
489
|
+
.sp-wb-note[data-shape="ink"][data-color="red"] .sp-wb-ink path, .sp-wb-pen-live[data-color="red"] path { fill: var(--ap-bad); }
|
|
490
|
+
|
|
491
|
+
/* Arrowheads drawn at the arrow's own angle, in the line's colour. */
|
|
492
|
+
.sp-wb-arrowhead { fill: currentColor; stroke: none; }
|
|
493
|
+
.sp-wb-link-g[data-inked] .sp-wb-link-line { stroke-width: 1.6; stroke-linecap: round; }
|
|
494
|
+
|
|
495
|
+
/* Inked outlines sit over the item's fill and under its text. */
|
|
496
|
+
.sp-wb-rough { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
|
|
497
|
+
.sp-wb-rough path { fill: none; stroke: var(--sp-wb-inkline); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
|
|
498
|
+
.sp-wb-rough[data-rough="cell"] path { stroke: color-mix(in srgb, var(--ap-ink) 20%, transparent); stroke-width: 1; }
|
|
499
|
+
.sp-wb-rough[data-rough="frame"] path { stroke: color-mix(in srgb, var(--ap-ink) 16%, transparent); stroke-width: 1.2; }
|
|
500
|
+
.sp-wb-note[data-color="red"] .sp-wb-rough path { stroke: var(--ap-bad); stroke-width: 1.6; }
|
|
501
|
+
.sp-wb-note[data-color="ink"] .sp-wb-rough path { stroke: color-mix(in srgb, var(--ap-surface) 70%, transparent); }
|
|
502
|
+
/* In the ink look the clean edge gives way to the inked one; selection, focus, target and agent marks stay crisp. */
|
|
503
|
+
.sp-lego.sp-wb[data-look="ink"] .sp-wb-note:is([data-shape="box"], [data-shape="ellipse"]):is([data-color="paper"], [data-color="red"], [data-color="gray"], :not([data-color])):not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: none; }
|
|
504
|
+
.sp-lego.sp-wb[data-look="ink"] .sp-wb-note[data-shape="cell"]:not([data-selected]):not([data-hot]):not([data-target]):not(:focus-visible) { box-shadow: none; }
|
|
505
|
+
.sp-wb[data-look="ink"] .sp-wb-note:is([data-shape="cloud"], [data-shape="cylinder"]) .sp-wb-shape-bg :is(path, ellipse) { stroke: none; }
|
|
506
|
+
|
|
507
|
+
/* The agent's edits: a screen-space layer that follows pan and zoom; rough-notation draws in it. */
|
|
508
|
+
.sp-wb-marks { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; transform-origin: 0 0; z-index: 3; }
|
|
509
|
+
.sp-wb-mark { position: absolute; display: block; pointer-events: none; }
|
|
510
|
+
.sp-wb-marks .rough-annotation { pointer-events: none; }
|
|
511
|
+
|
|
512
|
+
/* Pen menu: ink colour and width, each labelled. */
|
|
513
|
+
.sp-wb-pen-menu { display: grid; gap: 6px; min-width: 176px; }
|
|
514
|
+
.sp-wb-pop-group { display: grid; gap: 2px; }
|
|
515
|
+
.sp-wb-pop-group + .sp-wb-pop-group { padding-top: 6px; box-shadow: inset 0 1px 0 var(--ap-hairline); }
|
|
516
|
+
.sp-wb-pop-label { padding: 2px 10px 0; color: var(--ap-ink-3); font-size: 12px; font-weight: 500; }
|
|
517
|
+
.sp-wb-ink-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ap-ink); box-shadow: 0 0 0 2px var(--ap-surface), 0 0 0 3px var(--ap-hairline); }
|
|
518
|
+
[data-ink="blue"] > .sp-wb-ink-dot { background: var(--sp-stamp); }
|
|
519
|
+
[data-ink="red"] > .sp-wb-ink-dot { background: var(--ap-bad); }
|
|
520
|
+
.sp-wb-ink-width { flex: none; width: 18px; height: 3px; border-radius: 2px; background: var(--ap-ink); }
|
|
521
|
+
[data-size="m"] > .sp-wb-ink-width { height: 5px; border-radius: 3px; }
|
|
522
|
+
[data-size="l"] > .sp-wb-ink-width { height: 8px; border-radius: 4px; }
|
|
523
|
+
.sp-wb-brush-tip { flex: none; width: 18px; height: 8px; background: var(--ap-ink); border-radius: 50% 20% 20% 50% / 60% 40% 40% 60%; -webkit-mask: linear-gradient(90deg, #000 55%, transparent); mask: linear-gradient(90deg, #000 55%, transparent); }
|
|
524
|
+
[data-brush="pena"] > .sp-wb-brush-tip { height: 2px; border-radius: 1px; -webkit-mask: none; mask: none; }
|
|
525
|
+
[data-brush="spidol"] > .sp-wb-brush-tip { height: 7px; border-radius: 2px; opacity: 0.82; -webkit-mask: none; mask: none; }
|
|
526
|
+
.sp-wb-pop button[aria-checked="true"] > :is(.sp-wb-ink-dot) { box-shadow: 0 0 0 2px var(--ap-surface), 0 0 0 3.5px var(--ap-accent); }
|
|
527
|
+
|
|
528
|
+
/* ---------- The living board: the agent's work performed, step by step ---------- */
|
|
529
|
+
/* Not drawn yet: the choreography reveals it in its turn. */
|
|
530
|
+
.sp-wb-note[data-pending], .sp-wb-frame[data-pending] { opacity: 0 !important; animation: none !important; pointer-events: none; }
|
|
531
|
+
|
|
532
|
+
/* Cards pop from where they hang, the illustration settles in, the title types in, the detail line follows. */
|
|
533
|
+
/* Timings come from the board's tempo (--sp-wb-*-ms, set on the board); a title types at a steady characters a second. */
|
|
534
|
+
.sp-wb-note[data-enter] { --sp-wb-type-ms: max(var(--sp-wb-type-min, 450ms), calc(var(--sp-wb-chars, 16) * var(--sp-wb-char-ms, 36ms))); }
|
|
535
|
+
.sp-wb-note[data-enter="card"] { animation: sp-wb-pop-spring var(--sp-wb-card-ms, 900ms) var(--sp-wb-card-ease, ease-out) both; }
|
|
536
|
+
.sp-wb-note[data-enter="card"] .sp-wb-icon { animation: sp-wb-art var(--sp-wb-art-ms, 700ms) cubic-bezier(0.33, 1.25, 0.5, 1) calc(var(--sp-wb-card-ms, 900ms) * 0.2) both; }
|
|
537
|
+
.sp-wb-note[data-enter="card"] :is(.sp-wb-title-line, .sp-wb-body > strong) { animation: sp-wb-type var(--sp-wb-type-ms) steps(var(--sp-wb-chars, 16), end) calc(var(--sp-wb-art-ms, 700ms) * 0.55) both; }
|
|
538
|
+
.sp-wb-note[data-enter="card"] :is(.sp-wb-text, .sp-wb-body > span) { animation: sp-wb-rise var(--sp-wb-fade-ms, 420ms) cubic-bezier(0.4, 0, 0.2, 1) calc(var(--sp-wb-art-ms, 700ms) * 0.55 + var(--sp-wb-type-ms)) both; }
|
|
539
|
+
@keyframes sp-wb-rise { from { opacity: 0; transform: translateY(3px); } }
|
|
540
|
+
/* When the agent's hand types an item (data-typing, set by the board), every line is revealed under the pen instead. */
|
|
541
|
+
.sp-wb-note[data-typing] :is(.sp-wb-title-line, .sp-wb-body > strong, .sp-wb-text, .sp-wb-body > span) { animation: none; }
|
|
542
|
+
.sp-wb-note[data-enter="heading"][data-typing] { animation: none; }
|
|
543
|
+
@keyframes sp-wb-pop {
|
|
544
|
+
0% { opacity: 0; transform: translateY(12px) scale(0.86); }
|
|
545
|
+
55% { opacity: 1; transform: translateY(-3px) scale(1.03); }
|
|
546
|
+
100% { opacity: 1; transform: none; }
|
|
547
|
+
}
|
|
548
|
+
@keyframes sp-wb-art { from { opacity: 0; transform: translateY(6px) scale(0.7) rotate(-6deg); } }
|
|
549
|
+
@keyframes sp-wb-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
|
|
550
|
+
|
|
551
|
+
/* Milestones are stamped onto the road: a press with a tiny settle, and the ink spreading round it. */
|
|
552
|
+
.sp-wb-note[data-enter="pill"] { animation: sp-wb-stamp-spring var(--sp-wb-stamp-ms, 800ms) var(--sp-wb-stamp-ease, ease-out) both; }
|
|
553
|
+
.sp-wb-note[data-enter="pill"]::after {
|
|
554
|
+
content: ""; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
|
|
555
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--sp-stamp) 55%, transparent);
|
|
556
|
+
animation: sp-wb-ink-ring var(--sp-wb-ring-ms, 800ms) cubic-bezier(0.25, 0.6, 0.3, 1) calc(var(--sp-wb-stamp-ms, 800ms) * 0.35) both;
|
|
557
|
+
}
|
|
558
|
+
@keyframes sp-wb-stamp {
|
|
559
|
+
0% { opacity: 0; transform: scale(1.25) rotate(-7deg); }
|
|
560
|
+
45% { opacity: 1; transform: scale(0.96) rotate(1.5deg); }
|
|
561
|
+
70% { transform: scale(1.01) rotate(-0.5deg); }
|
|
562
|
+
100% { opacity: 1; transform: none; }
|
|
563
|
+
}
|
|
564
|
+
@keyframes sp-wb-ink-ring { from { opacity: 0.9; transform: scale(0.92); } to { opacity: 0; transform: scale(1.45); } }
|
|
565
|
+
.sp-wb-note[data-enter="dot"] { animation: sp-wb-pop var(--sp-wb-dot-ms, 520ms) cubic-bezier(0.34, 1.3, 0.5, 1) both; }
|
|
566
|
+
|
|
567
|
+
/* The road draws itself along its length. */
|
|
568
|
+
/* Constant speed along its length, like a brush pulled across the paper; only the very start and end ease. */
|
|
569
|
+
.sp-wb-note[data-enter="track"] .sp-wb-track path { stroke-dasharray: 1; animation: sp-wb-draw var(--sp-wb-road-ms, 2100ms) cubic-bezier(0.25, 0.1, 0.75, 0.9) both; }
|
|
570
|
+
@keyframes sp-wb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
|
|
571
|
+
|
|
572
|
+
/* Stickers drop in with a small bounce. */
|
|
573
|
+
.sp-wb-note[data-enter="sticker"] { animation: sp-wb-drop var(--sp-wb-sticker-ms, 700ms) cubic-bezier(0.3, 1.25, 0.5, 1) both; }
|
|
574
|
+
@keyframes sp-wb-drop {
|
|
575
|
+
0% { opacity: 0; transform: translateY(-28px) scale(0.8) rotate(-8deg); }
|
|
576
|
+
60% { opacity: 1; transform: translateY(4px) scale(1.04) rotate(2deg); }
|
|
577
|
+
100% { opacity: 1; transform: none; }
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/* Headings type in; matrix cells and sections fade up, a section's ink outline drawn on. */
|
|
581
|
+
.sp-wb-note[data-enter="heading"] { animation: sp-wb-type var(--sp-wb-type-ms) steps(var(--sp-wb-chars, 22), end) var(--sp-wb-hand-ms, 0ms) both; }
|
|
582
|
+
.sp-wb-note[data-enter="cell"] { animation: sp-wb-fade var(--sp-wb-cell-ms, 500ms) cubic-bezier(0.4, 0, 0.2, 1) both; }
|
|
583
|
+
.sp-wb-frame[data-enter="frame"] { animation: sp-wb-fade var(--sp-wb-frame-ms, 1000ms) cubic-bezier(0.4, 0, 0.2, 1) both; }
|
|
584
|
+
.sp-wb-frame[data-enter="frame"] .sp-wb-rough path { stroke-dasharray: 1; animation: sp-wb-draw calc(var(--sp-wb-frame-ms, 1000ms) * 1.4) cubic-bezier(0.45, 0, 0.25, 1) both; }
|
|
585
|
+
|
|
586
|
+
/* Links draw from source to target; the arrowhead lands when the line arrives. */
|
|
587
|
+
.sp-wb-link-g[data-enter] .sp-wb-link-line { stroke-dasharray: 1; animation: sp-wb-draw var(--sp-wb-link-ms, 900ms) cubic-bezier(0.45, 0, 0.25, 1) var(--sp-wb-hand-ms, 0ms) both; }
|
|
588
|
+
.sp-wb-link-g[data-enter] :is(.sp-wb-arrowhead, .sp-wb-link-tail, .sp-wb-link-label) { animation: sp-wb-fade calc(var(--sp-wb-fade-ms, 420ms) * 0.7) cubic-bezier(0.4, 0, 0.2, 1) calc(var(--sp-wb-link-ms, 900ms) * 0.88) both; }
|
|
589
|
+
|
|
590
|
+
/* Removed items fade and smudge, like wet ink wiped off. */
|
|
591
|
+
@keyframes sp-wb-out { to { opacity: 0; transform: scale(0.98); filter: blur(2px); } }
|
|
592
|
+
|
|
593
|
+
/* Where the person or agent working right now is. */
|
|
594
|
+
.sp-wb-live { position: absolute; pointer-events: none; border-radius: 12px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ap-ink-2) 35%, transparent); animation: sp-wb-breathe calc(var(--ap-d4) * 5) ease-in-out infinite; }
|
|
595
|
+
.sp-wb-live[data-agent] { box-shadow: 0 0 0 2px color-mix(in srgb, var(--sp-stamp) 45%, transparent), 0 0 24px color-mix(in srgb, var(--sp-stamp) 14%, transparent); }
|
|
596
|
+
@keyframes sp-wb-breathe { 50% { opacity: 0.45; } }
|
|
597
|
+
|
|
598
|
+
/* The agent's cursor: stamp blue, a constant size at any zoom, idling gently while it works. */
|
|
599
|
+
.sp-wb-cursor { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; will-change: transform; }
|
|
600
|
+
.sp-wb-cursor-in { display: inline-flex; align-items: flex-start; gap: 2px; transform-origin: 0 0; animation: sp-wb-idle calc(var(--ap-d4) * 7) ease-in-out infinite; }
|
|
601
|
+
.sp-wb-cursor svg { flex: none; filter: drop-shadow(0 2px 3px rgba(20, 30, 50, 0.25)); }
|
|
602
|
+
.sp-wb-cursor path { fill: var(--ap-ink-2); stroke: var(--ap-surface); stroke-width: 1.4; stroke-linejoin: round; }
|
|
603
|
+
.sp-wb-cursor[data-agent] path { fill: var(--sp-stamp); }
|
|
604
|
+
.sp-wb-cursor-label {
|
|
605
|
+
margin-top: 12px; padding: 3px 9px; border-radius: 999px; background: var(--ap-ink-2); color: var(--ap-surface);
|
|
606
|
+
font-size: 12.5px; font-weight: 600; line-height: 18px; white-space: nowrap; box-shadow: 0 4px 12px rgba(20, 30, 50, 0.18);
|
|
607
|
+
}
|
|
608
|
+
.sp-wb-cursor[data-agent] .sp-wb-cursor-label { background: var(--sp-stamp); }
|
|
609
|
+
@keyframes sp-wb-idle { 50% { translate: 2px -3px; } }
|
|
610
|
+
|
|
611
|
+
/* What the board is doing, with a way to skip a performance. */
|
|
612
|
+
.sp-wb-status {
|
|
613
|
+
top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 140px); padding: 4px 4px 4px 12px;
|
|
614
|
+
border-radius: 999px; background: var(--ap-surface); box-shadow: var(--ap-float); font-size: 13px; font-weight: 600; color: var(--ap-ink);
|
|
615
|
+
}
|
|
616
|
+
.sp-wb-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
617
|
+
.sp-wb-status > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ap-ink-2); animation: sp-wb-pulse calc(var(--ap-d4) * 2.5) var(--ap-ease) infinite alternate; }
|
|
618
|
+
.sp-wb-status[data-agent] > i { background: var(--sp-stamp); }
|
|
619
|
+
.sp-wb-status:not(:has(button)) { padding-right: 12px; }
|
|
620
|
+
|
|
621
|
+
/* Looking back in history: read-only, said plainly, with the way back. */
|
|
622
|
+
.sp-wb-banner {
|
|
623
|
+
left: 50%; top: 10px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 4px 4px 4px 14px;
|
|
624
|
+
border-radius: 12px; background: var(--ap-surface); box-shadow: var(--ap-float); font-size: 13.5px;
|
|
625
|
+
}
|
|
626
|
+
.sp-wb-banner-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ap-ink-2); }
|
|
627
|
+
.sp-wb-banner-text strong { color: var(--sp-stamp); }
|
|
628
|
+
.sp-wb-view[data-readonly] { cursor: grab; }
|
|
629
|
+
.sp-wb-view[data-readonly] .sp-wb-note, .sp-wb-view[data-readonly] .sp-wb-frame-head { cursor: inherit; }
|
|
630
|
+
.sp-wb-view[data-readonly] .sp-wb-resize { display: none; }
|
|
631
|
+
|
|
632
|
+
/* The time machine strip, above the toolbar. */
|
|
633
|
+
.sp-wb-history { width: 100%; display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--ap-surface); box-shadow: var(--ap-float); }
|
|
634
|
+
.sp-wb-history-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
635
|
+
.sp-wb-history-h { margin-right: auto; font-size: 13.5px; }
|
|
636
|
+
.sp-wb-replay svg { fill: currentColor; }
|
|
637
|
+
.sp-wb-history-note { margin: 0; color: var(--ap-ink-2); font-size: 13px; }
|
|
638
|
+
.sp-wb-ticks { position: relative; display: grid; gap: 4px; }
|
|
639
|
+
.sp-wb-ticks input[type="range"] { width: 100%; accent-color: var(--sp-stamp); margin: 0; }
|
|
640
|
+
.sp-wb-tick-list { display: flex; justify-content: space-between; gap: 2px; margin: 0; padding: 0 6px; list-style: none; }
|
|
641
|
+
.sp-wb-tick {
|
|
642
|
+
display: block; width: 10px; height: 14px; padding: 0; border: 0; border-radius: 3px; background: var(--ap-hairline); cursor: pointer;
|
|
643
|
+
transition: background-color var(--ap-d2) var(--ap-ease), transform var(--ap-d1) var(--ap-ease);
|
|
644
|
+
}
|
|
645
|
+
.sp-wb-tick[data-agent] { background: color-mix(in srgb, var(--sp-stamp) 55%, transparent); }
|
|
646
|
+
.sp-wb-tick[aria-current] { background: var(--sp-stamp); transform: scaleY(1.35); }
|
|
647
|
+
@media (hover: hover) { .sp-wb-tick:not(:disabled):hover { transform: scaleY(1.25); } }
|
|
648
|
+
.sp-wb-tick:focus-visible { outline: 2px solid var(--sp-stamp); outline-offset: 2px; }
|
|
649
|
+
|
|
650
|
+
/* The replay's narration, typed out like a director's commentary. */
|
|
651
|
+
.sp-wb-caption-bar {
|
|
652
|
+
margin: 0; width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 12px;
|
|
653
|
+
background: var(--ap-ink); color: var(--ap-surface); box-shadow: var(--ap-float); font-size: 14px; line-height: 20px;
|
|
654
|
+
}
|
|
655
|
+
.sp-wb-caption-bar strong { flex: none; font-size: 12.5px; color: color-mix(in srgb, var(--ap-surface) 70%, transparent); }
|
|
656
|
+
.sp-wb-caption-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: sp-wb-pulse calc(var(--ap-d4) * 1.5) steps(2) infinite; }
|
|
657
|
+
|
|
658
|
+
@media (prefers-reduced-motion: reduce) {
|
|
659
|
+
.sp-wb-note[data-enter], .sp-wb-frame[data-enter], .sp-wb-note[data-enter] *, .sp-wb-frame[data-enter] *, .sp-wb-link-g[data-enter] * { animation: none !important; }
|
|
660
|
+
.sp-wb-note[data-enter="pill"]::after { display: none; }
|
|
661
|
+
.sp-wb-live, .sp-wb-cursor-in, .sp-wb-status > i, .sp-wb-caption-caret { animation: none; }
|
|
662
|
+
@keyframes sp-wb-out { to { opacity: 0; } }
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/* ---------- Springs: entrances in the same duration-and-bounce physics as the motion around them ---------- */
|
|
666
|
+
/* Two keyframes only: the overshoot comes from the spring easing (linear()), not from hand-placed keyframes. */
|
|
667
|
+
@keyframes sp-wb-pop-spring { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: none; } }
|
|
668
|
+
@keyframes sp-wb-stamp-spring { from { opacity: 0; transform: scale(1.25) rotate(-7deg); } to { opacity: 1; transform: none; } }
|
|
669
|
+
|
|
670
|
+
/* ---------- The agent's plan: faint inked footprints where it is about to draw ---------- */
|
|
671
|
+
.sp-wb-foot { position: absolute; left: 0; top: 0; pointer-events: none; border-radius: 10px; }
|
|
672
|
+
.sp-wb-foot .sp-wb-rough { position: absolute; inset: 0; overflow: visible; }
|
|
673
|
+
.sp-wb-foot .sp-wb-rough path { fill: none; stroke: color-mix(in srgb, var(--ap-ink) 22%, transparent); stroke-width: 1.4; stroke-dasharray: 0.018 0.014; vector-effect: non-scaling-stroke; }
|
|
674
|
+
.sp-wb-foot[data-kind="card"], .sp-wb-foot[data-kind="sticker"] { background: color-mix(in srgb, var(--sp-stamp) 4%, transparent); }
|
|
675
|
+
.sp-wb-foot[data-kind="pill"], .sp-wb-foot[data-kind="dot"] { border-radius: 999px; }
|
|
676
|
+
.sp-wb-foot-road { position: absolute; left: 0; right: 0; top: 50%; height: 26px; translate: 0 -50%; border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--ap-ink) 20%, transparent); }
|
|
677
|
+
/* Where the card's title will be: a faint shimmering line. */
|
|
678
|
+
.sp-wb-foot-line { position: absolute; left: 22%; right: 22%; top: 58%; height: 9px; border-radius: 5px; overflow: hidden;
|
|
679
|
+
background: linear-gradient(90deg, color-mix(in srgb, var(--ap-ink) 6%, transparent) 30%, color-mix(in srgb, var(--ap-ink) 13%, transparent) 50%, color-mix(in srgb, var(--ap-ink) 6%, transparent) 70%);
|
|
680
|
+
background-size: 300% 100%; animation: sp-wb-shimmer calc(var(--ap-d4) * 4) linear infinite; }
|
|
681
|
+
@keyframes sp-wb-shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
|
|
682
|
+
|
|
683
|
+
/* ---------- Diff ghosts: where a moved item was, and what the agent deleted ---------- */
|
|
684
|
+
.sp-wb-onion { position: absolute; left: 0; top: 0; pointer-events: none; display: grid; place-items: center; border-radius: 10px;
|
|
685
|
+
background: color-mix(in srgb, var(--ap-ink) 7%, transparent); filter: blur(0.6px); opacity: 0.2; animation: sp-wb-onion var(--sp-wb-onion-ms, 1200ms) var(--ap-ease) forwards; }
|
|
686
|
+
.sp-wb-onion span, .sp-wb-struck span { max-width: 86%; overflow: hidden; color: var(--ap-ink-2); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
|
|
687
|
+
@keyframes sp-wb-onion { from { opacity: 0.2; } to { opacity: 0; } }
|
|
688
|
+
.sp-wb-struck { position: absolute; left: 0; top: 0; pointer-events: none; display: grid; place-items: center; border-radius: 10px;
|
|
689
|
+
border: 1.5px dashed color-mix(in srgb, var(--ap-bad) 55%, transparent); background: color-mix(in srgb, var(--ap-bad) 5%, transparent); }
|
|
690
|
+
.sp-wb-struck::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1.5px; background: color-mix(in srgb, var(--ap-bad) 60%, transparent); transform: rotate(-4deg); }
|
|
691
|
+
.sp-wb-struck span { color: color-mix(in srgb, var(--ap-bad) 75%, var(--ap-ink)); text-decoration: line-through; }
|
|
692
|
+
|
|
693
|
+
/* ---------- Keep or undo the agent's piece of work ---------- */
|
|
694
|
+
.sp-wb-batch-dock { display: flex; justify-content: center; }
|
|
695
|
+
.sp-wb-batch-dock .sp-wb-batch { position: static; translate: none; }
|
|
696
|
+
.sp-wb-batch { position: absolute; left: 0; top: 12px; translate: -50% 0; transform-origin: 50% 0; display: grid; gap: 4px; min-width: max-content; padding: 6px; border-radius: 12px; background: var(--ap-surface); box-shadow: var(--ap-float); }
|
|
697
|
+
.sp-wb-batch-row { display: flex; align-items: center; gap: 6px; }
|
|
698
|
+
.sp-wb-batch-what { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; max-width: 360px; padding: 0 8px; border-radius: 8px; color: var(--ap-ink); font-size: 14px; font-weight: 600; outline: none; }
|
|
699
|
+
.sp-wb-batch-what:focus-visible { box-shadow: 0 0 0 2px var(--ap-accent); }
|
|
700
|
+
.sp-wb-batch-what i { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-stamp); }
|
|
701
|
+
.sp-wb-batch-what span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
702
|
+
.sp-wb-batch-what small { grid-column: 2; overflow: hidden; color: var(--ap-ink-3); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
|
|
703
|
+
.sp-wb-batch .sp-wb-btn { min-height: 44px; }
|
|
704
|
+
.sp-wb-batch-stamp { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--sp-stamp); border-radius: 8px; color: var(--sp-stamp); font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
|
|
705
|
+
.sp-wb-batch-err { margin: 0; padding: 0 8px 4px; overflow: hidden; color: var(--ap-bad); font-size: 13px; }
|
|
706
|
+
|
|
707
|
+
/* ---------- The agent working off screen: a marker at the nearest edge ---------- */
|
|
708
|
+
.sp-wb-edge { position: absolute; left: 0; top: 0; z-index: 8; display: none; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
|
|
709
|
+
background: var(--sp-stamp); color: var(--ap-accent-ink); font: inherit; font-size: 13px; font-weight: 600; box-shadow: var(--ap-float); cursor: pointer; white-space: nowrap; }
|
|
710
|
+
.sp-wb-edge[data-on] { display: inline-flex; animation: sp-wb-fade var(--ap-d2) var(--ap-ease) both; }
|
|
711
|
+
.sp-wb-edge-arrow { flex: none; transform: rotate(var(--sp-wb-edge-angle, 0rad)); }
|
|
712
|
+
.sp-wb-edge-arrow path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
713
|
+
.sp-wb-edge:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
|
|
714
|
+
|
|
715
|
+
@media (prefers-reduced-motion: reduce) {
|
|
716
|
+
.sp-wb-foot-line { animation: none; }
|
|
717
|
+
.sp-wb-onion { display: none; }
|
|
718
|
+
.sp-wb-edge[data-on] { animation: none; }
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/* A card drawn large reads large: its title, line and picture grow with it, so a big block is never small print in a big box. */
|
|
722
|
+
.sp-wb-note[data-big="l"] strong { font-size: 22px; line-height: 28px; }
|
|
723
|
+
.sp-wb-note[data-big="l"] .sp-wb-text { font-size: 17px; line-height: 24px; -webkit-line-clamp: 6; }
|
|
724
|
+
.sp-wb-note[data-big="l"] .sp-wb-icon { width: 84px; height: 84px; }
|
|
725
|
+
.sp-wb-note[data-big="xl"] strong { font-size: 34px; line-height: 40px; letter-spacing: -0.015em; }
|
|
726
|
+
.sp-wb-note[data-big="xl"] .sp-wb-text { font-size: 22px; line-height: 30px; -webkit-line-clamp: 6; }
|
|
727
|
+
.sp-wb-note[data-big="xl"] .sp-wb-icon { width: 96px; height: 96px; }
|
|
728
|
+
|
|
729
|
+
/* ---------- Marker sketch: what the agent draws ----------
|
|
730
|
+
An item with a pen is drawn the way a person draws on a whiteboard: a hand-inked outline, hand lettering and a line
|
|
731
|
+
drawing, all in that one marker colour, on the bare board. No fill, no shadow, no card. Letter sizes come from the
|
|
732
|
+
item (set inline from the numbers the board measured it with), so words always fit their outline. */
|
|
733
|
+
@font-face { font-family: "Simpul Hand"; src: url("./fonts/PatrickHand-Regular.ttf") format("truetype"); font-display: block; }
|
|
734
|
+
.sp-wb-note[data-pen] { --sp-wb-pen: #1f1e1b; color: var(--sp-wb-pen); background: none !important; box-shadow: none !important; font-family: "Simpul Hand", var(--ap-font); }
|
|
735
|
+
.sp-wb-note[data-pen="blue"] { --sp-wb-pen: #1f4e9c; } .sp-wb-note[data-pen="green"] { --sp-wb-pen: #1d7a43; } .sp-wb-note[data-pen="red"] { --sp-wb-pen: #b3261e; }
|
|
736
|
+
.sp-wb-note[data-pen="purple"] { --sp-wb-pen: #6a3fa0; } .sp-wb-note[data-pen="orange"] { --sp-wb-pen: #b85c0c; }
|
|
737
|
+
.sp-wb-note[data-pen] .sp-wb-shape-bg { display: none; }
|
|
738
|
+
.sp-lego.sp-wb .sp-wb-note[data-pen] .sp-wb-rough path { stroke: var(--sp-wb-pen); stroke-width: 2.4; }
|
|
739
|
+
.sp-wb-note[data-pen][data-dashed] .sp-wb-rough path { stroke-dasharray: 9 8; }
|
|
740
|
+
.sp-wb-note[data-pen][data-shape="dot"] { background: var(--sp-wb-pen) !important; }
|
|
741
|
+
/* A block: its drawing, its name in capitals, its line, centred in the outline and never cut. */
|
|
742
|
+
.sp-wb-note[data-pen] .sp-wb-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; height: 100%; padding: var(--sp-wb-pad, 14px); text-align: center; overflow: visible; }
|
|
743
|
+
.sp-wb-note[data-pen] .sp-wb-body :is(strong, span, em) { display: block; color: inherit; font-family: inherit; overflow: visible; -webkit-line-clamp: unset; white-space: normal; overflow-wrap: anywhere; }
|
|
744
|
+
.sp-wb-note[data-pen] .sp-wb-body strong { font-size: var(--sp-wb-ts); line-height: var(--sp-wb-tl); font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; }
|
|
745
|
+
.sp-wb-note[data-pen] .sp-wb-body span { font-size: var(--sp-wb-fs); line-height: var(--sp-wb-lh); }
|
|
746
|
+
.sp-wb-note[data-pen] .sp-wb-line-icon { width: var(--sp-wb-is); height: var(--sp-wb-is); margin: 0 auto 6px; flex: none; color: inherit; filter: none; }
|
|
747
|
+
/* Words alone, and a pill's label. */
|
|
748
|
+
.sp-lego.sp-wb .sp-wb-note[data-pen][data-shape="text"] .sp-wb-text { font-family: inherit; color: inherit; font-size: var(--sp-wb-fs); line-height: var(--sp-wb-lh); text-transform: var(--sp-wb-case); font-weight: 400; letter-spacing: 0.01em; overflow: visible; -webkit-line-clamp: unset; display: block; text-align: start; }
|
|
749
|
+
.sp-lego.sp-wb .sp-wb-note[data-pen]:is([data-shape="pill"], [data-shape="dot"]) .sp-wb-tag { font-family: inherit; color: var(--sp-wb-pen) !important; background: none !important; font-size: var(--sp-wb-fs); line-height: var(--sp-wb-lh); text-transform: uppercase; letter-spacing: 0.02em; }
|
|
750
|
+
/* Pen strokes in every marker colour, and the yellow highlighter. */
|
|
751
|
+
.sp-wb-note[data-shape="ink"][data-color="green"] .sp-wb-ink path { fill: #1d7a43; } .sp-wb-note[data-shape="ink"][data-color="purple"] .sp-wb-ink path { fill: #6a3fa0; }
|
|
752
|
+
.sp-wb-note[data-shape="ink"][data-color="orange"] .sp-wb-ink path { fill: #b85c0c; } .sp-wb-note[data-shape="ink"][data-color="blue"] .sp-wb-ink path { fill: #1f4e9c; }
|
|
753
|
+
.sp-wb-note[data-shape="ink"][data-color="yellow"] .sp-wb-ink path { fill: #f4d03f; fill-opacity: 0.55; }
|
|
754
|
+
.sp-wb-note[data-shape="ink"][data-color="yellow"] { mix-blend-mode: multiply; }
|
|
755
|
+
/* The words "Shape", "Note" and "Text" are prompts for someone typing: they show only while an empty item is selected. */
|
|
756
|
+
.sp-wb-note:not([data-selected]) .sp-wb-placeholder { display: none; }
|
|
757
|
+
|
|
758
|
+
/* Arrows on a sketched board: labels in marker lettering on a scrap of paper, so the words on the arrows read like the rest. */
|
|
759
|
+
.sp-lego.sp-wb .sp-wb-link-label rect { fill: var(--ap-surface); stroke: none; filter: none; }
|
|
760
|
+
.sp-lego.sp-wb .sp-wb-link-label text { font-family: "Simpul Hand", var(--ap-font); font-size: 19px; fill: #1f1e1b; }
|
|
761
|
+
/* A pen stroke is only its ink: never a box, background or outline round it. */
|
|
762
|
+
.sp-lego .sp-wb-note[data-shape="ink"]:not([data-selected]):not(:focus-visible) { background: none !important; box-shadow: none !important; }
|
|
763
|
+
|
|
764
|
+
/* Skipping an explanation that is being told. */
|
|
765
|
+
.sp-wb-caption-skip { flex: none; margin-inline-start: auto; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: color-mix(in srgb, #fff 14%, transparent); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
|
|
766
|
+
|
|
767
|
+
/* A block's line and its why, who, when and how, each on its own line, left-aligned so the answers read as a list. */
|
|
768
|
+
.sp-wb-note[data-pen] .sp-wb-body span { white-space: pre-line; text-align: start; align-self: stretch; }
|
|
769
|
+
.sp-wb-note[data-pen] .sp-wb-body strong { align-self: stretch; text-align: start; }
|
|
770
|
+
.sp-wb-note[data-pen] .sp-wb-body { align-items: flex-start; justify-content: flex-start; width: 100%; align-self: stretch; }
|
|
771
|
+
.sp-wb-note[data-pen][data-shape="ellipse"] .sp-wb-body, .sp-wb-note[data-pen][data-shape="cylinder"] .sp-wb-body { justify-content: center; }
|
|
772
|
+
.sp-wb-note[data-pen] .sp-wb-line-icon { margin: 0 0 6px; }
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
/* Room for the change box's shadow while it grows (its wrapper clips only during the animation). */
|
|
776
|
+
.sp-wb-change-wrap { margin: -10px; padding: 10px; }
|
|
777
|
+
|
|
778
|
+
/* Wires by layer of detail: the main flow in black and a little heavier, each layer below it in its own ink, the
|
|
779
|
+
same colours the legend names. Label lettering takes the wire's ink so a reader can follow one level across. */
|
|
780
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-route="auto"] { color: #1f1e1b; }
|
|
781
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-route="auto"]:not([data-layer]) .sp-wb-link-line { stroke-width: 2.4; }
|
|
782
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-layer="1"] { color: #1f4e9c; } .sp-lego.sp-wb .sp-wb-link-g[data-layer="2"] { color: #0f766e; }
|
|
783
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-layer="3"] { color: #6d28d9; } .sp-lego.sp-wb .sp-wb-link-g[data-layer="4"] { color: #c2410c; }
|
|
784
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-layer="5"] { color: #be185d; } .sp-lego.sp-wb .sp-wb-link-g[data-layer="6"] { color: #4d7c0f; }
|
|
785
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-layer="7"] { color: #92400e; } .sp-lego.sp-wb .sp-wb-link-g[data-layer="8"] { color: #475569; }
|
|
786
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-layer="9"] { color: #0e7490; }
|
|
787
|
+
.sp-lego.sp-wb .sp-wb-link-g[data-layer] .sp-wb-link-label text { fill: currentColor; }
|
|
788
|
+
|
|
789
|
+
/* A marker shape's words are padded once, by its body (the padding the board measured them with); the item adds none. */
|
|
790
|
+
.sp-lego.sp-wb .sp-wb-note[data-pen]:is([data-shape="box"], [data-shape="ellipse"], [data-shape="cloud"], [data-shape="cylinder"]) { padding: 0; }
|
|
791
|
+
.sp-lego.sp-wb .sp-wb-note[data-pen][data-shape="cylinder"] { padding-top: 28px; }
|
|
792
|
+
|
|
793
|
+
/* The board's floating bars are glass: the board shows through, blurred, under a thin lit edge. */
|
|
794
|
+
.sp-wb-toolbar, .sp-wb-change { border-radius: 20px; background: color-mix(in srgb, var(--ap-surface) 58%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.35), 0 12px 32px -12px rgb(28 44 78 / 0.28); }
|
|
795
|
+
.sp-wb-tool { border-radius: 14px; }
|
|
796
|
+
.sp-wb-tool[aria-pressed="true"] { background: rgb(255 255 255 / 0.65); color: var(--ap-accent); box-shadow: 0 2px 8px -3px rgb(28 44 78 / 0.25); }
|
|
797
|
+
@media (hover: hover) { .sp-wb-tool:not([aria-pressed="true"]):hover { background: rgb(255 255 255 / 0.4); } }
|