@popcorn245/cornfield 0.21.0 → 0.23.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/core/config.js +5 -0
- package/core/theme.js +337 -0
- package/core/validate.js +37 -0
- package/explorer/explorer.css +499 -637
- package/explorer/house.css +20 -26
- package/explorer/index.html +10 -2
- package/explorer/plugins.js +2 -0
- package/explorer/theme-boot.js +22 -2
- package/explorer/theme-model.js +19 -0
- package/explorer/theme-names.js +61 -0
- package/explorer/tokens.css +271 -0
- package/package.json +1 -1
- package/server/server.js +98 -4
package/explorer/explorer.css
CHANGED
|
@@ -1,136 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* The topology explorer's stylesheet (explorer/index.html). Plain CSS, no framework:
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* the
|
|
7
|
-
* the system and the header toggle), are derived from them, the same way theme-model.js derives the map's:
|
|
8
|
-
* the slate greys mirror (300 <-> 700 ...), so text keeps its distance from the ground; each accent keeps
|
|
9
|
-
* its hue and takes its deeper Tailwind step, at least 4.5:1 on the light ground (the 700s); surfaces
|
|
10
|
-
* become white glass with a dark hairline. A colour on a strong accent (white on indigo) is not a token.
|
|
2
|
+
* The topology explorer's stylesheet (explorer/index.html). Plain CSS, no framework: every colour, font, size,
|
|
3
|
+
* radius, border width, shadow and spacing is a --corn-* token from explorer/tokens.css, loaded before this file
|
|
4
|
+
* (the contract is docs/theming.md, and test/explorer/tokens.test.js fails on any literal left here). Light and
|
|
5
|
+
* dark are tokens.css's business: nothing below names a theme, so a brand that redefines the tokens restyles all
|
|
6
|
+
* of it. The fonts are the system's (nothing is fetched from outside). Classes are prefixed hx-.
|
|
11
7
|
*/
|
|
12
8
|
|
|
13
|
-
:root {
|
|
14
|
-
--pop-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
15
|
-
--pop-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
16
|
-
--hx-bg: #090d16;
|
|
17
|
-
--hx-text: #f8fafc;
|
|
18
|
-
--hx-ink: #fff; /* the strongest text on a surface */
|
|
19
|
-
--hx-text-1: #f1f5f9; /* titles */
|
|
20
|
-
--hx-text-2: #e2e8f0; /* names */
|
|
21
|
-
--hx-slate-300: #cbd5e1;
|
|
22
|
-
--hx-slate-400: #94a3b8;
|
|
23
|
-
--hx-slate-500: #64748b;
|
|
24
|
-
--hx-slate-600: #475569;
|
|
25
|
-
--hx-slate-700: #334155;
|
|
26
|
-
--hx-slate-800: #1e293b;
|
|
27
|
-
--hx-slate-900: #0f172a;
|
|
28
|
-
--hx-slate-950: #020617;
|
|
29
|
-
--hx-indigo: #818cf8;
|
|
30
|
-
--hx-indigo-strong: #4f46e5;
|
|
31
|
-
--hx-emerald: #34d399;
|
|
32
|
-
--hx-amber: #fcd34d;
|
|
33
|
-
--hx-sky: #7dd3fc;
|
|
34
|
-
--hx-pink: #f9a8d4;
|
|
35
|
-
--hx-fuchsia: #f0abfc;
|
|
36
|
-
--hx-fuchsia-strong: #f5d0fe;
|
|
37
|
-
--hx-red: #fca5a5;
|
|
38
|
-
--hx-code: #fde68a;
|
|
39
|
-
--hx-orange-text: #fdba74;
|
|
40
|
-
--hx-orange-strong: #fed7aa;
|
|
41
|
-
--hx-teal-text: #5eead4;
|
|
42
|
-
--hx-teal-strong: #99f6e4;
|
|
43
|
-
--hx-violet-text: #c4b5fd;
|
|
44
|
-
--hx-green-text: #86efac;
|
|
45
|
-
--hx-lime-text: #d9f99d;
|
|
46
|
-
|
|
47
|
-
--gradient-primary: linear-gradient(135deg, #4299e1 0%, #818cf8 50%, #e53e3e 100%);
|
|
48
|
-
--bg-gradient: radial-gradient(circle at 14% 18%, rgba(66, 153, 225, 0.28) 0%, transparent 45%),
|
|
49
|
-
radial-gradient(circle at 86% 82%, rgba(229, 62, 62, 0.22) 0%, transparent 45%),
|
|
50
|
-
radial-gradient(circle at 50% 50%, rgba(66, 153, 225, 0.10) 0%, transparent 60%),
|
|
51
|
-
var(--hx-bg);
|
|
52
|
-
|
|
53
|
-
/* Glass surfaces, and the controls, wells and hairlines on them */
|
|
54
|
-
--surface-glass: rgba(26, 34, 52, 0.72);
|
|
55
|
-
--surface-glass-header: rgba(11, 15, 23, 0.88);
|
|
56
|
-
--border-glass: rgba(255, 255, 255, 0.14);
|
|
57
|
-
--border-subtle: rgba(255, 255, 255, 0.08);
|
|
58
|
-
--glass-blur: blur(16px);
|
|
59
|
-
--glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
|
|
60
|
-
--hx-control: rgba(30, 41, 59, 0.8); /* a button, a toggle row */
|
|
61
|
-
--hx-control-hover: rgba(51, 65, 85, 0.8);
|
|
62
|
-
--hx-control-off: rgba(15, 23, 42, 0.4);
|
|
63
|
-
--hx-well: rgba(2, 6, 23, 0.8); /* an input, a property box, a field */
|
|
64
|
-
--hx-well-soft: rgba(2, 6, 23, 0.55);
|
|
65
|
-
--hx-line: rgba(255, 255, 255, 0.1); /* a border on a surface */
|
|
66
|
-
--hx-line-soft: rgba(255, 255, 255, 0.07); /* a divider, a hover tint */
|
|
67
|
-
--hx-scroll: rgba(255, 255, 255, 0.18);
|
|
68
|
-
--hx-scroll-hover: rgba(255, 255, 255, 0.28);
|
|
69
|
-
--hx-swatch-solid: rgba(255, 255, 255, 0.6);
|
|
70
|
-
--hx-backdrop: rgba(0, 0, 0, 0.6);
|
|
71
|
-
--hx-glyph-mix: 100%; /* how much of a panel glyph's own colour is kept (.hx-glyph) */
|
|
72
|
-
|
|
73
|
-
color-scheme: dark;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:root[data-theme="light"] {
|
|
77
|
-
--hx-bg: #f4f6fa;
|
|
78
|
-
--hx-text: #0f172a;
|
|
79
|
-
--hx-ink: #0f172a;
|
|
80
|
-
--hx-text-1: #0f172a;
|
|
81
|
-
--hx-text-2: #1e293b;
|
|
82
|
-
--hx-slate-300: #334155;
|
|
83
|
-
--hx-slate-400: #475569;
|
|
84
|
-
--hx-slate-500: #64748b;
|
|
85
|
-
--hx-slate-600: #94a3b8;
|
|
86
|
-
--hx-slate-700: #cbd5e1;
|
|
87
|
-
--hx-slate-800: #e2e8f0;
|
|
88
|
-
--hx-slate-900: #f1f5f9;
|
|
89
|
-
--hx-slate-950: #f8fafc;
|
|
90
|
-
--hx-indigo: #4f46e5;
|
|
91
|
-
--hx-indigo-strong: #4f46e5;
|
|
92
|
-
--hx-emerald: #047857;
|
|
93
|
-
--hx-amber: #854d0e;
|
|
94
|
-
--hx-sky: #0369a1;
|
|
95
|
-
--hx-pink: #be185d;
|
|
96
|
-
--hx-fuchsia: #a21caf;
|
|
97
|
-
--hx-fuchsia-strong: #86198f;
|
|
98
|
-
--hx-red: #b91c1c;
|
|
99
|
-
--hx-code: #854d0e;
|
|
100
|
-
--hx-orange-text: #c2410c;
|
|
101
|
-
--hx-orange-strong: #9a3412;
|
|
102
|
-
--hx-teal-text: #0f766e;
|
|
103
|
-
--hx-teal-strong: #115e59;
|
|
104
|
-
--hx-violet-text: #6d28d9;
|
|
105
|
-
--hx-green-text: #15803d;
|
|
106
|
-
--hx-lime-text: #3f6212;
|
|
107
|
-
|
|
108
|
-
--gradient-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #dc2626 100%);
|
|
109
|
-
--bg-gradient: radial-gradient(circle at 14% 18%, rgba(66, 153, 225, 0.12) 0%, transparent 45%),
|
|
110
|
-
radial-gradient(circle at 86% 82%, rgba(229, 62, 62, 0.07) 0%, transparent 45%),
|
|
111
|
-
var(--hx-bg);
|
|
112
|
-
|
|
113
|
-
--surface-glass: rgba(255, 255, 255, 0.8);
|
|
114
|
-
--surface-glass-header: rgba(255, 255, 255, 0.9);
|
|
115
|
-
--border-glass: rgba(15, 23, 42, 0.12);
|
|
116
|
-
--border-subtle: rgba(15, 23, 42, 0.08);
|
|
117
|
-
--glass-shadow: 0 8px 28px 0 rgba(15, 23, 42, 0.12);
|
|
118
|
-
--hx-control: rgba(241, 245, 249, 0.92);
|
|
119
|
-
--hx-control-hover: rgba(226, 232, 240, 0.95);
|
|
120
|
-
--hx-control-off: rgba(241, 245, 249, 0.5);
|
|
121
|
-
--hx-well: rgba(255, 255, 255, 0.92);
|
|
122
|
-
--hx-well-soft: rgba(248, 250, 252, 0.85);
|
|
123
|
-
--hx-line: rgba(15, 23, 42, 0.14);
|
|
124
|
-
--hx-line-soft: rgba(15, 23, 42, 0.07);
|
|
125
|
-
--hx-scroll: rgba(15, 23, 42, 0.2);
|
|
126
|
-
--hx-scroll-hover: rgba(15, 23, 42, 0.32);
|
|
127
|
-
--hx-swatch-solid: rgba(15, 23, 42, 0.45);
|
|
128
|
-
--hx-backdrop: rgba(15, 23, 42, 0.35);
|
|
129
|
-
--hx-glyph-mix: 45%;
|
|
130
|
-
|
|
131
|
-
color-scheme: light;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
9
|
*, *::before, *::after { box-sizing: border-box; }
|
|
135
10
|
[hidden] { display: none !important; }
|
|
136
11
|
|
|
@@ -141,10 +16,11 @@ body {
|
|
|
141
16
|
width: 100vw;
|
|
142
17
|
height: 100dvh;
|
|
143
18
|
overflow: hidden;
|
|
144
|
-
background: var(--
|
|
19
|
+
background-color: var(--corn-ground);
|
|
20
|
+
background-image: var(--corn-ground-image);
|
|
145
21
|
background-attachment: fixed;
|
|
146
|
-
color: var(--
|
|
147
|
-
font-family: var(--
|
|
22
|
+
color: var(--corn-text);
|
|
23
|
+
font-family: var(--corn-font);
|
|
148
24
|
-webkit-font-smoothing: antialiased;
|
|
149
25
|
user-select: none;
|
|
150
26
|
touch-action: none;
|
|
@@ -154,20 +30,20 @@ button { font: inherit; color: inherit; cursor: pointer; }
|
|
|
154
30
|
h1, h2, h3, p { margin: 0; }
|
|
155
31
|
|
|
156
32
|
.glass {
|
|
157
|
-
background: var(--surface-
|
|
158
|
-
backdrop-filter: var(--
|
|
159
|
-
-webkit-backdrop-filter: var(--
|
|
160
|
-
border:
|
|
161
|
-
box-shadow: var(--
|
|
33
|
+
background: var(--corn-surface-1);
|
|
34
|
+
backdrop-filter: blur(var(--corn-blur));
|
|
35
|
+
-webkit-backdrop-filter: blur(var(--corn-blur));
|
|
36
|
+
border: var(--corn-border) solid var(--corn-line);
|
|
37
|
+
box-shadow: var(--corn-shadow);
|
|
162
38
|
}
|
|
163
39
|
.glass-header {
|
|
164
|
-
background: var(--
|
|
165
|
-
backdrop-filter: var(--
|
|
166
|
-
-webkit-backdrop-filter: var(--
|
|
167
|
-
border-bottom:
|
|
40
|
+
background: color-mix(in srgb, var(--corn-ground) 88%, transparent);
|
|
41
|
+
backdrop-filter: blur(var(--corn-blur));
|
|
42
|
+
-webkit-backdrop-filter: blur(var(--corn-blur));
|
|
43
|
+
border-bottom: var(--corn-border) solid var(--corn-line);
|
|
168
44
|
}
|
|
169
45
|
.gradient-text {
|
|
170
|
-
background: var(--gradient
|
|
46
|
+
background: var(--corn-brand-gradient);
|
|
171
47
|
-webkit-background-clip: text;
|
|
172
48
|
background-clip: text;
|
|
173
49
|
-webkit-text-fill-color: transparent;
|
|
@@ -176,26 +52,28 @@ h1, h2, h3, p { margin: 0; }
|
|
|
176
52
|
|
|
177
53
|
::-webkit-scrollbar { width: 5px; height: 5px; }
|
|
178
54
|
::-webkit-scrollbar-track { background: transparent; }
|
|
179
|
-
::-webkit-scrollbar-thumb { background: var(--
|
|
180
|
-
::-webkit-scrollbar-thumb:hover { background: var(--
|
|
55
|
+
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--corn-text) 18%, transparent); border-radius: var(--corn-radius-pill); }
|
|
56
|
+
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--corn-text) 28%, transparent); }
|
|
181
57
|
|
|
182
58
|
/* ---- text helpers used by the panel markup ---------------------------------------------- */
|
|
183
|
-
.hx-faint { color: var(--
|
|
184
|
-
.hx-mono { font-family: var(--
|
|
185
|
-
.hx-strong { color: var(--
|
|
59
|
+
.hx-faint { color: var(--corn-text-3); }
|
|
60
|
+
.hx-mono { font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
61
|
+
.hx-strong { color: var(--corn-text-2); }
|
|
186
62
|
.hx-bold { font-weight: 700; }
|
|
187
|
-
.hx-name { color: var(--
|
|
188
|
-
.hx-accent { color: var(--
|
|
189
|
-
.hx-good { color: var(--
|
|
190
|
-
.hx-warn { color: var(--
|
|
191
|
-
.hx-rom { color: var(--
|
|
192
|
-
.hx-link { color: var(--
|
|
193
|
-
.hx-link-faint { color: var(--
|
|
194
|
-
.hx-link-faint:hover { color: var(--
|
|
195
|
-
.hx-code { color: var(--
|
|
196
|
-
.hx-var { color: var(--
|
|
197
|
-
.hx-chips { display: flex; flex-wrap: wrap; gap:
|
|
198
|
-
.hx-pt { padding-top:
|
|
63
|
+
.hx-name { color: var(--corn-text-2); }
|
|
64
|
+
.hx-accent { color: var(--corn-accent-text); }
|
|
65
|
+
.hx-good { color: var(--corn-ok); }
|
|
66
|
+
.hx-warn { color: var(--corn-warn); }
|
|
67
|
+
.hx-rom { color: var(--corn-hue-fuchsia); }
|
|
68
|
+
.hx-link { color: var(--corn-info); text-decoration: underline; }
|
|
69
|
+
.hx-link-faint { color: var(--corn-text-3); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
70
|
+
.hx-link-faint:hover { color: var(--corn-warn); }
|
|
71
|
+
.hx-code { color: var(--corn-warn); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
72
|
+
.hx-var { color: var(--corn-hue-pink); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); padding: 0 var(--corn-space-1); border-radius: var(--corn-radius-xs); }
|
|
73
|
+
.hx-chips { display: flex; flex-wrap: wrap; gap: var(--corn-space-1); padding-top: var(--corn-space-1); }
|
|
74
|
+
.hx-pt { padding-top: var(--corn-space-3); }
|
|
75
|
+
/* Headings and titles take the display family (the same as the body unless a brand sets it) */
|
|
76
|
+
.hx-title, .hx-drawer-title, .hx-block-title, .hx-menu-title, .hx-confirm-title, .hx-mockup-title { font-family: var(--corn-font-display); }
|
|
199
77
|
|
|
200
78
|
/* ---- header ------------------------------------------------------------------------------ */
|
|
201
79
|
.hx-header {
|
|
@@ -204,21 +82,21 @@ h1, h2, h3, p { margin: 0; }
|
|
|
204
82
|
display: flex;
|
|
205
83
|
align-items: center;
|
|
206
84
|
justify-content: space-between;
|
|
207
|
-
gap:
|
|
208
|
-
padding: 0
|
|
85
|
+
gap: var(--corn-space-3);
|
|
86
|
+
padding: 0 var(--corn-space-3);
|
|
209
87
|
z-index: 20;
|
|
210
|
-
background: var(--
|
|
211
|
-
backdrop-filter: var(--
|
|
212
|
-
-webkit-backdrop-filter: var(--
|
|
213
|
-
border-bottom:
|
|
88
|
+
background: color-mix(in srgb, var(--corn-ground) 88%, transparent);
|
|
89
|
+
backdrop-filter: blur(var(--corn-blur));
|
|
90
|
+
-webkit-backdrop-filter: blur(var(--corn-blur));
|
|
91
|
+
border-bottom: var(--corn-border) solid var(--corn-line);
|
|
214
92
|
}
|
|
215
|
-
.hx-header-left, .hx-header-right { display: flex; align-items: center; gap:
|
|
216
|
-
.hx-header-right { flex: none; gap:
|
|
217
|
-
@media (min-width: 640px) { .hx-header { padding: 0
|
|
93
|
+
.hx-header-left, .hx-header-right { display: flex; align-items: center; gap: var(--corn-space-3); min-width: 0; }
|
|
94
|
+
.hx-header-right { flex: none; gap: var(--corn-space-1); }
|
|
95
|
+
@media (min-width: 640px) { .hx-header { padding: 0 var(--corn-space-5); } .hx-header-left { gap: var(--corn-space-4); } .hx-header-right { gap: var(--corn-space-3); } }
|
|
218
96
|
|
|
219
|
-
.hx-brand { display: flex; align-items: center; gap:
|
|
220
|
-
.hx-title { font-size:
|
|
221
|
-
.hx-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--
|
|
97
|
+
.hx-brand { display: flex; align-items: center; gap: var(--corn-space-3); flex: none; padding: 0; border: 0; background: none; }
|
|
98
|
+
.hx-title { font-size: var(--corn-text-base); font-weight: 900; letter-spacing: -0.025em; }
|
|
99
|
+
.hx-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--corn-ok); box-shadow: 0 0 var(--corn-glow) color-mix(in srgb, var(--corn-ok) 50%, transparent); animation: hx-pulse 2s ease-in-out infinite; flex: none; }
|
|
222
100
|
.hx-live-dot--ping { width: 8px; height: 8px; animation-name: hx-ping; }
|
|
223
101
|
@keyframes hx-pulse { 50% { opacity: 0.5; } }
|
|
224
102
|
@keyframes hx-ping { 0% { transform: scale(1); opacity: 1; } 75%, 100% { transform: scale(1.8); opacity: 0.2; } }
|
|
@@ -227,62 +105,62 @@ h1, h2, h3, p { margin: 0; }
|
|
|
227
105
|
.hx-btn {
|
|
228
106
|
display: inline-flex;
|
|
229
107
|
align-items: center;
|
|
230
|
-
gap:
|
|
231
|
-
padding:
|
|
232
|
-
border-radius:
|
|
233
|
-
border:
|
|
234
|
-
background: var(--
|
|
235
|
-
color: var(--
|
|
236
|
-
font-size:
|
|
108
|
+
gap: var(--corn-space-2);
|
|
109
|
+
padding: var(--corn-space-1) var(--corn-space-3);
|
|
110
|
+
border-radius: var(--corn-radius-sm);
|
|
111
|
+
border: var(--corn-border) solid var(--corn-line);
|
|
112
|
+
background: var(--corn-surface-2);
|
|
113
|
+
color: var(--corn-text-2);
|
|
114
|
+
font-size: var(--corn-text-xs);
|
|
237
115
|
font-weight: 600;
|
|
238
116
|
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
|
239
117
|
white-space: nowrap;
|
|
240
118
|
}
|
|
241
|
-
.hx-btn:hover { background: var(--
|
|
242
|
-
.hx-btn:focus-visible, .hx-toggle-row:focus-visible, .hx-zoom-btn:focus-visible, .hx-textbtn:focus-visible { outline:
|
|
243
|
-
.hx-btn--active, .hx-btn--active:hover { background: var(--
|
|
119
|
+
.hx-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
120
|
+
.hx-btn:focus-visible, .hx-toggle-row:focus-visible, .hx-zoom-btn:focus-visible, .hx-textbtn:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
121
|
+
.hx-btn--active, .hx-btn--active:hover { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); box-shadow: var(--corn-shadow-sm); }
|
|
244
122
|
.hx-btn--dim { opacity: 0.55; }
|
|
245
|
-
.hx-btn--quiet { font-weight: 500; color: var(--
|
|
246
|
-
.hx-btn--icon { width: 28px; height: 28px; padding: 0; justify-content: center; font-size:
|
|
247
|
-
.hx-btn--preset { border-color:
|
|
248
|
-
.hx-btn--preset:hover { background:
|
|
249
|
-
.hx-btn--preset.hx-btn--active { background:
|
|
250
|
-
.hx-btn--rom { width: 100%; justify-content: center; margin-top:
|
|
251
|
-
.hx-btn--rom:hover { background:
|
|
252
|
-
.hx-btn--copy { padding:
|
|
123
|
+
.hx-btn--quiet { font-weight: 500; color: var(--corn-text-3); }
|
|
124
|
+
.hx-btn--icon { width: 28px; height: 28px; padding: 0; justify-content: center; font-size: var(--corn-text-base); }
|
|
125
|
+
.hx-btn--preset { border-color: color-mix(in srgb, var(--corn-hue-orange) 35%, transparent); color: var(--corn-hue-orange); }
|
|
126
|
+
.hx-btn--preset:hover { background: color-mix(in srgb, var(--corn-hue-orange) 15%, transparent); color: color-mix(in srgb, var(--corn-hue-orange) 60%, var(--corn-text)); }
|
|
127
|
+
.hx-btn--preset.hx-btn--active { background: var(--corn-hue-orange); border-color: var(--corn-hue-orange); color: var(--corn-ground); }
|
|
128
|
+
.hx-btn--rom { width: 100%; justify-content: center; margin-top: var(--corn-space-1); padding: var(--corn-space-2); background: color-mix(in srgb, var(--corn-hue-fuchsia) 20%, transparent); border-color: color-mix(in srgb, var(--corn-hue-fuchsia) 40%, transparent); color: color-mix(in srgb, var(--corn-hue-fuchsia) 60%, var(--corn-text)); font-weight: 700; }
|
|
129
|
+
.hx-btn--rom:hover { background: color-mix(in srgb, var(--corn-hue-fuchsia) 30%, transparent); }
|
|
130
|
+
.hx-btn--copy { padding: var(--corn-space-3) var(--corn-space-4); border-radius: var(--corn-radius); border: 0; }
|
|
253
131
|
|
|
254
132
|
.hx-dots { display: inline-flex; }
|
|
255
|
-
.hx-dots span { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0
|
|
133
|
+
.hx-dots span { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 var(--corn-border) var(--corn-ground); margin-left: calc(var(--corn-space-1) * -1); }
|
|
256
134
|
.hx-dots span:first-child { margin-left: 0; }
|
|
257
135
|
|
|
258
136
|
.hx-input {
|
|
259
137
|
width: 128px;
|
|
260
|
-
padding:
|
|
261
|
-
border-radius:
|
|
262
|
-
border:
|
|
263
|
-
background: var(--
|
|
264
|
-
color: var(--
|
|
138
|
+
padding: var(--corn-space-1) var(--corn-space-3) var(--corn-space-1) var(--corn-space-6);
|
|
139
|
+
border-radius: var(--corn-radius-sm);
|
|
140
|
+
border: var(--corn-border) solid var(--corn-line);
|
|
141
|
+
background: color-mix(in srgb, var(--corn-ground) 80%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat 8px center;
|
|
142
|
+
color: var(--corn-text);
|
|
265
143
|
font: inherit;
|
|
266
|
-
font-size:
|
|
144
|
+
font-size: var(--corn-text-sm);
|
|
267
145
|
outline: none;
|
|
268
146
|
transition: width 0.2s, border-color 0.2s;
|
|
269
147
|
user-select: text;
|
|
270
148
|
}
|
|
271
|
-
.hx-input:focus { width: 208px; border-color:
|
|
272
|
-
.hx-input::placeholder { color: var(--
|
|
149
|
+
.hx-input:focus { width: 208px; border-color: var(--corn-accent-hover); }
|
|
150
|
+
.hx-input::placeholder { color: var(--corn-text-3); }
|
|
273
151
|
.hx-input--wide, .hx-input--wide:focus { width: 100%; flex: 1; }
|
|
274
152
|
|
|
275
|
-
.hx-zoom { display: none; align-items: center; padding:
|
|
276
|
-
.hx-zoom-btn { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius:
|
|
277
|
-
.hx-zoom-btn:hover { background: var(--
|
|
278
|
-
.hx-zoom-btn--accent { color: var(--
|
|
153
|
+
.hx-zoom { display: none; align-items: center; padding: calc(var(--corn-space-1) / 2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); }
|
|
154
|
+
.hx-zoom-btn { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-3); font-weight: 700; font-size: var(--corn-text-sm); }
|
|
155
|
+
.hx-zoom-btn:hover { background: var(--corn-surface-2); color: var(--corn-text); }
|
|
156
|
+
.hx-zoom-btn--accent { color: var(--corn-accent-text); }
|
|
279
157
|
|
|
280
|
-
.hx-chip-link { display: none; align-items: center; gap:
|
|
158
|
+
.hx-chip-link { display: none; align-items: center; gap: var(--corn-space-1); padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid; font-size: var(--corn-text-sm); font-weight: 500; text-decoration: none; transition: background 0.15s; }
|
|
281
159
|
.hx-dot-sm { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
282
|
-
.hx-chip-link--indigo { color: var(--
|
|
283
|
-
.hx-chip-link--pink { color: var(--
|
|
284
|
-
.hx-chip-link--purple { color: var(--
|
|
285
|
-
.hx-chip-link:hover { background: var(--
|
|
160
|
+
.hx-chip-link--indigo { color: var(--corn-accent-text); background: color-mix(in srgb, var(--corn-accent-hover) 10%, transparent); border-color: color-mix(in srgb, var(--corn-accent-hover) 20%, transparent); }
|
|
161
|
+
.hx-chip-link--pink { color: var(--corn-hue-pink); background: color-mix(in srgb, var(--corn-hue-pink) 10%, transparent); border-color: color-mix(in srgb, var(--corn-hue-pink) 20%, transparent); }
|
|
162
|
+
.hx-chip-link--purple { color: var(--corn-edit-text); background: color-mix(in srgb, var(--corn-edit) 10%, transparent); border-color: color-mix(in srgb, var(--corn-edit) 20%, transparent); }
|
|
163
|
+
.hx-chip-link:hover { background: var(--corn-line); }
|
|
286
164
|
|
|
287
165
|
.hx-search { display: none; }
|
|
288
166
|
.hx-only-wide { display: none; }
|
|
@@ -300,48 +178,48 @@ h1, h2, h3, p { margin: 0; }
|
|
|
300
178
|
position: absolute;
|
|
301
179
|
top: 100%;
|
|
302
180
|
left: 0;
|
|
303
|
-
margin-top:
|
|
181
|
+
margin-top: var(--corn-space-3);
|
|
304
182
|
width: 288px;
|
|
305
183
|
max-width: calc(100vw - 24px);
|
|
306
184
|
max-height: calc(100dvh - 80px);
|
|
307
185
|
overflow-y: auto;
|
|
308
|
-
padding:
|
|
309
|
-
border-radius:
|
|
310
|
-
font-size:
|
|
186
|
+
padding: var(--corn-space-4);
|
|
187
|
+
border-radius: var(--corn-radius-lg);
|
|
188
|
+
font-size: var(--corn-text-xs);
|
|
311
189
|
z-index: 50;
|
|
312
190
|
user-select: none;
|
|
313
191
|
}
|
|
314
|
-
.hx-menu-title { display: flex; align-items: center; justify-content: space-between; padding-bottom:
|
|
315
|
-
.hx-menu-head { padding-bottom:
|
|
316
|
-
.hx-menu-links { display: flex; align-items: center; gap:
|
|
317
|
-
.hx-menu-section { padding-top:
|
|
318
|
-
.hx-note { padding:
|
|
319
|
-
.hx-textbtn { padding:
|
|
320
|
-
.hx-textbtn:hover { background: var(--
|
|
321
|
-
.hx-textbtn--accent { color: var(--
|
|
322
|
-
|
|
323
|
-
.hx-toggles { display: flex; flex-direction: column; gap:
|
|
324
|
-
.hx-toggle-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding:
|
|
325
|
-
.hx-toggle-row:hover { background: var(--
|
|
326
|
-
.hx-toggle-row.is-off { background: var(--
|
|
327
|
-
.hx-toggle-label, .hx-toggle-meta { display: flex; align-items: center; gap:
|
|
192
|
+
.hx-menu-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: calc(var(--corn-space-1) / 2); font-size: var(--corn-text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-3); }
|
|
193
|
+
.hx-menu-head { padding-bottom: var(--corn-space-2); border-bottom: var(--corn-border) solid var(--corn-line); margin-bottom: var(--corn-space-3); }
|
|
194
|
+
.hx-menu-links { display: flex; align-items: center; gap: var(--corn-space-3); text-transform: none; letter-spacing: 0; }
|
|
195
|
+
.hx-menu-section { padding-top: var(--corn-space-3); margin-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line); }
|
|
196
|
+
.hx-note { padding: var(--corn-space-2) var(--corn-space-3); margin-bottom: var(--corn-space-3); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-hue-orange) 12%, transparent); color: var(--corn-hue-orange); font-size: var(--corn-text-xs); line-height: 1.4; }
|
|
197
|
+
.hx-textbtn { padding: calc(var(--corn-space-1) / 2) var(--corn-space-1); border: 0; border-radius: var(--corn-radius-xs); background: none; color: var(--corn-text-3); font-size: var(--corn-text-2xs); font-weight: 600; }
|
|
198
|
+
.hx-textbtn:hover { background: var(--corn-line-soft); color: var(--corn-text-2); }
|
|
199
|
+
.hx-textbtn--accent { color: var(--corn-accent-text); }
|
|
200
|
+
|
|
201
|
+
.hx-toggles { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
202
|
+
.hx-toggle-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text); text-align: left; transition: background 0.15s; }
|
|
203
|
+
.hx-toggle-row:hover { background: var(--corn-surface-3); }
|
|
204
|
+
.hx-toggle-row.is-off { background: color-mix(in srgb, var(--corn-ground) 40%, transparent); border-color: transparent; color: var(--corn-text-3); opacity: 0.6; }
|
|
205
|
+
.hx-toggle-label, .hx-toggle-meta { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
328
206
|
.hx-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; transition: transform 0.15s; }
|
|
329
207
|
.hx-toggle-row.is-off .hx-dot { transform: scale(0.75); opacity: 0.4; }
|
|
330
|
-
.hx-toggle-name { font-size:
|
|
331
|
-
.hx-toggle-row.is-off .hx-toggle-name { color: var(--
|
|
332
|
-
.hx-count { padding:
|
|
333
|
-
.hx-toggle-row.is-off .hx-count { background: var(--
|
|
334
|
-
.hx-tick { font-size:
|
|
335
|
-
.hx-toggle-row.is-off .hx-tick { color: var(--
|
|
336
|
-
|
|
337
|
-
.hx-legend-row { display: flex; align-items: center; gap:
|
|
208
|
+
.hx-toggle-name { font-size: var(--corn-text-xs); font-weight: 500; color: var(--corn-text-2); }
|
|
209
|
+
.hx-toggle-row.is-off .hx-toggle-name { color: var(--corn-text-3); text-decoration: line-through; }
|
|
210
|
+
.hx-count { padding: calc(var(--corn-space-1) / 2) var(--corn-space-2); border-radius: var(--corn-radius-xs); background: var(--corn-surface-3); color: var(--corn-text-2); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
211
|
+
.hx-toggle-row.is-off .hx-count { background: color-mix(in srgb, var(--corn-ground) 40%, transparent); color: var(--corn-text-3); }
|
|
212
|
+
.hx-tick { font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-ok); }
|
|
213
|
+
.hx-toggle-row.is-off .hx-tick { color: var(--corn-text-3); }
|
|
214
|
+
|
|
215
|
+
.hx-legend-row { display: flex; align-items: center; gap: var(--corn-space-3); padding: calc(var(--corn-space-1) / 2) 0; color: var(--corn-text-2); }
|
|
338
216
|
.hx-legend-row--split { justify-content: space-between; }
|
|
339
|
-
.hx-legend-label { display: flex; align-items: center; gap:
|
|
217
|
+
.hx-legend-label { display: flex; align-items: center; gap: var(--corn-space-3); font-weight: 500; }
|
|
340
218
|
.hx-legend-swatch { width: 16px; flex: none; display: inline-flex; justify-content: center; }
|
|
341
|
-
.hx-swatch-line { display: inline-block; width: 16px; height: 2px; border-radius:
|
|
342
|
-
.hx-swatch-solid { background: var(--
|
|
343
|
-
.hx-swatch-dashed { height: 0; background: none; border-top:
|
|
344
|
-
.hx-swatch-indigo { border-top-color: var(--
|
|
219
|
+
.hx-swatch-line { display: inline-block; width: 16px; height: 2px; border-radius: var(--corn-radius-xs); }
|
|
220
|
+
.hx-swatch-solid { background: color-mix(in srgb, var(--corn-text) 55%, transparent); }
|
|
221
|
+
.hx-swatch-dashed { height: 0; background: none; border-top: var(--corn-border-strong) dashed var(--corn-text-2); }
|
|
222
|
+
.hx-swatch-indigo { border-top-color: var(--corn-accent-text); }
|
|
345
223
|
|
|
346
224
|
/* ---- stage: canvas, hint, states --------------------------------------------------------- */
|
|
347
225
|
.hx-stage { position: relative; flex: 1; width: 100%; min-height: 0; overflow: hidden; }
|
|
@@ -351,267 +229,264 @@ h1, h2, h3, p { margin: 0; }
|
|
|
351
229
|
/* The Canvas 2D that stands in for the map canvas when its WebGL2 shaders fail (renderer.js): same place, pointer goes through */
|
|
352
230
|
.hx-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
|
|
353
231
|
|
|
354
|
-
.hx-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap:
|
|
232
|
+
.hx-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--corn-space-2); max-width: 85vw; padding: var(--corn-space-1) var(--corn-space-4); border-radius: var(--corn-radius-pill); font-size: var(--corn-text-2xs); color: var(--corn-text-2); pointer-events: none; z-index: 10; white-space: nowrap; }
|
|
355
233
|
.hx-hint span:last-child { overflow: hidden; text-overflow: ellipsis; }
|
|
356
|
-
@media (min-width: 640px) { .hx-hint { font-size:
|
|
234
|
+
@media (min-width: 640px) { .hx-hint { font-size: var(--corn-text-xs); } }
|
|
357
235
|
|
|
358
|
-
.hx-mobile-zoom { position: absolute; bottom: 16px; right: 12px; display: flex; flex-direction: column; gap:
|
|
359
|
-
.hx-mobile-zoom .hx-zoom-btn { width: 32px; height: 32px; background: var(--
|
|
236
|
+
.hx-mobile-zoom { position: absolute; bottom: 16px; right: 12px; display: flex; flex-direction: column; gap: var(--corn-space-1); padding: var(--corn-space-1); border-radius: var(--corn-radius); z-index: 20; }
|
|
237
|
+
.hx-mobile-zoom .hx-zoom-btn { width: 32px; height: 32px; background: var(--corn-surface-2); color: var(--corn-text); border-radius: var(--corn-radius-sm); }
|
|
360
238
|
|
|
361
|
-
.hx-mobile-search { position: absolute; top: 56px; left: 0; right: 0; display: flex; align-items: center; gap:
|
|
239
|
+
.hx-mobile-search { position: absolute; top: 56px; left: 0; right: 0; display: flex; align-items: center; gap: var(--corn-space-3); padding: var(--corn-space-3); z-index: 30; }
|
|
362
240
|
|
|
363
|
-
.hx-state { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--
|
|
364
|
-
.hx-state--error { display: flex; flex-direction: column; align-items: center; gap:
|
|
365
|
-
.hx-state--error strong { color: var(--
|
|
366
|
-
.hx-state--error p { font-size:
|
|
367
|
-
.hx-state--error #error-message { font-family: var(--
|
|
241
|
+
.hx-state { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--corn-text-3); font-size: var(--corn-text-md); z-index: 5; text-align: center; }
|
|
242
|
+
.hx-state--error { display: flex; flex-direction: column; align-items: center; gap: var(--corn-space-3); width: min(440px, calc(100vw - 32px)); padding: var(--corn-space-6); border-radius: var(--corn-radius-lg); color: var(--corn-text-2); user-select: text; }
|
|
243
|
+
.hx-state--error strong { color: var(--corn-bad); font-size: var(--corn-text-lg); }
|
|
244
|
+
.hx-state--error p { font-size: var(--corn-text-sm); line-height: 1.5; }
|
|
245
|
+
.hx-state--error #error-message { font-family: var(--corn-mono); color: var(--corn-warn); word-break: break-word; }
|
|
368
246
|
|
|
369
247
|
/* ---- node panel -------------------------------------------------------------------------- */
|
|
370
|
-
.hx-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--
|
|
248
|
+
.hx-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--corn-scrim); backdrop-filter: blur(calc(var(--corn-blur) / 4)); }
|
|
371
249
|
@media (min-width: 768px) { .hx-backdrop { display: none; } }
|
|
372
250
|
|
|
373
|
-
.hx-drawer { display: flex; flex-direction: column; z-index: 40; border-color: var(--
|
|
251
|
+
.hx-drawer { display: flex; flex-direction: column; z-index: 40; border-color: var(--corn-surface-2); box-shadow: var(--corn-shadow-lg); pointer-events: none; touch-action: pan-y; transition: transform 0.2s ease-out; }
|
|
374
252
|
.hx-drawer * { touch-action: pan-y; }
|
|
375
253
|
.hx-drawer.drawer-open { pointer-events: auto; }
|
|
254
|
+
/* The closed panel waits just off the right edge: its shadow would show there */
|
|
255
|
+
.hx-drawer:not(.drawer-open) { box-shadow: none; }
|
|
376
256
|
@media (max-width: 767px) {
|
|
377
257
|
/* A sheet in #sheet-dock (sheets.js, "phone bottom sheets" at the end of this file) */
|
|
378
|
-
.hx-drawer { position: relative; width: 100%; border-radius:
|
|
258
|
+
.hx-drawer { position: relative; width: 100%; border-radius: var(--corn-radius-lg) var(--corn-radius-lg) 0 0; border-left: 0; transform: none; z-index: auto; }
|
|
379
259
|
.hx-drawer:not(.drawer-open) { display: none; }
|
|
380
260
|
}
|
|
381
261
|
@media (min-width: 768px) {
|
|
382
262
|
.hx-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 480px; transform: translateX(100%); }
|
|
383
263
|
.hx-drawer.drawer-open { transform: translateX(0); }
|
|
384
264
|
}
|
|
385
|
-
.hx-drawer-handle { display: flex; justify-content: center; padding:
|
|
386
|
-
.hx-drawer-handle span { width: 48px; height: 6px; border-radius:
|
|
387
|
-
.hx-drawer-body { flex: 1; display: flex; flex-direction: column; gap:
|
|
388
|
-
@media (min-width: 640px) { .hx-drawer-body { padding:
|
|
389
|
-
.hx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom:
|
|
390
|
-
.hx-drawer-title-wrap { display: flex; align-items: center; gap:
|
|
391
|
-
.hx-drawer-title { font-size:
|
|
392
|
-
.hx-badge { flex: none; padding:
|
|
393
|
-
.hx-close { width: 32px; height: 32px; flex: none; border: 0; border-radius:
|
|
394
|
-
.hx-close:hover { color: var(--
|
|
395
|
-
.hx-lead { font-size:
|
|
396
|
-
|
|
397
|
-
.hx-block { display: flex; flex-direction: column; gap:
|
|
398
|
-
.hx-block-title { font-size:
|
|
399
|
-
.hx-props { display: flex; flex-direction: column; gap:
|
|
400
|
-
.hx-prop { padding:
|
|
401
|
-
.hx-prop-head { display: flex; align-items: center; justify-content: space-between; gap:
|
|
402
|
-
.hx-prop-head .hx-faint { font-size:
|
|
403
|
-
.hx-prop > .hx-faint { font-size:
|
|
404
|
-
.hx-meta { display: flex; flex-direction: column; gap:
|
|
405
|
-
|
|
406
|
-
.hx-sec { margin-top:
|
|
407
|
-
.hx-line { display: flex; align-items: flex-start; gap:
|
|
408
|
-
.hx-linkbtn { margin-left:
|
|
409
|
-
|
|
410
|
-
.hx-sim { display: flex; flex-direction: column; gap:
|
|
411
|
-
.hx-field-label { font-size:
|
|
412
|
-
.hx-field { width: 100%; padding:
|
|
413
|
-
.hx-sim-result { font-size:
|
|
414
|
-
.hx-error-text { padding-top:
|
|
415
|
-
.hx-ms { width: 56px; flex: none; text-align: right; font-family: var(--
|
|
416
|
-
.hx-file { padding:
|
|
417
|
-
|
|
418
|
-
.hx-sandbox { display: flex; flex-direction: column; gap:
|
|
419
|
-
.hx-sandbox-title { display: flex; align-items: center; justify-content: space-between; font-size:
|
|
420
|
-
.hx-sandbox-name { display: flex; align-items: center; gap:
|
|
421
|
-
.hx-sandbox-stage { min-height: 90px; display: flex; align-items: center; justify-content: center; padding:
|
|
422
|
-
.hx-sandbox-controls { display: flex; flex-direction: column; gap:
|
|
423
|
-
.hx-ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
424
|
-
.hx-check { display: inline-flex; align-items: center; gap:
|
|
425
|
-
.hx-chip { padding:
|
|
426
|
-
.hx-chip--ghost { background: var(--
|
|
427
|
-
.hx-chip--outline { background: var(--
|
|
428
|
-
.hx-chip--primary { background:
|
|
429
|
-
.hx-chip--danger { background:
|
|
430
|
-
.hx-chip--success { background:
|
|
431
|
-
.hx-chip--warning { background:
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
.hx-
|
|
435
|
-
.hx-open
|
|
436
|
-
.hx-open:
|
|
265
|
+
.hx-drawer-handle { display: flex; justify-content: center; padding: var(--corn-space-3) 0 var(--corn-space-1); }
|
|
266
|
+
.hx-drawer-handle span { width: 48px; height: 6px; border-radius: var(--corn-radius-pill); background: var(--corn-surface-3); }
|
|
267
|
+
.hx-drawer-body { flex: 1; display: flex; flex-direction: column; gap: var(--corn-space-5); padding: calc(var(--corn-space-5) + var(--corn-space-1)); overflow-y: auto; user-select: text; }
|
|
268
|
+
@media (min-width: 640px) { .hx-drawer-body { padding: var(--corn-space-6); } }
|
|
269
|
+
.hx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--corn-space-4); border-bottom: var(--corn-border) solid var(--corn-surface-2); }
|
|
270
|
+
.hx-drawer-title-wrap { display: flex; align-items: center; gap: var(--corn-space-3); min-width: 0; }
|
|
271
|
+
.hx-drawer-title { font-size: var(--corn-text-lg); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
272
|
+
.hx-badge { flex: none; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border-radius: var(--corn-radius-xs); border: var(--corn-border) solid color-mix(in srgb, var(--corn-accent-hover) 30%, transparent); background: var(--corn-accent-soft); color: var(--corn-accent-text); font-size: var(--corn-text-2xs); font-weight: 700; letter-spacing: 0.025em; }
|
|
273
|
+
.hx-close { width: 32px; height: 32px; flex: none; border: 0; border-radius: var(--corn-radius-sm); background: var(--corn-surface-2); color: var(--corn-text-3); font-weight: 700; font-size: var(--corn-text-base); }
|
|
274
|
+
.hx-close:hover { color: var(--corn-text); }
|
|
275
|
+
.hx-lead { font-size: var(--corn-text-sm); line-height: 1.6; }
|
|
276
|
+
|
|
277
|
+
.hx-block { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
278
|
+
.hx-block-title { font-size: var(--corn-text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-2); }
|
|
279
|
+
.hx-props { display: flex; flex-direction: column; gap: var(--corn-space-2); font-family: var(--corn-mono); font-size: var(--corn-text-xs); }
|
|
280
|
+
.hx-prop { padding: var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); }
|
|
281
|
+
.hx-prop-head { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); }
|
|
282
|
+
.hx-prop-head .hx-faint { font-size: var(--corn-text-2xs); }
|
|
283
|
+
.hx-prop > .hx-faint { font-size: var(--corn-text-2xs); margin-top: calc(var(--corn-space-1) / 2); }
|
|
284
|
+
.hx-meta { display: flex; flex-direction: column; gap: var(--corn-space-1); padding: var(--corn-space-4); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); font-family: var(--corn-mono); font-size: var(--corn-text-xs); color: var(--corn-text-3); overflow-wrap: anywhere; }
|
|
285
|
+
|
|
286
|
+
.hx-sec { margin-top: var(--corn-space-2); padding-top: var(--corn-space-2); border-top: var(--corn-border) solid var(--corn-line); }
|
|
287
|
+
.hx-line { display: flex; align-items: flex-start; gap: var(--corn-space-2); padding: calc(var(--corn-space-1) / 2) 0; }
|
|
288
|
+
.hx-linkbtn { margin-left: var(--corn-space-1); padding: 0; border: 0; background: none; color: var(--corn-hue-fuchsia); text-decoration: underline; font-size: inherit; }
|
|
289
|
+
|
|
290
|
+
.hx-sim { display: flex; flex-direction: column; gap: var(--corn-space-2); padding-top: var(--corn-space-1); font-family: var(--corn-font); }
|
|
291
|
+
.hx-field-label { font-size: var(--corn-text-2xs); color: var(--corn-text-3); }
|
|
292
|
+
.hx-field { width: 100%; padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text-2); font-family: var(--corn-mono); font-size: var(--corn-text-xs); }
|
|
293
|
+
.hx-sim-result { font-size: var(--corn-text-xs); }
|
|
294
|
+
.hx-error-text { padding-top: var(--corn-space-3); color: var(--corn-bad); }
|
|
295
|
+
.hx-ms { width: 56px; flex: none; text-align: right; font-family: var(--corn-mono); color: var(--corn-hue-fuchsia); }
|
|
296
|
+
.hx-file { padding: calc(var(--corn-space-1) / 2) 0; }
|
|
297
|
+
|
|
298
|
+
.hx-sandbox { display: flex; flex-direction: column; gap: var(--corn-space-4); padding: var(--corn-space-5); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); }
|
|
299
|
+
.hx-sandbox-title { display: flex; align-items: center; justify-content: space-between; font-size: var(--corn-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-3); }
|
|
300
|
+
.hx-sandbox-name { display: flex; align-items: center; gap: var(--corn-space-2); }
|
|
301
|
+
.hx-sandbox-stage { min-height: 90px; display: flex; align-items: center; justify-content: center; padding: var(--corn-space-5); border-radius: var(--corn-radius-sm); border: var(--corn-border) dashed var(--corn-surface-2); background: var(--corn-ground); overflow-x: auto; }
|
|
302
|
+
.hx-sandbox-controls { display: flex; flex-direction: column; gap: var(--corn-space-2); padding-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line); font-size: var(--corn-text-xs); }
|
|
303
|
+
.hx-ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); color: var(--corn-text-2); }
|
|
304
|
+
.hx-check { display: inline-flex; align-items: center; gap: var(--corn-space-1); margin-right: var(--corn-space-3); cursor: pointer; }
|
|
305
|
+
.hx-chip { padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border: 0; border-radius: var(--corn-radius-xs); font-size: var(--corn-text-xs); font-weight: 500; color: var(--corn-text-on-accent); }
|
|
306
|
+
.hx-chip--ghost { background: var(--corn-surface-2); color: var(--corn-text-2); }
|
|
307
|
+
.hx-chip--outline { background: var(--corn-surface-2); color: var(--corn-accent-text); }
|
|
308
|
+
.hx-chip--primary { background: var(--corn-accent); }
|
|
309
|
+
.hx-chip--danger { background: var(--corn-bad); }
|
|
310
|
+
.hx-chip--success { background: var(--corn-ok); }
|
|
311
|
+
.hx-chip--warning { background: var(--corn-warn); }
|
|
312
|
+
.hx-chip--danger, .hx-chip--success, .hx-chip--warning { color: var(--corn-ground); }
|
|
313
|
+
|
|
314
|
+
.hx-drawer-foot { display: flex; gap: var(--corn-space-3); flex: none; padding: var(--corn-space-5) var(--corn-space-5) calc(var(--corn-space-5) + env(safe-area-inset-bottom, 0px)); border-top: var(--corn-border) solid var(--corn-surface-2); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); }
|
|
315
|
+
.hx-open { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--corn-space-2); padding: var(--corn-space-3) var(--corn-space-4); border-radius: var(--corn-radius); background: var(--corn-accent); color: var(--corn-text-on-accent); font-size: var(--corn-text-sm); font-weight: 600; text-align: center; text-decoration: none; box-shadow: var(--corn-shadow-sm); transition: background 0.15s; }
|
|
316
|
+
.hx-open:hover { background: var(--corn-accent-hover); }
|
|
317
|
+
.hx-open:not([href]) { background: var(--corn-surface-2); color: var(--corn-text-3); }
|
|
437
318
|
|
|
438
319
|
/* ---- proposals (proposal.js): picker, bar, marks, panel rows ----------------------------------- */
|
|
439
|
-
:
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
--hx-mark-removed: #f87171;
|
|
443
|
-
--hx-mark-edit: #a78bfa;
|
|
444
|
-
}
|
|
445
|
-
.hx-btn--proposal { border-color: rgba(45, 212, 191, 0.35); color: var(--hx-teal-text); }
|
|
446
|
-
.hx-btn--proposal:hover { background: rgba(45, 212, 191, 0.14); color: var(--hx-teal-strong); }
|
|
447
|
-
.hx-btn--proposal[aria-expanded="true"] { background: rgba(45, 212, 191, 0.2); border-color: var(--hx-mark-added); color: var(--hx-teal-strong); }
|
|
320
|
+
.hx-btn--proposal { border-color: color-mix(in srgb, var(--corn-added) 35%, transparent); color: var(--corn-added-text); }
|
|
321
|
+
.hx-btn--proposal:hover { background: color-mix(in srgb, var(--corn-added) 14%, transparent); color: var(--corn-added-text); }
|
|
322
|
+
.hx-btn--proposal[aria-expanded="true"] { background: color-mix(in srgb, var(--corn-added) 20%, transparent); border-color: var(--corn-added); color: var(--corn-added-text); }
|
|
448
323
|
|
|
449
324
|
.hx-menu--proposals { width: 360px; }
|
|
450
|
-
.hx-proposal-list { display: flex; flex-direction: column; gap:
|
|
451
|
-
.hx-proposal-empty { padding:
|
|
452
|
-
.hx-proposal-item { display: flex; flex-direction: column; align-items: flex-start; gap:
|
|
453
|
-
button.hx-proposal-item:hover { background: var(--
|
|
454
|
-
button.hx-proposal-item:focus-visible { outline:
|
|
455
|
-
.hx-proposal-item.is-current { border-color: var(--
|
|
325
|
+
.hx-proposal-list { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
326
|
+
.hx-proposal-empty { padding: var(--corn-space-3) calc(var(--corn-space-1) / 2); font-size: var(--corn-text-sm); }
|
|
327
|
+
.hx-proposal-item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--corn-space-1); width: 100%; padding: var(--corn-space-3) var(--corn-space-3); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text); text-align: left; font-size: var(--corn-text-xs); }
|
|
328
|
+
button.hx-proposal-item:hover { background: var(--corn-surface-3); }
|
|
329
|
+
button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
330
|
+
.hx-proposal-item.is-current { border-color: var(--corn-added); background: color-mix(in srgb, var(--corn-added) 12%, transparent); }
|
|
456
331
|
.hx-proposal-item.is-broken { opacity: 0.8; cursor: default; }
|
|
457
|
-
.hx-proposal-title { font-size:
|
|
458
|
-
.hx-proposal-sum { color: var(--
|
|
459
|
-
.hx-proposal-meta { display: flex; flex-wrap: wrap; gap:
|
|
460
|
-
.hx-proposal-where { color: var(--
|
|
461
|
-
|
|
462
|
-
.hx-proposal-bar { position: absolute; top: 48px; left: 12px; width: min(720px, calc(100% - 24px)); padding:
|
|
463
|
-
.hx-proposal-bar.is-error { border-color:
|
|
464
|
-
.hx-proposal-message { color: var(--
|
|
465
|
-
.hx-proposal-bar.is-error .hx-proposal-message { color: var(--
|
|
466
|
-
.hx-proposal-head { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
467
|
-
.hx-proposal-name { flex: 1 1 140px; min-width: 0; font-size:
|
|
468
|
-
.hx-proposal-chip { padding:
|
|
469
|
-
.hx-proposal-chip:hover { background: var(--
|
|
470
|
-
.hx-proposal-chip:focus-visible, .hx-seg-btn:focus-visible, .hx-change-row:focus-visible { outline:
|
|
471
|
-
.hx-proposal-summary { margin-top:
|
|
332
|
+
.hx-proposal-title { font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
333
|
+
.hx-proposal-sum { color: var(--corn-text-2); line-height: 1.4; }
|
|
334
|
+
.hx-proposal-meta { display: flex; flex-wrap: wrap; gap: calc(var(--corn-space-1) / 2) var(--corn-space-3); color: var(--corn-text-3); font-size: var(--corn-text-2xs); }
|
|
335
|
+
.hx-proposal-where { color: var(--corn-added-text); }
|
|
336
|
+
|
|
337
|
+
.hx-proposal-bar { position: absolute; top: 48px; left: 12px; width: min(720px, calc(100% - 24px)); padding: var(--corn-space-3) var(--corn-space-3); border-radius: var(--corn-radius-lg); font-size: var(--corn-text-sm); z-index: 15; user-select: text; }
|
|
338
|
+
.hx-proposal-bar.is-error { border-color: color-mix(in srgb, var(--corn-removed) 50%, transparent); }
|
|
339
|
+
.hx-proposal-message { color: var(--corn-text-2); }
|
|
340
|
+
.hx-proposal-bar.is-error .hx-proposal-message { color: var(--corn-bad); }
|
|
341
|
+
.hx-proposal-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2) var(--corn-space-3); }
|
|
342
|
+
.hx-proposal-name { flex: 1 1 140px; min-width: 0; font-size: var(--corn-text-md); color: var(--corn-text); overflow-wrap: anywhere; }
|
|
343
|
+
.hx-proposal-chip { padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-lg); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); color: var(--corn-text-2); font-size: var(--corn-text-xs); font-variant-numeric: tabular-nums; }
|
|
344
|
+
.hx-proposal-chip:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
345
|
+
.hx-proposal-chip:focus-visible, .hx-seg-btn:focus-visible, .hx-change-row:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
346
|
+
.hx-proposal-summary { margin-top: var(--corn-space-2); color: var(--corn-text-2); line-height: 1.45; }
|
|
472
347
|
|
|
473
348
|
/* Before / Diff / After */
|
|
474
|
-
.hx-seg { display: inline-flex; padding:
|
|
475
|
-
.hx-seg-btn { padding:
|
|
476
|
-
.hx-seg-btn:hover { color: var(--
|
|
477
|
-
.hx-seg-btn.is-on, .hx-seg-btn[aria-pressed="true"] { background: var(--
|
|
478
|
-
|
|
479
|
-
.hx-proposal-errors { margin-top:
|
|
480
|
-
.hx-proposal-errors summary { cursor: pointer; color: var(--
|
|
481
|
-
.hx-proposal-errors ul { margin:
|
|
482
|
-
.hx-proposal-errors p { margin-top:
|
|
483
|
-
|
|
484
|
-
.hx-proposal-changes { display: flex; flex-direction: column; gap:
|
|
485
|
-
.hx-change-row { display: flex; align-items: center; gap:
|
|
486
|
-
.hx-change-row:hover { background: var(--
|
|
487
|
-
.hx-change-what { width: 56px; flex: none; color: var(--
|
|
488
|
-
|
|
489
|
-
/* The marks' colours, shared with the picture
|
|
490
|
-
.hx-mark-dot { display: inline-block; width: 12px; height: 12px; flex: none; margin-right:
|
|
349
|
+
.hx-seg { display: inline-flex; padding: calc(var(--corn-space-1) / 2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); }
|
|
350
|
+
.hx-seg-btn { padding: var(--corn-space-1) var(--corn-space-4); border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-3); font-size: var(--corn-text-sm); font-weight: 500; }
|
|
351
|
+
.hx-seg-btn:hover { color: var(--corn-text); }
|
|
352
|
+
.hx-seg-btn.is-on, .hx-seg-btn[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); box-shadow: var(--corn-shadow-sm); }
|
|
353
|
+
|
|
354
|
+
.hx-proposal-errors { margin-top: var(--corn-space-2); padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-removed) 10%, transparent); border: var(--corn-border) solid color-mix(in srgb, var(--corn-removed) 30%, transparent); color: var(--corn-text-2); }
|
|
355
|
+
.hx-proposal-errors summary { cursor: pointer; color: var(--corn-bad); font-weight: 600; }
|
|
356
|
+
.hx-proposal-errors ul { margin: var(--corn-space-2) 0 var(--corn-space-1); padding-left: var(--corn-space-5); line-height: 1.5; }
|
|
357
|
+
.hx-proposal-errors p { margin-top: var(--corn-space-1); font-size: var(--corn-text-xs); }
|
|
358
|
+
|
|
359
|
+
.hx-proposal-changes { display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); max-height: 40dvh; margin-top: var(--corn-space-2); overflow-y: auto; }
|
|
360
|
+
.hx-change-row { display: flex; align-items: center; gap: var(--corn-space-3); width: 100%; padding: var(--corn-space-1) var(--corn-space-2); border: 0; border-radius: var(--corn-radius-sm); background: none; text-align: left; font-size: var(--corn-text-xs); }
|
|
361
|
+
.hx-change-row:hover { background: var(--corn-line-soft); }
|
|
362
|
+
.hx-change-what { width: 56px; flex: none; color: var(--corn-text-3); }
|
|
363
|
+
|
|
364
|
+
/* The marks' colours, shared with the picture: the diff tokens, whose light values are theme-model.js `lightColor` of the dark ones */
|
|
365
|
+
.hx-mark-dot { display: inline-block; width: 12px; height: 12px; flex: none; margin-right: var(--corn-space-2); border-radius: 50%; border: var(--corn-border-strong) solid var(--corn-changed); vertical-align: -2px; }
|
|
491
366
|
.hx-legend-row .hx-mark-dot, .hx-change-row .hx-mark-dot { margin-right: 0; }
|
|
492
|
-
.hx-mark-dot--added { border-color: var(--
|
|
493
|
-
.hx-mark-dot--changed { border-color: var(--
|
|
494
|
-
.hx-mark-dot--removed { border-color: var(--
|
|
495
|
-
.hx-mark-dot--edit { border-color: var(--
|
|
367
|
+
.hx-mark-dot--added { border-color: var(--corn-added); border-style: dashed; }
|
|
368
|
+
.hx-mark-dot--changed { border-color: var(--corn-changed); }
|
|
369
|
+
.hx-mark-dot--removed { border-color: var(--corn-removed); background: color-mix(in srgb, var(--corn-removed) 25%, transparent); opacity: 0.7; }
|
|
370
|
+
.hx-mark-dot--edit { border-color: var(--corn-edit); }
|
|
496
371
|
|
|
497
372
|
/* The panel's proposal block: why, and what changes */
|
|
498
|
-
.hx-proposal-sec { padding:
|
|
499
|
-
.hx-proposal-sec--added { border-left-color: var(--
|
|
500
|
-
.hx-proposal-sec--changed { border-left-color: var(--
|
|
501
|
-
.hx-proposal-sec--removed { border-left-color: var(--
|
|
502
|
-
.hx-proposal-sec--edit { border-left-color: var(--
|
|
503
|
-
.hx-why { margin:
|
|
504
|
-
.hx-change { display: flex; flex-wrap: wrap; align-items: baseline; gap:
|
|
505
|
-
.hx-change-field { flex: none; min-width: 64px; color: var(--
|
|
506
|
-
.hx-change-before { color: var(--
|
|
507
|
-
.hx-change-arrow { color: var(--
|
|
508
|
-
.hx-change-after { color: var(--
|
|
509
|
-
.hx-change em { color: var(--
|
|
373
|
+
.hx-proposal-sec { padding: var(--corn-space-3) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-left-width: var(--corn-border-strong); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); margin: 0 0 var(--corn-space-2); font-family: var(--corn-font); }
|
|
374
|
+
.hx-proposal-sec--added { border-left-color: var(--corn-added); }
|
|
375
|
+
.hx-proposal-sec--changed { border-left-color: var(--corn-changed); }
|
|
376
|
+
.hx-proposal-sec--removed { border-left-color: var(--corn-removed); }
|
|
377
|
+
.hx-proposal-sec--edit { border-left-color: var(--corn-edit); }
|
|
378
|
+
.hx-why { margin: var(--corn-space-1) 0 var(--corn-space-2); color: var(--corn-text-2); font-size: var(--corn-text-sm); line-height: 1.5; }
|
|
379
|
+
.hx-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(var(--corn-space-1) / 2) var(--corn-space-3); padding: var(--corn-space-1) 0; border-top: var(--corn-border) solid var(--corn-line-soft); font-family: var(--corn-mono); font-size: var(--corn-text-xs); }
|
|
380
|
+
.hx-change-field { flex: none; min-width: 64px; color: var(--corn-text-3); }
|
|
381
|
+
.hx-change-before { color: var(--corn-bad); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--corn-bad) 50%, transparent); overflow-wrap: anywhere; }
|
|
382
|
+
.hx-change-arrow { color: var(--corn-text-3); }
|
|
383
|
+
.hx-change-after { color: var(--corn-ok); overflow-wrap: anywhere; }
|
|
384
|
+
.hx-change em { color: var(--corn-text-3); text-decoration: none; }
|
|
510
385
|
|
|
511
386
|
/* The node panel is a 480px slide-over from 768px: the bar makes room for it */
|
|
512
387
|
@media (min-width: 768px) { .hx-stage:has(.drawer-open) .hx-proposal-bar { width: min(720px, calc(100% - 504px)); } }
|
|
513
388
|
|
|
514
389
|
@media (max-width: 639px) {
|
|
515
390
|
.hx-menu--proposals { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
|
|
516
|
-
.hx-seg-btn { padding:
|
|
391
|
+
.hx-seg-btn { padding: var(--corn-space-1) var(--corn-space-4); }
|
|
517
392
|
}
|
|
518
393
|
|
|
519
394
|
/* ---- scenario player (scenario-ui.js): the bar while a scenario plays, and the scenario list --------- */
|
|
520
|
-
.hx-player { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; flex-direction: column; gap:
|
|
395
|
+
.hx-player { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; flex-direction: column; gap: var(--corn-space-3); padding: var(--corn-space-4) var(--corn-space-4) var(--corn-space-4); border-radius: var(--corn-radius-lg); z-index: 25; overflow: hidden; }
|
|
521
396
|
@media (max-width: 639px) { .hx-player { left: 12px; right: 56px; width: auto; transform: none; } }
|
|
522
|
-
.hx-player-head { display: flex; align-items: center; justify-content: space-between; gap:
|
|
523
|
-
.hx-player-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size:
|
|
524
|
-
.hx-player .hx-close { width: 28px; height: 28px; font-size:
|
|
397
|
+
.hx-player-head { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); }
|
|
398
|
+
.hx-player-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text-2); }
|
|
399
|
+
.hx-player .hx-close { width: 28px; height: 28px; font-size: var(--corn-text-sm); }
|
|
525
400
|
.hx-player-title { flex: 1; }
|
|
526
|
-
.hx-player-speed { flex: none; height: 28px; padding: 0
|
|
527
|
-
.hx-player-speed:focus-visible { outline:
|
|
528
|
-
.hx-player-text { margin: 0; min-height: 2.8em; font-size:
|
|
529
|
-
.hx-player-count { color: var(--
|
|
530
|
-
.hx-player-controls { display: flex; gap:
|
|
401
|
+
.hx-player-speed { flex: none; height: 28px; padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); cursor: pointer; }
|
|
402
|
+
.hx-player-speed:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 1px; }
|
|
403
|
+
.hx-player-text { margin: 0; min-height: 2.8em; font-size: var(--corn-text-base); line-height: 1.4; color: var(--corn-text); user-select: text; }
|
|
404
|
+
.hx-player-count { color: var(--corn-accent-text); font-weight: 600; white-space: nowrap; }
|
|
405
|
+
.hx-player-controls { display: flex; gap: var(--corn-space-3); }
|
|
531
406
|
.hx-player-controls .hx-btn { flex: 1; justify-content: center; }
|
|
532
407
|
.hx-player-controls .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
533
|
-
.hx-player-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--
|
|
534
|
-
.hx-player-fill { display: block; height: 100%; width: 0; background: var(--
|
|
408
|
+
.hx-player-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--corn-line-soft); }
|
|
409
|
+
.hx-player-fill { display: block; height: 100%; width: 0; background: var(--corn-accent-text); }
|
|
535
410
|
|
|
536
|
-
.hx-scenarios { position: absolute; top: 12px; left: 12px; max-width: min(320px, calc(100% - 24px)); padding:
|
|
537
|
-
.hx-scenarios summary { cursor: pointer; font-weight:
|
|
538
|
-
.hx-scenarios-item { display: block; width: 100%; margin-top:
|
|
539
|
-
.hx-scenarios-item:hover { background:
|
|
411
|
+
.hx-scenarios { position: absolute; top: 12px; left: 12px; max-width: min(320px, calc(100% - 24px)); padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius); font-size: var(--corn-text-sm); color: var(--corn-text-2); z-index: 12; }
|
|
412
|
+
.hx-scenarios summary { cursor: pointer; font-weight: 600; }
|
|
413
|
+
.hx-scenarios-item { display: block; width: 100%; margin-top: var(--corn-space-2); padding: var(--corn-space-2) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line-soft); border-radius: var(--corn-radius-sm); background: transparent; color: var(--corn-text); font-size: var(--corn-text-sm); text-align: left; cursor: pointer; }
|
|
414
|
+
.hx-scenarios-item:hover { background: color-mix(in srgb, var(--corn-accent-hover) 25%, transparent); }
|
|
540
415
|
/* With a proposal open the list is a row of its bar (scenario-ui.js mounts it there), so it opens in the bar's flow and the bar grows to hold it */
|
|
541
|
-
.hx-proposal-bar .hx-scenarios { position: static; max-width: none; max-height: 40dvh; margin-top:
|
|
416
|
+
.hx-proposal-bar .hx-scenarios { position: static; max-width: none; max-height: 40dvh; margin-top: var(--corn-space-2); padding: var(--corn-space-2) var(--corn-space-3); overflow-y: auto; border-radius: var(--corn-radius-sm); border-color: var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
|
|
542
417
|
|
|
543
418
|
/* ---- what-if editing (whatif.js): the controls under the proposal bar, the drag that draws an edge ---- */
|
|
544
|
-
.hx-whatif { margin-top:
|
|
419
|
+
.hx-whatif { margin-top: var(--corn-space-3); padding-top: var(--corn-space-3); border-top: var(--corn-border) solid color-mix(in srgb, var(--corn-edit) 30%, transparent); }
|
|
545
420
|
.hx-whatif[hidden] { display: none; }
|
|
546
|
-
.hx-whatif-row { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
421
|
+
.hx-whatif-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); }
|
|
547
422
|
.hx-whatif .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
548
|
-
.hx-whatif .hx-btn[aria-pressed="true"], .hx-whatif .hx-btn--active { background:
|
|
549
|
-
.hx-whatif-hint { margin:
|
|
550
|
-
.hx-whatif-msg { margin:
|
|
423
|
+
.hx-whatif .hx-btn[aria-pressed="true"], .hx-whatif .hx-btn--active { background: var(--corn-edit-text); border-color: var(--corn-edit); color: var(--corn-ground); }
|
|
424
|
+
.hx-whatif-hint { margin: var(--corn-space-2) 0 0; color: var(--corn-edit-text); }
|
|
425
|
+
.hx-whatif-msg { margin: var(--corn-space-2) 0 0; padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-removed) 12%, transparent); border: var(--corn-border) solid color-mix(in srgb, var(--corn-removed) 35%, transparent); color: var(--corn-bad); line-height: 1.4; }
|
|
551
426
|
.hx-whatif-msg[hidden], .hx-whatif-hint[hidden], .hx-whatif-notice[hidden], .hx-whatif-panel[hidden] { display: none; }
|
|
552
|
-
.hx-whatif-notice { margin:
|
|
553
|
-
.hx-whatif-panel { margin-top:
|
|
554
|
-
.hx-whatif-form { display: flex; flex-direction: column; gap:
|
|
555
|
-
.hx-whatif-field { display: flex; align-items: center; gap:
|
|
427
|
+
.hx-whatif-notice { margin: var(--corn-space-2) 0 0; color: var(--corn-warn); }
|
|
428
|
+
.hx-whatif-panel { margin-top: var(--corn-space-3); padding: var(--corn-space-3) var(--corn-space-3); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); border: var(--corn-border) solid color-mix(in srgb, var(--corn-edit) 25%, transparent); max-height: min(40vh, 320px); overflow: auto; }
|
|
429
|
+
.hx-whatif-form { display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
430
|
+
.hx-whatif-field { display: flex; align-items: center; gap: var(--corn-space-3); color: var(--corn-text-2); }
|
|
556
431
|
.hx-whatif-field > select, .hx-whatif-field > .hx-whatif-input { flex: 1; min-width: 0; }
|
|
557
|
-
.hx-whatif-input, .hx-whatif-field select, .hx-whatif select { padding:
|
|
558
|
-
.hx-whatif-input:focus, .hx-whatif-field select:focus { outline:
|
|
559
|
-
.hx-whatif-help { margin: 0; font-size:
|
|
432
|
+
.hx-whatif-input, .hx-whatif-field select, .hx-whatif select { padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); user-select: text; }
|
|
433
|
+
.hx-whatif-input:focus, .hx-whatif-field select:focus { outline: var(--corn-focus-width) solid var(--corn-edit); outline-offset: 1px; }
|
|
434
|
+
.hx-whatif-help { margin: 0; font-size: var(--corn-text-xs); }
|
|
560
435
|
.hx-whatif-pair { margin: 0; }
|
|
561
|
-
.hx-whatif-actions { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
562
|
-
.hx-whatif-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap:
|
|
563
|
-
.hx-whatif-edit { display: flex; align-items: center; gap:
|
|
436
|
+
.hx-whatif-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); }
|
|
437
|
+
.hx-whatif-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
438
|
+
.hx-whatif-edit { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
564
439
|
.hx-whatif-edit-text { flex: 1; min-width: 0; line-height: 1.35; }
|
|
565
|
-
.hx-whatif-step { display: flex; align-items: flex-start; gap:
|
|
566
|
-
.hx-whatif-step.is-current { background:
|
|
567
|
-
.hx-whatif-num { flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; background:
|
|
568
|
-
.hx-whatif-stepbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap:
|
|
440
|
+
.hx-whatif-step { display: flex; align-items: flex-start; gap: var(--corn-space-2); padding: var(--corn-space-1); border-radius: var(--corn-radius-sm); }
|
|
441
|
+
.hx-whatif-step.is-current { background: color-mix(in srgb, var(--corn-edit) 18%, transparent); }
|
|
442
|
+
.hx-whatif-num { flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--corn-edit) 30%, transparent); color: var(--corn-text); font-size: var(--corn-text-xs); font-weight: 700; cursor: pointer; }
|
|
443
|
+
.hx-whatif-stepbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
569
444
|
.hx-whatif-stepbody .hx-whatif-input { width: 100%; }
|
|
570
|
-
.hx-whatif-target { font-size:
|
|
571
|
-
.hx-whatif-addstep { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
445
|
+
.hx-whatif-target { font-size: var(--corn-text-xs); }
|
|
446
|
+
.hx-whatif-addstep { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); margin-top: var(--corn-space-3); }
|
|
572
447
|
.hx-whatif-addstep .hx-whatif-field { flex: 1 1 220px; }
|
|
573
|
-
.hx-whatif-drawer .hx-btn { margin-top:
|
|
574
|
-
.hx-whatif-edges { margin-top:
|
|
448
|
+
.hx-whatif-drawer .hx-btn { margin-top: var(--corn-space-1); }
|
|
449
|
+
.hx-whatif-edges { margin-top: var(--corn-space-3); color: var(--corn-text-2); }
|
|
575
450
|
.hx-whatif-edges summary { cursor: pointer; }
|
|
576
|
-
.hx-whatif-edges .hx-whatif-list { margin-top:
|
|
451
|
+
.hx-whatif-edges .hx-whatif-list { margin-top: var(--corn-space-2); max-height: 200px; overflow: auto; }
|
|
577
452
|
#graph-canvas.is-drawing-edge { touch-action: none; }
|
|
578
453
|
.hx-rubber { position: absolute; inset: 0; pointer-events: none; z-index: 14; }
|
|
579
454
|
.hx-rubber svg { display: block; overflow: visible; }
|
|
580
|
-
.hx-rubber-line { stroke: var(--
|
|
581
|
-
.hx-rubber-from, .hx-rubber-to { fill:
|
|
455
|
+
.hx-rubber-line { stroke: var(--corn-edit); stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
|
|
456
|
+
.hx-rubber-from, .hx-rubber-to { fill: color-mix(in srgb, var(--corn-edit) 15%, transparent); stroke: var(--corn-edit); stroke-width: 2; }
|
|
582
457
|
/* Approve and send back (review.js, TOPO-12): under the edit controls on the proposal bar */
|
|
583
|
-
.hx-review { margin-top:
|
|
458
|
+
.hx-review { margin-top: var(--corn-space-3); padding-top: var(--corn-space-3); border-top: var(--corn-border) solid color-mix(in srgb, var(--corn-added) 30%, transparent); display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
584
459
|
.hx-review[hidden] { display: none; }
|
|
585
|
-
.hx-review-label { color: var(--
|
|
586
|
-
.hx-review-note { width: 100%; min-height: 44px; resize: vertical; padding:
|
|
587
|
-
.hx-review-note:focus { outline:
|
|
588
|
-
.hx-review-row { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
460
|
+
.hx-review-label { color: var(--corn-text-3); font-size: var(--corn-text-xs); }
|
|
461
|
+
.hx-review-note { width: 100%; min-height: 44px; resize: vertical; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); line-height: 1.4; user-select: text; }
|
|
462
|
+
.hx-review-note:focus { outline: var(--corn-focus-width) solid var(--corn-added); outline-offset: 1px; }
|
|
463
|
+
.hx-review-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2) var(--corn-space-3); }
|
|
589
464
|
.hx-review .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
590
|
-
.hx-btn--approve { border-color:
|
|
591
|
-
.hx-btn--approve:hover { background:
|
|
592
|
-
.hx-review-status { color: var(--
|
|
465
|
+
.hx-btn--approve { border-color: color-mix(in srgb, var(--corn-added) 50%, transparent); color: var(--corn-added-text); }
|
|
466
|
+
.hx-btn--approve:hover { background: color-mix(in srgb, var(--corn-added) 20%, transparent); color: var(--corn-added-text); }
|
|
467
|
+
.hx-review-status { color: var(--corn-added-text); font-variant-numeric: tabular-nums; }
|
|
593
468
|
.hx-review-status[hidden], .hx-review-msg[hidden], .hx-review-line[hidden] { display: none; }
|
|
594
|
-
.hx-review-msg { margin: 0; padding:
|
|
595
|
-
.hx-review-line { margin: 0; color: var(--
|
|
596
|
-
.hx-proposal-reviewed { color: var(--
|
|
469
|
+
.hx-review-msg { margin: 0; padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-removed) 12%, transparent); border: var(--corn-border) solid color-mix(in srgb, var(--corn-removed) 35%, transparent); color: var(--corn-bad); line-height: 1.4; }
|
|
470
|
+
.hx-review-line { margin: 0; color: var(--corn-text-2); line-height: 1.4; }
|
|
471
|
+
.hx-proposal-reviewed { color: var(--corn-added-text); }
|
|
597
472
|
/* A proposal's mockups (mockups.js): the buttons in a node's panel and the window one opens in. A mockup is untrusted content, shown in an <img> or a sandboxed <iframe>. */
|
|
598
|
-
.hx-mockup-list { list-style: none; margin:
|
|
599
|
-
.hx-mockup-item { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
473
|
+
.hx-mockup-list { list-style: none; margin: var(--corn-space-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
474
|
+
.hx-mockup-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-1) var(--corn-space-3); }
|
|
600
475
|
.hx-mockup-open { max-width: 100%; white-space: normal; text-align: left; }
|
|
601
|
-
.hx-mockup-state { margin: 0; font-size:
|
|
602
|
-
.hx-mockup-state--approved { color: var(--
|
|
603
|
-
.hx-mockup-state--changed { color: var(--
|
|
604
|
-
.hx-mockup-state--missing { color: var(--
|
|
605
|
-
.hx-mockup-dialog { position: fixed; z-index: 60; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap:
|
|
606
|
-
.hx-mockup-dialog:focus { outline:
|
|
607
|
-
.hx-mockup-head { display: flex; align-items: center; justify-content: space-between; gap:
|
|
608
|
-
.hx-mockup-title { margin: 0; font-size:
|
|
609
|
-
.hx-mockup-stage { min-height: 0; overflow: auto; display: flex; justify-content: center; border-radius: var(--radius-
|
|
476
|
+
.hx-mockup-state { margin: 0; font-size: var(--corn-text-xs); color: var(--corn-text-2); }
|
|
477
|
+
.hx-mockup-state--approved { color: var(--corn-added-text); }
|
|
478
|
+
.hx-mockup-state--changed { color: var(--corn-warn); font-weight: 600; }
|
|
479
|
+
.hx-mockup-state--missing { color: var(--corn-bad); }
|
|
480
|
+
.hx-mockup-dialog { position: fixed; z-index: 60; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: var(--corn-space-3); width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: var(--corn-space-4) var(--corn-space-4) var(--corn-space-4); border-radius: var(--corn-radius-lg); border: var(--corn-border) solid var(--corn-line); background: var(--corn-ground); color: var(--corn-text); box-shadow: var(--corn-shadow), 0 0 0 100vmax var(--corn-scrim); }
|
|
481
|
+
.hx-mockup-dialog:focus { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
482
|
+
.hx-mockup-head { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-4); }
|
|
483
|
+
.hx-mockup-title { margin: 0; font-size: var(--corn-text-base); font-weight: 600; color: var(--corn-text); }
|
|
484
|
+
.hx-mockup-stage { min-height: 0; overflow: auto; display: flex; justify-content: center; border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-mockup-ground); }
|
|
610
485
|
.hx-mockup-img { display: block; max-width: 100%; height: auto; object-fit: contain; }
|
|
611
|
-
.hx-mockup-frame { display: block; width: 100%; height: min(560px, calc(100vh - 140px)); border: 0; background:
|
|
486
|
+
.hx-mockup-frame { display: block; width: 100%; height: min(560px, calc(100vh - 140px)); border: 0; background: var(--corn-mockup-ground); }
|
|
612
487
|
|
|
613
488
|
/* /?bench=1: the run's numbers, bottom left (bench.js) */
|
|
614
|
-
.bench-readout { position: fixed; left: 12px; bottom: 12px; z-index: 50; max-width: calc(100vw - 24px); padding:
|
|
489
|
+
.bench-readout { position: fixed; left: 12px; bottom: 12px; z-index: 50; max-width: calc(100vw - 24px); padding: var(--corn-space-3) var(--corn-space-4); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 88%, transparent); color: var(--corn-text-2); font-family: var(--corn-mono); font-size: var(--corn-text-xs); line-height: 1.5; pointer-events: none; }
|
|
615
490
|
.bench-readout p { margin: 0; }
|
|
616
491
|
|
|
617
492
|
/* ---- phone bottom sheets (sheets.js, TOPO-18) ----------------------------------------------------
|
|
@@ -626,18 +501,18 @@ button.hx-proposal-item:focus-visible { outline: 2px solid var(--hx-indigo); out
|
|
|
626
501
|
@media (max-width: 767px) {
|
|
627
502
|
.hx-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
|
|
628
503
|
.hx-dock > * { pointer-events: auto; }
|
|
629
|
-
.hx-dock > .hx-sheet { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; max-width: none; margin: 0; transform: none; border-radius:
|
|
504
|
+
.hx-dock > .hx-sheet { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; max-width: none; margin: 0; transform: none; border-radius: var(--corn-radius-lg) var(--corn-radius-lg) 0 0; border-bottom: 0; box-shadow: 0 -8px 24px color-mix(in srgb, var(--corn-shadow-color) 70%, transparent); overscroll-behavior: contain; animation: hx-sheet-in 0.2s ease-out; --sheet-pb: var(--corn-space-3); }
|
|
630
505
|
.hx-dock > .hx-sheet[data-sheet-last]:not(.hx-drawer), .hx-dock > .hx-drawer[data-sheet-last][data-sheet-state="peek"] { padding-bottom: calc(var(--sheet-pb) + env(safe-area-inset-bottom, 0px)); }
|
|
631
506
|
.hx-sheet-handle { display: flex; flex: none; align-items: center; justify-content: center; width: 100%; height: 22px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; }
|
|
632
|
-
.hx-sheet-handle span { width: 40px; height: 5px; border-radius:
|
|
633
|
-
.hx-sheet-handle:focus-visible { outline:
|
|
507
|
+
.hx-sheet-handle span { width: 40px; height: 5px; border-radius: var(--corn-radius-pill); background: var(--corn-surface-3); }
|
|
508
|
+
.hx-sheet-handle:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: -2px; border-radius: var(--corn-radius); }
|
|
634
509
|
.hx-backdrop { display: none; }
|
|
635
510
|
.hx-stage[data-sheet-open="drawer"] .hx-backdrop:not([hidden]) { display: block; }
|
|
636
511
|
/* The zoom buttons ride above the sheets */
|
|
637
512
|
.hx-mobile-zoom { bottom: calc(16px + var(--hx-covered, 0px)); }
|
|
638
513
|
|
|
639
514
|
/* The proposal bar */
|
|
640
|
-
.hx-proposal-bar { max-height: 50dvh; overflow-y: auto; padding: 0
|
|
515
|
+
.hx-proposal-bar { max-height: 50dvh; overflow-y: auto; padding: 0 var(--corn-space-4) var(--corn-space-3); }
|
|
641
516
|
.hx-proposal-bar[data-sheet-state="peek"] > :not(.hx-sheet-handle):not(#proposal-message):not(#proposal-body),
|
|
642
517
|
.hx-proposal-bar[data-sheet-state="peek"] #proposal-body > :not(.hx-proposal-head),
|
|
643
518
|
.hx-proposal-bar[data-sheet-state="peek"] .hx-proposal-head > :not(.hx-proposal-name):not(.hx-proposal-chip) { display: none; }
|
|
@@ -645,14 +520,14 @@ button.hx-proposal-item:focus-visible { outline: 2px solid var(--hx-indigo); out
|
|
|
645
520
|
.hx-proposal-bar[data-sheet-state="expanded"] .hx-scenarios, .hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-changes, .hx-proposal-bar[data-sheet-state="expanded"] .hx-whatif-panel { max-height: none; overflow: visible; }
|
|
646
521
|
|
|
647
522
|
/* The scenario player: the title, then the step counter and its text on two lines */
|
|
648
|
-
.hx-player { max-height: 50dvh; overflow: hidden; gap:
|
|
523
|
+
.hx-player { max-height: 50dvh; overflow: hidden; gap: var(--corn-space-2); padding: 0 var(--corn-space-4) var(--corn-space-4); --sheet-pb: var(--corn-space-4); }
|
|
649
524
|
.hx-player[data-sheet-state="expanded"] { overflow-y: auto; }
|
|
650
525
|
.hx-player[data-sheet-state="peek"] > :not(.hx-sheet-handle):not(.hx-player-head):not(.hx-player-text):not(.hx-player-track) { display: none; }
|
|
651
|
-
.hx-player[data-sheet-state="peek"] .hx-player-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-height: 0; overflow: hidden; font-size:
|
|
526
|
+
.hx-player[data-sheet-state="peek"] .hx-player-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-height: 0; overflow: hidden; font-size: var(--corn-text-md); }
|
|
652
527
|
|
|
653
528
|
/* The node panel: its title and type until expanded */
|
|
654
529
|
.hx-drawer { max-height: 60dvh; }
|
|
655
|
-
.hx-drawer[data-sheet-state="peek"] .hx-drawer-body { flex: none; padding: 0
|
|
530
|
+
.hx-drawer[data-sheet-state="peek"] .hx-drawer-body { flex: none; padding: 0 var(--corn-space-5) var(--corn-space-3); gap: 0; overflow: hidden; }
|
|
656
531
|
.hx-drawer[data-sheet-state="peek"] .hx-drawer-body > :not(.hx-drawer-head), .hx-drawer[data-sheet-state="peek"] .hx-drawer-foot { display: none; }
|
|
657
532
|
.hx-drawer[data-sheet-state="peek"] .hx-drawer-head { padding-bottom: 0; border-bottom: 0; }
|
|
658
533
|
.hx-drawer[data-sheet-state="peek"] .hx-drawer-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -666,27 +541,27 @@ button.hx-proposal-item:focus-visible { outline: 2px solid var(--hx-indigo); out
|
|
|
666
541
|
/* ---- the live layer (live.js, spec 0029): the chip in the toolbar, its menu, and its part of the node panel ---- */
|
|
667
542
|
.hx-live-chip { max-width: 240px; min-width: 0; }
|
|
668
543
|
@media (min-width: 768px) { .hx-live-chip-text { display: inline-block; min-width: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; } }
|
|
669
|
-
.hx-live-chip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--
|
|
670
|
-
.hx-live[data-tone="ok"] .hx-live-chip-dot { background:
|
|
671
|
-
.hx-live[data-tone="stale"] .hx-live-chip-dot { background:
|
|
672
|
-
.hx-live[data-tone="error"] .hx-live-chip-dot { background:
|
|
673
|
-
.hx-live[data-tone="error"] .hx-live-chip { border-color:
|
|
544
|
+
.hx-live-chip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--corn-text-3); }
|
|
545
|
+
.hx-live[data-tone="ok"] .hx-live-chip-dot { background: var(--corn-ok); box-shadow: 0 0 calc(var(--corn-glow) * 0.75) color-mix(in srgb, var(--corn-ok) 70%, transparent); }
|
|
546
|
+
.hx-live[data-tone="stale"] .hx-live-chip-dot { background: var(--corn-changed); }
|
|
547
|
+
.hx-live[data-tone="error"] .hx-live-chip-dot { background: var(--corn-removed); box-shadow: 0 0 calc(var(--corn-glow) * 0.75) color-mix(in srgb, var(--corn-removed) 60%, transparent); }
|
|
548
|
+
.hx-live[data-tone="error"] .hx-live-chip { border-color: color-mix(in srgb, var(--corn-removed) 40%, transparent); }
|
|
674
549
|
.hx-menu--live { width: 320px; }
|
|
675
|
-
.hx-live-line { margin: 0 0
|
|
676
|
-
.hx-live-line--main { color: var(--
|
|
677
|
-
.hx-live-row { display: flex; align-items: center; justify-content: space-between; gap:
|
|
678
|
-
.hx-live-tag { margin-left:
|
|
679
|
-
.hx-live-photo { display: block; max-width: 100%; max-height: 180px; margin:
|
|
680
|
-
.hx-live-list { margin:
|
|
550
|
+
.hx-live-line { margin: 0 0 var(--corn-space-2); color: var(--corn-text-2); font-size: var(--corn-text-sm); line-height: 1.4; user-select: text; }
|
|
551
|
+
.hx-live-line--main { color: var(--corn-text); font-weight: 600; }
|
|
552
|
+
.hx-live-row { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); margin-top: var(--corn-space-3); }
|
|
553
|
+
.hx-live-tag { margin-left: var(--corn-space-2); padding: 0 var(--corn-space-1); border-radius: var(--corn-radius-xs); background: var(--corn-ok-soft); color: var(--corn-ok); font-size: var(--corn-text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
|
|
554
|
+
.hx-live-photo { display: block; max-width: 100%; max-height: 180px; margin: var(--corn-space-2) 0; border-radius: var(--corn-radius-sm); object-fit: cover; }
|
|
555
|
+
.hx-live-list { margin: var(--corn-space-1) 0 0; padding: 0 0 0 var(--corn-space-1); list-style: none; font-size: var(--corn-text-sm); line-height: 1.6; }
|
|
681
556
|
/* The token field (live.js): shown while the live layer is off for want of a token */
|
|
682
|
-
.hx-live-token { margin:
|
|
683
|
-
.hx-live-token-label { display: block; margin-bottom:
|
|
684
|
-
.hx-live-token-row { display: flex; gap:
|
|
685
|
-
.hx-live-token-input { flex: 1; min-width: 0; padding:
|
|
686
|
-
.hx-live-token-input:focus { outline: none; border-color:
|
|
687
|
-
.hx-live-help code { font-family: var(--
|
|
688
|
-
.hx-live-second { font-size:
|
|
689
|
-
.hx-live-buttons { display: inline-flex; gap:
|
|
557
|
+
.hx-live-token { margin: var(--corn-space-3) 0 var(--corn-space-1); padding-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line-soft); }
|
|
558
|
+
.hx-live-token-label { display: block; margin-bottom: var(--corn-space-1); color: var(--corn-text); font-size: var(--corn-text-sm); font-weight: 600; }
|
|
559
|
+
.hx-live-token-row { display: flex; gap: var(--corn-space-2); align-items: center; margin-bottom: var(--corn-space-2); }
|
|
560
|
+
.hx-live-token-input { flex: 1; min-width: 0; padding: var(--corn-space-2) var(--corn-space-3); font-size: var(--corn-text-sm); }
|
|
561
|
+
.hx-live-token-input:focus { outline: none; border-color: var(--corn-accent-hover); }
|
|
562
|
+
.hx-live-help code { font-family: var(--corn-mono); font-size: var(--corn-text-2xs); color: var(--corn-text-2); overflow-wrap: anywhere; }
|
|
563
|
+
.hx-live-second { font-size: var(--corn-text-xs); }
|
|
564
|
+
.hx-live-buttons { display: inline-flex; gap: var(--corn-space-2); }
|
|
690
565
|
@media (max-width: 639px) {
|
|
691
566
|
.hx-menu--live { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
|
|
692
567
|
}
|
|
@@ -695,72 +570,59 @@ button.hx-proposal-item:focus-visible { outline: 2px solid var(--hx-indigo); out
|
|
|
695
570
|
|
|
696
571
|
/* ── Checked scenarios (PHY-10, check.js): the step's state on the player bar and the phone's sheet ──
|
|
697
572
|
The pill sits in the head, so the phone's peek shows it; the line and the As row are the expanded part. */
|
|
698
|
-
.hx-player-verdict { flex: none; padding:
|
|
699
|
-
.hx-player-check { margin: 0; padding:
|
|
700
|
-
.hx-player-check-detail { display: block; font-size:
|
|
701
|
-
.hx-player-verdict[data-tone="allowed"], .hx-player-check[data-tone="allowed"] { color: var(--
|
|
702
|
-
.hx-player-verdict[data-tone="refused"], .hx-player-check[data-tone="refused"] { color: var(--
|
|
703
|
-
.hx-player-verdict[data-tone="mismatch"], .hx-player-check[data-tone="mismatch"] { color: var(--
|
|
573
|
+
.hx-player-verdict { flex: none; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border-radius: var(--corn-radius-pill); font-size: var(--corn-text-xs); font-weight: 600; white-space: nowrap; border: var(--corn-border) solid var(--corn-line); color: var(--corn-text-2); background: color-mix(in srgb, var(--corn-text-3) 12%, transparent); }
|
|
574
|
+
.hx-player-check { margin: 0; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); font-size: var(--corn-text-md); line-height: 1.4; color: var(--corn-text-2); background: color-mix(in srgb, var(--corn-text-3) 10%, transparent); border-left: var(--corn-border-strong) solid color-mix(in srgb, var(--corn-text-3) 50%, transparent); user-select: text; }
|
|
575
|
+
.hx-player-check-detail { display: block; font-size: var(--corn-text-xs); color: var(--corn-text-3); }
|
|
576
|
+
.hx-player-verdict[data-tone="allowed"], .hx-player-check[data-tone="allowed"] { color: var(--corn-ok); background: var(--corn-ok-soft); border-color: color-mix(in srgb, var(--corn-ok) 60%, transparent); }
|
|
577
|
+
.hx-player-verdict[data-tone="refused"], .hx-player-check[data-tone="refused"] { color: var(--corn-bad); background: color-mix(in srgb, var(--corn-removed) 16%, transparent); border-color: color-mix(in srgb, var(--corn-removed) 70%, transparent); }
|
|
578
|
+
.hx-player-verdict[data-tone="mismatch"], .hx-player-check[data-tone="mismatch"] { color: var(--corn-warn); background: color-mix(in srgb, var(--corn-changed) 16%, transparent); border-color: color-mix(in srgb, var(--corn-changed) 70%, transparent); }
|
|
704
579
|
.hx-player-verdict[data-tone="pending"] { opacity: 0.75; }
|
|
705
|
-
.hx-player-as { display: flex; align-items: center; gap:
|
|
706
|
-
.hx-player-as-label { display: inline-flex; align-items: center; gap:
|
|
707
|
-
.hx-player-as .hx-btn { padding:
|
|
580
|
+
.hx-player-as { display: flex; align-items: center; gap: var(--corn-space-3); flex-wrap: wrap; font-size: var(--corn-text-sm); color: var(--corn-text-2); }
|
|
581
|
+
.hx-player-as-label { display: inline-flex; align-items: center; gap: var(--corn-space-2); }
|
|
582
|
+
.hx-player-as .hx-btn { padding: var(--corn-space-1) var(--corn-space-3); font-size: var(--corn-text-sm); }
|
|
708
583
|
.hx-player-as .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
709
|
-
.hx-player-as-sum { margin-left: auto; font-size:
|
|
584
|
+
.hx-player-as-sum { margin-left: auto; font-size: var(--corn-text-xs); }
|
|
710
585
|
.hx-player-as[hidden], .hx-player-verdict[hidden], .hx-player-check[hidden] { display: none; }
|
|
711
586
|
|
|
712
587
|
/* ---- cloud nodes (spec 0031, CLOUD-06): the panel's badges, plan and Used by; the `when` line styles -- */
|
|
713
588
|
/* The `when` swatches mirror cloud-model.js WHEN_STYLES (run solid, deploy dashed, renew dotted; red, amber, violet) */
|
|
714
|
-
.hx-swatch-when { width: 18px; height: 2px; border-radius: 0; color: var(--
|
|
715
|
-
.hx-swatch-when--run { color:
|
|
716
|
-
.hx-swatch-when--deploy { color:
|
|
717
|
-
.hx-swatch-when--renew { color:
|
|
718
|
-
.hx-swatch-when--plain { color: var(--
|
|
719
|
-
.hx-cloud-badges { display: flex; flex-wrap: wrap; gap:
|
|
720
|
-
.hx-cloud-badge, .hx-cloud-plan { padding:
|
|
721
|
-
.hx-cloud-badge--kind { border-color:
|
|
722
|
-
.hx-cloud-badge--web { border-color:
|
|
589
|
+
.hx-swatch-when { width: 18px; height: 2px; border-radius: 0; color: var(--corn-text-2); background: currentColor; }
|
|
590
|
+
.hx-swatch-when--run { color: var(--corn-removed); }
|
|
591
|
+
.hx-swatch-when--deploy { color: var(--corn-changed); background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 8px); }
|
|
592
|
+
.hx-swatch-when--renew { color: var(--corn-edit); background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); }
|
|
593
|
+
.hx-swatch-when--plain { color: var(--corn-text-2); } /* the legend: the map draws every call in the calls colour, so only the pattern is the key */
|
|
594
|
+
.hx-cloud-badges { display: flex; flex-wrap: wrap; gap: var(--corn-space-1); padding-top: var(--corn-space-2); }
|
|
595
|
+
.hx-cloud-badge, .hx-cloud-plan { padding: calc(var(--corn-space-1) / 2) var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid color-mix(in srgb, var(--corn-text-3) 35%, transparent); background: color-mix(in srgb, var(--corn-text-3) 12%, transparent); color: var(--corn-text-2); font-family: var(--corn-font); font-size: var(--corn-text-2xs); font-weight: 600; }
|
|
596
|
+
.hx-cloud-badge--kind { border-color: color-mix(in srgb, var(--corn-info) 45%, transparent); background: var(--corn-info-soft); color: var(--corn-info); }
|
|
597
|
+
.hx-cloud-badge--web { border-color: color-mix(in srgb, var(--corn-text-2) 45%, transparent); background: color-mix(in srgb, var(--corn-text-2) 12%, transparent); color: var(--corn-text-2); }
|
|
723
598
|
.hx-cloud-plan { margin-left: auto; }
|
|
724
|
-
.hx-cloud-plan--free { border-color:
|
|
725
|
-
.hx-cloud-plan--paid { border-color:
|
|
726
|
-
.hx-cloud-plan--unknown { border-style: dashed; color: var(--
|
|
727
|
-
.hx-cloud-plan--off { border-color:
|
|
728
|
-
.hx-cloud-plan-note { padding-top:
|
|
729
|
-
.hx-cloud-breaks { padding:
|
|
730
|
-
.hx-cloud-when { padding-top:
|
|
731
|
-
.hx-cloud-when-head { display: flex; align-items: center; gap:
|
|
599
|
+
.hx-cloud-plan--free { border-color: color-mix(in srgb, var(--corn-ok) 45%, transparent); background: var(--corn-ok-soft); color: var(--corn-ok); }
|
|
600
|
+
.hx-cloud-plan--paid { border-color: color-mix(in srgb, var(--corn-warn) 50%, transparent); background: var(--corn-warn-soft); color: var(--corn-warn); }
|
|
601
|
+
.hx-cloud-plan--unknown { border-style: dashed; color: var(--corn-text-3); }
|
|
602
|
+
.hx-cloud-plan--off { border-color: color-mix(in srgb, var(--corn-bad) 45%, transparent); background: var(--corn-bad-soft); color: var(--corn-bad); }
|
|
603
|
+
.hx-cloud-plan-note { padding-top: calc(var(--corn-space-1) / 2); text-align: right; font-size: var(--corn-text-2xs); }
|
|
604
|
+
.hx-cloud-breaks { padding: var(--corn-space-1) 0 calc(var(--corn-space-1) / 2); color: var(--corn-text-2); font-family: var(--corn-font); line-height: 1.5; }
|
|
605
|
+
.hx-cloud-when { padding-top: var(--corn-space-1); }
|
|
606
|
+
.hx-cloud-when-head { display: flex; align-items: center; gap: var(--corn-space-2); padding: calc(var(--corn-space-1) / 2) 0; font-weight: 600; }
|
|
732
607
|
.hx-cloud-when-head .hx-swatch-when { flex: none; }
|
|
733
|
-
.hx-cloud-fold > summary { cursor: pointer; padding:
|
|
734
|
-
.hx-cloud-fold[open] > summary { color: var(--
|
|
735
|
-
.hx-cloud-browser { color: var(--
|
|
608
|
+
.hx-cloud-fold > summary { cursor: pointer; padding: calc(var(--corn-space-1) / 2) 0 calc(var(--corn-space-1) / 2) var(--corn-space-5); color: var(--corn-text-2); }
|
|
609
|
+
.hx-cloud-fold[open] > summary { color: var(--corn-text-2); }
|
|
610
|
+
.hx-cloud-browser { color: var(--corn-info); font-size: var(--corn-text-2xs); }
|
|
736
611
|
.hx-cloud-play { width: 100%; justify-content: center; } /* the cloud panel's "Play: X is down" (spec 0031 section 8) */
|
|
737
612
|
|
|
738
|
-
/* ----
|
|
739
|
-
A panel glyph's colour comes from script (the flow or kind it stands for, --glyph):
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
.hx-glyph { color: var(--glyph); color: color-mix(in srgb, var(--glyph) var(--hx-glyph-mix), #0f172a); }
|
|
743
|
-
:root[data-theme="light"] .hx-swatch-when--run { color: #f64c4c; }
|
|
744
|
-
:root[data-theme="light"] .hx-swatch-when--deploy { color: #b28103; }
|
|
745
|
-
:root[data-theme="light"] .hx-swatch-when--renew { color: #9472f9; }
|
|
746
|
-
:root[data-theme="light"] .hx-live[data-tone="ok"] .hx-live-chip-dot { background: #229c70; box-shadow: none; }
|
|
747
|
-
:root[data-theme="light"] .hx-live[data-tone="stale"] .hx-live-chip-dot { background: #b28103; }
|
|
748
|
-
:root[data-theme="light"] .hx-live[data-tone="error"] .hx-live-chip-dot { background: #f64c4c; box-shadow: none; }
|
|
749
|
-
:root[data-theme="light"] .hx-live-dot { box-shadow: none; }
|
|
750
|
-
:root[data-theme="light"] .hx-dots span { box-shadow: 0 0 0 1px #fff; }
|
|
751
|
-
/* The closed panel waits just off the right edge: its shadow would show there on a light ground */
|
|
752
|
-
:root[data-theme="light"] .hx-drawer { box-shadow: -10px 0 30px -12px rgba(15, 23, 42, 0.18); }
|
|
753
|
-
:root[data-theme="light"] .hx-drawer:not(.drawer-open) { box-shadow: none; }
|
|
754
|
-
:root[data-theme="light"] .hx-btn--active, :root[data-theme="light"] .hx-btn--active:hover, :root[data-theme="light"] .hx-seg-btn[aria-pressed="true"] { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); }
|
|
613
|
+
/* ---- a panel glyph (MAP-01) ----------------------------------------------------------------------
|
|
614
|
+
A panel glyph's colour comes from script (the flow or kind it stands for, --glyph): mixed with the text colour by
|
|
615
|
+
--corn-glyph-mix (all of it on dark, 45% on light), so a pale yellow arrow still reads on the light ground. */
|
|
616
|
+
.hx-glyph { color: var(--glyph); color: color-mix(in srgb, var(--glyph) var(--corn-glyph-mix), var(--corn-text)); }
|
|
755
617
|
|
|
756
618
|
/* ---- keyboard and screen reader (MAP-02, keyboard.js) ------------------------------------------
|
|
757
619
|
Text only a screen reader reads (the heading, the map's keys, the announcer); a focus ring on everything that
|
|
758
620
|
takes the focus, the map included (the more specific rings above still win where they are set). */
|
|
759
|
-
.hx-sr-only { position: absolute !important; width: 1px; height: 1px; margin:
|
|
760
|
-
:where(button, a[href], summary, select, textarea, [tabindex]):focus-visible { outline:
|
|
761
|
-
#graph-canvas:focus-visible { outline:
|
|
621
|
+
.hx-sr-only { position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
622
|
+
:where(button, a[href], summary, select, textarea, [tabindex]):focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
623
|
+
#graph-canvas:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: -3px; }
|
|
762
624
|
.hx-drawer-title:focus { outline: none; }
|
|
763
|
-
.hx-drawer-title:focus-visible { outline:
|
|
625
|
+
.hx-drawer-title:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
764
626
|
|
|
765
627
|
/* Sign out (when sign-in is on): a form in the header, inline with the links */
|
|
766
628
|
.cf-sign-out { display: inline-flex; margin: 0; }
|
|
@@ -773,14 +635,14 @@ button.hx-proposal-item:focus-visible { outline: 2px solid var(--hx-indigo); out
|
|
|
773
635
|
.hx-brand { min-width: 24px; min-height: 24px; justify-content: center; }
|
|
774
636
|
.hx-header .hx-btn { min-width: 24px; }
|
|
775
637
|
.cf-sign-out .hx-btn { width: 28px; height: 28px; padding: 0; justify-content: center; }
|
|
776
|
-
.cf-sign-out-icon { display: inline; font-size:
|
|
777
|
-
.cf-sign-out-text { position: absolute; width: 1px; height: 1px; margin:
|
|
638
|
+
.cf-sign-out-icon { display: inline; font-size: var(--corn-text-base); }
|
|
639
|
+
.cf-sign-out-text { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
778
640
|
}
|
|
779
641
|
/* Narrower still (320px, the reflow width): the left of the header scrolls sideways rather than running under the
|
|
780
642
|
right, so nothing overlaps; its menus open fixed under the header, as the Proposals and Live menus already do there,
|
|
781
643
|
so the scroll cannot clip them. The padding keeps the focus rings inside the scrolled box. */
|
|
782
644
|
@media (max-width: 639px) {
|
|
783
|
-
.hx-header-left { overflow-x: auto; scrollbar-width: none; padding-block:
|
|
645
|
+
.hx-header-left { overflow-x: auto; scrollbar-width: none; padding-block: var(--corn-space-1); }
|
|
784
646
|
.hx-header-left::-webkit-scrollbar { display: none; }
|
|
785
647
|
#legend-dropdown.hx-menu { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
|
|
786
648
|
}
|
|
@@ -788,17 +650,20 @@ button.hx-proposal-item:focus-visible { outline: 2px solid var(--hx-indigo); out
|
|
|
788
650
|
/* ---- the issues and PRs panel (forge-panel.js, CF-07) -------------------------------------------
|
|
789
651
|
A slide-over from the left from 768px (the node panel is the one from the right), a bottom sheet in #sheet-dock below.
|
|
790
652
|
Closed, it is inert (forge-panel.js), and off screen or not displayed. Only the tokens above are used, so it follows the theme. */
|
|
791
|
-
.hx-btn--forge { border-color: var(--
|
|
792
|
-
.hx-btn--forge[aria-expanded="true"] { background: var(--
|
|
793
|
-
.hx-forge-lit { padding: 0
|
|
653
|
+
.hx-btn--forge { border-color: var(--corn-line); }
|
|
654
|
+
.hx-btn--forge[aria-expanded="true"] { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); }
|
|
655
|
+
.hx-forge-lit { padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-warn); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); color: var(--corn-warn); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
794
656
|
@media (max-width: 767px) { .hx-btn--forge { width: 28px; height: 28px; padding: 0; justify-content: center; } .hx-forge-lit { display: none; } }
|
|
795
|
-
|
|
657
|
+
/* A changed file's status column, and the nodes under it that line up past it */
|
|
658
|
+
.hx-forge { --hx-forge-status-w: 56px; }
|
|
659
|
+
.hx-forge { display: flex; flex-direction: column; z-index: 40; border-color: var(--corn-surface-2); pointer-events: none; touch-action: pan-y; transition: transform 0.2s ease-out; }
|
|
796
660
|
.hx-forge * { touch-action: pan-y; }
|
|
797
661
|
.hx-forge.forge-open { pointer-events: auto; }
|
|
662
|
+
.hx-forge:not(.forge-open) { box-shadow: none; }
|
|
798
663
|
@media (min-width: 768px) {
|
|
799
664
|
/* The panel's width is the stage's `--hx-forge-w`, so what makes room for it reads the same number (the Runs view's compare widens it, below) */
|
|
800
665
|
.hx-stage { --hx-forge-w: min(400px, calc(100% - 24px)); }
|
|
801
|
-
.hx-forge { position: absolute; top: 0; left: 0; bottom: 0; width: var(--hx-forge-w); border-left: 0; transform: translateX(-100%); box-shadow:
|
|
666
|
+
.hx-forge { position: absolute; top: 0; left: 0; bottom: 0; width: var(--hx-forge-w); border-left: 0; transform: translateX(-100%); box-shadow: var(--corn-shadow-lg); }
|
|
802
667
|
.hx-forge.forge-open { transform: translateX(0); }
|
|
803
668
|
/* The proposal bar and the player make room for it: 12px past its edge, and the node panel's 480px (+24) when that is open too */
|
|
804
669
|
.hx-stage:has(.forge-open) .hx-proposal-bar { left: calc(var(--hx-forge-w) + 12px); width: min(720px, calc(100% - var(--hx-forge-w) - 36px)); }
|
|
@@ -807,124 +672,121 @@ button.hx-proposal-item:focus-visible { outline: 2px solid var(--hx-indigo); out
|
|
|
807
672
|
@media (max-width: 767px) {
|
|
808
673
|
.hx-forge:not(.forge-open) { display: none; }
|
|
809
674
|
.hx-forge { max-height: 60dvh; }
|
|
810
|
-
.hx-forge[data-sheet-state="peek"] .hx-forge-body { flex: none; padding: 0
|
|
675
|
+
.hx-forge[data-sheet-state="peek"] .hx-forge-body { flex: none; padding: 0 var(--corn-space-5) var(--corn-space-3); gap: var(--corn-space-1); overflow: hidden; }
|
|
811
676
|
.hx-forge[data-sheet-state="peek"] .hx-forge-body > :not(.hx-forge-head):not(#forge-status) { display: none; }
|
|
812
677
|
.hx-forge[data-sheet-state="peek"] .hx-forge-head { padding-bottom: 0; border-bottom: 0; }
|
|
813
678
|
.hx-forge[data-sheet-state="peek"] .hx-forge-head .hx-btn { display: none; }
|
|
814
679
|
}
|
|
815
|
-
.hx-forge-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap:
|
|
816
|
-
@media (min-width: 640px) { .hx-forge-body { padding:
|
|
817
|
-
.hx-forge-head { display: flex; align-items: center; gap:
|
|
680
|
+
.hx-forge-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--corn-space-4); padding: calc(var(--corn-space-5) + var(--corn-space-1)) var(--corn-space-5); overflow-y: auto; user-select: text; font-size: var(--corn-text-sm); }
|
|
681
|
+
@media (min-width: 640px) { .hx-forge-body { padding: var(--corn-space-6) calc(var(--corn-space-5) + var(--corn-space-1)); } }
|
|
682
|
+
.hx-forge-head { display: flex; align-items: center; gap: var(--corn-space-3); padding-bottom: var(--corn-space-3); border-bottom: var(--corn-border) solid var(--corn-surface-2); }
|
|
818
683
|
.hx-forge-head .hx-drawer-title { flex: 1; min-width: 0; }
|
|
819
|
-
.hx-forge-status, .hx-forge-rate { font-size:
|
|
820
|
-
.hx-forge-controls { display: flex; flex-direction: column; gap:
|
|
821
|
-
.hx-forge-tabs { display: inline-flex; align-self: flex-start; padding:
|
|
822
|
-
.hx-forge-tab { padding:
|
|
823
|
-
.hx-forge-tab:hover { color: var(--
|
|
824
|
-
.hx-forge-tab[aria-pressed="true"] { background: var(--
|
|
825
|
-
.hx-forge-filters { display: grid; grid-template-columns: 1fr 1fr; gap:
|
|
826
|
-
.hx-forge-field { display: flex; flex-direction: column; gap:
|
|
684
|
+
.hx-forge-status, .hx-forge-rate { font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
685
|
+
.hx-forge-controls { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
686
|
+
.hx-forge-tabs { display: inline-flex; align-self: flex-start; padding: calc(var(--corn-space-1) / 2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); }
|
|
687
|
+
.hx-forge-tab { padding: var(--corn-space-1) var(--corn-space-4); border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-3); font-size: var(--corn-text-sm); font-weight: 500; }
|
|
688
|
+
.hx-forge-tab:hover { color: var(--corn-text); }
|
|
689
|
+
.hx-forge-tab[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); box-shadow: var(--corn-shadow-sm); }
|
|
690
|
+
.hx-forge-filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--corn-space-2) var(--corn-space-3); }
|
|
691
|
+
.hx-forge-field { display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); min-width: 0; font-size: var(--corn-text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-3); }
|
|
827
692
|
.hx-forge-field--text { grid-column: 1 / -1; }
|
|
828
693
|
/* The Start dialog's four limits: two a row, under their legend */
|
|
829
|
-
.hx-forge-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:
|
|
830
|
-
.hx-forge-limits > legend { padding: 0 0
|
|
831
|
-
.hx-forge-select, .hx-forge-input { width: 100%; min-width: 0; padding:
|
|
832
|
-
.hx-forge-input::placeholder { color: var(--
|
|
833
|
-
.hx-forge-input:focus-visible { outline:
|
|
834
|
-
.hx-forge-notice { padding:
|
|
835
|
-
|
|
836
|
-
.hx-forge-list, .hx-forge-checks, .hx-forge-files { display: flex; flex-direction: column; gap:
|
|
837
|
-
.hx-forge-item { display: flex; align-items: stretch; gap:
|
|
838
|
-
.hx-forge-row { flex: 1; min-width: 0; display: flex; flex-direction: column; gap:
|
|
839
|
-
a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--
|
|
840
|
-
.hx-forge-row[aria-pressed="true"] { border-color: var(--
|
|
694
|
+
.hx-forge-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--corn-space-2) var(--corn-space-3); margin: 0; padding: 0; border: 0; }
|
|
695
|
+
.hx-forge-limits > legend { padding: 0 0 var(--corn-space-1); }
|
|
696
|
+
.hx-forge-select, .hx-forge-input { width: 100%; min-width: 0; padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); font-weight: 400; text-transform: none; letter-spacing: 0; user-select: text; }
|
|
697
|
+
.hx-forge-input::placeholder { color: var(--corn-text-3); }
|
|
698
|
+
.hx-forge-input:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
699
|
+
.hx-forge-notice { padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-warn); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); color: var(--corn-text-2); line-height: 1.5; }
|
|
700
|
+
|
|
701
|
+
.hx-forge-list, .hx-forge-checks, .hx-forge-files { display: flex; flex-direction: column; gap: var(--corn-space-1); margin: 0; padding: 0; list-style: none; }
|
|
702
|
+
.hx-forge-item { display: flex; align-items: stretch; gap: var(--corn-space-1); }
|
|
703
|
+
.hx-forge-row { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--corn-space-1); padding: var(--corn-space-3) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius); background: var(--corn-surface-2); color: var(--corn-text); text-align: left; text-decoration: none; font-size: var(--corn-text-sm); }
|
|
704
|
+
a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface-3); }
|
|
705
|
+
.hx-forge-row[aria-pressed="true"] { border-color: var(--corn-accent-text); border-left-width: calc(var(--corn-border-strong) * 2); background: var(--corn-surface-3); }
|
|
841
706
|
.hx-forge-title { font-weight: 600; overflow-wrap: anywhere; }
|
|
842
|
-
.hx-forge-meta { color: var(--
|
|
843
|
-
.hx-forge-labels { display: flex; flex-wrap: wrap; gap:
|
|
844
|
-
.hx-forge-label { padding: 0
|
|
845
|
-
.hx-forge-out { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; border-radius:
|
|
846
|
-
.hx-forge-out:hover { background: var(--
|
|
847
|
-
.hx-forge-empty { padding:
|
|
707
|
+
.hx-forge-meta { color: var(--corn-text-3); font-size: var(--corn-text-xs); overflow-wrap: anywhere; }
|
|
708
|
+
.hx-forge-labels { display: flex; flex-wrap: wrap; gap: var(--corn-space-1); }
|
|
709
|
+
.hx-forge-label { padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); color: var(--corn-text-2); font-size: var(--corn-text-2xs); }
|
|
710
|
+
.hx-forge-out { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-info); text-decoration: none; }
|
|
711
|
+
.hx-forge-out:hover { background: var(--corn-surface-3); }
|
|
712
|
+
.hx-forge-empty { padding: var(--corn-space-3) calc(var(--corn-space-1) / 2); }
|
|
848
713
|
|
|
849
714
|
/* A state is a word as well as a colour: open, merged, a check's result */
|
|
850
|
-
.hx-forge-state { display: inline-block; padding: 0
|
|
851
|
-
.hx-forge-state--open, .hx-forge-state--success { color: var(--
|
|
852
|
-
.hx-forge-state--merged { color: var(--
|
|
853
|
-
.hx-forge-state--closed, .hx-forge-state--failure { color: var(--
|
|
854
|
-
.hx-forge-state--draft, .hx-forge-state--running, .hx-forge-state--queued { color: var(--
|
|
855
|
-
.hx-forge-state--neutral, .hx-forge-state--skipped, .hx-forge-state--cancelled { color: var(--
|
|
856
|
-
|
|
857
|
-
.hx-forge-detail { display: flex; flex-direction: column; gap:
|
|
858
|
-
.hx-forge-detail-head { display: flex; align-items: center; justify-content: space-between; gap:
|
|
859
|
-
.hx-forge-detail-title { min-width: 0; font-size:
|
|
860
|
-
.hx-forge-sub, .hx-forge-subact, .hx-forge-runs-title, .hx-forge-confirm-title { margin:
|
|
861
|
-
.hx-forge-check { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
715
|
+
.hx-forge-state { display: inline-block; padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid currentColor; font-size: var(--corn-text-2xs); font-weight: 700; }
|
|
716
|
+
.hx-forge-state--open, .hx-forge-state--success { color: var(--corn-ok); }
|
|
717
|
+
.hx-forge-state--merged { color: var(--corn-edit-text); }
|
|
718
|
+
.hx-forge-state--closed, .hx-forge-state--failure { color: var(--corn-bad); }
|
|
719
|
+
.hx-forge-state--draft, .hx-forge-state--running, .hx-forge-state--queued { color: var(--corn-warn); }
|
|
720
|
+
.hx-forge-state--neutral, .hx-forge-state--skipped, .hx-forge-state--cancelled { color: var(--corn-text-3); }
|
|
721
|
+
|
|
722
|
+
.hx-forge-detail { display: flex; flex-direction: column; gap: var(--corn-space-2); padding: var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-left: calc(var(--corn-border-strong) * 2) solid var(--corn-accent-text); border-radius: var(--corn-radius); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); }
|
|
723
|
+
.hx-forge-detail-head { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); }
|
|
724
|
+
.hx-forge-detail-title { min-width: 0; font-size: var(--corn-text-md); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
725
|
+
.hx-forge-sub, .hx-forge-subact, .hx-forge-runs-title, .hx-forge-confirm-title { margin: var(--corn-space-1) 0 0; font-size: var(--corn-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-2); }
|
|
726
|
+
.hx-forge-check { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); }
|
|
862
727
|
.hx-forge-check .hx-link { display: inline-flex; align-items: center; min-height: 24px; }
|
|
863
|
-
.hx-forge-lights { flex-basis: 100%; font-size:
|
|
864
|
-
.hx-forge-key { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
865
|
-
.hx-forge-file { display: flex; flex-wrap: wrap; align-items: baseline; gap:
|
|
866
|
-
.hx-forge-fstatus { flex: none; min-width:
|
|
867
|
-
.hx-forge-del { color: var(--
|
|
868
|
-
.hx-forge-act { align-self: flex-start; min-height: 24px; padding:
|
|
869
|
-
.hx-forge-detail > .hx-forge-act { padding:
|
|
870
|
-
.hx-forge-why { margin: 0; font-size:
|
|
871
|
-
.hx-forge-step { display: flex; flex-direction: column; gap:
|
|
728
|
+
.hx-forge-lights { flex-basis: 100%; font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
729
|
+
.hx-forge-key { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-1); font-size: var(--corn-text-xs); }
|
|
730
|
+
.hx-forge-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); padding: var(--corn-space-1) 0; border-top: var(--corn-border) solid var(--corn-line-soft); overflow-wrap: anywhere; }
|
|
731
|
+
.hx-forge-fstatus { flex: none; min-width: var(--hx-forge-status-w); color: var(--corn-text-3); font-size: var(--corn-text-xs); }
|
|
732
|
+
.hx-forge-del { color: var(--corn-bad); }
|
|
733
|
+
.hx-forge-act { align-self: flex-start; min-height: 24px; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); }
|
|
734
|
+
.hx-forge-detail > .hx-forge-act { padding: var(--corn-space-2) var(--corn-space-4); }
|
|
735
|
+
.hx-forge-why { margin: 0; font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
736
|
+
.hx-forge-step { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
872
737
|
.hx-forge-startspec { flex: none; align-self: center; }
|
|
873
|
-
.hx-forge-notice--ok { border-color: var(--
|
|
874
|
-
.hx-confirm-scrim { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding:
|
|
738
|
+
.hx-forge-notice--ok { border-color: var(--corn-ok); }
|
|
739
|
+
.hx-confirm-scrim { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: var(--corn-space-5); background: color-mix(in srgb, var(--corn-ground) 60%, transparent); }
|
|
875
740
|
.hx-confirm-scrim[hidden] { display: none; }
|
|
876
|
-
.hx-confirm { display: flex; flex-direction: column; gap:
|
|
877
|
-
.hx-confirm-title { margin: 0; font-size:
|
|
878
|
-
.hx-confirm-facts { display: grid; grid-template-columns: max-content 1fr; gap:
|
|
879
|
-
.hx-confirm-facts dt { color: var(--
|
|
880
|
-
.hx-confirm-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--
|
|
881
|
-
.hx-confirm-checks { display: flex; flex-direction: column; gap:
|
|
882
|
-
.hx-confirm-label { margin: 0; color: var(--
|
|
883
|
-
.hx-confirm-pre { margin: 0; max-height: 140px; overflow: auto; padding:
|
|
884
|
-
.hx-confirm-pre:focus-visible { outline:
|
|
885
|
-
.hx-confirm-note { margin: 0; color: var(--
|
|
886
|
-
.hx-confirm-actions { display: flex; justify-content: flex-end; gap:
|
|
887
|
-
.hx-tokens-list { display: flex; flex-direction: column; gap:
|
|
888
|
-
.hx-tokens-item { display: grid; grid-template-columns: 1fr auto; gap:
|
|
741
|
+
.hx-confirm { display: flex; flex-direction: column; gap: var(--corn-space-3); width: min(440px, 100%); max-height: 100%; overflow-y: auto; padding: var(--corn-space-5); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-lg); box-shadow: var(--corn-shadow-lg); font-size: var(--corn-text-sm); user-select: text; }
|
|
742
|
+
.hx-confirm-title { margin: 0; font-size: var(--corn-text-lg); font-weight: 700; color: var(--corn-text); }
|
|
743
|
+
.hx-confirm-facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--corn-space-1) var(--corn-space-4); margin: 0; }
|
|
744
|
+
.hx-confirm-facts dt { color: var(--corn-text-3); }
|
|
745
|
+
.hx-confirm-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--corn-text); }
|
|
746
|
+
.hx-confirm-checks { display: flex; flex-direction: column; gap: var(--corn-space-1); margin: 0; padding: 0; list-style: none; }
|
|
747
|
+
.hx-confirm-label { margin: 0; color: var(--corn-text-3); }
|
|
748
|
+
.hx-confirm-pre { margin: 0; max-height: 140px; overflow: auto; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font: var(--corn-text-xs)/1.5 var(--corn-mono); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
|
|
749
|
+
.hx-confirm-pre:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
750
|
+
.hx-confirm-note { margin: 0; color: var(--corn-text-2); line-height: 1.5; }
|
|
751
|
+
.hx-confirm-actions { display: flex; justify-content: flex-end; gap: var(--corn-space-3); }
|
|
752
|
+
.hx-tokens-list { display: flex; flex-direction: column; gap: var(--corn-space-2); margin: 0; padding: 0; list-style: none; }
|
|
753
|
+
.hx-tokens-item { display: grid; grid-template-columns: 1fr auto; gap: calc(var(--corn-space-1) / 2) var(--corn-space-3); align-items: center; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); }
|
|
889
754
|
.hx-tokens-item[data-state="revoked"], .hx-tokens-item[data-state="expired"] { opacity: 0.65; }
|
|
890
|
-
.hx-tokens-label { font-weight: 600; color: var(--
|
|
755
|
+
.hx-tokens-label { font-weight: 600; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
891
756
|
.hx-tokens-meta { grid-column: 1; }
|
|
892
757
|
.hx-tokens-item .hx-btn { grid-column: 2; grid-row: 1 / span 2; }
|
|
893
|
-
.hx-tokens-row { display: flex; gap:
|
|
758
|
+
.hx-tokens-row { display: flex; gap: var(--corn-space-3); align-items: center; }
|
|
894
759
|
.hx-tokens-row .hx-forge-input { flex: 1; }
|
|
895
|
-
.hx-tokens-form { display: grid; grid-template-columns: 1fr 5rem; gap:
|
|
760
|
+
.hx-tokens-form { display: grid; grid-template-columns: 1fr 5rem; gap: var(--corn-space-3); align-items: end; }
|
|
896
761
|
.hx-tokens-form .hx-btn { grid-column: 1 / -1; justify-self: start; }
|
|
897
|
-
.hx-forge-nodes { flex-basis: 100%; display: flex; flex-wrap: wrap; gap:
|
|
898
|
-
.hx-forge-node { padding:
|
|
899
|
-
.hx-forge-node:hover { background: var(--
|
|
900
|
-
.hx-forge-work-filters { display: flex; flex-wrap: wrap; gap:
|
|
762
|
+
.hx-forge-nodes { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--corn-space-1); padding-left: calc(var(--hx-forge-status-w) + var(--corn-space-2)); }
|
|
763
|
+
.hx-forge-node { padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-warn); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); color: var(--corn-text-2); font-size: var(--corn-text-xs); }
|
|
764
|
+
.hx-forge-node:hover { background: var(--corn-surface-3); }
|
|
765
|
+
.hx-forge-work-filters { display: flex; flex-wrap: wrap; gap: var(--corn-space-2) var(--corn-space-4); }
|
|
901
766
|
.hx-forge-work-filters[hidden], .hx-forge-filters[hidden] { display: none; }
|
|
902
|
-
.hx-forge-toggle { display: inline-flex; align-items: center; gap:
|
|
903
|
-
.hx-forge-toggle input { accent-color: var(--
|
|
904
|
-
.hx-forge-toggle input:focus-visible { outline:
|
|
905
|
-
.hx-forge-group { display: flex; flex-direction: column; gap:
|
|
906
|
-
.hx-forge-gtitle { margin: 0; font-size:
|
|
907
|
-
.hx-forge-gout { margin-left:
|
|
908
|
-
.hx-forge-agentline { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
909
|
-
.hx-forge-agent { display: inline-block; padding: 0
|
|
910
|
-
.hx-forge-why { font-size:
|
|
911
|
-
.hx-forge-notes, .hx-forge-confirm { display: flex; flex-direction: column; gap:
|
|
912
|
-
.hx-forge-preview { width: 100%; min-height: 12em; resize: vertical; padding:
|
|
913
|
-
.hx-forge-preview:focus-visible { outline:
|
|
914
|
-
.hx-forge-actions { display: flex; flex-wrap: wrap; gap:
|
|
915
|
-
.hx-forge-msg { padding:
|
|
916
|
-
.hx-forge-msg--bad { border-color: var(--
|
|
917
|
-
.hx-forge-confirm { padding:
|
|
918
|
-
|
|
919
|
-
:root[data-theme="light"] .hx-forge { box-shadow: 10px 0 30px -12px rgba(15, 23, 42, 0.18); }
|
|
920
|
-
:root[data-theme="light"] .hx-forge:not(.forge-open) { box-shadow: none; }
|
|
921
|
-
.hx-forge-runs { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
|
|
767
|
+
.hx-forge-toggle { display: inline-flex; align-items: center; gap: var(--corn-space-2); min-height: 24px; color: var(--corn-text-2); font-size: var(--corn-text-sm); }
|
|
768
|
+
.hx-forge-toggle input { accent-color: var(--corn-accent-text); }
|
|
769
|
+
.hx-forge-toggle input:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
770
|
+
.hx-forge-group { display: flex; flex-direction: column; gap: var(--corn-space-1); margin: 0 0 var(--corn-space-3); list-style: none; }
|
|
771
|
+
.hx-forge-gtitle { margin: 0; font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
772
|
+
.hx-forge-gout { margin-left: var(--corn-space-1); }
|
|
773
|
+
.hx-forge-agentline { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); }
|
|
774
|
+
.hx-forge-agent { display: inline-block; padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid currentColor; color: var(--corn-edit-text); font-size: var(--corn-text-2xs); font-weight: 700; }
|
|
775
|
+
.hx-forge-why { font-size: var(--corn-text-xs); overflow-wrap: anywhere; }
|
|
776
|
+
.hx-forge-notes, .hx-forge-confirm { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
777
|
+
.hx-forge-preview { width: 100%; min-height: 12em; resize: vertical; padding: var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font-family: var(--corn-mono); font-size: var(--corn-text-xs); line-height: 1.5; font-weight: 400; text-transform: none; letter-spacing: 0; user-select: text; }
|
|
778
|
+
.hx-forge-preview:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
|
|
779
|
+
.hx-forge-actions { display: flex; flex-wrap: wrap; gap: var(--corn-space-3); }
|
|
780
|
+
.hx-forge-msg { padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); color: var(--corn-text-2); line-height: 1.5; overflow-wrap: anywhere; }
|
|
781
|
+
.hx-forge-msg--bad { border-color: var(--corn-warn); }
|
|
782
|
+
.hx-forge-confirm { padding: var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-left: calc(var(--corn-border-strong) * 2) solid var(--corn-added-text); border-radius: var(--corn-radius); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); line-height: 1.5; }
|
|
783
|
+
.hx-forge-runs { display: flex; flex-direction: column; gap: var(--corn-space-2); margin: var(--corn-space-1) 0 var(--corn-space-3); }
|
|
922
784
|
.hx-forge-runs[hidden] { display: none; }
|
|
923
785
|
|
|
924
786
|
/* Threads (forge-panel.js, docs/threads.md): messages as written, read-only; a node's "Mentioned in" opens one */
|
|
925
|
-
.hx-thread-msgs { display: flex; flex-direction: column; gap:
|
|
926
|
-
.hx-thread-msg { display: flex; flex-direction: column; gap:
|
|
927
|
-
.hx-thread-body { margin: 0; color: var(--
|
|
787
|
+
.hx-thread-msgs { display: flex; flex-direction: column; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
788
|
+
.hx-thread-msg { display: flex; flex-direction: column; gap: var(--corn-space-1); padding: var(--corn-space-3) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius); background: var(--corn-surface-2); }
|
|
789
|
+
.hx-thread-body { margin: 0; color: var(--corn-text); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
|
|
928
790
|
.hx-thread-nodes { padding-left: 0; }
|
|
929
791
|
.hx-thread-compose { font-family: inherit; min-height: 8em; }
|
|
930
792
|
.hx-thread-open { display: block; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
|
|
@@ -934,34 +796,34 @@ a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--hx-control-h
|
|
|
934
796
|
.hx-run-overlay { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
|
|
935
797
|
.hx-run-overlay[hidden] { display: none; }
|
|
936
798
|
.hx-run-mark { position: absolute; width: 0; height: 0; --r: 14px; }
|
|
937
|
-
.hx-run-ring { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); box-sizing: border-box; border-radius: 50%; border:
|
|
799
|
+
.hx-run-ring { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); box-sizing: border-box; border-radius: 50%; border: var(--corn-border-strong) solid var(--corn-added); }
|
|
938
800
|
/* In flight: the ring pulses outward and fades; when motion is reduced it is a still, slightly thicker ring */
|
|
939
801
|
.hx-run-mark--flight .hx-run-ring { animation: hx-run-pulse 1.8s ease-out infinite; }
|
|
940
802
|
@keyframes hx-run-pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.55); opacity: 0.1; } }
|
|
941
|
-
.hx-run-overlay.is-static .hx-run-ring { animation: none; transform: none; opacity: 1; border-width:
|
|
942
|
-
@media (prefers-reduced-motion: reduce) { .hx-run-ring { animation: none !important; transform: none; opacity: 1; border-width:
|
|
803
|
+
.hx-run-overlay.is-static .hx-run-ring { animation: none; transform: none; opacity: 1; border-width: calc(var(--corn-border-strong) + var(--corn-border)); }
|
|
804
|
+
@media (prefers-reduced-motion: reduce) { .hx-run-ring { animation: none !important; transform: none; opacity: 1; border-width: calc(var(--corn-border-strong) + var(--corn-border)); } }
|
|
943
805
|
/* Collision: dashed, a sign and words; the same ring whether or not colour is seen */
|
|
944
|
-
.hx-run-mark--collision .hx-run-ring { border:
|
|
945
|
-
.hx-run-tag { position: absolute; left: 0; top: calc(var(--r) + 4px); transform: translateX(-50%); white-space: nowrap; padding:
|
|
946
|
-
.hx-run-swatch { display: inline-block; width: 14px; height: 14px; flex: none; box-sizing: border-box; border-radius: 50%; border:
|
|
947
|
-
.hx-run-swatch--collision { border:
|
|
806
|
+
.hx-run-mark--collision .hx-run-ring { border: calc(var(--corn-border-strong) + var(--corn-border)) dashed var(--corn-warn); animation: none; }
|
|
807
|
+
.hx-run-tag { position: absolute; left: 0; top: calc(var(--r) + 4px); transform: translateX(-50%); white-space: nowrap; padding: calc(var(--corn-space-1) / 2) var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-warn); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-warn); font-size: var(--corn-text-xs); font-weight: 700; }
|
|
808
|
+
.hx-run-swatch { display: inline-block; width: 14px; height: 14px; flex: none; box-sizing: border-box; border-radius: 50%; border: var(--corn-border-strong) solid var(--corn-added); }
|
|
809
|
+
.hx-run-swatch--collision { border: var(--corn-border-strong) dashed var(--corn-warn); }
|
|
948
810
|
|
|
949
811
|
/* The Runs view (forge-panel.js, runs-view.js): each run, its limits beside what was reported, its timeline; the compare puts profiles side by side */
|
|
950
|
-
.hx-runs-list { display: flex; flex-direction: column; gap:
|
|
951
|
-
.hx-run { display: flex; flex-direction: column; gap:
|
|
952
|
-
.hx-run-head { display: flex; flex-wrap: wrap; align-items: baseline; gap:
|
|
953
|
-
.hx-run-actions { display: flex; flex-wrap: wrap; gap:
|
|
954
|
-
.hx-run-collide { margin: 0; padding:
|
|
955
|
-
.hx-run-limits { display: grid; grid-template-columns: auto 1fr; gap: 0
|
|
956
|
-
.hx-run-limits dt { color: var(--
|
|
957
|
-
.hx-run-limits dd { margin: 0; color: var(--
|
|
958
|
-
.hx-run-timeline { display: flex; flex-direction: column; gap:
|
|
959
|
-
.hx-run-timeline li { color: var(--
|
|
960
|
-
.hx-run-timeline time { color: var(--
|
|
961
|
-
.hx-run-note { display: block; color: var(--
|
|
962
|
-
.hx-run-compare { border:
|
|
963
|
-
.hx-run-compare-title { margin: 0; font-size:
|
|
964
|
-
.hx-run-columns { display: grid; grid-template-columns: 1fr; gap:
|
|
812
|
+
.hx-runs-list { display: flex; flex-direction: column; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
813
|
+
.hx-run { display: flex; flex-direction: column; gap: var(--corn-space-1); padding: var(--corn-space-3) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius); background: var(--corn-surface-2); overflow-wrap: anywhere; min-width: 0; }
|
|
814
|
+
.hx-run-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--corn-space-1) var(--corn-space-3); }
|
|
815
|
+
.hx-run-actions { display: flex; flex-wrap: wrap; gap: var(--corn-space-2); }
|
|
816
|
+
.hx-run-collide { margin: 0; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border: var(--corn-border) dashed var(--corn-warn); border-radius: var(--corn-radius-sm); color: var(--corn-warn); font-weight: 600; }
|
|
817
|
+
.hx-run-limits { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--corn-space-3); margin: 0; font-size: var(--corn-text-xs); }
|
|
818
|
+
.hx-run-limits dt { color: var(--corn-text-2); font-weight: 600; }
|
|
819
|
+
.hx-run-limits dd { margin: 0; color: var(--corn-text-2); }
|
|
820
|
+
.hx-run-timeline { display: flex; flex-direction: column; gap: var(--corn-space-1); margin: 0; padding: 0 0 0 var(--corn-space-5); font-size: var(--corn-text-xs); }
|
|
821
|
+
.hx-run-timeline li { color: var(--corn-text-2); }
|
|
822
|
+
.hx-run-timeline time { color: var(--corn-text-2); margin-right: var(--corn-space-2); }
|
|
823
|
+
.hx-run-note { display: block; color: var(--corn-text-2); white-space: pre-wrap; }
|
|
824
|
+
.hx-run-compare { border: var(--corn-border) solid var(--corn-line); border-left: calc(var(--corn-border-strong) * 2) solid var(--corn-added-text); border-radius: var(--corn-radius); padding: var(--corn-space-3); display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
825
|
+
.hx-run-compare-title { margin: 0; font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); }
|
|
826
|
+
.hx-run-columns { display: grid; grid-template-columns: 1fr; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
965
827
|
@media (min-width: 1100px) {
|
|
966
828
|
.hx-stage:has(.hx-forge .hx-run-compare) { --hx-forge-w: min(780px, calc(100% - 24px)); }
|
|
967
829
|
.hx-run-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|