cornfield 0.43.0 → 0.45.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/color.js +38 -8
- package/core/contrast.js +15 -4
- package/core/layers.js +8 -0
- package/core/map-tokens.js +86 -2
- package/core/strings.js +3 -0
- package/core/validate.js +4 -2
- package/explorer/check.js +3 -2
- package/explorer/css-color.js +99 -0
- package/explorer/diff-marks.js +12 -0
- package/explorer/explorer.css +101 -57
- package/explorer/flows.js +2 -1
- package/explorer/forge-panel.js +2 -1
- package/explorer/index.html +3 -0
- package/explorer/labels.js +14 -9
- package/explorer/layer-model.js +91 -1
- package/explorer/layers.js +165 -50
- package/explorer/map-style.js +55 -83
- package/explorer/proposal.js +14 -1
- package/explorer/render.js +2 -0
- package/explorer/runs-map.js +2 -1
- package/explorer/scenario-ui.js +8 -6
- package/explorer/scene.js +38 -18
- package/explorer/search.js +2 -2
- package/explorer/state.js +8 -0
- package/explorer/tokens.css +15 -0
- package/explorer/whatif.js +2 -2
- package/package.json +1 -1
package/explorer/explorer.css
CHANGED
|
@@ -93,47 +93,47 @@ h1, h2, h3, p { margin: 0; }
|
|
|
93
93
|
.hx-only-mobile { display: inline-flex; }
|
|
94
94
|
|
|
95
95
|
/* The brand: logo and wordmark; a click resets the view */
|
|
96
|
-
.hx-brand { display: flex; align-items: center; gap: var(--corn-space-3); flex: none; min-width:
|
|
97
|
-
.hx-title { font-size: var(--corn-text-base); font-weight:
|
|
96
|
+
.hx-brand { display: flex; align-items: center; gap: var(--corn-space-3); flex: none; min-width: var(--hx-control-h); min-height: var(--hx-control-h); padding: 0; border: 0; background: none; }
|
|
97
|
+
.hx-title { font-size: var(--corn-text-base); font-weight: 600; letter-spacing: -0.01em; color: var(--corn-text); }
|
|
98
98
|
.hx-mark { flex: none; }
|
|
99
99
|
.hx-mark-bg { fill: var(--corn-accent); }
|
|
100
100
|
.hx-mark-fg { fill: var(--corn-text-on-accent); }
|
|
101
101
|
.hx-mark-line { fill: none; stroke: var(--corn-text-on-accent); stroke-width: 1.5; }
|
|
102
102
|
|
|
103
103
|
/* The View switch: Map, Flow and House (aria-pressed says which is on), and Fit at its end */
|
|
104
|
-
.hx-view { display: inline-flex; align-items: center; flex: none; padding: var(--corn-space-1); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); }
|
|
105
|
-
.hx-view-btn, .hx-view-fit { display: inline-flex; align-items: center; justify-content: center; height:
|
|
104
|
+
.hx-view { display: inline-flex; align-items: center; flex: none; padding: calc(var(--corn-space-1) / 2); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); }
|
|
105
|
+
.hx-view-btn, .hx-view-fit { display: inline-flex; align-items: center; justify-content: center; height: var(--hx-seg-inner); border: 0; border-radius: var(--corn-radius-sm); background: transparent; color: var(--corn-text-2); font-size: var(--corn-text-sm); font-weight: 500; white-space: nowrap; }
|
|
106
106
|
.hx-view-btn { padding: 0 var(--corn-space-4); }
|
|
107
107
|
.hx-view-btn:hover, .hx-view-fit:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
108
108
|
.hx-view-btn[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); font-weight: 600; }
|
|
109
|
-
.hx-view-fit { width:
|
|
109
|
+
.hx-view-fit { width: var(--hx-seg-inner); margin-left: var(--corn-space-1); border-left: var(--corn-border) solid var(--corn-line); border-radius: 0 var(--corn-radius-sm) var(--corn-radius-sm) 0; color: var(--corn-text-3); }
|
|
110
110
|
|
|
111
111
|
/* The Layers chip: "Layers · 13 of 20" */
|
|
112
|
-
.hx-layers-chip { display: inline-flex; align-items: center; gap: var(--corn-space-1); height:
|
|
112
|
+
.hx-layers-chip { display: inline-flex; align-items: center; gap: var(--corn-space-1); height: var(--hx-control-h); padding: 0 var(--corn-space-4); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-2); font-size: var(--corn-text-sm); white-space: nowrap; }
|
|
113
113
|
.hx-layers-chip:hover, .hx-layers-chip[aria-expanded="true"] { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
114
114
|
.hx-layers-count { color: var(--corn-text-3); }
|
|
115
115
|
.hx-layers-chip--dim { border-color: var(--corn-line-soft); }
|
|
116
116
|
.hx-layers-chip--dim, .hx-layers-chip--dim .hx-layers-count { color: var(--corn-text-3); }
|
|
117
117
|
|
|
118
118
|
/* Search: the field with its key hint (a desktop's), an icon on a phone */
|
|
119
|
-
.hx-search { display: none; align-items: center; gap: var(--corn-space-3); width: 260px; min-width: 120px; height:
|
|
119
|
+
.hx-search { display: none; align-items: center; gap: var(--corn-space-3); width: 260px; min-width: 120px; height: var(--hx-control-h); padding: 0 var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-3); }
|
|
120
120
|
.hx-search:focus-within { border-color: var(--corn-focus); outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
121
121
|
.hx-search-icon { flex: none; }
|
|
122
122
|
.hx-search-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); outline: none; user-select: text; }
|
|
123
123
|
.hx-search-input::placeholder { color: var(--corn-text-3); }
|
|
124
124
|
.hx-kbd { flex: none; padding: 0 var(--corn-space-1); border-radius: var(--corn-radius-xs); border: var(--corn-border) solid var(--corn-line); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); color: var(--corn-text-3); }
|
|
125
125
|
.hx-search:focus-within .hx-kbd { display: none; }
|
|
126
|
-
.hx-hdr-icon { align-items: center; justify-content: center; width:
|
|
126
|
+
.hx-hdr-icon { align-items: center; justify-content: center; width: var(--hx-control-h); height: var(--hx-control-h); padding: 0; border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-2); }
|
|
127
127
|
.hx-hdr-icon:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
128
128
|
|
|
129
129
|
/* The Work toggle: opens the Work panel (forge-panel.js says in the tag which pull request is lit) */
|
|
130
|
-
.hx-work { display: inline-flex; align-items: center; gap: var(--corn-space-2); height:
|
|
130
|
+
.hx-work { display: inline-flex; align-items: center; gap: var(--corn-space-2); height: var(--hx-control-h); padding: 0 var(--corn-space-4); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-2); font-size: var(--corn-text-sm); font-weight: 600; white-space: nowrap; }
|
|
131
131
|
.hx-work:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
132
132
|
.hx-work[aria-expanded="true"] { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); }
|
|
133
133
|
.hx-forge-lit { padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-warn); background: var(--corn-ground); color: var(--corn-warn); font-size: var(--corn-text-2xs); }
|
|
134
134
|
|
|
135
135
|
/* The account button: the initial of who is signed in (a menu glyph when nobody is) */
|
|
136
|
-
.hx-account-btn { display: inline-flex; align-items: center; gap: var(--corn-space-3); height:
|
|
136
|
+
.hx-account-btn { display: inline-flex; align-items: center; gap: var(--corn-space-3); height: var(--hx-control-h); padding: 0 var(--corn-space-2) 0 var(--corn-space-1); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-2); }
|
|
137
137
|
.hx-account-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
138
138
|
.hx-account-btn[aria-expanded="true"] { border-color: var(--corn-accent-text); }
|
|
139
139
|
.hx-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--corn-radius-pill); background: var(--corn-accent); color: var(--corn-text-on-accent); font-size: var(--corn-text-xs); font-weight: 700; }
|
|
@@ -145,11 +145,11 @@ h1, h2, h3, p { margin: 0; }
|
|
|
145
145
|
.hx-account-row { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); padding: var(--corn-space-1) var(--corn-space-4); }
|
|
146
146
|
.hx-account-label { color: var(--corn-text-2); }
|
|
147
147
|
.hx-account-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: var(--corn-surface-2); }
|
|
148
|
-
.hx-account-seg-btn { height:
|
|
148
|
+
.hx-account-seg-btn { height: var(--hx-seg-inner); padding: 0 var(--corn-space-3); border: 0; border-radius: var(--corn-radius-xs); background: transparent; color: var(--corn-text-2); font-size: var(--corn-text-xs); font-weight: 500; }
|
|
149
149
|
.hx-account-seg-btn:hover { color: var(--corn-text); }
|
|
150
150
|
.hx-account-seg-btn[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); font-weight: 600; }
|
|
151
|
-
.hx-account-select { display: block; width: calc(100% - var(--corn-space-5)); height:
|
|
152
|
-
.hx-account-item { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); width: 100%; min-height:
|
|
151
|
+
.hx-account-select { display: block; width: calc(100% - var(--corn-space-5)); height: var(--hx-control-h); margin: 0 var(--corn-space-3); padding: 0 var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); }
|
|
152
|
+
.hx-account-item { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); width: 100%; min-height: var(--hx-control-h); padding: 0 var(--corn-space-4); border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text); font-size: var(--corn-text-sm); text-align: left; text-decoration: none; }
|
|
153
153
|
.hx-account-item:hover { background: var(--corn-surface-3); }
|
|
154
154
|
.hx-account-item--sub { padding-left: var(--corn-space-6); color: var(--corn-text-2); }
|
|
155
155
|
.hx-account-item svg { flex: none; color: var(--corn-text-3); }
|
|
@@ -174,7 +174,7 @@ h1, h2, h3, p { margin: 0; }
|
|
|
174
174
|
.hx-header { height: 52px; padding: 0 var(--corn-space-5); gap: var(--corn-space-5); }
|
|
175
175
|
.hx-header-left { gap: var(--corn-space-5); }
|
|
176
176
|
.hx-header-right { gap: var(--corn-space-3); }
|
|
177
|
-
.hx-brand { min-width: 0; min-height:
|
|
177
|
+
.hx-brand { min-width: 0; min-height: var(--hx-control-h); }
|
|
178
178
|
.hx-only-wide { display: inline; }
|
|
179
179
|
.hx-only-mobile { display: none; }
|
|
180
180
|
.hx-search { display: flex; flex: 0 1 260px; width: auto; }
|
|
@@ -193,21 +193,21 @@ h1, h2, h3, p { margin: 0; }
|
|
|
193
193
|
.hx-header-left::-webkit-scrollbar { display: none; }
|
|
194
194
|
.hx-header-right { gap: var(--corn-space-1); }
|
|
195
195
|
.hx-view { padding: 0; }
|
|
196
|
-
.hx-view-btn { min-width:
|
|
197
|
-
.hx-view-fit { position: absolute; top: calc(100% + var(--corn-space-4)); right: var(--corn-space-4); width:
|
|
196
|
+
.hx-view-btn { min-width: var(--hx-control-h); height: var(--hx-seg-inner); padding: 0 var(--corn-space-2); }
|
|
197
|
+
.hx-view-fit { position: absolute; top: calc(100% + var(--corn-space-4)); right: var(--corn-space-4); width: var(--hx-control-h); height: var(--hx-control-h); margin: 0; border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-pill); background: var(--corn-surface-1); color: var(--corn-text-2); box-shadow: var(--corn-shadow); }
|
|
198
198
|
.hx-header .hx-layers { position: absolute; top: calc(100% + var(--corn-space-4)); left: var(--corn-space-4); }
|
|
199
|
-
.hx-layers-chip { height:
|
|
199
|
+
.hx-layers-chip { height: var(--hx-control-h); padding: 0 var(--corn-space-5); border-radius: var(--corn-radius-pill); background: var(--corn-surface-1); box-shadow: var(--corn-shadow); }
|
|
200
200
|
/* The live chip sits on the map too, left of Fit */
|
|
201
|
-
.hx-header .hx-live { position: absolute; top: calc(100% + var(--corn-space-4)); right: calc(var(--corn-space-4) + var(--corn-space-3) +
|
|
202
|
-
.hx-work { height:
|
|
201
|
+
.hx-header .hx-live { position: absolute; top: calc(100% + var(--corn-space-4)); right: calc(var(--corn-space-4) + var(--corn-space-3) + var(--hx-control-h)); }
|
|
202
|
+
.hx-work { height: var(--hx-control-h); min-width: var(--hx-control-h); justify-content: center; padding: 0 var(--corn-space-3); }
|
|
203
203
|
.hx-forge-lit { display: none; }
|
|
204
|
-
.hx-account-btn { width:
|
|
204
|
+
.hx-account-btn { width: var(--hx-control-h); height: var(--hx-control-h); justify-content: center; padding: 0; border: 0; background: none; }
|
|
205
205
|
.hx-account-caret { display: none; }
|
|
206
206
|
.hx-avatar { width: 28px; height: 28px; }
|
|
207
207
|
.hx-menu.hx-account-menu { width: min(300px, calc(100vw - 24px)); }
|
|
208
|
-
.hx-account-item, .hx-account-row { min-height:
|
|
209
|
-
.hx-account-seg-btn { height:
|
|
210
|
-
.hx-account-select { height:
|
|
208
|
+
.hx-account-item, .hx-account-row { min-height: var(--hx-control-h); }
|
|
209
|
+
.hx-account-seg-btn { height: var(--hx-seg-inner); padding: 0 var(--corn-space-4); }
|
|
210
|
+
.hx-account-select { height: var(--hx-control-h); }
|
|
211
211
|
.hx-stage .hx-hint { top: 68px; }
|
|
212
212
|
}
|
|
213
213
|
/* ==== end of the header ============================================================================================ */
|
|
@@ -342,11 +342,10 @@ h1, h2, h3, p { margin: 0; }
|
|
|
342
342
|
}
|
|
343
343
|
.hx-drawer-handle { display: flex; justify-content: center; padding: var(--corn-space-3) 0 var(--corn-space-1); }
|
|
344
344
|
.hx-drawer-handle span { width: 48px; height: 6px; border-radius: var(--corn-radius-pill); background: var(--corn-surface-3); }
|
|
345
|
-
.hx-drawer-body { flex: 1; display: flex; flex-direction: column; gap: var(--corn-space-5); padding:
|
|
346
|
-
@media (min-width: 640px) { .hx-drawer-body { padding: var(--corn-space-6); } }
|
|
345
|
+
.hx-drawer-body { flex: 1; display: flex; flex-direction: column; gap: var(--corn-space-5); padding: var(--corn-panel-pad); overflow-y: auto; user-select: text; }
|
|
347
346
|
.hx-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--corn-space-3); }
|
|
348
347
|
.hx-drawer-title { font-size: var(--corn-text-lg); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
349
|
-
.hx-close { width:
|
|
348
|
+
.hx-close { width: var(--hx-control-h); height: var(--hx-control-h); 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); }
|
|
350
349
|
.hx-close:hover { color: var(--corn-text); }
|
|
351
350
|
.hx-lead { font-size: var(--corn-text-base); line-height: 1.5; color: var(--corn-text-2); }
|
|
352
351
|
|
|
@@ -367,7 +366,7 @@ h1, h2, h3, p { margin: 0; }
|
|
|
367
366
|
.hx-file { padding: calc(var(--corn-space-1) / 2) 0; }
|
|
368
367
|
|
|
369
368
|
.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); }
|
|
370
|
-
.hx-sandbox-title { display: flex; align-items: center; justify-content: space-between; font-size: var(--corn-text-
|
|
369
|
+
.hx-sandbox-title { display: flex; align-items: center; justify-content: space-between; font-size: var(--corn-text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-3); }
|
|
371
370
|
.hx-sandbox-name { display: flex; align-items: center; gap: var(--corn-space-2); }
|
|
372
371
|
.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; }
|
|
373
372
|
.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); }
|
|
@@ -383,7 +382,7 @@ h1, h2, h3, p { margin: 0; }
|
|
|
383
382
|
.hx-chip--danger, .hx-chip--success, .hx-chip--warning { color: var(--corn-ground); }
|
|
384
383
|
|
|
385
384
|
.hx-drawer-foot { display: flex; align-items: stretch; gap: var(--corn-space-3); flex: none; padding: var(--corn-space-4) var(--corn-space-5) calc(var(--corn-space-4) + env(safe-area-inset-bottom, 0px)); border-top: var(--corn-border) solid var(--corn-line-soft); }
|
|
386
|
-
.hx-open { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: var(--corn-space-2); min-height:
|
|
385
|
+
.hx-open { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: var(--corn-space-2); min-height: var(--hx-control-h); padding: 0 var(--corn-space-4); border-radius: var(--corn-radius-sm); 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; transition: background 0.15s; }
|
|
387
386
|
.hx-open:hover { background: var(--corn-accent-hover); }
|
|
388
387
|
|
|
389
388
|
/* ---- proposals (proposal.js): picker, bar, marks, panel rows ----------------------------------- */
|
|
@@ -406,13 +405,13 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
|
|
|
406
405
|
.hx-proposal-message { color: var(--corn-text-2); }
|
|
407
406
|
.hx-proposal-bar.is-error .hx-proposal-message { color: var(--corn-bad); }
|
|
408
407
|
.hx-proposal-count:focus-visible, .hx-proposal-mode:focus-visible, .hx-seg-btn:focus-visible, .hx-change-row:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
409
|
-
.hx-proposal-summary { margin-top: var(--corn-space-2); color: var(--corn-text-2); line-height: 1.
|
|
408
|
+
.hx-proposal-summary { margin-top: var(--corn-space-2); color: var(--corn-text-2); line-height: 1.5; }
|
|
410
409
|
|
|
411
410
|
/* Before / Diff / After */
|
|
412
411
|
.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); }
|
|
413
|
-
.hx-seg-btn { height:
|
|
412
|
+
.hx-seg-btn { height: var(--hx-seg-inner); padding: 0 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; }
|
|
414
413
|
.hx-seg-btn:hover { color: var(--corn-text); }
|
|
415
|
-
.hx-seg-btn.is-on, .hx-seg-btn[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent);
|
|
414
|
+
.hx-seg-btn.is-on, .hx-seg-btn[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); } /* the weight does not change: a heavier word is wider, and Edit and the rest of the bar would move */
|
|
416
415
|
|
|
417
416
|
.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); }
|
|
418
417
|
.hx-proposal-errors summary { cursor: pointer; color: var(--corn-bad); font-weight: 600; }
|
|
@@ -458,9 +457,9 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
|
|
|
458
457
|
|
|
459
458
|
|
|
460
459
|
|
|
461
|
-
.hx-player .hx-close { width:
|
|
460
|
+
.hx-player .hx-close { width: var(--hx-control-h); height: var(--hx-control-h); font-size: var(--corn-text-sm); }
|
|
462
461
|
|
|
463
|
-
.hx-player-speed { flex: none; height:
|
|
462
|
+
.hx-player-speed { flex: none; height: var(--hx-control-h); 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; }
|
|
464
463
|
.hx-player-speed:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: calc(var(--corn-focus-offset) / 2); }
|
|
465
464
|
.hx-player-text { margin: 0; flex: 1 1 18em; min-width: 0; font-size: var(--corn-text-base); line-height: 1.4; color: var(--corn-text); user-select: text; overflow-wrap: anywhere; }
|
|
466
465
|
.hx-player-who { color: var(--corn-text-2); font-weight: 600; }
|
|
@@ -504,7 +503,7 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
|
|
|
504
503
|
.hx-whatif-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); }
|
|
505
504
|
.hx-whatif-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
506
505
|
.hx-whatif-edit { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
507
|
-
.hx-whatif-edit-text { flex: 1; min-width: 0; line-height: 1.
|
|
506
|
+
.hx-whatif-edit-text { flex: 1; min-width: 0; line-height: 1.4; }
|
|
508
507
|
.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); }
|
|
509
508
|
.hx-whatif-step.is-current { background: color-mix(in srgb, var(--corn-edit) 18%, transparent); }
|
|
510
509
|
.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; }
|
|
@@ -545,10 +544,10 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
|
|
|
545
544
|
the current mode (a button that opens the switcher), the note when it is open, and Send back and Approve full
|
|
546
545
|
width, each 44px tall. */
|
|
547
546
|
.hx-proposal-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-3) var(--corn-space-4); }
|
|
548
|
-
.hx-proposal-name { flex: 0 1 auto; min-width: 0; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
547
|
+
.hx-proposal-name { flex: 0 1 auto; min-width: 0; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--corn-text); } /* its size and weight are the shared panel title's ("panel head" at the end of this file) */
|
|
549
548
|
.hx-proposal-counts { display: contents; }
|
|
550
549
|
.hx-proposal-chip { display: inline-flex; align-items: center; flex-wrap: wrap; color: var(--corn-text-2); font-size: var(--corn-text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
551
|
-
.hx-proposal-count { display: inline-flex; align-items: center; padding: var(--corn-space-1) var(--corn-space-2); border: 0; border-radius: var(--corn-radius-sm); background: none; color: inherit; font: inherit; white-space: inherit; cursor: pointer; }
|
|
550
|
+
.hx-proposal-count { display: inline-flex; align-items: center; min-height: var(--hx-control-h); padding: var(--corn-space-1) var(--corn-space-2); border: 0; border-radius: var(--corn-radius-sm); background: none; color: inherit; font: inherit; white-space: inherit; cursor: pointer; }
|
|
552
551
|
.hx-proposal-count:hover { color: var(--corn-text); text-decoration: underline; }
|
|
553
552
|
.hx-proposal-peek { display: none; margin: 0; }
|
|
554
553
|
.hx-proposal-chip .hx-mark-dot { margin: 0 var(--corn-space-2) 0 0; }
|
|
@@ -556,18 +555,18 @@ h2.hx-proposal-name { margin: 0; }
|
|
|
556
555
|
.hx-proposal-sep { margin: 0 var(--corn-space-2); color: var(--corn-text-3); }
|
|
557
556
|
.hx-proposal-mode { display: none; }
|
|
558
557
|
.hx-proposal-tools, .hx-proposal-actions { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
559
|
-
.hx-proposal-tools .hx-btn { height:
|
|
558
|
+
.hx-proposal-tools .hx-btn { height: var(--hx-control-h); font-size: var(--corn-text-sm); font-weight: 500; }
|
|
560
559
|
#proposal-edit.hx-btn--active { background: var(--corn-edit-text); border-color: var(--corn-edit); color: var(--corn-ground); }
|
|
561
560
|
.hx-proposal-actions { margin-left: auto; }
|
|
562
|
-
.hx-proposal-actions .hx-btn { height:
|
|
561
|
+
.hx-proposal-actions .hx-btn { height: var(--hx-control-h); justify-content: center; padding: 0 var(--corn-space-5); font-size: var(--corn-text-sm); font-weight: 500; }
|
|
563
562
|
.hx-proposal-actions .hx-btn--approve, .hx-proposal-actions .hx-btn--approve:hover { background: var(--corn-accent); border-color: var(--corn-accent); color: var(--corn-text-on-accent); font-weight: 600; }
|
|
564
563
|
.hx-proposal-actions .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
565
564
|
.hx-proposal-more { position: relative; }
|
|
566
|
-
.hx-proposal-more .hx-btn--icon { width:
|
|
565
|
+
.hx-proposal-more .hx-btn--icon { width: var(--hx-control-h); height: var(--hx-control-h); border-color: transparent; background: none; color: var(--corn-text-3); }
|
|
567
566
|
.hx-proposal-more .hx-btn--icon:hover, .hx-proposal-more .hx-btn--icon[aria-expanded="true"] { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
568
567
|
.hx-proposal-more-menu { position: absolute; top: 100%; right: 0; z-index: 20; display: flex; flex-direction: column; min-width: 160px; margin-top: var(--corn-space-2); padding: var(--corn-space-2); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); box-shadow: var(--corn-shadow); }
|
|
569
568
|
.hx-proposal-more-menu[hidden] { display: none; }
|
|
570
|
-
.hx-proposal-more-menu .hx-btn { width: 100%; height:
|
|
569
|
+
.hx-proposal-more-menu .hx-btn { width: 100%; height: var(--hx-control-h); border-color: transparent; background: none; color: var(--corn-text-2); font-size: var(--corn-text-sm); }
|
|
571
570
|
.hx-proposal-more-menu .hx-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
572
571
|
|
|
573
572
|
@media (max-width: 767px) {
|
|
@@ -581,13 +580,13 @@ h2.hx-proposal-name { margin: 0; }
|
|
|
581
580
|
.hx-proposal-mode[aria-expanded="true"]::after { transform: rotate(180deg); }
|
|
582
581
|
.hx-seg, .hx-review { grid-column: 1 / -1; order: 3; }
|
|
583
582
|
.hx-proposal-bar:not([data-mode-open="true"]) .hx-seg { display: none; }
|
|
584
|
-
.hx-seg-btn { flex: 1; height:
|
|
583
|
+
.hx-seg-btn { flex: 1; height: var(--hx-seg-inner); font-size: var(--corn-text-md); }
|
|
585
584
|
.hx-proposal-actions { grid-column: 1 / -1; order: 4; display: grid; grid-template-columns: 1fr 1fr; margin-left: 0; gap: var(--corn-space-3); }
|
|
586
585
|
.hx-proposal-actions .hx-btn { height: auto; min-height: 44px; padding: var(--corn-space-2) var(--corn-space-3); white-space: normal; text-align: center; font-size: var(--corn-text-md); }
|
|
587
586
|
.hx-proposal-tools { order: 5; }
|
|
588
587
|
.hx-proposal-tools .hx-btn { height: auto; min-height: 44px; padding: 0 var(--corn-space-5); font-size: var(--corn-text-md); }
|
|
589
588
|
.hx-proposal-more { display: contents; }
|
|
590
|
-
.hx-proposal-more .hx-btn--icon { order: 6; width:
|
|
589
|
+
.hx-proposal-more .hx-btn--icon { order: 6; width: var(--hx-control-h); height: var(--hx-control-h); }
|
|
591
590
|
.hx-proposal-more-menu { position: static; grid-column: 1 / -1; order: 7; box-shadow: none; }
|
|
592
591
|
.hx-proposal-more-menu .hx-btn { height: auto; min-height: 44px; font-size: var(--corn-text-md); }
|
|
593
592
|
.hx-review .hx-btn, .hx-whatif .hx-btn { min-height: 44px; }
|
|
@@ -668,6 +667,9 @@ h2.hx-proposal-name { margin: 0; }
|
|
|
668
667
|
/* ---- the live layer (live.js, spec 0029): the chip in the toolbar, its menu, and its part of the node panel ---- */
|
|
669
668
|
.hx-live-chip { max-width: 240px; min-width: 0; }
|
|
670
669
|
@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; } }
|
|
670
|
+
/* A narrow desktop (768 to 1023px): the header has no room for the chip's words beside a signed-in search, Work and account (a scenario's step
|
|
671
|
+
turns the live layer on, and the header ran 100px past the page). The chip is its dot, as on a phone; its line is in its menu and its name in aria-label */
|
|
672
|
+
@media (min-width: 768px) and (max-width: 1023px) { .hx-live-chip-text { display: none; } }
|
|
671
673
|
.hx-live-chip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--corn-text-3); }
|
|
672
674
|
.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); }
|
|
673
675
|
.hx-live[data-tone="stale"] .hx-live-chip-dot { background: var(--corn-changed); }
|
|
@@ -677,7 +679,7 @@ h2.hx-proposal-name { margin: 0; }
|
|
|
677
679
|
.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; }
|
|
678
680
|
.hx-live-line--main { color: var(--corn-text); font-weight: 600; }
|
|
679
681
|
.hx-live-row { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); margin-top: var(--corn-space-3); }
|
|
680
|
-
.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.
|
|
682
|
+
.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.05em; }
|
|
681
683
|
.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; }
|
|
682
684
|
.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; }
|
|
683
685
|
/* The token field (live.js): shown while the live layer is off for want of a token */
|
|
@@ -753,8 +755,7 @@ h2.hx-proposal-name { margin: 0; }
|
|
|
753
755
|
.hx-forge[data-sheet-state="peek"] .hx-forge-head { padding-bottom: 0; border-bottom: 0; }
|
|
754
756
|
.hx-forge[data-sheet-state="peek"] .hx-forge-head .hx-btn { display: none; }
|
|
755
757
|
}
|
|
756
|
-
.hx-forge-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--corn-space-4); padding:
|
|
757
|
-
@media (min-width: 640px) { .hx-forge-body { padding: var(--corn-space-6) calc(var(--corn-space-5) + var(--corn-space-1)); } }
|
|
758
|
+
.hx-forge-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--corn-space-4); padding: var(--corn-panel-pad); overflow-y: auto; user-select: text; font-size: var(--corn-text-sm); }
|
|
758
759
|
.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-line-soft); }
|
|
759
760
|
.hx-forge-head .hx-drawer-title { flex: 1; min-width: 0; }
|
|
760
761
|
.hx-forge-status, .hx-forge-rate { font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
@@ -762,7 +763,7 @@ h2.hx-proposal-name { margin: 0; }
|
|
|
762
763
|
/* The tabs, in the order of the loop: underlined here, pills that scroll sideways on a phone (below) */
|
|
763
764
|
.hx-forge-tabs { display: flex; gap: calc(var(--corn-space-1) / 2); margin: 0 calc(var(--corn-space-4) * -1); padding: 0 var(--corn-space-4); border-bottom: var(--corn-border) solid var(--corn-line); overflow-x: auto; scrollbar-width: none; }
|
|
764
765
|
.hx-forge-tabs::-webkit-scrollbar { display: none; }
|
|
765
|
-
.hx-forge-tab { flex: none; display: inline-flex; align-items: baseline; gap: var(--corn-space-1); padding: var(--corn-space-2) var(--corn-space-3) var(--corn-space-3); border: 0; border-bottom: var(--corn-border-strong) solid transparent; background: none; white-space: nowrap; color: var(--corn-text-2); font-size: var(--corn-text-sm); font-weight: 500; }
|
|
766
|
+
.hx-forge-tab { flex: none; display: inline-flex; align-items: baseline; min-height: var(--hx-control-h); gap: var(--corn-space-1); padding: var(--corn-space-2) var(--corn-space-3) var(--corn-space-3); border: 0; border-bottom: var(--corn-border-strong) solid transparent; background: none; white-space: nowrap; color: var(--corn-text-2); font-size: var(--corn-text-sm); font-weight: 500; }
|
|
766
767
|
.hx-forge-tab:hover { color: var(--corn-text); }
|
|
767
768
|
.hx-forge-tab[aria-pressed="true"] { border-bottom-color: var(--corn-accent); color: var(--corn-text); font-weight: 600; }
|
|
768
769
|
.hx-forge-tab:focus-visible, .hx-forge-chip:focus-visible, .hx-forge-back:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: calc(var(--corn-focus-width) * -1); }
|
|
@@ -968,7 +969,6 @@ a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface
|
|
|
968
969
|
.hx-kicker [data-corn="badge"] { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
|
|
969
970
|
#drawer-host { white-space: pre; } /* the kicker is a flex row, which drops a leading space: keep " · host" */
|
|
970
971
|
.hx-diffpill { margin-left: var(--corn-space-3); padding: 0 var(--corn-space-3); border-radius: var(--corn-radius-pill); border: var(--corn-border) dashed var(--corn-added); color: var(--corn-added-text); font-size: var(--corn-text-xs); }
|
|
971
|
-
.hx-drawer-id .hx-drawer-title { font-size: var(--corn-text-xl); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
|
|
972
972
|
.hx-drawer-id .hx-drawer-title.hx-mono { font-family: var(--corn-mono); }
|
|
973
973
|
.hx-facts { display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
974
974
|
.hx-fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--corn-space-4); }
|
|
@@ -1003,7 +1003,7 @@ a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface
|
|
|
1003
1003
|
.hx-diff-v { min-width: 0; overflow-wrap: anywhere; }
|
|
1004
1004
|
.hx-drawer .hx-why { margin: 0; }
|
|
1005
1005
|
.hx-drawer-foot .hx-open[hidden], .hx-drawer-foot .hx-foot-btn[hidden] { display: none; }
|
|
1006
|
-
.hx-foot-btn { min-height:
|
|
1006
|
+
.hx-foot-btn { min-height: var(--hx-control-h); padding: 0 var(--corn-space-4); justify-content: center; }
|
|
1007
1007
|
@media (max-width: 767px) {
|
|
1008
1008
|
/* a phone: the sheet's actions are full width at the foot, each a 44px target */
|
|
1009
1009
|
.hx-drawer-foot { flex-direction: column; }
|
|
@@ -1156,8 +1156,7 @@ a.hx-proposal-source:focus-visible { outline: var(--corn-focus-width) solid var(
|
|
|
1156
1156
|
.hx-forge-empty { line-height: 1.5; }
|
|
1157
1157
|
|
|
1158
1158
|
/* The panel's title row and tabs stay in place while a list scrolls; the body's padding is taken up by the top so nothing shows above it */
|
|
1159
|
-
.hx-forge-body { --hx-forge-pad:
|
|
1160
|
-
@media (min-width: 640px) { .hx-forge-body { --hx-forge-pad: var(--corn-space-6); --hx-forge-padx: calc(var(--corn-space-5) + var(--corn-space-1)); } }
|
|
1159
|
+
.hx-forge-body { --hx-forge-pad: var(--corn-panel-pad); --hx-forge-padx: var(--corn-panel-pad); }
|
|
1161
1160
|
.hx-forge-top { position: sticky; top: calc(var(--hx-forge-pad) * -1); z-index: 3; display: flex; flex-direction: column; gap: var(--corn-space-4); margin: calc(var(--hx-forge-pad) * -1) calc(var(--hx-forge-padx) * -1) 0; padding: var(--hx-forge-pad) var(--hx-forge-padx) 0; background: linear-gradient(var(--corn-surface-1), var(--corn-surface-1)), var(--corn-ground); } /* opaque: the panel's surface over the ground, so a list scrolls under it without showing through */
|
|
1162
1161
|
.hx-forge-top .hx-forge-tabs { margin: 0 calc(var(--hx-forge-padx) * -1); padding: 0 var(--hx-forge-padx); }
|
|
1163
1162
|
/* Where the tabs run on past an edge (a phone), they fade out on that side: a mask (only its alpha counts, so any opaque token does), so it works on any surface and in any theme */
|
|
@@ -1193,7 +1192,7 @@ a.hx-proposal-source:focus-visible { outline: var(--corn-focus-width) solid var(
|
|
|
1193
1192
|
/* On a phone the list is in the search bar, under the sheets (the dock, 45): while it is open the bar is over them, so a proposal's or the
|
|
1194
1193
|
Work sheet never covers rows of it. Without :has() the list stays under the sheets, as the bar always was */
|
|
1195
1194
|
.hx-mobile-search:has(.hx-search-results:not([hidden])) { z-index: 46; }
|
|
1196
|
-
.hx-search-group-title { position: sticky; top: 0; display: flex; justify-content: space-between; gap: var(--corn-space-3); padding: var(--corn-space-2) var(--corn-space-3) var(--corn-space-1); background: var(--corn-ground); color: var(--corn-text-3); font-size: var(--corn-text-2xs); font-weight:
|
|
1195
|
+
.hx-search-group-title { position: sticky; top: 0; display: flex; justify-content: space-between; gap: var(--corn-space-3); padding: var(--corn-space-2) var(--corn-space-3) var(--corn-space-1); background: var(--corn-ground); color: var(--corn-text-3); font-size: var(--corn-text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
1197
1196
|
.hx-search-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--corn-space-3); width: 100%; min-height: 28px; padding: var(--corn-space-1) var(--corn-space-3); border: 0; border-left: var(--corn-border-strong) solid transparent; background: none; color: var(--corn-text); font: inherit; text-align: left; cursor: pointer; }
|
|
1198
1197
|
.hx-search-row:hover, .hx-search-row:focus-visible { background: var(--corn-surface-3); }
|
|
1199
1198
|
.hx-search-row[aria-current="true"] { border-left-color: var(--corn-accent); background: var(--corn-accent-soft); }
|
|
@@ -1237,19 +1236,19 @@ a.hx-proposal-source:focus-visible { outline: var(--corn-focus-width) solid var(
|
|
|
1237
1236
|
.hx-rc-h { flex: none; }
|
|
1238
1237
|
.hx-rc-tabs { display: flex; gap: var(--corn-space-2); }
|
|
1239
1238
|
.hx-rc-tabs[hidden] { display: none; }
|
|
1240
|
-
.hx-rc-tab { flex: 1; min-height:
|
|
1239
|
+
.hx-rc-tab { flex: 1; min-height: var(--hx-control-h); padding: 0 var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-3); font: inherit; font-weight: 600; cursor: pointer; }
|
|
1241
1240
|
.hx-rc-tab[aria-selected="true"] { background: var(--corn-accent); border-color: var(--corn-accent); color: var(--corn-text-on-accent); }
|
|
1242
1241
|
.hx-rc-tab:focus-visible, .hx-sc-row:focus-visible, .hx-step:focus-visible, .hx-rc-h:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
1243
1242
|
.hx-rc-section[hidden] { display: none; }
|
|
1244
|
-
.hx-rc-h { margin: 0 0 var(--corn-space-2); font-size: var(--corn-text-sm); font-weight:
|
|
1243
|
+
.hx-rc-h { margin: 0 0 var(--corn-space-2); font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); }
|
|
1245
1244
|
.hx-rc-h [data-corn="count"] { color: var(--corn-text-3); font-variant-numeric: tabular-nums; }
|
|
1246
|
-
.hx-rc-empty, .hx-rc-note, .hx-rc-coverage { margin: var(--corn-space-2) 0 0; line-height: 1.
|
|
1245
|
+
.hx-rc-empty, .hx-rc-note, .hx-rc-coverage { margin: var(--corn-space-2) 0 0; line-height: 1.5; }
|
|
1247
1246
|
.hx-rc-coverage { color: var(--corn-text-2); }
|
|
1248
1247
|
.hx-change-list, .hx-sc-list, .hx-steps { margin: 0; padding: 0; list-style: none; }
|
|
1249
1248
|
.hx-change-list { display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
1250
1249
|
.hx-persona { margin-top: var(--corn-space-4); }
|
|
1251
1250
|
.hx-persona:first-of-type { margin-top: 0; }
|
|
1252
|
-
.hx-persona-name { margin: 0 0 var(--corn-space-1); font-size: var(--corn-text-xs); font-weight:
|
|
1251
|
+
.hx-persona-name { margin: 0 0 var(--corn-space-1); font-size: var(--corn-text-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--corn-text-3); overflow-wrap: anywhere; } /* a persona's name in its own words (0.39.0), not a label: sentence case */
|
|
1253
1252
|
.hx-sc-list { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
1254
1253
|
.hx-sc-row { display: flex; align-items: flex-start; gap: var(--corn-space-3); width: 100%; padding: var(--corn-space-2) var(--corn-space-2); border: var(--corn-border) solid var(--corn-line-soft); border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text); font: inherit; text-align: left; cursor: pointer; }
|
|
1255
1254
|
.hx-sc-row:hover { background: color-mix(in srgb, var(--corn-accent-hover) 18%, transparent); }
|
|
@@ -1429,6 +1428,7 @@ a.hx-proposal-source:focus-visible { outline: var(--corn-focus-width) solid var(
|
|
|
1429
1428
|
.hx-lines-reach { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-3); font-size: var(--corn-text-sm); color: var(--corn-text-2); font-variant-numeric: tabular-nums; }
|
|
1430
1429
|
@media (max-width: 767px), (pointer: coarse) {
|
|
1431
1430
|
.hx-lines-kind, .hx-lines-switch, .hx-lines-list .hx-linkbtn, .hx-lines-reach .hx-btn { min-height: 44px; }
|
|
1431
|
+
.hx-lines-kind { align-items: center; } /* in a 44px chip the words sit in the middle, not at the top */
|
|
1432
1432
|
.hx-lines-switch input { width: 24px; height: 24px; }
|
|
1433
1433
|
}
|
|
1434
1434
|
|
|
@@ -1441,7 +1441,7 @@ a.hx-proposal-source:focus-visible { outline: var(--corn-focus-width) solid var(
|
|
|
1441
1441
|
.hx-key-note { margin: var(--corn-space-1) 0 0; font-size: var(--corn-text-xs); }
|
|
1442
1442
|
|
|
1443
1443
|
/* ===== Spec 0007: the decision. The line above Approve, the question asked in place, the hold with Undo, a landing that waits, what a send back carried ===== */
|
|
1444
|
-
.hx-decision-line { margin: 0; color: var(--corn-text-2); font-size: var(--corn-text-sm); line-height: 1.
|
|
1444
|
+
.hx-decision-line { margin: 0; color: var(--corn-text-2); font-size: var(--corn-text-sm); line-height: 1.5; }
|
|
1445
1445
|
.hx-decision-line[hidden], .hx-review-ask[hidden], .hx-hold[hidden], .hx-review-landing[hidden], .hx-sent-edits[hidden] { display: none; }
|
|
1446
1446
|
.hx-review-ask { margin: 0; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid color-mix(in srgb, var(--corn-warn) 55%, transparent); background: color-mix(in srgb, var(--corn-warn) 14%, transparent); color: var(--corn-text); line-height: 1.4; }
|
|
1447
1447
|
.hx-review-landing { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); color: var(--corn-text-2); }
|
|
@@ -1462,7 +1462,51 @@ a.hx-proposal-source:focus-visible { outline: var(--corn-focus-width) solid var(
|
|
|
1462
1462
|
@media (prefers-reduced-motion: reduce) { .hx-hold { display: none; } .hx-hold-fill { animation: none; } } /* only the words count down */
|
|
1463
1463
|
.hx-rc-sub { margin: var(--corn-space-2) 0 var(--corn-space-1); font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text); }
|
|
1464
1464
|
.hx-proposal-yours { display: inline-flex; align-items: center; gap: var(--corn-space-1); color: var(--corn-text-2); }
|
|
1465
|
-
.hx-proposal-tools [aria-pressed="false"] { opacity: 0.8; }
|
|
1465
|
+
.hx-proposal-tools [aria-pressed="false"]:not([data-corn="whole-map"]) { opacity: 0.8; } /* My edits off; "Whole map" off is the review's own view, not a faded choice */
|
|
1466
1466
|
.hx-whatif-row [aria-disabled="true"] { opacity: 0.55; cursor: default; }
|
|
1467
1467
|
.hx-runner-dot { display: inline-block; width: 8px; height: 8px; margin-left: var(--corn-space-1); border-radius: 50%; background: var(--corn-warn); vertical-align: middle; }
|
|
1468
1468
|
.hx-runner-dot[hidden] { display: none; }
|
|
1469
|
+
/* ---- Layers menu: a dot's outline and a kind's swatch (issue #229) ---- */
|
|
1470
|
+
/* A fill under 3:1 on the menu keeps its colour and gets an outline: the map's own (--corn-map-stroke, set inline as --hx-dot-ring) when the theme sets one */
|
|
1471
|
+
.hx-dot.is-ringed { outline: var(--corn-border) solid var(--hx-dot-ring, var(--corn-text-3)); outline-offset: 0; }
|
|
1472
|
+
/* The swatch before a kind's letters: the theme's --corn-map-kind-<type>-<kind>; decoration, the letters and the name stay */
|
|
1473
|
+
.hx-kind-swatch { margin-inline-end: calc(var(--corn-space-1) * -1); }
|
|
1474
|
+
.hx-kind-swatch.is-blank { visibility: hidden; }
|
|
1475
|
+
/* ---- end: Layers menu dots ---- */
|
|
1476
|
+
|
|
1477
|
+
/* ==== one panel head, one control height, one title (issue #200, F53 of the 0.34 design review) ==========================================
|
|
1478
|
+
The measured scatter was values that sit between two steps, or that three places chose differently: a panel title of 14, 15 and 20px, controls of
|
|
1479
|
+
24 to 36px in one bar, paddings of 20 and 24px on two panels that sit side by side. They now share the tokens --corn-control-height,
|
|
1480
|
+
--corn-panel-pad and --corn-panel-head-height (docs/theming.md, "Density"). No rule here is more specific than one class (an ancestor is in :where()),
|
|
1481
|
+
so a theme's [data-corn] rule, loaded later, still wins.
|
|
1482
|
+
The rules read --hx-control-h, the token on a desk and never under 44px on a phone: a brand that sets --corn-control-height on :root (which also
|
|
1483
|
+
overrides tokens.css's phone value) cannot take a phone's targets under 44px; one that sets it higher than 44px gets its height on a phone too.
|
|
1484
|
+
A segmented control (View, Before / Diff / After, the theme choice) is the control height outside; its buttons are that less the frame
|
|
1485
|
+
(the padding and the two borders), or the full height on a phone, where each button is the 44px target and the frame is outside it. */
|
|
1486
|
+
:root { --hx-control-h: var(--corn-control-height); }
|
|
1487
|
+
@media (max-width: 767px) { :root { --hx-control-h: max(44px, var(--corn-control-height)); } }
|
|
1488
|
+
:root { --hx-seg-inner: calc(var(--hx-control-h) - var(--corn-space-1) - 2 * var(--corn-border)); }
|
|
1489
|
+
@media (max-width: 767px) { :root { --hx-seg-inner: var(--hx-control-h); } }
|
|
1490
|
+
|
|
1491
|
+
/* The title of a panel: the Work panel, the node panel, the proposal bar, a detail in the Work panel and a dialog are one style. A node's name is long and
|
|
1492
|
+
often a path, so it wraps (overflow-wrap) in this size rather than being set larger than the panel's own words. */
|
|
1493
|
+
.hx-drawer-title, .hx-forge-detail-title, .hx-forge-notes-title, .hx-confirm-title, .hx-proposal-name { font-size: var(--corn-text-lg); font-weight: 700; line-height: 1.25; letter-spacing: normal; }
|
|
1494
|
+
|
|
1495
|
+
/* The head of a panel: its title row. The Work panel and the node panel start at one edge (the padding is --corn-panel-pad) and the head is at least this tall */
|
|
1496
|
+
.hx-forge-head, .hx-drawer-head { min-height: var(--corn-panel-head-height); }
|
|
1497
|
+
|
|
1498
|
+
/* The controls of a bar that had no height of their own */
|
|
1499
|
+
/* (the waiting line's Answer is in the proposal bar too, so it is the bar's height; it is a strip's action elsewhere, at its own size) */
|
|
1500
|
+
:where(.hx-forge-head, .hx-player-controls, .hx-player-as, .hx-proposal-bar .hx-waiting-line) .hx-btn, :where(.hx-header) .hx-live-chip { height: var(--hx-control-h); }
|
|
1501
|
+
/* ==== end of the panel head and control height ============================================================================================ */
|
|
1502
|
+
|
|
1503
|
+
/* ---- The review narrows the map to the change (issue #232) ---- */
|
|
1504
|
+
/* A Layers row the review hid: its name with "hidden while reviewing" under it */
|
|
1505
|
+
.hx-toggle-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
|
|
1506
|
+
/* On a desk "Whole map" sits on the title's row, beside the source, so the row of counts, Compare, Edit and More keeps the one line it had: at the
|
|
1507
|
+
control height, drawn over the row's own 24px (the source's; --corn-space-6) so the bar is no taller. On a phone it stays with Edit, 44px */
|
|
1508
|
+
@media (min-width: 768px) {
|
|
1509
|
+
.hx-proposal-tools { display: contents; }
|
|
1510
|
+
.hx-proposal-name, .hx-proposal-source { order: -2; }
|
|
1511
|
+
:where(.hx-proposal-head) [data-corn="whole-map"] { order: -1; margin-block: calc((var(--corn-space-6) - var(--hx-control-h)) / 2); } /* the row is 24px (--corn-space-6 by default), the source's height */
|
|
1512
|
+
}
|
package/explorer/flows.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
import { state, nameOf, escHtml } from './state.js';
|
|
16
16
|
import { themed } from './theme-model.js';
|
|
17
17
|
import { capped } from './capped.js';
|
|
18
|
+
import { layersOf } from './layer-model.js';
|
|
18
19
|
|
|
19
20
|
export const FLOW_STYLES = {
|
|
20
21
|
outbox: { color: '#f59e0b', label: 'Outbox → API (writes)' },
|
|
@@ -132,7 +133,7 @@ export function buildDataFlow(nodes, edges) {
|
|
|
132
133
|
export function renderFlowLegend() {
|
|
133
134
|
const el = document.getElementById('flow-legend');
|
|
134
135
|
if (!el) return;
|
|
135
|
-
const
|
|
136
|
+
const activeLayers = layersOf(state);
|
|
136
137
|
if (activeLayers.flow === false && activeLayers.table === false) { el.innerHTML = ''; el.hidden = true; return; }
|
|
137
138
|
el.hidden = false;
|
|
138
139
|
const row = (swatch, text) => `<div class="hx-legend-row"><span class="hx-legend-swatch">${swatch}</span><span>${text}</span></div>`;
|
package/explorer/forge-panel.js
CHANGED
|
@@ -74,6 +74,7 @@ import { trapTab } from './focusables.js';
|
|
|
74
74
|
import { isPhone, registerSheet, expandSheet, collapseSheet, showSheet, refreshStubs } from './sheets.js';
|
|
75
75
|
import { relativeTime } from './review-model.js';
|
|
76
76
|
import { LAYER_DEFS, toggleLayer } from './layers.js';
|
|
77
|
+
import { layerOn } from './layer-model.js';
|
|
77
78
|
import { WORK_URL, groupWork, filterGroups, groupWords, workStatus, markWords } from './agents-model.js';
|
|
78
79
|
import {
|
|
79
80
|
RUNS_URL, runsUrl, stopUrl, runOnThread, threadRunWords, runOnPull, pullRunWords, canRetry, retryRefs, retryWords, limitsFromFields, defaultLimits, LIMIT_KEYS, briefUrl, answerUrl, answerBody, answerWordsFor, KINDS, aboutWords, statusWords, statusWhy, runMeta, canStop, runsStatus, runnerState, runnerWords, triggerNotice, totalsLines, handLines, startBody, startWords, stopWords, confirmStartWords, litOfRun, changeWords,
|
|
@@ -494,7 +495,7 @@ export function selectDeploy(id) {
|
|
|
494
495
|
const turnedOn = [];
|
|
495
496
|
for (const n of litForDeploy(found, state.nodes).nodes) {
|
|
496
497
|
const layer = LAYER_DEFS.find((l) => l.key === n.type);
|
|
497
|
-
if (layer && state
|
|
498
|
+
if (layer && !layerOn(state, layer.key)) { toggleLayer(layer.key); turnedOn.push(layer.label); }
|
|
498
499
|
}
|
|
499
500
|
relight();
|
|
500
501
|
$('forge-panel').querySelector('.hx-forge-body').scrollTop = 0; // the deploy's nodes are what was asked for, not the row that was tapped
|
package/explorer/index.html
CHANGED
|
@@ -216,6 +216,9 @@
|
|
|
216
216
|
</div>
|
|
217
217
|
<div class="hx-proposal-tools">
|
|
218
218
|
<!-- Shown only while there are what-if edits: off, the map is the proposal as written; the edits are kept and still go with a review (whatif.js) -->
|
|
219
|
+
<!-- The review narrows the map to the change; this puts the whole map back, as Diff always was (layers.js setWholeMap). Off at every opening -->
|
|
220
|
+
<!-- Its words are "Whole map", which read right pressed or not; its name and tooltip are the full "Show the whole map". On a desk it sits beside the title, so the bar keeps its rows (explorer.css) -->
|
|
221
|
+
<button data-corn="whole-map" data-corn-kind="secondary" type="button" id="proposal-whole" class="hx-btn" data-action="proposal-whole" aria-pressed="false" aria-label="Show the whole map" title="Show the whole map" data-peek-ok data-corn-string="wholeMap" data-corn-string-aria-label="showWholeMap">Whole map</button>
|
|
219
222
|
<button data-corn-kind="secondary" type="button" id="proposal-myedits" class="hx-btn" aria-pressed="true" data-peek-ok data-corn-string="myEdits" hidden>My edits</button>
|
|
220
223
|
<button data-corn-kind="secondary" type="button" id="proposal-edit" class="hx-btn" aria-expanded="false" aria-controls="whatif" title="Try a change: add a node or an edge, reword a scenario">Edit</button>
|
|
221
224
|
</div>
|
package/explorer/labels.js
CHANGED
|
@@ -69,8 +69,10 @@ const REF = 100;
|
|
|
69
69
|
/** The grid the placing looks for neighbours in (px) */
|
|
70
70
|
const CELL = 64;
|
|
71
71
|
|
|
72
|
-
/** Priority tiers, best first */
|
|
73
|
-
const TIER = { selected: 0, current: 1, match: 2, lit: 3, marked: 4, hub: 5, rest: 6 };
|
|
72
|
+
/** Priority tiers, best first. `greyed`: a node a review greys (issue #232), after everything else, a hub's title included */
|
|
73
|
+
const TIER = { selected: 0, current: 1, match: 2, lit: 3, marked: 4, hub: 5, rest: 6, greyed: 7 };
|
|
74
|
+
/** A greyed node's label keeps this many of its own heights clear on every side: the change's labels stand out, and the greyed map is named sparsely */
|
|
75
|
+
export const GREYED_ROOM = 1.5;
|
|
74
76
|
|
|
75
77
|
/**
|
|
76
78
|
* The smallest label size on screen (px) for a theme's `--corn-map-label-min` (a number, or null for `auto`): a theme may raise the 11 px,
|
|
@@ -82,14 +84,16 @@ export const labelMinPx = (value) => (Number.isFinite(value) && value >= LABEL_M
|
|
|
82
84
|
/** The smallest label size on screen (px) for a scene: the theme's `--corn-map-label-min`, never under 11 */
|
|
83
85
|
export const labelMinOf = (scene) => labelMinPx(scene.labelMin);
|
|
84
86
|
|
|
85
|
-
|
|
87
|
+
/** A cluster's title: bigger and bold, unless a review greys it (then it is a plain label, placed last) */
|
|
88
|
+
const isHub = (node) => LANDMARK_TYPES.includes(node.type) && !node.greyed;
|
|
86
89
|
|
|
87
90
|
const tierOf = (node, focused) => (node.selected ? TIER.selected
|
|
88
91
|
: node.current ? TIER.current
|
|
89
92
|
: node.match ? TIER.match
|
|
90
93
|
: focused && node.connected ? TIER.lit
|
|
91
94
|
: (node.mark && node.mark !== 'none') || (node.labelKeep && !isHub(node)) ? TIER.marked
|
|
92
|
-
:
|
|
95
|
+
: node.greyed ? TIER.greyed
|
|
96
|
+
: isHub(node) ? TIER.hub : TIER.rest);
|
|
93
97
|
|
|
94
98
|
/**
|
|
95
99
|
* Which node labels fit at `zoom`, and where. The whole map, not the view: a box is in zoom-scaled world coordinates (`x * zoom`, no
|
|
@@ -118,15 +122,16 @@ export function placeLabels(scene, zoom, opts = {}) {
|
|
|
118
122
|
const gap = Math.max(GAP_PX, GAP_PX * zoom);
|
|
119
123
|
for (const { node, index, tier } of cands) {
|
|
120
124
|
const hub = isHub(node);
|
|
121
|
-
const bold = !!node.labelBold || hub;
|
|
125
|
+
const bold = !node.greyed && (!!node.labelBold || hub); // a greyed node's label is plain, whatever asked for bold
|
|
122
126
|
const px = Math.max(hub ? min + HUB_LABEL_EXTRA_PX : min, node.labelSize * zoom);
|
|
123
127
|
const w = measure ? (measure(node.label, REF, bold) * px) / REF : node.label.length * px * GLYPH;
|
|
124
128
|
const cx = node.x * zoom;
|
|
125
129
|
const baseline = node.y * zoom + node.r * zoom + gap + px;
|
|
126
130
|
const l = cx - w / 2, r = cx + w / 2, t = baseline - px * ASCENT, b = baseline + px * DESCENT;
|
|
127
|
-
// Touching a placed box, give or take LABEL_PAD: skipped
|
|
128
|
-
const
|
|
129
|
-
const
|
|
131
|
+
// Touching a placed box, give or take LABEL_PAD (a greyed node's: GREYED_ROOM of its heights): skipped
|
|
132
|
+
const pad = tier === TIER.greyed ? LABEL_PAD + px * GREYED_ROOM : LABEL_PAD;
|
|
133
|
+
const i0 = Math.floor((l - pad) / CELL), i1 = Math.floor((r + pad) / CELL);
|
|
134
|
+
const j0 = Math.floor((t - pad) / CELL), j1 = Math.floor((b + pad) / CELL);
|
|
130
135
|
let hit = false;
|
|
131
136
|
for (let i = i0; i <= i1 && !hit; i++) {
|
|
132
137
|
for (let j = j0; j <= j1 && !hit; j++) {
|
|
@@ -134,7 +139,7 @@ export function placeLabels(scene, zoom, opts = {}) {
|
|
|
134
139
|
if (!cell) continue;
|
|
135
140
|
for (let k = 0; k < cell.length; k++) {
|
|
136
141
|
const o = cell[k];
|
|
137
|
-
if (l -
|
|
142
|
+
if (l - pad < o.r && r + pad > o.l && t - pad < o.b && b + pad > o.t) { hit = true; break; }
|
|
138
143
|
}
|
|
139
144
|
}
|
|
140
145
|
}
|