@popcorn245/cornfield 0.47.0 → 0.49.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/contrast.js +6 -6
- package/core/strings.js +14 -0
- package/explorer/check.js +7 -227
- package/explorer/connection.js +3 -3
- package/explorer/css/account.css +46 -0
- package/explorer/css/base.css +159 -0
- package/explorer/css/changes.css +160 -0
- package/explorer/css/decision.css +68 -0
- package/explorer/css/dialogs.css +50 -0
- package/explorer/css/header.css +75 -0
- package/explorer/css/layers.css +92 -0
- package/explorer/css/live.css +48 -0
- package/explorer/css/map.css +43 -0
- package/explorer/css/node-panel.css +188 -0
- package/explorer/css/page.css +83 -0
- package/explorer/css/proposal.css +151 -0
- package/explorer/css/search.css +84 -0
- package/explorer/css/sheets.css +134 -0
- package/explorer/css/whatif.css +55 -0
- package/explorer/css/work.css +288 -0
- package/explorer/engine/checks.js +252 -0
- package/explorer/engine/connection.js +36 -0
- package/explorer/engine/layers.js +1 -0
- package/explorer/engine/map-style.js +2 -2
- package/explorer/engine/player.js +489 -0
- package/explorer/engine/proposal.js +373 -0
- package/explorer/engine/render.js +1 -0
- package/explorer/engine/source.js +315 -0
- package/explorer/engine/theme-sheet.js +444 -0
- package/explorer/focus-room.js +1 -1
- package/explorer/header-fit.js +3 -3
- package/explorer/house.css +1 -1
- package/explorer/index.html +23 -61
- package/explorer/instance.js +82 -6
- package/explorer/page-address.js +59 -0
- package/explorer/page-pieces.js +33 -5
- package/explorer/page.js +20 -20
- package/explorer/panels.js +1 -3
- package/explorer/pieces/changes.js +502 -0
- package/explorer/pieces/decision.js +657 -0
- package/explorer/pieces/layers.js +4 -0
- package/explorer/pieces/map-stage.css +1 -1
- package/explorer/pieces/map.js +113 -2
- package/explorer/pieces/node-panel.js +34 -1
- package/explorer/pieces/proposal.js +488 -0
- package/explorer/pieces/scope-link.js +50 -0
- package/explorer/pieces/scope.js +247 -0
- package/explorer/pieces/status.css +24 -0
- package/explorer/pieces/status.js +144 -0
- package/explorer/plugins.js +0 -10
- package/explorer/proposal.js +64 -697
- package/explorer/review-column.js +24 -439
- package/explorer/review.js +27 -673
- package/explorer/scenario-ui.js +32 -478
- package/explorer/sheets.js +8 -7
- package/explorer/theme-model.js +1 -1
- package/explorer/theme.js +1 -1
- package/explorer/tokens.css +2 -2
- package/explorer/view.js +6 -5
- package/explorer/waiting-line.js +7 -50
- package/package.json +1 -1
- package/server/components.js +144 -0
- package/server/embed.js +3 -1
- package/server/server.js +9 -1
- package/explorer/explorer.css +0 -1512
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* sheets.css: phone sheets
|
|
3
|
+
* The phone's bottom sheets (sheets.js, TOPO-18; spec 0010 D7): the proposal bar, the scenario player, the node panel and the Work panel
|
|
4
|
+
* stack in #sheet-dock at the bottom of the map, a peek until a tap or swipe on the handle opens one. Cornfield's page shell only: no piece
|
|
5
|
+
* sheets itself. The dock is a descendant of the stage; its height rules ask the screen's, which is the `corn-page` container (the body).
|
|
6
|
+
* No rule here asks what the document says (`:root`, `html`, `body`, `[data-theme]`), sizes from the window (`vw`, `vh`) or is `position: fixed` unless it says why;
|
|
7
|
+
* a width rule is a container query on `corn-box` (page.css), a height rule on `corn-page`. base.css loads first.
|
|
8
|
+
*/
|
|
9
|
+
/* ---- phone bottom sheets (sheets.js, TOPO-18) ----------------------------------------------------
|
|
10
|
+
Below 768px the proposal bar, the scenario player and the node panel stack in #sheet-dock at the bottom of
|
|
11
|
+
the map. Each is a peek (a handle, a title, a line or two) until a tap or swipe on its handle expands it
|
|
12
|
+
to at most half the screen (the node panel 60%) with its own scroll. From 768px the dock is display: contents and
|
|
13
|
+
none of this applies. */
|
|
14
|
+
.hx-dock { display: contents; }
|
|
15
|
+
.hx-sheet-handle { display: none; }
|
|
16
|
+
@keyframes hx-sheet-in { from { transform: translateY(28px); opacity: 0; } }
|
|
17
|
+
@container corn-box (max-width: 767px) {
|
|
18
|
+
.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; }
|
|
19
|
+
.hx-dock > * { pointer-events: auto; }
|
|
20
|
+
.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: var(--corn-shadow-sheet); overscroll-behavior: contain; animation: hx-sheet-in 0.2s ease-out; --sheet-pb: var(--corn-space-3); }
|
|
21
|
+
.hx-dock > .hx-sheet[data-sheet-last]:not(.hx-drawer) { padding-bottom: calc(var(--sheet-pb) + env(safe-area-inset-bottom, 0px)); }
|
|
22
|
+
.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; }
|
|
23
|
+
.hx-sheet-handle span { width: 40px; height: 5px; border-radius: var(--corn-radius-pill); background: var(--corn-surface-3); }
|
|
24
|
+
.hx-sheet-handle:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: calc(var(--corn-focus-width) * -1); border-radius: var(--corn-radius); }
|
|
25
|
+
.hx-player > .hx-sheet-handle { flex: 0 0 100%; }
|
|
26
|
+
}
|
|
27
|
+
@media (prefers-reduced-motion: reduce) {
|
|
28
|
+
.hx-dock > .hx-sheet { animation: none; }
|
|
29
|
+
.hx-sheet, .hx-dock > .hx-sheet { transition: none; animation: none; }
|
|
30
|
+
}
|
|
31
|
+
@container corn-box (max-width: 767px) {
|
|
32
|
+
.hx-sheet-handle { height: 44px; } /* the grip is drawn the same; the button itself is 44px (a hit area stretched past it is clipped by the sheet above, and covers its title below) */
|
|
33
|
+
}
|
|
34
|
+
@media (pointer: coarse) {
|
|
35
|
+
.hx-sheet-handle { height: 44px; } /* the grip is drawn the same; the button itself is 44px (a hit area stretched past it is clipped by the sheet above, and covers its title below) */
|
|
36
|
+
}
|
|
37
|
+
/* ==========================================================================
|
|
38
|
+
Sheets on a phone (spec 0010 D7): two at most, one expanded, a stub for the other, and the map keeps 35% of the screen
|
|
39
|
+
========================================================================== */
|
|
40
|
+
.hx-sheet-stub { display: none; }
|
|
41
|
+
@container corn-box (max-width: 767px) {
|
|
42
|
+
/* The node panel and Work take turns: the one displaced is hidden, not closed (its node stays selected) */
|
|
43
|
+
.hx-dock > .hx-sheet[data-sheet-away] { display: none; }
|
|
44
|
+
/* A stub: one 44px row with the sheet's title and its badge; a tap expands it, and the expanded one folds to a stub in its place */
|
|
45
|
+
.hx-dock > .hx-sheet[data-sheet-state="stub"] { min-height: 44px; max-height: 44px; padding-top: 0; padding-bottom: 0; overflow: hidden; }
|
|
46
|
+
.hx-dock > .hx-sheet[data-sheet-state="stub"] > :not(.hx-sheet-stub) { display: none !important; }
|
|
47
|
+
.hx-sheet-stub { display: flex; align-items: center; gap: var(--corn-space-3); width: 100%; min-height: 44px; padding: 0 var(--corn-space-1); border: 0; background: none; color: var(--corn-text); font: inherit; font-weight: 600; text-align: left; }
|
|
48
|
+
.hx-sheet-stub[hidden] { display: none; }
|
|
49
|
+
.hx-sheet-stub:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: calc(var(--corn-focus-width) * -1); border-radius: var(--corn-radius); }
|
|
50
|
+
.hx-sheet-stub-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
51
|
+
.hx-proposal-bar[data-sheet-state="peek"] .hx-review > :not([data-review-hint]):not([data-review-msg]):not([data-review-line]):not([data-review-ask]):not([data-review-hold]):not([data-review-hold-live]):not([data-review-landing]) { display: none; } /* the peek keeps the line Approve points at, the question, the hold, a landing that waits, and a refusal */
|
|
52
|
+
/* While a scenario plays the proposal sheet folds to its title and counts: the player needs the room */
|
|
53
|
+
.hx-dock:has(> .hx-player) .hx-proposal-bar[data-sheet-state="peek"] .hx-rc-foot { display: none; }
|
|
54
|
+
.hx-proposal-bar[data-sheet-state="expanded"] .hx-whatif-panel { max-height: none; overflow: visible; }
|
|
55
|
+
.hx-proposal-bar[data-sheet-state="peek"] > :not(.hx-sheet-handle):not(#proposal-message):not(#proposal-ways):not(#proposal-body), .hx-proposal-bar[data-sheet-state="peek"] #proposal-body > :not(.hx-proposal-head), .hx-proposal-bar[data-sheet-state="peek"] .hx-proposal-head > :is(.hx-proposal-tools, .hx-proposal-more, .hx-proposal-more-menu) { display: none; }
|
|
56
|
+
}
|
|
57
|
+
@container corn-box (max-width: 767px) {
|
|
58
|
+
@container corn-page (max-height: 480px) {
|
|
59
|
+
/* A short window (400% zoom is 225px tall): an open sheet may take the window, and the node panel's title wraps */
|
|
60
|
+
.hx-proposal-bar[data-sheet-state="expanded"] { max-height: calc(100cqh - var(--corn-space-3)); }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
@container corn-box (max-width: 767px) {
|
|
64
|
+
.hx-proposal-bar[data-sheet-state="peek"] .hx-proposal-chip { display: none; }
|
|
65
|
+
/* Opened, the sheet's switch carries the counts, so the head is one short row: Before / Diff / After, Edit and ⋯ */
|
|
66
|
+
.hx-proposal-bar[data-sheet-state="expanded"] { max-height: 62cqh; }
|
|
67
|
+
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-chip, .hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-summary { display: none; }
|
|
68
|
+
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-counts { grid-column: 1; order: 3; }
|
|
69
|
+
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-tools { grid-column: 2; order: 4; }
|
|
70
|
+
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-head { grid-template-columns: minmax(0, 1fr) auto auto; }
|
|
71
|
+
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-more .hx-btn--icon { grid-column: 3; order: 4; }
|
|
72
|
+
.hx-proposal-bar[data-sheet-state="peek"] .hx-proposal-peek { display: block; color: var(--corn-text-2); }
|
|
73
|
+
}
|
|
74
|
+
@container corn-box (max-width: 767px) {
|
|
75
|
+
@container corn-page (min-height: 481px) {
|
|
76
|
+
/* An expanded sheet is capped so the map keeps 35% of the screen: sheets.js writes `--hx-sheet-cap` (the screen less the map's share, less a stub). Not in a short
|
|
77
|
+
window (400% zoom), where an open sheet may take the window. */
|
|
78
|
+
.hx-dock > .hx-proposal-bar[data-sheet-state="expanded"] { max-height: min(var(--hx-sheet-cap, 50cqh), 50cqh); }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@container corn-box (max-width: 767px) {
|
|
82
|
+
.hx-player[data-sheet-state="expanded"] { overflow-y: auto; }
|
|
83
|
+
.hx-player[data-sheet-state="peek"] > :not(.hx-sheet-handle):not(.hx-player-controls):not(.hx-player-text):not(.hx-player-side):not(.hx-player-track):not(.hx-player-says) { display: none; } /* Previous, Pause and Next stay in the peek, with the counter and Close */
|
|
84
|
+
.hx-player[data-sheet-state="peek"] .hx-player-text { flex: 1 1 0; display: flex; align-items: center; gap: var(--corn-space-2); min-height: 44px; overflow: hidden; font-size: var(--corn-text-md); white-space: nowrap; }
|
|
85
|
+
.hx-player[data-sheet-state="peek"] .hx-player-step, .hx-player[data-sheet-state="peek"] .hx-player-who, .hx-player[data-sheet-state="peek"] .hx-player-sep { display: none; }
|
|
86
|
+
.hx-player[data-sheet-state="peek"] .hx-player-side .hx-player-speed { display: none; }
|
|
87
|
+
.hx-player[data-sheet-state="expanded"] .hx-player-text { flex: 1 0 100%; order: 3; }
|
|
88
|
+
.hx-player[data-sheet-state="expanded"] .hx-player-title { position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; order: 0; flex: 0 0 100%; font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text-2); }
|
|
89
|
+
}
|
|
90
|
+
@container corn-box (max-width: 767px) {
|
|
91
|
+
@container corn-page (max-height: 480px) {
|
|
92
|
+
.hx-player[data-sheet-state="expanded"] { max-height: calc(100cqh - var(--corn-space-3)); }
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@container corn-box (max-width: 767px) {
|
|
96
|
+
/* The peek: the title, the one line of counts, and the decision; the lists wait for the sheet to open */
|
|
97
|
+
.hx-proposal-bar[data-sheet-state="peek"] #proposal-body > .hx-review-column { display: flex; }
|
|
98
|
+
.hx-proposal-bar[data-sheet-state="peek"] .hx-review-column > :not(.hx-rc-foot) { display: none; }
|
|
99
|
+
}
|
|
100
|
+
@container corn-box (max-width: 767px) {
|
|
101
|
+
@container corn-page (min-height: 481px) {
|
|
102
|
+
.hx-dock > .hx-player[data-sheet-state="expanded"] { max-height: min(var(--hx-sheet-cap, 50cqh), 50cqh); }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
@container corn-box (max-width: 767px) {
|
|
106
|
+
.hx-dock > .hx-drawer[data-sheet-last][data-sheet-state="peek"] { padding-bottom: calc(var(--sheet-pb) + env(safe-area-inset-bottom, 0px)); }
|
|
107
|
+
/* With the node panel expanded the backdrop stays as the tap that closes it, but draws nothing: the map above the sheet is the free band the
|
|
108
|
+
selected node was panned into (camera.js panIntoView), and a scrim or blur over it hides that node (issue #180) */
|
|
109
|
+
.hx-stage[data-sheet-open="drawer"] .hx-backdrop:not([hidden]) { display: block; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
|
|
110
|
+
.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; }
|
|
111
|
+
.hx-drawer[data-sheet-state="peek"] .hx-drawer-body > :not(.hx-drawer-head), .hx-drawer[data-sheet-state="peek"] .hx-drawer-foot { display: none; }
|
|
112
|
+
.hx-drawer[data-sheet-state="peek"] .hx-drawer-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
113
|
+
}
|
|
114
|
+
@container corn-box (max-width: 767px) {
|
|
115
|
+
@container corn-page (max-height: 480px) {
|
|
116
|
+
.hx-drawer[data-sheet-state="peek"] .hx-drawer-title { overflow: visible; text-overflow: clip; white-space: normal; }
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
@container corn-box (max-width: 767px) {
|
|
120
|
+
@container corn-page (min-height: 481px) {
|
|
121
|
+
.hx-dock > .hx-drawer[data-sheet-state="expanded"] { max-height: min(var(--hx-sheet-cap, 60cqh), 60cqh); }
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
@container corn-box (max-width: 767px) {
|
|
125
|
+
.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; }
|
|
126
|
+
.hx-forge[data-sheet-state="peek"] .hx-forge-body > :not(.hx-forge-top):not(#forge-bar), .hx-forge[data-sheet-state="peek"] #forge-filter-chip, .hx-forge[data-sheet-state="peek"] .hx-forge-tabs { display: none; }
|
|
127
|
+
.hx-forge[data-sheet-state="peek"] .hx-forge-head { padding-bottom: 0; border-bottom: 0; }
|
|
128
|
+
.hx-forge[data-sheet-state="peek"] .hx-forge-head .hx-btn { display: none; }
|
|
129
|
+
}
|
|
130
|
+
@container corn-box (max-width: 767px) {
|
|
131
|
+
@container corn-page (min-height: 481px) {
|
|
132
|
+
.hx-dock > .hx-forge[data-sheet-state="expanded"] { max-height: min(var(--hx-sheet-cap, 60cqh), 60cqh); }
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* whatif.css: what-if editing
|
|
3
|
+
* What-if editing (whatif.js): the controls under the proposal bar, the panel, the drag that draws an edge.
|
|
4
|
+
* No rule here asks what the document says (`:root`, `html`, `body`, `[data-theme]`), sizes from the window (`vw`, `vh`) or is `position: fixed` unless it says why;
|
|
5
|
+
* a width rule is a container query on `corn-box` (page.css), a height rule on `corn-page`. base.css loads first.
|
|
6
|
+
*/
|
|
7
|
+
/* 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 */
|
|
8
|
+
.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); }
|
|
9
|
+
.hx-whatif[hidden] { display: none; }
|
|
10
|
+
.hx-whatif-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); }
|
|
11
|
+
.hx-whatif .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
12
|
+
.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); }
|
|
13
|
+
.hx-whatif-hint { margin: var(--corn-space-2) 0 0; color: var(--corn-edit-text); }
|
|
14
|
+
.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; }
|
|
15
|
+
.hx-whatif-msg[hidden], .hx-whatif-hint[hidden], .hx-whatif-notice[hidden], .hx-whatif-panel[hidden] { display: none; }
|
|
16
|
+
.hx-whatif-notice { margin: var(--corn-space-2) 0 0; color: var(--corn-warn); }
|
|
17
|
+
.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(calc(40 * var(--hx-vh, 1cqh)), 320px); overflow: auto; }
|
|
18
|
+
.hx-whatif-form { display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
19
|
+
.hx-whatif-field { display: flex; align-items: center; gap: var(--corn-space-3); color: var(--corn-text-2); }
|
|
20
|
+
.hx-whatif-field > select, .hx-whatif-field > .hx-whatif-input { flex: 1; min-width: 0; }
|
|
21
|
+
.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; }
|
|
22
|
+
.hx-whatif-input:focus, .hx-whatif-field select:focus { outline: var(--corn-focus-width) solid var(--corn-edit-text); outline-offset: calc(var(--corn-focus-offset) / 2); }
|
|
23
|
+
.hx-whatif-help { margin: 0; font-size: var(--corn-text-xs); }
|
|
24
|
+
.hx-whatif-pair { margin: 0; }
|
|
25
|
+
.hx-whatif-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); }
|
|
26
|
+
.hx-whatif-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
27
|
+
.hx-whatif-edit { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
28
|
+
.hx-whatif-edit-text { flex: 1; min-width: 0; line-height: 1.4; }
|
|
29
|
+
.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); }
|
|
30
|
+
.hx-whatif-step.is-current { background: color-mix(in srgb, var(--corn-edit) 18%, transparent); }
|
|
31
|
+
.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; }
|
|
32
|
+
.hx-whatif-stepbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
33
|
+
.hx-whatif-stepbody .hx-whatif-input { width: 100%; }
|
|
34
|
+
.hx-whatif-target { font-size: var(--corn-text-xs); }
|
|
35
|
+
.hx-whatif-addstep { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); margin-top: var(--corn-space-3); }
|
|
36
|
+
.hx-whatif-addstep .hx-whatif-field { flex: 1 1 220px; }
|
|
37
|
+
.hx-whatif-edges { color: var(--corn-text-2); }
|
|
38
|
+
.hx-whatif-edges summary { cursor: pointer; }
|
|
39
|
+
.hx-whatif-edges .hx-whatif-list { margin-top: var(--corn-space-2); max-height: 200px; overflow: auto; }
|
|
40
|
+
.hx-rubber { position: absolute; inset: 0; pointer-events: none; z-index: 14; }
|
|
41
|
+
.hx-rubber svg { display: block; overflow: visible; }
|
|
42
|
+
.hx-rubber-line { stroke: var(--corn-edit); stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
|
|
43
|
+
.hx-rubber-from, .hx-rubber-to { fill: color-mix(in srgb, var(--corn-edit) 15%, transparent); stroke: var(--corn-edit); stroke-width: 2; }
|
|
44
|
+
@container corn-box (max-width: 767px) {
|
|
45
|
+
.hx-whatif .hx-btn { min-height: 44px; }
|
|
46
|
+
.hx-drawer .hx-whatif-drawer select, .hx-drawer .hx-whatif-edges summary { min-height: 44px; }
|
|
47
|
+
}
|
|
48
|
+
.hx-drawer .hx-whatif-drawer { align-items: flex-start; gap: var(--corn-space-2); font-size: var(--corn-text-md); color: var(--corn-text-2); }
|
|
49
|
+
.hx-whatif-drawer:focus { outline: none; } /* it only holds the focus between two paints */
|
|
50
|
+
.hx-drawer .hx-whatif-edgeto { display: flex; align-items: center; gap: var(--corn-space-2); align-self: stretch; }
|
|
51
|
+
.hx-drawer .hx-whatif-edgeto .hx-whatif-field { flex: 1; min-width: 0; }
|
|
52
|
+
.hx-drawer .hx-whatif-drawer select { max-width: 100%; }
|
|
53
|
+
.hx-drawer .hx-whatif-edges { align-self: stretch; }
|
|
54
|
+
.hx-whatif-edges .hx-whatif-list { scroll-padding-block: calc(var(--corn-focus-width) + var(--corn-focus-offset) + var(--corn-space-1)); }
|
|
55
|
+
.hx-whatif-row [aria-disabled="true"] { opacity: 0.55; cursor: default; }
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* work.css: the Work panel
|
|
3
|
+
* The Work panel (forge-panel.js, runs-view.js) and its tabs (Specs, PRs, Issues, Threads, Runs, Deploys): the slide-over from the left from
|
|
4
|
+
* 768px, a bottom sheet below; the Work toggle in the header; the states, results and skeletons. Read by corn-work (D4); its tabs follow as
|
|
5
|
+
* pieces of their own.
|
|
6
|
+
* No rule here asks what the document says (`:root`, `html`, `body`, `[data-theme]`), sizes from the window (`vw`, `vh`) or is `position: fixed` unless it says why;
|
|
7
|
+
* a width rule is a container query on `corn-box` (page.css), a height rule on `corn-page`. base.css loads first.
|
|
8
|
+
*/
|
|
9
|
+
/* The Work toggle: opens the Work panel (forge-panel.js says in the tag which pull request is lit) */
|
|
10
|
+
.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; }
|
|
11
|
+
.hx-work:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
12
|
+
.hx-work[aria-expanded="true"] { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); }
|
|
13
|
+
.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); }
|
|
14
|
+
@container corn-box (max-width: 767px) {
|
|
15
|
+
.hx-work { height: var(--hx-control-h); min-width: var(--hx-control-h); justify-content: center; padding: 0 var(--corn-space-3); }
|
|
16
|
+
.hx-forge-lit { display: none; }
|
|
17
|
+
}
|
|
18
|
+
/* ---- the issues and PRs panel (forge-panel.js, CF-07) -------------------------------------------
|
|
19
|
+
A slide-over from the left from 768px (the node panel is the one from the right), a bottom sheet in #sheet-dock below.
|
|
20
|
+
Closed, it is inert (forge-panel.js), and off screen or not displayed. Only the tokens above are used, so it follows the theme. */
|
|
21
|
+
.hx-forge { --hx-forge-status-w: 56px; }
|
|
22
|
+
.hx-forge { display: flex; flex-direction: column; z-index: 40; border-color: var(--corn-line); pointer-events: none; touch-action: pan-y; transition: transform 0.2s ease-out; }
|
|
23
|
+
.hx-forge * { touch-action: pan-y; }
|
|
24
|
+
.hx-forge.forge-open { pointer-events: auto; }
|
|
25
|
+
.hx-forge:not(.forge-open) { box-shadow: none; }
|
|
26
|
+
@container corn-box (min-width: 768px) {
|
|
27
|
+
.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); }
|
|
28
|
+
.hx-forge.forge-open { transform: translateX(0); }
|
|
29
|
+
}
|
|
30
|
+
@container corn-box (max-width: 767px) {
|
|
31
|
+
.hx-forge:not(.forge-open) { display: none; }
|
|
32
|
+
.hx-forge { max-height: 60cqh; }
|
|
33
|
+
}
|
|
34
|
+
.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); }
|
|
35
|
+
.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); }
|
|
36
|
+
.hx-forge-head .hx-drawer-title { flex: 1; min-width: 0; }
|
|
37
|
+
.hx-forge-status, .hx-forge-rate { font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
38
|
+
.hx-forge-controls { display: flex; flex-direction: column; gap: var(--corn-space-3); padding: var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius); background: var(--corn-surface-2); } /* the Filter chip's box */
|
|
39
|
+
/* The tabs, in the order of the loop: underlined here, pills that scroll sideways on a phone (below) */
|
|
40
|
+
.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; }
|
|
41
|
+
.hx-forge-tabs::-webkit-scrollbar { display: none; }
|
|
42
|
+
.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; }
|
|
43
|
+
.hx-forge-tab:hover { color: var(--corn-text); }
|
|
44
|
+
.hx-forge-tab[aria-pressed="true"] { border-bottom-color: var(--corn-accent); color: var(--corn-text); font-weight: 600; }
|
|
45
|
+
.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); }
|
|
46
|
+
.hx-forge-count { color: var(--corn-text-3); font-size: var(--corn-text-xs); font-weight: 500; }
|
|
47
|
+
.hx-forge-count[hidden] { display: none; }
|
|
48
|
+
/* A tab's count holds its width before it is read, so the tabs do not move when the counts arrive (issue #192): it is empty, not hidden; Deploys has none and keeps `hidden` */
|
|
49
|
+
.hx-forge-tab .hx-forge-count { display: inline-block; min-width: 2ch; }
|
|
50
|
+
/* The status line and the Filter chip; the focus is put on the title (a heading, tabindex -1) when the panel opens, so it shows no ring */
|
|
51
|
+
.hx-forge-body > * { flex-shrink: 0; } /* a tall detail scrolls the body; it must not squash the tabs */
|
|
52
|
+
.hx-forge .hx-drawer-title:focus-visible, .hx-forge-notes-title:focus-visible { outline: none; }
|
|
53
|
+
.hx-forge-bar { display: flex; align-items: center; gap: var(--corn-space-3); min-height: 28px; }
|
|
54
|
+
.hx-forge-bar .hx-forge-status { flex: 1; min-width: 0; }
|
|
55
|
+
.hx-forge-chip { flex: none; display: inline-flex; align-items: center; gap: var(--corn-space-1); min-height: 24px; padding: 0 var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-pill); background: none; color: var(--corn-text-2); font-size: var(--corn-text-xs); }
|
|
56
|
+
.hx-forge-chip:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
57
|
+
.hx-forge-chip[aria-expanded="true"], .hx-forge-chip.is-on { border-color: var(--corn-accent); color: var(--corn-text); }
|
|
58
|
+
.hx-forge-bar[hidden], .hx-forge-chip[hidden], .hx-forge-controls[hidden], .hx-forge-foot[hidden], .hx-forge-detail[hidden], .hx-forge-notes[hidden] { display: none; }
|
|
59
|
+
.hx-forge-filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--corn-space-2) var(--corn-space-3); }
|
|
60
|
+
.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); }
|
|
61
|
+
.hx-forge-field--text { grid-column: 1 / -1; }
|
|
62
|
+
/* The Start dialog's four limits: two a row, under their legend */
|
|
63
|
+
.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; }
|
|
64
|
+
.hx-forge-limits > legend { padding: 0 0 var(--corn-space-1); }
|
|
65
|
+
.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; }
|
|
66
|
+
.hx-forge-input::placeholder { color: var(--corn-text-3); }
|
|
67
|
+
.hx-forge-input:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
68
|
+
.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; }
|
|
69
|
+
.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; }
|
|
70
|
+
.hx-forge-item { display: flex; align-items: stretch; gap: var(--corn-space-1); }
|
|
71
|
+
.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); }
|
|
72
|
+
a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface-3); }
|
|
73
|
+
.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); }
|
|
74
|
+
.hx-forge-title { font-weight: 600; overflow-wrap: anywhere; }
|
|
75
|
+
.hx-forge-meta { color: var(--corn-text-3); font-size: var(--corn-text-xs); overflow-wrap: anywhere; }
|
|
76
|
+
.hx-forge-labels { display: flex; flex-wrap: wrap; gap: var(--corn-space-1); }
|
|
77
|
+
.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); }
|
|
78
|
+
.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; }
|
|
79
|
+
.hx-forge-out:hover { background: var(--corn-surface-3); }
|
|
80
|
+
.hx-forge-empty { padding: var(--corn-space-3) calc(var(--corn-space-1) / 2); }
|
|
81
|
+
/* A state is a word as well as a colour: open, merged, a check's result */
|
|
82
|
+
.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; }
|
|
83
|
+
.hx-forge-state--open, .hx-forge-state--success { color: var(--corn-ok); }
|
|
84
|
+
.hx-forge-state--merged { color: var(--corn-edit-text); }
|
|
85
|
+
.hx-forge-state--closed, .hx-forge-state--failure { color: var(--corn-bad); }
|
|
86
|
+
.hx-forge-state--draft, .hx-forge-state--running, .hx-forge-state--queued { color: var(--corn-warn); }
|
|
87
|
+
.hx-forge-state--neutral, .hx-forge-state--skipped, .hx-forge-state--cancelled { color: var(--corn-text-3); }
|
|
88
|
+
.hx-forge-detail { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
89
|
+
.hx-forge-detail-title, .hx-forge-notes-title { margin: 0; min-width: 0; font-size: var(--corn-text-lg); font-weight: 700; letter-spacing: -0.01em; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
90
|
+
/* A section's label, in sentence case */
|
|
91
|
+
.hx-forge-sub, .hx-forge-subact, .hx-forge-runs-title { margin: var(--corn-space-1) 0 0; font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text-3); }
|
|
92
|
+
.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); }
|
|
93
|
+
.hx-forge-check { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); }
|
|
94
|
+
.hx-forge-check .hx-link { display: inline-flex; align-items: center; min-height: 24px; }
|
|
95
|
+
.hx-forge-lights { flex-basis: 100%; font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
96
|
+
.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); }
|
|
97
|
+
.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; }
|
|
98
|
+
.hx-forge-fstatus { flex: none; min-width: var(--hx-forge-status-w); color: var(--corn-text-3); font-size: var(--corn-text-xs); }
|
|
99
|
+
.hx-forge-del { color: var(--corn-bad); }
|
|
100
|
+
.hx-forge-act { align-self: flex-start; min-height: 24px; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); }
|
|
101
|
+
.hx-forge-why { margin: 0; font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
102
|
+
.hx-forge-step { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
103
|
+
.hx-forge-startspec { flex: none; align-self: center; }
|
|
104
|
+
.hx-forge-notice--ok { border-color: var(--corn-ok); }
|
|
105
|
+
.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)); }
|
|
106
|
+
/* A node button is a button (a square corner, a filled face, an arrow), never a state pill */
|
|
107
|
+
.hx-forge-node { padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-3); color: var(--corn-text); font-size: var(--corn-text-xs); }
|
|
108
|
+
.hx-forge-node::after { content: ' \2192'; }
|
|
109
|
+
.hx-forge-node:hover { background: var(--corn-surface-3); }
|
|
110
|
+
.hx-forge-work-filters { display: flex; flex-wrap: wrap; gap: var(--corn-space-2) var(--corn-space-4); }
|
|
111
|
+
.hx-forge-work-filters[hidden], .hx-forge-filters[hidden] { display: none; }
|
|
112
|
+
.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); }
|
|
113
|
+
.hx-forge-toggle input { accent-color: var(--corn-accent-text); }
|
|
114
|
+
.hx-forge-toggle input:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
115
|
+
.hx-forge-group { display: flex; flex-direction: column; gap: var(--corn-space-1); margin: 0 0 var(--corn-space-3); list-style: none; }
|
|
116
|
+
.hx-forge-gtitle { margin: 0; font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
117
|
+
.hx-forge-gout { margin-left: var(--corn-space-1); }
|
|
118
|
+
.hx-forge-agentline { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); }
|
|
119
|
+
.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; }
|
|
120
|
+
.hx-forge-why { font-size: var(--corn-text-xs); overflow-wrap: anywhere; }
|
|
121
|
+
.hx-forge-notes, .hx-forge-confirm { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
122
|
+
.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; }
|
|
123
|
+
.hx-forge-preview:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
124
|
+
.hx-forge-actions { display: flex; flex-wrap: wrap; gap: var(--corn-space-3); }
|
|
125
|
+
.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; }
|
|
126
|
+
.hx-forge-msg--bad { border-color: var(--corn-warn); }
|
|
127
|
+
.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; }
|
|
128
|
+
.hx-forge-runs { display: flex; flex-direction: column; gap: var(--corn-space-2); margin: var(--corn-space-1) 0 var(--corn-space-3); }
|
|
129
|
+
.hx-forge-runs[hidden] { display: none; }
|
|
130
|
+
/* A Specs row: title and state on one line, a line of what it is, the facts */
|
|
131
|
+
.hx-forge-line { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
132
|
+
.hx-forge-line .hx-forge-title { flex: 1; min-width: 0; }
|
|
133
|
+
.hx-forge-sum { color: var(--corn-text-2); line-height: 1.4; overflow-wrap: anywhere; }
|
|
134
|
+
.hx-forge-facts { display: flex; flex-wrap: wrap; gap: 0 var(--corn-space-3); }
|
|
135
|
+
.hx-forge-add { color: var(--corn-added-text); }
|
|
136
|
+
.hx-forge-chg { color: var(--corn-warn); }
|
|
137
|
+
/* A selection replaces the list, with a back control named by the list; Land it is the one primary action */
|
|
138
|
+
.hx-forge-back { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--corn-space-2); min-height: 28px; margin-left: calc(var(--corn-space-2) * -1); padding: 0 var(--corn-space-3) 0 var(--corn-space-2); border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-2); font-size: var(--corn-text-xs); }
|
|
139
|
+
.hx-forge-back:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
140
|
+
.hx-forge-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-1) var(--corn-space-3); }
|
|
141
|
+
.hx-forge-cta { display: flex; flex-wrap: wrap; gap: var(--corn-space-3); }
|
|
142
|
+
.hx-forge-cta .hx-btn { min-height: 32px; justify-content: center; }
|
|
143
|
+
.hx-forge-cta .hx-btn[disabled] { background: var(--corn-surface-3); border-color: var(--corn-line); color: var(--corn-text-3); box-shadow: none; cursor: default; }
|
|
144
|
+
.hx-forge-open { text-decoration: none; color: var(--corn-text-2); }
|
|
145
|
+
.hx-forge-runline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); margin: 0; color: var(--corn-text-2); } /* a line of text with a state pill, not a box: it is not a control */
|
|
146
|
+
/* The foot of a list: Release notes … on PRs, New idea on Specs and Threads */
|
|
147
|
+
.hx-forge-foot { display: flex; flex-direction: column; gap: var(--corn-space-3); margin-top: auto; padding-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line); }
|
|
148
|
+
.hx-forge-foot > .hx-btn { align-self: flex-start; }
|
|
149
|
+
@container corn-box (max-width: 767px) {
|
|
150
|
+
/* A phone: the tabs are pills, and everything a thumb has to hit is 44px */
|
|
151
|
+
.hx-forge-tabs { gap: var(--corn-space-2); padding-bottom: var(--corn-space-3); border-bottom: 0; }
|
|
152
|
+
.hx-forge-tab { align-items: center; min-height: 44px; padding: 0 var(--corn-space-4); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-pill); }
|
|
153
|
+
.hx-forge-tab[aria-pressed="true"] { background: var(--corn-accent); border-color: var(--corn-accent); color: var(--corn-text-on-accent); }
|
|
154
|
+
.hx-forge-tab[aria-pressed="true"] .hx-forge-count { color: inherit; }
|
|
155
|
+
.hx-forge .hx-btn, .hx-forge .hx-close, .hx-forge-chip, .hx-forge-back, .hx-forge-node, .hx-forge-toggle, .hx-forge-select, .hx-forge-input, .hx-forge-check .hx-link, .hx-forge-out { min-height: 44px; min-width: 44px; }
|
|
156
|
+
.hx-forge .hx-close { display: inline-flex; align-items: center; justify-content: center; }
|
|
157
|
+
}
|
|
158
|
+
/* Threads (forge-panel.js, docs/threads.md): messages as written, read-only; a node's "Threads" opens one */
|
|
159
|
+
.hx-thread-msgs { display: flex; flex-direction: column; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
160
|
+
.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); }
|
|
161
|
+
.hx-thread-body { margin: 0; color: var(--corn-text); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
|
|
162
|
+
.hx-thread-nodes { padding-left: 0; }
|
|
163
|
+
.hx-thread-compose { font-family: inherit; min-height: 8em; }
|
|
164
|
+
.hx-thread-open { display: block; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
|
|
165
|
+
#forge-idea[hidden], #idea-form[hidden], #idea-message[hidden] { display: none; }
|
|
166
|
+
/* 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 */
|
|
167
|
+
.hx-runs-list { display: flex; flex-direction: column; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
168
|
+
.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; }
|
|
169
|
+
.hx-run-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--corn-space-1) var(--corn-space-3); }
|
|
170
|
+
.hx-run-actions { display: flex; flex-wrap: wrap; gap: var(--corn-space-2); }
|
|
171
|
+
.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; }
|
|
172
|
+
.hx-run-limits { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--corn-space-3); margin: 0; font-size: var(--corn-text-xs); }
|
|
173
|
+
.hx-run-limits dt { color: var(--corn-text-2); font-weight: 600; }
|
|
174
|
+
.hx-run-limits dd { margin: 0; color: var(--corn-text-2); }
|
|
175
|
+
.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); }
|
|
176
|
+
.hx-run-timeline li { color: var(--corn-text-2); }
|
|
177
|
+
.hx-run-timeline time { color: var(--corn-text-2); margin-right: var(--corn-space-2); }
|
|
178
|
+
.hx-run-note { display: block; color: var(--corn-text-2); white-space: pre-wrap; }
|
|
179
|
+
.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); }
|
|
180
|
+
.hx-run-compare-title { margin: 0; font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); }
|
|
181
|
+
.hx-run-columns { display: grid; grid-template-columns: 1fr; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
182
|
+
@container corn-box (min-width: 1100px) {
|
|
183
|
+
.hx-run-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
184
|
+
}
|
|
185
|
+
@container corn-box (min-width: 1100px) and (max-width: 1599px) {
|
|
186
|
+
.hx-stage:has(.drawer-open) .hx-run-columns { grid-template-columns: 1fr; }
|
|
187
|
+
}
|
|
188
|
+
/* A scroll container never cuts a focus ring: a row that is tabbed to stops short of the edge by the ring's width and offset */
|
|
189
|
+
.hx-forge-body { scroll-padding-block: calc(var(--corn-focus-width) + var(--corn-focus-offset) + var(--corn-space-1)); }
|
|
190
|
+
/* The Work tabs scroll sideways: a tab brought into view stops short of the edge by the strip's own padding */
|
|
191
|
+
.hx-forge-tabs { scroll-padding-inline: var(--corn-space-4); }
|
|
192
|
+
.hx-forge-count, .hx-forge-lit, .hx-run-limits dd { font-family: var(--corn-font-num); font-variant-numeric: tabular-nums; }
|
|
193
|
+
@media (prefers-reduced-motion: reduce) {
|
|
194
|
+
.hx-forge { transition: none; animation: none; }
|
|
195
|
+
}
|
|
196
|
+
.hx-run .hx-link { display: inline-flex; align-items: center; min-height: 24px; } /* a run card's links sit on lines 14px apart: 24px at a desk (WCAG 2.5.8) */
|
|
197
|
+
@container corn-box (max-width: 767px) {
|
|
198
|
+
.hx-run .hx-link, .hx-forge-check .hx-link { display: inline-flex; align-items: center; min-height: 44px; }
|
|
199
|
+
}
|
|
200
|
+
@media (pointer: coarse) {
|
|
201
|
+
.hx-run .hx-link, .hx-forge-check .hx-link { display: inline-flex; align-items: center; min-height: 44px; }
|
|
202
|
+
}
|
|
203
|
+
/* ==========================================================================
|
|
204
|
+
The Work panel's states, results, disabled controls, loading and empty lists, and its fixed top (the 0.34 design review)
|
|
205
|
+
========================================================================== */
|
|
206
|
+
/* A state is a word, an icon and a colour: the colour comes from a --corn-run-<state> token, the icon is a shape of its own (corn-state.js), and
|
|
207
|
+
the waiting pill is solid, since a run that waits needs the maintainer and should stand out most. A pill is never a button: it has no hover. */
|
|
208
|
+
.hx-forge-state { display: inline-flex; align-items: center; gap: var(--corn-space-1); }
|
|
209
|
+
.hx-state-icon { flex: none; width: 1em; height: 1em; }
|
|
210
|
+
.hx-forge-state--requested { color: var(--corn-run-requested); }
|
|
211
|
+
.hx-forge-state--claimed { color: var(--corn-run-claimed); }
|
|
212
|
+
.hx-forge-state--working { color: var(--corn-run-working); }
|
|
213
|
+
.hx-forge-state--waiting { color: var(--corn-run-waiting-ink); background: var(--corn-run-waiting); border-color: var(--corn-run-waiting); border-width: var(--corn-border-strong); }
|
|
214
|
+
.hx-forge-state--done { color: var(--corn-run-done); }
|
|
215
|
+
.hx-forge-state--failed { color: var(--corn-run-failed); }
|
|
216
|
+
.hx-forge-state--stopped { color: var(--corn-run-stopped); }
|
|
217
|
+
.hx-state-spin { transform-origin: 6px 6px; animation: hx-state-turn 1.2s linear infinite; }
|
|
218
|
+
@keyframes hx-state-turn { to { transform: rotate(360deg); } }
|
|
219
|
+
@media (prefers-reduced-motion: reduce) {
|
|
220
|
+
.hx-state-spin { animation: none; }
|
|
221
|
+
}
|
|
222
|
+
/* What an action came to, by the control that was used: the words, and a mark that is not a colour */
|
|
223
|
+
.hx-forge-result { margin: 0; padding: var(--corn-space-1) var(--corn-space-3); border-left: calc(var(--corn-border-strong) * 2) solid var(--corn-line); border-radius: var(--corn-radius-sm); background: var(--corn-surface-2); color: var(--corn-text); line-height: 1.5; overflow-wrap: anywhere; }
|
|
224
|
+
.hx-forge-result[hidden] { display: none; }
|
|
225
|
+
.hx-forge-result[data-corn-state="success"] { border-left-color: var(--corn-ok); }
|
|
226
|
+
.hx-forge-result[data-corn-state="failure"] { border-left-color: var(--corn-bad); }
|
|
227
|
+
.hx-forge-result[data-corn-state="success"]::before { content: '\2713 '; }
|
|
228
|
+
.hx-forge-result[data-corn-state="failure"]::before { content: '\2715 '; }
|
|
229
|
+
/* A disabled control looks disabled: no fill, a dashed edge, the quiet text colour and a cursor that says so */
|
|
230
|
+
.hx-forge .hx-btn:disabled, .hx-forge-act:disabled, .hx-forge-cta .hx-btn[disabled] { background: none; border-style: dashed; color: var(--corn-text-3); box-shadow: none; cursor: not-allowed; }
|
|
231
|
+
/* Retry, in a notice, sits at the end of the line */
|
|
232
|
+
.hx-forge-notice .hx-btn { margin-left: var(--corn-space-2); }
|
|
233
|
+
.hx-forge-runs .hx-forge-notice[hidden], .hx-forge-notice[hidden] { display: none; }
|
|
234
|
+
/* A list that is being read holds its height: rows of a row's size, a quiet bar in each */
|
|
235
|
+
.hx-forge-skeleton { display: flex; flex-direction: column; gap: var(--corn-space-2); min-height: 64px; padding: var(--corn-space-3); border: var(--corn-border) solid var(--corn-line-soft); border-radius: var(--corn-radius); list-style: none; }
|
|
236
|
+
.hx-forge-skeleton > span { display: block; height: 10px; border-radius: var(--corn-radius-sm); background: var(--corn-surface-3); }
|
|
237
|
+
.hx-forge-skeleton > span:last-child { width: 55%; }
|
|
238
|
+
.hx-forge-skeleton-line > span { display: inline-block; width: 55%; height: 10px; vertical-align: middle; border-radius: var(--corn-radius-sm); background: var(--corn-surface-3); } /* one line of the runner line or the totals, while they load */
|
|
239
|
+
.hx-forge-empty { line-height: 1.5; }
|
|
240
|
+
/* 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 */
|
|
241
|
+
.hx-forge-body { --hx-forge-pad: var(--corn-panel-pad); --hx-forge-padx: var(--corn-panel-pad); }
|
|
242
|
+
.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 */
|
|
243
|
+
.hx-forge-top .hx-forge-tabs { margin: 0 calc(var(--hx-forge-padx) * -1); padding: 0 var(--hx-forge-padx); }
|
|
244
|
+
/* 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 */
|
|
245
|
+
.hx-forge-top .hx-forge-tabs { mask-image: linear-gradient(to right, transparent 0, var(--corn-ground) var(--hx-fade-l, 0px), var(--corn-ground) calc(100% - var(--hx-fade-r, 0px)), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, var(--corn-ground) var(--hx-fade-l, 0px), var(--corn-ground) calc(100% - var(--hx-fade-r, 0px)), transparent 100%); }
|
|
246
|
+
.hx-forge-top[data-more~="start"] { --hx-fade-l: calc(var(--corn-space-6) * 1.5); }
|
|
247
|
+
.hx-forge-top[data-more~="end"] { --hx-fade-r: calc(var(--corn-space-6) * 1.5); }
|
|
248
|
+
/* ==========================================================================
|
|
249
|
+
What is waiting on you (spec 0010): the one number's badge, the Specs groups, each row's review state, the search, the Runs headings
|
|
250
|
+
========================================================================== */
|
|
251
|
+
/* The badge: filled, in the waiting colour the solid waiting pill already uses, so one number looks the same on the Work button and on the tabs */
|
|
252
|
+
.hx-waiting-badge, .hx-forge-count--waiting { border-radius: var(--corn-radius-pill); background: var(--corn-run-waiting); color: var(--corn-run-waiting-ink); font-weight: 700; }
|
|
253
|
+
.hx-waiting-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 var(--corn-space-1); font-family: var(--corn-font-num); font-variant-numeric: tabular-nums; font-size: var(--corn-text-xs); line-height: 1; }
|
|
254
|
+
.hx-waiting-badge[hidden] { display: none; }
|
|
255
|
+
/* On a tab the badge keeps the count's own width (the tab does not move when a count becomes a badge): its fill reaches past the digits into the tab's own
|
|
256
|
+
right padding, by a margin that gives the room back (content-box, so the padding is added to the count's 2ch and the margin takes exactly that away
|
|
257
|
+
again), and keeps the tab's gap from its word on the left */
|
|
258
|
+
.hx-forge-tab .hx-forge-count.hx-forge-count--waiting, .hx-forge-tab[aria-pressed="true"] .hx-forge-count.hx-forge-count--waiting { box-sizing: content-box; padding: 0 var(--corn-space-1); margin: 0 calc(var(--corn-space-1) * -2) 0 0; text-align: center; background: var(--corn-run-waiting); color: var(--corn-run-waiting-ink); }
|
|
259
|
+
.hx-work .hx-waiting-badge { margin-right: calc(var(--corn-space-2) * -1); }
|
|
260
|
+
/* A group of the Specs list: its header says who must act and how many; Drafts past ten rows fold behind it */
|
|
261
|
+
.hx-spec-group > .hx-forge-list { margin: 0; padding: 0; }
|
|
262
|
+
.hx-spec-group > .hx-forge-list[hidden] { display: none; }
|
|
263
|
+
.hx-forge-gtoggle { display: inline-flex; align-items: center; gap: var(--corn-space-2); min-height: 24px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
264
|
+
.hx-forge-gtoggle::before { content: '\25B8'; font-size: var(--corn-text-xs); }
|
|
265
|
+
.hx-forge-gtoggle[aria-expanded="true"]::before { content: '\25BE'; }
|
|
266
|
+
.hx-forge-gtoggle:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
267
|
+
/* A Runs heading is an item of the flat list, so a run's card (and a reply typed in it) is never moved into a section */
|
|
268
|
+
.hx-run-heading { list-style: none; margin: var(--corn-space-3) 0 var(--corn-space-1); }
|
|
269
|
+
.hx-run-heading:first-child { margin-top: 0; }
|
|
270
|
+
/* A spec sent back is not a colour alone: a dashed edge and a turning arrow, and its words */
|
|
271
|
+
.hx-forge-state--sent-back { color: var(--corn-run-stopped); border-style: dashed; }
|
|
272
|
+
.hx-forge-reviewed { color: var(--corn-text-2); }
|
|
273
|
+
.hx-forge-unread { margin: var(--corn-space-1) 0 0; color: var(--corn-bad); overflow-wrap: anywhere; }
|
|
274
|
+
.hx-forge-specsearch { margin: 0 0 var(--corn-space-2); }
|
|
275
|
+
.hx-forge-specsearch[hidden] { display: none; }
|
|
276
|
+
.hx-forge-specsearch .hx-forge-field { width: 100%; }
|
|
277
|
+
@container corn-box (max-width: 767px) {
|
|
278
|
+
.hx-forge-gtoggle { min-height: 44px; }
|
|
279
|
+
.hx-forge-unread .hx-btn { min-height: 44px; }
|
|
280
|
+
}
|
|
281
|
+
.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; }
|
|
282
|
+
.hx-runner-dot[hidden] { display: none; }
|
|
283
|
+
.hx-forge-detail-title, .hx-forge-notes-title { font-size: var(--corn-text-lg); font-weight: 700; line-height: 1.25; letter-spacing: normal; }
|
|
284
|
+
/* 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 */
|
|
285
|
+
.hx-forge-head { min-height: var(--corn-panel-head-height); }
|
|
286
|
+
/* The controls of a bar that had no height of their own */
|
|
287
|
+
/* (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) */
|
|
288
|
+
:where(.hx-forge-head, .hx-player-controls, .hx-player-as, .hx-proposal-bar .hx-waiting-line) .hx-btn { height: var(--hx-control-h); }
|