@popcorn245/cornfield 0.47.0 → 0.48.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/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/map-style.js +2 -2
- package/explorer/focus-room.js +1 -1
- package/explorer/header-fit.js +3 -3
- package/explorer/house.css +1 -1
- package/explorer/index.html +18 -3
- package/explorer/pieces/map-stage.css +1 -1
- package/explorer/review.js +1 -1
- package/explorer/theme-model.js +1 -1
- package/explorer/theme.js +1 -1
- package/explorer/tokens.css +2 -2
- 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
package/explorer/explorer.css
DELETED
|
@@ -1,1512 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The topology explorer's stylesheet (explorer/index.html). Plain CSS, no framework: every colour, font, size,
|
|
3
|
-
* radius, border width, shadow and spacing is a --corn-* token from explorer/tokens.css, loaded before this file
|
|
4
|
-
* (the contract is docs/theming.md, and test/explorer/tokens.test.js fails on any literal left here). Light and
|
|
5
|
-
* dark are tokens.css's business: nothing below names a theme, so a brand that redefines the tokens restyles all
|
|
6
|
-
* of it. The fonts are the system's (nothing is fetched from outside). Classes are prefixed hx-.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
*, *::before, *::after { box-sizing: border-box; }
|
|
10
|
-
[hidden] { display: none !important; }
|
|
11
|
-
|
|
12
|
-
body {
|
|
13
|
-
margin: 0;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
width: 100vw;
|
|
17
|
-
height: 100dvh;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
background-color: var(--corn-ground);
|
|
20
|
-
background-image: var(--corn-ground-image);
|
|
21
|
-
background-attachment: fixed;
|
|
22
|
-
color: var(--corn-text);
|
|
23
|
-
font-family: var(--corn-font);
|
|
24
|
-
-webkit-font-smoothing: antialiased;
|
|
25
|
-
user-select: none;
|
|
26
|
-
touch-action: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
button { font: inherit; color: inherit; cursor: pointer; }
|
|
30
|
-
h1, h2, h3, p { margin: 0; }
|
|
31
|
-
|
|
32
|
-
.glass {
|
|
33
|
-
background: var(--corn-surface-1);
|
|
34
|
-
backdrop-filter: blur(var(--corn-blur));
|
|
35
|
-
-webkit-backdrop-filter: blur(var(--corn-blur));
|
|
36
|
-
border: var(--corn-border) solid var(--corn-line);
|
|
37
|
-
box-shadow: var(--corn-shadow);
|
|
38
|
-
}
|
|
39
|
-
.glass-header {
|
|
40
|
-
background: color-mix(in srgb, var(--corn-ground) 88%, transparent);
|
|
41
|
-
backdrop-filter: blur(var(--corn-blur));
|
|
42
|
-
-webkit-backdrop-filter: blur(var(--corn-blur));
|
|
43
|
-
border-bottom: var(--corn-border) solid var(--corn-line);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
::-webkit-scrollbar { width: 5px; height: 5px; }
|
|
47
|
-
::-webkit-scrollbar-track { background: transparent; }
|
|
48
|
-
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--corn-text) 18%, transparent); border-radius: var(--corn-radius-pill); }
|
|
49
|
-
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--corn-text) 28%, transparent); }
|
|
50
|
-
|
|
51
|
-
/* ---- text helpers used by the panel markup ---------------------------------------------- */
|
|
52
|
-
.hx-faint { color: var(--corn-text-3); }
|
|
53
|
-
.hx-mono { font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
54
|
-
.hx-strong { color: var(--corn-text-2); }
|
|
55
|
-
.hx-bold { font-weight: 700; }
|
|
56
|
-
.hx-name { color: var(--corn-text-2); }
|
|
57
|
-
.hx-accent { color: var(--corn-accent-text); }
|
|
58
|
-
.hx-good { color: var(--corn-ok); }
|
|
59
|
-
.hx-warn { color: var(--corn-warn); }
|
|
60
|
-
.hx-rom { color: var(--corn-hue-fuchsia); }
|
|
61
|
-
.hx-link { color: var(--corn-info); text-decoration: underline; }
|
|
62
|
-
.hx-link-faint { color: var(--corn-text-3); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
63
|
-
.hx-link-faint:hover { color: var(--corn-warn); }
|
|
64
|
-
.hx-code { color: var(--corn-warn); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
|
|
65
|
-
.hx-var { color: var(--corn-hue-pink); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); padding: 0 var(--corn-space-1); border-radius: var(--corn-radius-xs); }
|
|
66
|
-
.hx-chips { display: flex; flex-wrap: wrap; gap: var(--corn-space-1); padding-top: var(--corn-space-1); }
|
|
67
|
-
.hx-pt { padding-top: var(--corn-space-3); }
|
|
68
|
-
/* Headings and titles take the display family (the same as the body unless a brand sets it) */
|
|
69
|
-
.hx-title, .hx-drawer-title, .hx-menu-title, .hx-confirm-title, .hx-mockup-title { font-family: var(--corn-font-display); }
|
|
70
|
-
|
|
71
|
-
/* ==== the header (CF-41) ===============================================================================================
|
|
72
|
-
Left to right: the brand, the View switch (Map, Flow, House, Fit), the Layers chip, the live chip; at the right the search,
|
|
73
|
-
the Work toggle and the one account menu (account-menu.js). Everything reads the --corn-* tokens. From 768px it is a desktop
|
|
74
|
-
header; below it is a phone's: Map, Flow, House, a search icon and the account initial, with the Layers chip, the live chip
|
|
75
|
-
and Fit floating on the map (placed from the header's corner). The header has no backdrop-filter of its own: it sits above
|
|
76
|
-
the map, not over it, and one would keep its menus' .glass blur from working (they would show the map through). */
|
|
77
|
-
.hx-header {
|
|
78
|
-
position: relative;
|
|
79
|
-
flex: none;
|
|
80
|
-
height: 56px;
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: space-between;
|
|
84
|
-
gap: var(--corn-space-3);
|
|
85
|
-
padding: 0 var(--corn-space-4);
|
|
86
|
-
z-index: 20;
|
|
87
|
-
background: var(--corn-surface-1);
|
|
88
|
-
border-bottom: var(--corn-border) solid var(--corn-line);
|
|
89
|
-
}
|
|
90
|
-
.hx-header-left, .hx-header-right { display: flex; align-items: center; gap: var(--corn-space-3); min-width: 0; }
|
|
91
|
-
.hx-header-right { flex: none; }
|
|
92
|
-
.hx-only-wide { display: none; }
|
|
93
|
-
.hx-only-mobile { display: inline-flex; }
|
|
94
|
-
|
|
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: 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
|
-
.hx-mark { flex: none; }
|
|
99
|
-
.hx-mark-bg { fill: var(--corn-accent); }
|
|
100
|
-
.hx-mark-fg { fill: var(--corn-text-on-accent); }
|
|
101
|
-
.hx-mark-line { fill: none; stroke: var(--corn-text-on-accent); stroke-width: 1.5; }
|
|
102
|
-
|
|
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: 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
|
-
.hx-view-btn { padding: 0 var(--corn-space-4); }
|
|
107
|
-
.hx-view-btn:hover, .hx-view-fit:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
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: 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
|
-
|
|
111
|
-
/* The Layers chip: "Layers · 13 of 20" */
|
|
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
|
-
.hx-layers-chip:hover, .hx-layers-chip[aria-expanded="true"] { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
114
|
-
.hx-layers-count { color: var(--corn-text-3); }
|
|
115
|
-
.hx-layers-chip--dim { border-color: var(--corn-line-soft); }
|
|
116
|
-
.hx-layers-chip--dim, .hx-layers-chip--dim .hx-layers-count { color: var(--corn-text-3); }
|
|
117
|
-
|
|
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: 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
|
-
.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
|
-
.hx-search-icon { flex: none; }
|
|
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
|
-
.hx-search-input::placeholder { color: var(--corn-text-3); }
|
|
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
|
-
.hx-search:focus-within .hx-kbd { display: none; }
|
|
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
|
-
.hx-hdr-icon:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
128
|
-
|
|
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: 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
|
-
.hx-work:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
132
|
-
.hx-work[aria-expanded="true"] { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); }
|
|
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
|
-
|
|
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: 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
|
-
.hx-account-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
138
|
-
.hx-account-btn[aria-expanded="true"] { border-color: var(--corn-accent-text); }
|
|
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; }
|
|
140
|
-
.hx-avatar:empty::before { content: "\2630"; }
|
|
141
|
-
|
|
142
|
-
/* The account menu: a panel under the button */
|
|
143
|
-
.hx-menu.hx-account-menu { left: auto; right: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); width: 264px; padding: var(--corn-space-2); font-size: var(--corn-text-sm); user-select: none; }
|
|
144
|
-
.hx-account-who { padding: var(--corn-space-3) var(--corn-space-4) var(--corn-space-2); color: var(--corn-text-3); font-size: var(--corn-text-sm); overflow-wrap: anywhere; }
|
|
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
|
-
.hx-account-label { color: var(--corn-text-2); }
|
|
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: 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
|
-
.hx-account-seg-btn:hover { color: var(--corn-text); }
|
|
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: 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
|
-
.hx-account-item:hover { background: var(--corn-surface-3); }
|
|
154
|
-
.hx-account-item--sub { padding-left: var(--corn-space-6); color: var(--corn-text-2); }
|
|
155
|
-
.hx-account-item svg { flex: none; color: var(--corn-text-3); }
|
|
156
|
-
.hx-account-menu .cf-sign-out { margin: 0; }
|
|
157
|
-
.hx-account-menu .cf-sign-out .hx-account-item { color: var(--corn-text-2); }
|
|
158
|
-
.hx-account-menu .hx-links { display: flex; flex-direction: column; margin-top: var(--corn-space-2); padding-top: var(--corn-space-2); border-top: var(--corn-border) solid var(--corn-line); }
|
|
159
|
-
.hx-account-menu .hx-links:empty { display: none; }
|
|
160
|
-
.hx-account-foot { margin: var(--corn-space-1) 0 0; padding: var(--corn-space-2) var(--corn-space-4) var(--corn-space-1); color: var(--corn-text-3); font-size: var(--corn-text-xs); }
|
|
161
|
-
.hx-account-foot a { color: inherit; text-decoration: none; }
|
|
162
|
-
.hx-account-foot a:hover { color: var(--corn-text-2); text-decoration: underline; }
|
|
163
|
-
.hx-account-foot:empty { display: none; }
|
|
164
|
-
/* Freeform layout is a switch */
|
|
165
|
-
.hx-switch { position: relative; flex: none; width: 28px; height: 16px; border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-3); }
|
|
166
|
-
.hx-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--corn-text-3); transition: transform 0.15s; }
|
|
167
|
-
[aria-checked="true"] > .hx-switch { background: var(--corn-accent); border-color: var(--corn-accent); }
|
|
168
|
-
[aria-checked="true"] > .hx-switch::after { background: var(--corn-text-on-accent); transform: translateX(12px); }
|
|
169
|
-
@media (prefers-reduced-motion: reduce) { .hx-switch::after { transition: none; } }
|
|
170
|
-
/* The Proposals list opens inside the menu, under its entry, until the Specs tab of the Work panel takes it over */
|
|
171
|
-
.hx-account-menu .hx-menu--proposals { position: static; width: auto; max-width: none; max-height: 40vh; margin: var(--corn-space-1) 0; padding: var(--corn-space-2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); box-shadow: none; }
|
|
172
|
-
|
|
173
|
-
@media (min-width: 768px) {
|
|
174
|
-
.hx-header { height: 52px; padding: 0 var(--corn-space-5); gap: var(--corn-space-5); }
|
|
175
|
-
.hx-header-left { gap: var(--corn-space-5); }
|
|
176
|
-
.hx-header-right { gap: var(--corn-space-3); }
|
|
177
|
-
.hx-brand { min-width: 0; min-height: var(--hx-control-h); }
|
|
178
|
-
.hx-only-wide { display: inline; }
|
|
179
|
-
.hx-only-mobile { display: none; }
|
|
180
|
-
.hx-search { display: flex; flex: 0 1 260px; width: auto; }
|
|
181
|
-
/* A narrow desktop (768 to about 900 px, signed in): the search gives up width before it runs over the Layers chip; the left group
|
|
182
|
-
keeps its own (the right group shrinks, the search down to its min-width) */
|
|
183
|
-
.hx-header-left { flex: none; }
|
|
184
|
-
.hx-header-right { flex: 0 1 auto; min-width: 0; }
|
|
185
|
-
}
|
|
186
|
-
/* Not for a desktop: the brand keeps its logo and shows its wordmark; with no wordmark the logo stands alone (the button keeps its name) */
|
|
187
|
-
@media (max-width: 767px) {
|
|
188
|
-
.hx-title:not(:has([data-corn="brand-wordmark"])) { display: none; }
|
|
189
|
-
.hx-header { padding: 0 var(--corn-space-3); }
|
|
190
|
-
/* Too narrow for the row (320px, or a repo's longer words): the left scrolls sideways rather than run under the right.
|
|
191
|
-
The padding keeps the focus rings inside the scrolled box; what sits on the map is placed from the header, so it is not clipped */
|
|
192
|
-
.hx-header-left { gap: var(--corn-space-1); margin-inline: calc(var(--corn-space-1) * -1); padding: var(--corn-space-1); overflow-x: auto; scrollbar-width: none; }
|
|
193
|
-
.hx-header-left::-webkit-scrollbar { display: none; }
|
|
194
|
-
.hx-header-right { gap: var(--corn-space-1); }
|
|
195
|
-
.hx-view { padding: 0; }
|
|
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
|
-
.hx-header .hx-layers { position: absolute; top: calc(100% + var(--corn-space-4)); left: var(--corn-space-4); }
|
|
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
|
-
/* 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) + 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
|
-
.hx-forge-lit { display: none; }
|
|
204
|
-
.hx-account-btn { width: var(--hx-control-h); height: var(--hx-control-h); justify-content: center; padding: 0; border: 0; background: none; }
|
|
205
|
-
.hx-account-caret { display: none; }
|
|
206
|
-
.hx-avatar { width: 28px; height: 28px; }
|
|
207
|
-
.hx-menu.hx-account-menu { width: min(300px, calc(100vw - 24px)); }
|
|
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
|
-
.hx-stage .hx-hint { top: 68px; }
|
|
212
|
-
}
|
|
213
|
-
/* ==== end of the header ============================================================================================ */
|
|
214
|
-
|
|
215
|
-
.hx-btn {
|
|
216
|
-
display: inline-flex;
|
|
217
|
-
align-items: center;
|
|
218
|
-
gap: var(--corn-space-2);
|
|
219
|
-
padding: var(--corn-space-1) var(--corn-space-3);
|
|
220
|
-
border-radius: var(--corn-radius-sm);
|
|
221
|
-
border: var(--corn-border) solid var(--corn-line);
|
|
222
|
-
background: var(--corn-surface-2);
|
|
223
|
-
color: var(--corn-text-2);
|
|
224
|
-
font-size: var(--corn-text-xs);
|
|
225
|
-
font-weight: 600;
|
|
226
|
-
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
|
227
|
-
white-space: nowrap;
|
|
228
|
-
}
|
|
229
|
-
.hx-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
230
|
-
.hx-btn:focus-visible, .hx-toggle-row:focus-visible, .hx-textbtn:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
231
|
-
.hx-btn--active, .hx-btn--active:hover { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); box-shadow: var(--corn-shadow-sm); }
|
|
232
|
-
.hx-btn--quiet { font-weight: 500; color: var(--corn-text-3); }
|
|
233
|
-
.hx-btn--icon { width: 28px; height: 28px; padding: 0; justify-content: center; font-size: var(--corn-text-base); }
|
|
234
|
-
.hx-btn--rom { width: 100%; justify-content: center; margin-top: var(--corn-space-1); padding: var(--corn-space-2); background: color-mix(in srgb, var(--corn-hue-fuchsia) 20%, transparent); border-color: color-mix(in srgb, var(--corn-hue-fuchsia) 40%, transparent); color: color-mix(in srgb, var(--corn-hue-fuchsia) 60%, var(--corn-text)); font-weight: 700; }
|
|
235
|
-
.hx-btn--rom:hover { background: color-mix(in srgb, var(--corn-hue-fuchsia) 30%, transparent); }
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
.hx-input {
|
|
239
|
-
width: 128px;
|
|
240
|
-
padding: var(--corn-space-1) var(--corn-space-3) var(--corn-space-1) var(--corn-space-6);
|
|
241
|
-
border-radius: var(--corn-radius-sm);
|
|
242
|
-
border: var(--corn-border) solid var(--corn-line);
|
|
243
|
-
background: color-mix(in srgb, var(--corn-ground) 80%, transparent);
|
|
244
|
-
color: var(--corn-text);
|
|
245
|
-
font: inherit;
|
|
246
|
-
font-size: var(--corn-text-sm);
|
|
247
|
-
outline: none;
|
|
248
|
-
transition: width 0.2s, border-color 0.2s;
|
|
249
|
-
user-select: text;
|
|
250
|
-
}
|
|
251
|
-
.hx-input:focus { width: 208px; border-color: var(--corn-focus); }
|
|
252
|
-
.hx-input::placeholder { color: var(--corn-text-3); }
|
|
253
|
-
.hx-input--wide, .hx-input--wide:focus { width: 100%; flex: 1; }
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
/* ---- layers menu ------------------------------------------------------------------------- */
|
|
258
|
-
.hx-menu-wrap { position: relative; flex: none; }
|
|
259
|
-
.hx-menu {
|
|
260
|
-
position: absolute;
|
|
261
|
-
top: 100%;
|
|
262
|
-
left: 0;
|
|
263
|
-
margin-top: var(--corn-space-3);
|
|
264
|
-
width: 288px;
|
|
265
|
-
max-width: calc(100vw - 24px);
|
|
266
|
-
max-height: calc(100dvh - 80px);
|
|
267
|
-
overflow-y: auto;
|
|
268
|
-
padding: var(--corn-space-4);
|
|
269
|
-
border-radius: var(--corn-radius-lg);
|
|
270
|
-
font-size: var(--corn-text-xs);
|
|
271
|
-
z-index: 50;
|
|
272
|
-
user-select: none;
|
|
273
|
-
}
|
|
274
|
-
.hx-menu-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: calc(var(--corn-space-1) / 2); font-size: var(--corn-text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-3); }
|
|
275
|
-
.hx-menu-head { padding-bottom: var(--corn-space-2); border-bottom: var(--corn-border) solid var(--corn-line); margin-bottom: var(--corn-space-3); }
|
|
276
|
-
.hx-menu-links { display: flex; align-items: center; gap: var(--corn-space-3); text-transform: none; letter-spacing: 0; }
|
|
277
|
-
.hx-menu-section { padding-top: var(--corn-space-3); margin-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line); }
|
|
278
|
-
.hx-note { padding: var(--corn-space-2) var(--corn-space-3); margin-bottom: var(--corn-space-3); border-radius: var(--corn-radius-sm); background: var(--corn-hue-orange-soft); color: var(--corn-hue-orange-text); font-size: var(--corn-text-xs); line-height: 1.4; }
|
|
279
|
-
.hx-textbtn { padding: calc(var(--corn-space-1) / 2) var(--corn-space-1); border: 0; border-radius: var(--corn-radius-xs); background: none; color: var(--corn-text-3); font-size: var(--corn-text-2xs); font-weight: 600; }
|
|
280
|
-
.hx-textbtn:hover { background: var(--corn-line-soft); color: var(--corn-text-2); }
|
|
281
|
-
.hx-textbtn--accent { color: var(--corn-accent-text); }
|
|
282
|
-
|
|
283
|
-
.hx-toggles { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
284
|
-
.hx-toggle-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text); text-align: left; transition: background 0.15s; }
|
|
285
|
-
.hx-toggle-row:hover { background: var(--corn-surface-3); }
|
|
286
|
-
.hx-toggle-row.is-off { background: color-mix(in srgb, var(--corn-ground) 40%, transparent); border-color: transparent; color: var(--corn-text-3); } /* off: dimmed by the fill, the text-3 colour and the dot, never by opacity on text */
|
|
287
|
-
.hx-toggle-label, .hx-toggle-meta { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
288
|
-
.hx-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; transition: transform 0.15s; }
|
|
289
|
-
.hx-toggle-row.is-off .hx-dot { transform: scale(0.75); opacity: 0.4; }
|
|
290
|
-
.hx-toggle-name { font-size: var(--corn-text-xs); font-weight: 500; color: var(--corn-text-2); }
|
|
291
|
-
.hx-toggle-row.is-off .hx-toggle-name { color: var(--corn-text-3); text-decoration: line-through; }
|
|
292
|
-
.hx-count { padding: calc(var(--corn-space-1) / 2) var(--corn-space-2); border-radius: var(--corn-radius-xs); background: var(--corn-surface-3); color: var(--corn-text-2); font-size: var(--corn-text-2xs); }
|
|
293
|
-
.hx-toggle-row.is-off .hx-count { background: color-mix(in srgb, var(--corn-ground) 40%, transparent); color: var(--corn-text-3); }
|
|
294
|
-
.hx-tick { font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-ok); }
|
|
295
|
-
.hx-toggle-row.is-off .hx-tick { color: var(--corn-text-3); }
|
|
296
|
-
|
|
297
|
-
.hx-legend-row { display: flex; align-items: center; gap: var(--corn-space-3); padding: calc(var(--corn-space-1) / 2) 0; color: var(--corn-text-2); }
|
|
298
|
-
.hx-legend-row--split { justify-content: space-between; }
|
|
299
|
-
.hx-legend-label { display: flex; align-items: center; gap: var(--corn-space-3); font-weight: 500; }
|
|
300
|
-
.hx-legend-swatch { width: 16px; flex: none; display: inline-flex; justify-content: center; }
|
|
301
|
-
.hx-swatch-line { display: inline-block; width: 16px; height: 2px; border-radius: var(--corn-radius-xs); }
|
|
302
|
-
.hx-swatch-indigo { border-top-color: var(--corn-accent-text); }
|
|
303
|
-
|
|
304
|
-
/* ---- stage: canvas, hint, states --------------------------------------------------------- */
|
|
305
|
-
.hx-stage { position: relative; flex: 1; width: 100%; min-height: 0; overflow: hidden; }
|
|
306
|
-
#graph-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
|
|
307
|
-
#graph-canvas:active { cursor: grabbing; }
|
|
308
|
-
#label-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
|
309
|
-
/* The Canvas 2D that stands in for the map canvas when its WebGL2 shaders fail (renderer.js): same place, pointer goes through */
|
|
310
|
-
.hx-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
|
|
311
|
-
|
|
312
|
-
.hx-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--corn-space-2); max-width: 85vw; padding: var(--corn-space-1) var(--corn-space-4); border-radius: var(--corn-radius-pill); font-size: var(--corn-text-2xs); color: var(--corn-text-2); pointer-events: none; z-index: 10; white-space: nowrap; }
|
|
313
|
-
.hx-hint span:last-child { overflow: hidden; text-overflow: ellipsis; }
|
|
314
|
-
@media (min-width: 640px) { .hx-hint { font-size: var(--corn-text-xs); } }
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
.hx-mobile-search { position: absolute; top: 56px; left: 0; right: 0; display: flex; align-items: center; gap: var(--corn-space-3); padding: var(--corn-space-3); z-index: 30; }
|
|
318
|
-
|
|
319
|
-
.hx-state { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--corn-text-3); font-size: var(--corn-text-md); z-index: 5; text-align: center; }
|
|
320
|
-
.hx-state--error { display: flex; flex-direction: column; align-items: center; gap: var(--corn-space-3); width: min(440px, calc(100vw - 32px)); padding: var(--corn-space-6); border-radius: var(--corn-radius-lg); color: var(--corn-text-2); user-select: text; }
|
|
321
|
-
.hx-state--error strong { color: var(--corn-bad); font-size: var(--corn-text-lg); }
|
|
322
|
-
.hx-state--error p { font-size: var(--corn-text-sm); line-height: 1.5; }
|
|
323
|
-
.hx-state--error #error-message { font-family: var(--corn-mono); color: var(--corn-warn); word-break: break-word; }
|
|
324
|
-
|
|
325
|
-
/* ---- node panel -------------------------------------------------------------------------- */
|
|
326
|
-
.hx-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--corn-scrim); backdrop-filter: blur(calc(var(--corn-blur) / 4)); }
|
|
327
|
-
@media (min-width: 768px) { .hx-backdrop { display: none; } }
|
|
328
|
-
|
|
329
|
-
.hx-drawer { display: flex; flex-direction: column; z-index: 40; border-color: var(--corn-line); box-shadow: var(--corn-shadow-lg); pointer-events: none; touch-action: pan-y; transition: transform 0.2s ease-out; }
|
|
330
|
-
.hx-drawer * { touch-action: pan-y; }
|
|
331
|
-
.hx-drawer.drawer-open { pointer-events: auto; }
|
|
332
|
-
/* The closed panel waits just off the right edge: its shadow would show there */
|
|
333
|
-
.hx-drawer:not(.drawer-open) { box-shadow: none; }
|
|
334
|
-
@media (max-width: 767px) {
|
|
335
|
-
/* A sheet in #sheet-dock (sheets.js, "phone bottom sheets" at the end of this file) */
|
|
336
|
-
.hx-drawer { position: relative; width: 100%; border-radius: var(--corn-radius-lg) var(--corn-radius-lg) 0 0; border-left: 0; transform: none; z-index: auto; }
|
|
337
|
-
.hx-drawer:not(.drawer-open) { display: none; }
|
|
338
|
-
}
|
|
339
|
-
@media (min-width: 768px) {
|
|
340
|
-
.hx-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 480px; transform: translateX(100%); }
|
|
341
|
-
.hx-drawer.drawer-open { transform: translateX(0); }
|
|
342
|
-
}
|
|
343
|
-
.hx-drawer-handle { display: flex; justify-content: center; padding: var(--corn-space-3) 0 var(--corn-space-1); }
|
|
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: var(--corn-panel-pad); overflow-y: auto; user-select: text; }
|
|
346
|
-
.hx-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--corn-space-3); }
|
|
347
|
-
.hx-drawer-title { font-size: var(--corn-text-lg); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
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); }
|
|
349
|
-
.hx-close:hover { color: var(--corn-text); }
|
|
350
|
-
.hx-lead { font-size: var(--corn-text-base); line-height: 1.5; color: var(--corn-text-2); }
|
|
351
|
-
|
|
352
|
-
.hx-block { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
353
|
-
.hx-meta { display: flex; flex-direction: column; gap: var(--corn-space-5); font-size: var(--corn-text-md); color: var(--corn-text-2); overflow-wrap: anywhere; }
|
|
354
|
-
.hx-meta > :empty { display: none; } /* no live data, no threads: no gap where they would be */
|
|
355
|
-
|
|
356
|
-
.hx-sec { margin-top: var(--corn-space-2); padding-top: var(--corn-space-2); border-top: var(--corn-border) solid var(--corn-line); }
|
|
357
|
-
.hx-line { display: flex; align-items: flex-start; gap: var(--corn-space-2); padding: calc(var(--corn-space-1) / 2) 0; }
|
|
358
|
-
.hx-linkbtn { margin-left: var(--corn-space-1); padding: 0; border: 0; background: none; color: var(--corn-hue-fuchsia); text-decoration: underline; font-size: inherit; }
|
|
359
|
-
|
|
360
|
-
.hx-sim { display: flex; flex-direction: column; gap: var(--corn-space-2); padding-top: var(--corn-space-1); font-family: var(--corn-font); }
|
|
361
|
-
.hx-field-label { font-size: var(--corn-text-2xs); color: var(--corn-text-3); }
|
|
362
|
-
.hx-field { width: 100%; padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text-2); font-family: var(--corn-mono); font-size: var(--corn-text-xs); }
|
|
363
|
-
.hx-sim-result { font-size: var(--corn-text-xs); }
|
|
364
|
-
.hx-error-text { padding-top: var(--corn-space-3); color: var(--corn-bad); }
|
|
365
|
-
.hx-ms { width: 56px; flex: none; text-align: right; color: var(--corn-hue-fuchsia); }
|
|
366
|
-
.hx-file { padding: calc(var(--corn-space-1) / 2) 0; }
|
|
367
|
-
|
|
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); }
|
|
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); }
|
|
370
|
-
.hx-sandbox-name { display: flex; align-items: center; gap: var(--corn-space-2); }
|
|
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; }
|
|
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); }
|
|
373
|
-
.hx-ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); color: var(--corn-text-2); }
|
|
374
|
-
.hx-check { display: inline-flex; align-items: center; gap: var(--corn-space-1); margin-right: var(--corn-space-3); cursor: pointer; }
|
|
375
|
-
.hx-chip { padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border: 0; border-radius: var(--corn-radius-xs); font-size: var(--corn-text-xs); font-weight: 500; color: var(--corn-text-on-accent); }
|
|
376
|
-
.hx-chip--ghost { background: var(--corn-surface-2); color: var(--corn-text-2); }
|
|
377
|
-
.hx-chip--outline { background: var(--corn-surface-2); color: var(--corn-accent-text); }
|
|
378
|
-
.hx-chip--primary { background: var(--corn-accent); }
|
|
379
|
-
.hx-chip--danger { background: var(--corn-bad); }
|
|
380
|
-
.hx-chip--success { background: var(--corn-ok); }
|
|
381
|
-
.hx-chip--warning { background: var(--corn-warn); }
|
|
382
|
-
.hx-chip--danger, .hx-chip--success, .hx-chip--warning { color: var(--corn-ground); }
|
|
383
|
-
|
|
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); }
|
|
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; }
|
|
386
|
-
.hx-open:hover { background: var(--corn-accent-hover); }
|
|
387
|
-
|
|
388
|
-
/* ---- proposals (proposal.js): picker, bar, marks, panel rows ----------------------------------- */
|
|
389
|
-
|
|
390
|
-
.hx-menu--proposals { width: 360px; }
|
|
391
|
-
.hx-proposal-list { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
392
|
-
.hx-proposal-empty { padding: var(--corn-space-3) calc(var(--corn-space-1) / 2); font-size: var(--corn-text-sm); }
|
|
393
|
-
.hx-proposal-item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--corn-space-1); width: 100%; padding: var(--corn-space-3) var(--corn-space-3); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text); text-align: left; font-size: var(--corn-text-xs); }
|
|
394
|
-
button.hx-proposal-item:hover { background: var(--corn-surface-3); }
|
|
395
|
-
button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
396
|
-
.hx-proposal-item.is-current { border-color: var(--corn-added-text); background: color-mix(in srgb, var(--corn-added) 12%, transparent); }
|
|
397
|
-
.hx-proposal-item.is-broken { opacity: 0.8; cursor: default; }
|
|
398
|
-
.hx-proposal-title { font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
399
|
-
.hx-proposal-sum { color: var(--corn-text-2); line-height: 1.4; }
|
|
400
|
-
.hx-proposal-meta { display: flex; flex-wrap: wrap; gap: calc(var(--corn-space-1) / 2) var(--corn-space-3); color: var(--corn-text-3); font-size: var(--corn-text-2xs); }
|
|
401
|
-
.hx-proposal-where { color: var(--corn-added-text); }
|
|
402
|
-
|
|
403
|
-
.hx-proposal-bar { position: absolute; top: 48px; left: 12px; width: min(960px, calc(100% - 24px)); padding: var(--corn-space-3) var(--corn-space-3); border-radius: var(--corn-radius-lg); font-size: var(--corn-text-sm); z-index: 15; user-select: text; }
|
|
404
|
-
.hx-proposal-bar.is-error { border-color: color-mix(in srgb, var(--corn-removed) 50%, transparent); }
|
|
405
|
-
.hx-proposal-message { color: var(--corn-text-2); }
|
|
406
|
-
.hx-proposal-bar.is-error .hx-proposal-message { color: var(--corn-bad); }
|
|
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); }
|
|
408
|
-
.hx-proposal-summary { margin-top: var(--corn-space-2); color: var(--corn-text-2); line-height: 1.5; }
|
|
409
|
-
|
|
410
|
-
/* Before / Diff / After */
|
|
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); }
|
|
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; }
|
|
413
|
-
.hx-seg-btn:hover { color: var(--corn-text); }
|
|
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 */
|
|
415
|
-
|
|
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); }
|
|
417
|
-
.hx-proposal-errors summary { cursor: pointer; color: var(--corn-bad); font-weight: 600; }
|
|
418
|
-
.hx-proposal-errors ul { margin: var(--corn-space-2) 0 var(--corn-space-1); padding-left: var(--corn-space-5); line-height: 1.5; }
|
|
419
|
-
.hx-proposal-errors p { margin-top: var(--corn-space-1); font-size: var(--corn-text-xs); }
|
|
420
|
-
|
|
421
|
-
.hx-change-row { display: flex; align-items: center; gap: var(--corn-space-3); width: 100%; padding: var(--corn-space-1) var(--corn-space-2); border: 0; border-radius: var(--corn-radius-sm); background: none; text-align: left; font-size: var(--corn-text-xs); }
|
|
422
|
-
.hx-change-row:hover { background: var(--corn-line-soft); }
|
|
423
|
-
.hx-change-what { width: 56px; flex: none; color: var(--corn-text-3); }
|
|
424
|
-
.hx-change-row .hx-name { min-width: 0; overflow-wrap: anywhere; } /* a long label wraps in its row: the list never scrolls sideways */
|
|
425
|
-
|
|
426
|
-
/* The marks' colours, shared with the picture: the diff tokens, whose light values are theme-model.js `lightColor` of the dark ones */
|
|
427
|
-
.hx-mark-dot { display: inline-block; width: 12px; height: 12px; flex: none; margin-right: var(--corn-space-2); border-radius: 50%; border: var(--corn-border-strong) solid var(--corn-changed); vertical-align: -2px; }
|
|
428
|
-
.hx-legend-row .hx-mark-dot, .hx-change-row .hx-mark-dot { margin-right: 0; }
|
|
429
|
-
.hx-mark-dot--added { border-color: var(--corn-added); border-style: dashed; }
|
|
430
|
-
.hx-mark-dot--changed { border-color: var(--corn-changed); }
|
|
431
|
-
.hx-mark-dot--removed { border-color: var(--corn-removed); background: color-mix(in srgb, var(--corn-removed) 25%, transparent); }
|
|
432
|
-
.hx-mark-dot--edit { border-color: var(--corn-edit); border-style: dotted; } /* a dotted ring: not the changed mark's solid one, with or without colour */
|
|
433
|
-
|
|
434
|
-
/* The panel's proposal block: why, and what changes */
|
|
435
|
-
.hx-proposal-sec { padding: var(--corn-space-3) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-left-width: var(--corn-border-strong); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); margin: 0 0 var(--corn-space-2); font-family: var(--corn-font); }
|
|
436
|
-
.hx-proposal-sec--added { border-left-color: var(--corn-added); }
|
|
437
|
-
.hx-proposal-sec--changed { border-left-color: var(--corn-changed); }
|
|
438
|
-
.hx-proposal-sec--removed { border-left-color: var(--corn-removed); }
|
|
439
|
-
.hx-proposal-sec--edit { border-left-color: var(--corn-edit); }
|
|
440
|
-
.hx-why { margin: var(--corn-space-1) 0 var(--corn-space-2); color: var(--corn-text-2); font-size: var(--corn-text-sm); line-height: 1.5; }
|
|
441
|
-
.hx-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(var(--corn-space-1) / 2) var(--corn-space-3); padding: var(--corn-space-1) 0; border-top: var(--corn-border) solid var(--corn-line-soft); font-family: var(--corn-mono); font-size: var(--corn-text-xs); }
|
|
442
|
-
.hx-change-field { flex: none; min-width: 64px; color: var(--corn-text-3); }
|
|
443
|
-
.hx-change-before { color: var(--corn-bad); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--corn-bad) 50%, transparent); overflow-wrap: anywhere; }
|
|
444
|
-
.hx-change-arrow { color: var(--corn-text-3); }
|
|
445
|
-
.hx-change-after { color: var(--corn-ok); overflow-wrap: anywhere; }
|
|
446
|
-
.hx-change em { color: var(--corn-text-3); text-decoration: none; }
|
|
447
|
-
|
|
448
|
-
/* The node panel is a 480px slide-over from 768px: the bar makes room for it */
|
|
449
|
-
@media (min-width: 768px) { .hx-stage:has(.drawer-open) .hx-proposal-bar { width: min(960px, calc(100% - 504px)); } }
|
|
450
|
-
|
|
451
|
-
@media (max-width: 639px) {
|
|
452
|
-
.hx-menu--proposals { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
/* ---- scenario player (scenario-ui.js): the bar while a scenario plays, and the scenario list --------- */
|
|
456
|
-
.hx-player { position: absolute; left: calc(var(--hx-col-w, 0px) + 24px); right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2) var(--corn-space-4); padding: var(--corn-space-3) var(--corn-space-4); border-radius: var(--corn-radius-lg); z-index: 25; overflow: hidden; }
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
.hx-player .hx-close { width: var(--hx-control-h); height: var(--hx-control-h); font-size: var(--corn-text-sm); }
|
|
461
|
-
|
|
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; }
|
|
463
|
-
.hx-player-speed:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: calc(var(--corn-focus-offset) / 2); }
|
|
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; }
|
|
465
|
-
.hx-player-who { color: var(--corn-text-2); font-weight: 600; }
|
|
466
|
-
.hx-player-text .hx-player-verdict { margin-left: var(--corn-space-2); }
|
|
467
|
-
.hx-player-count { color: var(--corn-accent-text); font-weight: 600; white-space: nowrap; }
|
|
468
|
-
.hx-player-controls { display: flex; flex: none; gap: var(--corn-space-3); }
|
|
469
|
-
.hx-player-side { display: flex; flex: none; align-items: center; gap: var(--corn-space-3); margin-left: auto; }
|
|
470
|
-
.hx-player-controls .hx-btn { justify-content: center; white-space: nowrap; }
|
|
471
|
-
.hx-player-controls .hx-btn[hidden] { display: none; }
|
|
472
|
-
/* The glyphs are drawn, not said: the names are the words (an empty alternative after the slash keeps a screen reader from reading them) */
|
|
473
|
-
.hx-player-prev::before { content: "◀" / ""; margin-right: var(--corn-space-2); }
|
|
474
|
-
.hx-player-next::after { content: "▶" / ""; margin-left: var(--corn-space-2); }
|
|
475
|
-
/* the pause mark is drawn (two bars), not a character: not every font has one */
|
|
476
|
-
.hx-player-toggle[data-state="playing"]::before { content: "" / ""; display: inline-block; box-sizing: border-box; width: 1em; height: 1em; margin-right: var(--corn-space-2); border-left: calc(var(--corn-border-strong) * 1.5) solid currentColor; border-right: calc(var(--corn-border-strong) * 1.5) solid currentColor; }
|
|
477
|
-
.hx-player-toggle[data-state="paused"]::before { content: "▶" / ""; margin-right: var(--corn-space-2); }
|
|
478
|
-
.hx-player-toggle[data-state="done"]::before { content: "↻" / ""; margin-right: var(--corn-space-2); }
|
|
479
|
-
.hx-player-controls .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
480
|
-
.hx-player-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--corn-line-soft); }
|
|
481
|
-
.hx-player-fill { display: block; height: 100%; width: 0; background: var(--corn-accent-text); }
|
|
482
|
-
|
|
483
|
-
/* 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 */
|
|
484
|
-
|
|
485
|
-
/* ---- what-if editing (whatif.js): the controls under the proposal bar, the drag that draws an edge ---- */
|
|
486
|
-
.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); }
|
|
487
|
-
.hx-whatif[hidden] { display: none; }
|
|
488
|
-
.hx-whatif-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); }
|
|
489
|
-
.hx-whatif .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
490
|
-
.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); }
|
|
491
|
-
.hx-whatif-hint { margin: var(--corn-space-2) 0 0; color: var(--corn-edit-text); }
|
|
492
|
-
.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; }
|
|
493
|
-
.hx-whatif-msg[hidden], .hx-whatif-hint[hidden], .hx-whatif-notice[hidden], .hx-whatif-panel[hidden] { display: none; }
|
|
494
|
-
.hx-whatif-notice { margin: var(--corn-space-2) 0 0; color: var(--corn-warn); }
|
|
495
|
-
.hx-whatif-panel { margin-top: var(--corn-space-3); padding: var(--corn-space-3) var(--corn-space-3); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); border: var(--corn-border) solid color-mix(in srgb, var(--corn-edit) 25%, transparent); max-height: min(40vh, 320px); overflow: auto; }
|
|
496
|
-
.hx-whatif-form { display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
497
|
-
.hx-whatif-field { display: flex; align-items: center; gap: var(--corn-space-3); color: var(--corn-text-2); }
|
|
498
|
-
.hx-whatif-field > select, .hx-whatif-field > .hx-whatif-input { flex: 1; min-width: 0; }
|
|
499
|
-
.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; }
|
|
500
|
-
.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); }
|
|
501
|
-
.hx-whatif-help { margin: 0; font-size: var(--corn-text-xs); }
|
|
502
|
-
.hx-whatif-pair { margin: 0; }
|
|
503
|
-
.hx-whatif-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); }
|
|
504
|
-
.hx-whatif-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
505
|
-
.hx-whatif-edit { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
506
|
-
.hx-whatif-edit-text { flex: 1; min-width: 0; line-height: 1.4; }
|
|
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); }
|
|
508
|
-
.hx-whatif-step.is-current { background: color-mix(in srgb, var(--corn-edit) 18%, transparent); }
|
|
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; }
|
|
510
|
-
.hx-whatif-stepbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
511
|
-
.hx-whatif-stepbody .hx-whatif-input { width: 100%; }
|
|
512
|
-
.hx-whatif-target { font-size: var(--corn-text-xs); }
|
|
513
|
-
.hx-whatif-addstep { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); margin-top: var(--corn-space-3); }
|
|
514
|
-
.hx-whatif-addstep .hx-whatif-field { flex: 1 1 220px; }
|
|
515
|
-
.hx-whatif-edges { color: var(--corn-text-2); }
|
|
516
|
-
.hx-whatif-edges summary { cursor: pointer; }
|
|
517
|
-
.hx-whatif-edges .hx-whatif-list { margin-top: var(--corn-space-2); max-height: 200px; overflow: auto; }
|
|
518
|
-
#graph-canvas.is-drawing-edge { touch-action: none; }
|
|
519
|
-
.hx-rubber { position: absolute; inset: 0; pointer-events: none; z-index: 14; }
|
|
520
|
-
.hx-rubber svg { display: block; overflow: visible; }
|
|
521
|
-
.hx-rubber-line { stroke: var(--corn-edit); stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
|
|
522
|
-
.hx-rubber-from, .hx-rubber-to { fill: color-mix(in srgb, var(--corn-edit) 15%, transparent); stroke: var(--corn-edit); stroke-width: 2; }
|
|
523
|
-
/* The review (review.js, TOPO-12): the status line and the note that opens on Send back. It is in the toolbar, just before Send back and
|
|
524
|
-
Approve (the note's Tab goes on to them); from 768px it takes a row of its own under the toolbar, on a phone it sits under the counts */
|
|
525
|
-
.hx-review { flex: 1 0 100%; order: 1; display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
526
|
-
.hx-review[hidden], .hx-review:not(:has(> :not([hidden]))) { display: none; }
|
|
527
|
-
.hx-review-form { display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
528
|
-
.hx-review-form[hidden] { display: none; }
|
|
529
|
-
.hx-review-label { color: var(--corn-text-3); font-size: var(--corn-text-xs); }
|
|
530
|
-
.hx-review-note { width: 100%; min-height: 44px; resize: vertical; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); line-height: 1.4; user-select: text; }
|
|
531
|
-
.hx-review-note:focus { outline: var(--corn-focus-width) solid var(--corn-added-text); outline-offset: calc(var(--corn-focus-offset) / 2); }
|
|
532
|
-
.hx-review-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2) var(--corn-space-3); }
|
|
533
|
-
.hx-btn--approve { border-color: color-mix(in srgb, var(--corn-added) 50%, transparent); color: var(--corn-added-text); }
|
|
534
|
-
.hx-btn--approve:hover { background: color-mix(in srgb, var(--corn-added) 20%, transparent); color: var(--corn-added-text); }
|
|
535
|
-
.hx-review-status { margin: 0; color: var(--corn-added-text); font-variant-numeric: tabular-nums; }
|
|
536
|
-
.hx-review-status[hidden], .hx-review-msg[hidden], .hx-review-line[hidden] { display: none; }
|
|
537
|
-
.hx-review-msg { margin: 0; padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-removed) 12%, transparent); border: var(--corn-border) solid color-mix(in srgb, var(--corn-removed) 35%, transparent); color: var(--corn-bad); line-height: 1.4; }
|
|
538
|
-
.hx-review-line { margin: 0; color: var(--corn-text-2); line-height: 1.4; }
|
|
539
|
-
.hx-proposal-reviewed { color: var(--corn-added-text); }
|
|
540
|
-
/* ---- The proposal toolbar (CF-43): proposal.js, review.js, whatif.js, scenario-ui.js ----------------
|
|
541
|
-
One row from 768px: title, counts (they open the change list), Before / Diff / After, Play, Edit, then Send back,
|
|
542
|
-
Approve (the primary) and a ⋯ menu with Close. The what-if controls sit behind Edit, the scenario list behind Play,
|
|
543
|
-
and the review note opens under the row on Send back. On a phone the row is a sheet: the title, the counts with
|
|
544
|
-
the current mode (a button that opens the switcher), the note when it is open, and Send back and Approve full
|
|
545
|
-
width, each 44px tall. */
|
|
546
|
-
.hx-proposal-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-3) var(--corn-space-4); }
|
|
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) */
|
|
548
|
-
.hx-proposal-counts { display: contents; }
|
|
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; }
|
|
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; }
|
|
551
|
-
.hx-proposal-count:hover { color: var(--corn-text); text-decoration: underline; }
|
|
552
|
-
.hx-proposal-peek { display: none; margin: 0; }
|
|
553
|
-
.hx-proposal-chip .hx-mark-dot { margin: 0 var(--corn-space-2) 0 0; }
|
|
554
|
-
h2.hx-proposal-name { margin: 0; }
|
|
555
|
-
.hx-proposal-sep { margin: 0 var(--corn-space-2); color: var(--corn-text-3); }
|
|
556
|
-
.hx-proposal-mode { display: none; }
|
|
557
|
-
.hx-proposal-tools, .hx-proposal-actions { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
558
|
-
.hx-proposal-tools .hx-btn { height: var(--hx-control-h); font-size: var(--corn-text-sm); font-weight: 500; }
|
|
559
|
-
#proposal-edit.hx-btn--active { background: var(--corn-edit-text); border-color: var(--corn-edit); color: var(--corn-ground); }
|
|
560
|
-
.hx-proposal-actions { margin-left: auto; }
|
|
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; }
|
|
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; }
|
|
563
|
-
.hx-proposal-actions .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
564
|
-
.hx-proposal-more { position: relative; }
|
|
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); }
|
|
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); }
|
|
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); }
|
|
568
|
-
.hx-proposal-more-menu[hidden] { display: none; }
|
|
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); }
|
|
570
|
-
.hx-proposal-more-menu .hx-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
571
|
-
|
|
572
|
-
@media (max-width: 767px) {
|
|
573
|
-
.hx-proposal-head { display: grid; grid-template-columns: 1fr auto; gap: var(--corn-space-2) var(--corn-space-3); }
|
|
574
|
-
.hx-proposal-name { grid-column: 1 / -1; order: 1; max-width: none; }
|
|
575
|
-
.hx-proposal-counts { display: flex; grid-column: 1 / -1; order: 2; align-items: center; flex-wrap: wrap; column-gap: var(--corn-space-2); }
|
|
576
|
-
.hx-proposal-count, .hx-proposal-mode { min-height: 44px; }
|
|
577
|
-
.hx-proposal-mode { display: inline-flex; align-items: center; gap: var(--corn-space-2); padding: 0 var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-sm); background: var(--corn-surface-2); color: var(--corn-text); font-size: var(--corn-text-sm); font-weight: 600; }
|
|
578
|
-
/* A chevron drawn from an image and the text colour: a thick --corn-border-strong cannot turn it into a heart (the borders it used to be drawn with) */
|
|
579
|
-
.hx-proposal-mode::after { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: var(--hx-chevron) no-repeat center / contain; mask: var(--hx-chevron) no-repeat center / contain; }
|
|
580
|
-
.hx-proposal-mode[aria-expanded="true"]::after { transform: rotate(180deg); }
|
|
581
|
-
.hx-seg, .hx-review { grid-column: 1 / -1; order: 3; }
|
|
582
|
-
.hx-proposal-bar:not([data-mode-open="true"]) .hx-seg { display: none; }
|
|
583
|
-
.hx-seg-btn { flex: 1; height: var(--hx-seg-inner); font-size: var(--corn-text-md); }
|
|
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); }
|
|
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); }
|
|
586
|
-
.hx-proposal-tools { order: 5; }
|
|
587
|
-
.hx-proposal-tools .hx-btn { height: auto; min-height: 44px; padding: 0 var(--corn-space-5); font-size: var(--corn-text-md); }
|
|
588
|
-
.hx-proposal-more { display: contents; }
|
|
589
|
-
.hx-proposal-more .hx-btn--icon { order: 6; width: var(--hx-control-h); height: var(--hx-control-h); }
|
|
590
|
-
.hx-proposal-more-menu { position: static; grid-column: 1 / -1; order: 7; box-shadow: none; }
|
|
591
|
-
.hx-proposal-more-menu .hx-btn { height: auto; min-height: 44px; font-size: var(--corn-text-md); }
|
|
592
|
-
.hx-review .hx-btn, .hx-whatif .hx-btn { min-height: 44px; }
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
/* A proposal's mockups (mockups.js): the buttons in a node's panel and the window one opens in. A mockup is untrusted content, shown in an <img> or a sandboxed <iframe>. */
|
|
596
|
-
.hx-mockup-list { list-style: none; margin: var(--corn-space-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
597
|
-
.hx-mockup-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-1) var(--corn-space-3); }
|
|
598
|
-
.hx-mockup-open { max-width: 100%; white-space: normal; text-align: left; }
|
|
599
|
-
.hx-mockup-state { margin: 0; font-size: var(--corn-text-xs); color: var(--corn-text-2); }
|
|
600
|
-
.hx-mockup-state--approved { color: var(--corn-added-text); }
|
|
601
|
-
.hx-mockup-state--changed { color: var(--corn-warn); font-weight: 600; }
|
|
602
|
-
.hx-mockup-state--missing { color: var(--corn-bad); }
|
|
603
|
-
.hx-mockup-dialog { position: fixed; z-index: 60; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: var(--corn-space-3); width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: var(--corn-space-4) var(--corn-space-4) var(--corn-space-4); border-radius: var(--corn-radius-lg); border: var(--corn-border) solid var(--corn-line); background: var(--corn-ground); color: var(--corn-text); box-shadow: var(--corn-shadow), 0 0 0 100vmax var(--corn-scrim); }
|
|
604
|
-
.hx-mockup-dialog:focus { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
605
|
-
.hx-mockup-head { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-4); }
|
|
606
|
-
.hx-mockup-title { margin: 0; font-size: var(--corn-text-base); font-weight: 600; color: var(--corn-text); }
|
|
607
|
-
.hx-mockup-stage { min-height: 0; overflow: auto; display: flex; justify-content: center; border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-mockup-ground); }
|
|
608
|
-
.hx-mockup-img { display: block; max-width: 100%; height: auto; object-fit: contain; }
|
|
609
|
-
.hx-mockup-frame { display: block; width: 100%; height: min(560px, calc(100vh - 140px)); border: 0; background: var(--corn-mockup-ground); }
|
|
610
|
-
|
|
611
|
-
/* /?bench=1: the run's numbers, bottom left (bench.js) */
|
|
612
|
-
.bench-readout { position: fixed; left: 12px; bottom: 12px; z-index: 50; max-width: calc(100vw - 24px); padding: var(--corn-space-3) var(--corn-space-4); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 88%, transparent); color: var(--corn-text-2); font-family: var(--corn-mono); font-size: var(--corn-text-xs); line-height: 1.5; pointer-events: none; }
|
|
613
|
-
.bench-readout p { margin: 0; }
|
|
614
|
-
|
|
615
|
-
/* ---- phone bottom sheets (sheets.js, TOPO-18) ----------------------------------------------------
|
|
616
|
-
Below 768px the proposal bar, the scenario player and the node panel stack in #sheet-dock at the bottom of
|
|
617
|
-
the map. Each is a peek (a handle, a title, a line or two) until a tap or swipe on its handle expands it
|
|
618
|
-
to at most 50dvh (the node panel 60dvh) with its own scroll. From 768px the dock is display: contents and
|
|
619
|
-
none of this applies. */
|
|
620
|
-
.hx-dock { display: contents; }
|
|
621
|
-
.hx-sheet-handle { display: none; }
|
|
622
|
-
@keyframes hx-sheet-in { from { transform: translateY(28px); opacity: 0; } }
|
|
623
|
-
|
|
624
|
-
@media (max-width: 767px) {
|
|
625
|
-
.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; }
|
|
626
|
-
.hx-dock > * { pointer-events: auto; }
|
|
627
|
-
.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); }
|
|
628
|
-
.hx-dock > .hx-sheet[data-sheet-last]:not(.hx-drawer), .hx-dock > .hx-drawer[data-sheet-last][data-sheet-state="peek"] { padding-bottom: calc(var(--sheet-pb) + env(safe-area-inset-bottom, 0px)); }
|
|
629
|
-
.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; }
|
|
630
|
-
.hx-sheet-handle span { width: 40px; height: 5px; border-radius: var(--corn-radius-pill); background: var(--corn-surface-3); }
|
|
631
|
-
.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); }
|
|
632
|
-
.hx-backdrop { display: none; }
|
|
633
|
-
/* 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
|
|
634
|
-
selected node was panned into (camera.js panIntoView), and a scrim or blur over it hides that node (issue #180) */
|
|
635
|
-
.hx-stage[data-sheet-open="drawer"] .hx-backdrop:not([hidden]) { display: block; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
|
|
636
|
-
|
|
637
|
-
/* The proposal bar */
|
|
638
|
-
.hx-proposal-bar { max-height: 50dvh; overflow-y: auto; padding: 0 var(--corn-space-4) var(--corn-space-3); }
|
|
639
|
-
.hx-proposal-bar[data-sheet-state="peek"] > :not(.hx-sheet-handle):not(#proposal-message):not(#proposal-ways):not(#proposal-body),
|
|
640
|
-
.hx-proposal-bar[data-sheet-state="peek"] #proposal-body > :not(.hx-proposal-head),
|
|
641
|
-
.hx-proposal-bar[data-sheet-state="peek"] .hx-proposal-head > :is(.hx-proposal-tools, .hx-proposal-more, .hx-proposal-more-menu) { display: none; }
|
|
642
|
-
.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 */
|
|
643
|
-
.hx-proposal-bar[data-sheet-state="expanded"] .hx-whatif-panel { max-height: none; overflow: visible; }
|
|
644
|
-
|
|
645
|
-
/* The scenario player: one row (Previous, Pause, Next, the counter and Close) in the peek; the text, the speed and the checks when it is open */
|
|
646
|
-
.hx-player { position: relative; left: auto; right: auto; bottom: auto; flex-wrap: wrap; max-height: 50dvh; overflow: hidden; gap: 0 var(--corn-space-3); padding: 0 var(--corn-space-4) var(--corn-space-3); --sheet-pb: var(--corn-space-3); }
|
|
647
|
-
.hx-player > .hx-sheet-handle { flex: 0 0 100%; }
|
|
648
|
-
.hx-player[data-sheet-state="expanded"] { overflow-y: auto; }
|
|
649
|
-
.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 */
|
|
650
|
-
.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; }
|
|
651
|
-
.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; }
|
|
652
|
-
.hx-player[data-sheet-state="peek"] .hx-player-side .hx-player-speed { display: none; }
|
|
653
|
-
.hx-player[data-sheet-state="expanded"] .hx-player-text { flex: 1 0 100%; order: 3; }
|
|
654
|
-
.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); }
|
|
655
|
-
|
|
656
|
-
/* The node panel: its title and type until expanded */
|
|
657
|
-
.hx-drawer { max-height: 60dvh; }
|
|
658
|
-
.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; }
|
|
659
|
-
.hx-drawer[data-sheet-state="peek"] .hx-drawer-body > :not(.hx-drawer-head), .hx-drawer[data-sheet-state="peek"] .hx-drawer-foot { display: none; }
|
|
660
|
-
.hx-drawer[data-sheet-state="peek"] .hx-drawer-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
@media (prefers-reduced-motion: reduce) {
|
|
664
|
-
.hx-dock > .hx-sheet { animation: none; }
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
/* ---- the live layer (live.js, spec 0029): the chip in the toolbar, its menu, and its part of the node panel ---- */
|
|
668
|
-
.hx-live-chip { max-width: 240px; min-width: 0; }
|
|
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; } }
|
|
673
|
-
.hx-live-chip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--corn-text-3); }
|
|
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); }
|
|
675
|
-
.hx-live[data-tone="stale"] .hx-live-chip-dot { background: var(--corn-changed); }
|
|
676
|
-
.hx-live[data-tone="error"] .hx-live-chip-dot { background: var(--corn-removed); box-shadow: 0 0 calc(var(--corn-glow) * 0.75) color-mix(in srgb, var(--corn-removed) 60%, transparent); }
|
|
677
|
-
.hx-live[data-tone="error"] .hx-live-chip { border-color: color-mix(in srgb, var(--corn-removed) 40%, transparent); }
|
|
678
|
-
.hx-menu--live { width: 320px; }
|
|
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; }
|
|
680
|
-
.hx-live-line--main { color: var(--corn-text); font-weight: 600; }
|
|
681
|
-
.hx-live-row { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); margin-top: var(--corn-space-3); }
|
|
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; }
|
|
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; }
|
|
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; }
|
|
685
|
-
/* The token field (live.js): shown while the live layer is off for want of a token */
|
|
686
|
-
.hx-live-token { margin: var(--corn-space-3) 0 var(--corn-space-1); padding-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line-soft); }
|
|
687
|
-
.hx-live-token-label { display: block; margin-bottom: var(--corn-space-1); color: var(--corn-text); font-size: var(--corn-text-sm); font-weight: 600; }
|
|
688
|
-
.hx-live-token-row { display: flex; gap: var(--corn-space-2); align-items: center; margin-bottom: var(--corn-space-2); }
|
|
689
|
-
.hx-live-token-input { flex: 1; min-width: 0; padding: var(--corn-space-2) var(--corn-space-3); font-size: var(--corn-text-sm); }
|
|
690
|
-
.hx-live-token-input:focus { outline: none; border-color: var(--corn-focus); }
|
|
691
|
-
.hx-live-help code { font-family: var(--corn-mono); font-size: var(--corn-text-2xs); color: var(--corn-text-2); overflow-wrap: anywhere; }
|
|
692
|
-
.hx-live-second { font-size: var(--corn-text-xs); }
|
|
693
|
-
.hx-live-buttons { display: inline-flex; gap: var(--corn-space-2); }
|
|
694
|
-
/* On a phone the chip is its dot on the map (its line is in the menu), and the menu spans the screen under it */
|
|
695
|
-
@media (max-width: 767px) {
|
|
696
|
-
.hx-live-chip { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: var(--corn-radius-pill); background: var(--corn-surface-1); box-shadow: var(--corn-shadow); }
|
|
697
|
-
.hx-menu--live { position: fixed; top: calc(56px + var(--corn-space-4) + 44px); left: 12px; right: 12px; width: auto; max-width: none; }
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
/* ── Checked scenarios (PHY-10, check.js): the step's state on the player bar and the phone's sheet ──
|
|
701
|
-
The pill sits in the head, so the phone's peek shows it; the line and the As row are the expanded part. */
|
|
702
|
-
.hx-player-verdict { flex: none; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border-radius: var(--corn-radius-pill); font-size: var(--corn-text-xs); font-weight: 600; white-space: nowrap; border: var(--corn-border) solid var(--corn-line); color: var(--corn-text-2); background: color-mix(in srgb, var(--corn-text-3) 12%, transparent); }
|
|
703
|
-
.hx-player-check { margin: 0; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); font-size: var(--corn-text-md); line-height: 1.4; color: var(--corn-text-2); background: color-mix(in srgb, var(--corn-text-3) 10%, transparent); border-left: var(--corn-border-strong) solid color-mix(in srgb, var(--corn-text-3) 50%, transparent); user-select: text; }
|
|
704
|
-
.hx-player-check-detail { display: block; font-size: var(--corn-text-xs); color: var(--corn-text-3); }
|
|
705
|
-
.hx-player-verdict[data-tone="allowed"], .hx-player-check[data-tone="allowed"] { color: var(--corn-ok); background: var(--corn-ok-soft); border-color: color-mix(in srgb, var(--corn-ok) 60%, transparent); }
|
|
706
|
-
.hx-player-verdict[data-tone="refused"], .hx-player-check[data-tone="refused"] { color: var(--corn-bad); background: color-mix(in srgb, var(--corn-removed) 16%, transparent); border-color: color-mix(in srgb, var(--corn-removed) 70%, transparent); }
|
|
707
|
-
.hx-player-verdict[data-tone="mismatch"], .hx-player-check[data-tone="mismatch"] { color: var(--corn-warn); background: color-mix(in srgb, var(--corn-changed) 16%, transparent); border-color: color-mix(in srgb, var(--corn-changed) 70%, transparent); }
|
|
708
|
-
.hx-player-verdict[data-tone="pending"] { opacity: 0.75; }
|
|
709
|
-
.hx-player-as { display: flex; align-items: center; gap: var(--corn-space-3); flex-wrap: wrap; font-size: var(--corn-text-sm); color: var(--corn-text-2); }
|
|
710
|
-
.hx-player-as-label { display: inline-flex; align-items: center; gap: var(--corn-space-2); }
|
|
711
|
-
.hx-player-as .hx-btn { padding: var(--corn-space-1) var(--corn-space-3); font-size: var(--corn-text-sm); }
|
|
712
|
-
.hx-player-as .hx-btn:disabled { opacity: 0.4; cursor: default; }
|
|
713
|
-
.hx-player-as-sum { margin-left: auto; font-size: var(--corn-text-xs); }
|
|
714
|
-
.hx-player-as[hidden], .hx-player-verdict[hidden], .hx-player-check[hidden] { display: none; }
|
|
715
|
-
|
|
716
|
-
/* ---- cloud nodes (spec 0031, CLOUD-06): the panel's badges, plan and Used by; the `when` line styles -- */
|
|
717
|
-
.hx-cloud-browser { color: var(--corn-text-3); font-size: var(--corn-text-sm); }
|
|
718
|
-
|
|
719
|
-
/* ---- a panel glyph (MAP-01) ----------------------------------------------------------------------
|
|
720
|
-
A panel glyph's colour comes from script (the flow or kind it stands for, --glyph): mixed with the text colour by
|
|
721
|
-
--corn-glyph-mix (all of it on dark, 45% on light), so a pale yellow arrow still reads on the light ground. */
|
|
722
|
-
.hx-glyph { color: var(--glyph); color: color-mix(in srgb, var(--glyph) var(--corn-glyph-mix), var(--corn-text)); }
|
|
723
|
-
|
|
724
|
-
/* ---- keyboard and screen reader (MAP-02, keyboard.js) ------------------------------------------
|
|
725
|
-
Text only a screen reader reads (the heading, the map's keys, the announcer); a focus ring on everything that
|
|
726
|
-
takes the focus, the map included (the more specific rings above still win where they are set). */
|
|
727
|
-
.hx-sr-only { position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
728
|
-
:where(button, a[href], summary, select, textarea, [tabindex]):focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
729
|
-
#graph-canvas:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: calc(var(--corn-focus-width) * -1); }
|
|
730
|
-
.hx-drawer-title:focus { outline: none; }
|
|
731
|
-
.hx-drawer-title:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
732
|
-
|
|
733
|
-
/* ---- the issues and PRs panel (forge-panel.js, CF-07) -------------------------------------------
|
|
734
|
-
A slide-over from the left from 768px (the node panel is the one from the right), a bottom sheet in #sheet-dock below.
|
|
735
|
-
Closed, it is inert (forge-panel.js), and off screen or not displayed. Only the tokens above are used, so it follows the theme. */
|
|
736
|
-
.hx-forge { --hx-forge-status-w: 56px; }
|
|
737
|
-
.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; }
|
|
738
|
-
.hx-forge * { touch-action: pan-y; }
|
|
739
|
-
.hx-forge.forge-open { pointer-events: auto; }
|
|
740
|
-
.hx-forge:not(.forge-open) { box-shadow: none; }
|
|
741
|
-
@media (min-width: 768px) {
|
|
742
|
-
/* The panel's width is the stage's `--hx-forge-w`, so what makes room for it reads the same number (the Runs view's compare widens it, below) */
|
|
743
|
-
.hx-stage { --hx-forge-w: min(400px, calc(100% - 24px)); }
|
|
744
|
-
.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); }
|
|
745
|
-
.hx-forge.forge-open { transform: translateX(0); }
|
|
746
|
-
/* The proposal bar and the player make room for it: 12px past its edge, and the node panel's 480px (+24) when that is open too */
|
|
747
|
-
.hx-stage:has(.forge-open) .hx-proposal-bar { left: calc(var(--hx-forge-w) + 12px); width: min(960px, calc(100% - var(--hx-forge-w) - 36px)); }
|
|
748
|
-
.hx-stage:has(.forge-open):has(.drawer-open) .hx-proposal-bar { width: min(960px, calc(100% - var(--hx-forge-w) - 540px)); }
|
|
749
|
-
}
|
|
750
|
-
@media (max-width: 767px) {
|
|
751
|
-
.hx-forge:not(.forge-open) { display: none; }
|
|
752
|
-
.hx-forge { max-height: 60dvh; }
|
|
753
|
-
.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; }
|
|
754
|
-
.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; }
|
|
755
|
-
.hx-forge[data-sheet-state="peek"] .hx-forge-head { padding-bottom: 0; border-bottom: 0; }
|
|
756
|
-
.hx-forge[data-sheet-state="peek"] .hx-forge-head .hx-btn { display: none; }
|
|
757
|
-
}
|
|
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); }
|
|
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); }
|
|
760
|
-
.hx-forge-head .hx-drawer-title { flex: 1; min-width: 0; }
|
|
761
|
-
.hx-forge-status, .hx-forge-rate { font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
762
|
-
.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 */
|
|
763
|
-
/* The tabs, in the order of the loop: underlined here, pills that scroll sideways on a phone (below) */
|
|
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; }
|
|
765
|
-
.hx-forge-tabs::-webkit-scrollbar { display: none; }
|
|
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; }
|
|
767
|
-
.hx-forge-tab:hover { color: var(--corn-text); }
|
|
768
|
-
.hx-forge-tab[aria-pressed="true"] { border-bottom-color: var(--corn-accent); color: var(--corn-text); font-weight: 600; }
|
|
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); }
|
|
770
|
-
.hx-forge-count { color: var(--corn-text-3); font-size: var(--corn-text-xs); font-weight: 500; }
|
|
771
|
-
.hx-forge-count[hidden] { display: none; }
|
|
772
|
-
/* 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` */
|
|
773
|
-
.hx-forge-tab .hx-forge-count { display: inline-block; min-width: 2ch; }
|
|
774
|
-
/* 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 */
|
|
775
|
-
.hx-forge-body > * { flex-shrink: 0; } /* a tall detail scrolls the body; it must not squash the tabs */
|
|
776
|
-
.hx-forge .hx-drawer-title:focus-visible, .hx-forge-notes-title:focus-visible { outline: none; }
|
|
777
|
-
.hx-forge-bar { display: flex; align-items: center; gap: var(--corn-space-3); min-height: 28px; }
|
|
778
|
-
.hx-forge-bar .hx-forge-status { flex: 1; min-width: 0; }
|
|
779
|
-
.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); }
|
|
780
|
-
.hx-forge-chip:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
781
|
-
.hx-forge-chip[aria-expanded="true"], .hx-forge-chip.is-on { border-color: var(--corn-accent); color: var(--corn-text); }
|
|
782
|
-
.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; }
|
|
783
|
-
.hx-forge-filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--corn-space-2) var(--corn-space-3); }
|
|
784
|
-
.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); }
|
|
785
|
-
.hx-forge-field--text { grid-column: 1 / -1; }
|
|
786
|
-
/* The Start dialog's four limits: two a row, under their legend */
|
|
787
|
-
.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; }
|
|
788
|
-
.hx-forge-limits > legend { padding: 0 0 var(--corn-space-1); }
|
|
789
|
-
.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; }
|
|
790
|
-
.hx-forge-input::placeholder { color: var(--corn-text-3); }
|
|
791
|
-
.hx-forge-input:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
792
|
-
.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; }
|
|
793
|
-
|
|
794
|
-
.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; }
|
|
795
|
-
.hx-forge-item { display: flex; align-items: stretch; gap: var(--corn-space-1); }
|
|
796
|
-
.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); }
|
|
797
|
-
a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface-3); }
|
|
798
|
-
.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); }
|
|
799
|
-
.hx-forge-title { font-weight: 600; overflow-wrap: anywhere; }
|
|
800
|
-
.hx-forge-meta { color: var(--corn-text-3); font-size: var(--corn-text-xs); overflow-wrap: anywhere; }
|
|
801
|
-
.hx-forge-labels { display: flex; flex-wrap: wrap; gap: var(--corn-space-1); }
|
|
802
|
-
.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); }
|
|
803
|
-
.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; }
|
|
804
|
-
.hx-forge-out:hover { background: var(--corn-surface-3); }
|
|
805
|
-
.hx-forge-empty { padding: var(--corn-space-3) calc(var(--corn-space-1) / 2); }
|
|
806
|
-
|
|
807
|
-
/* A state is a word as well as a colour: open, merged, a check's result */
|
|
808
|
-
.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; }
|
|
809
|
-
.hx-forge-state--open, .hx-forge-state--success { color: var(--corn-ok); }
|
|
810
|
-
.hx-forge-state--merged { color: var(--corn-edit-text); }
|
|
811
|
-
.hx-forge-state--closed, .hx-forge-state--failure { color: var(--corn-bad); }
|
|
812
|
-
.hx-forge-state--draft, .hx-forge-state--running, .hx-forge-state--queued { color: var(--corn-warn); }
|
|
813
|
-
.hx-forge-state--neutral, .hx-forge-state--skipped, .hx-forge-state--cancelled { color: var(--corn-text-3); }
|
|
814
|
-
|
|
815
|
-
.hx-forge-detail { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
816
|
-
.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; }
|
|
817
|
-
/* A section's label, in sentence case */
|
|
818
|
-
.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); }
|
|
819
|
-
.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); }
|
|
820
|
-
.hx-forge-check { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); }
|
|
821
|
-
.hx-forge-check .hx-link { display: inline-flex; align-items: center; min-height: 24px; }
|
|
822
|
-
.hx-forge-lights { flex-basis: 100%; font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
823
|
-
.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); }
|
|
824
|
-
.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; }
|
|
825
|
-
.hx-forge-fstatus { flex: none; min-width: var(--hx-forge-status-w); color: var(--corn-text-3); font-size: var(--corn-text-xs); }
|
|
826
|
-
.hx-forge-del { color: var(--corn-bad); }
|
|
827
|
-
.hx-forge-act { align-self: flex-start; min-height: 24px; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); }
|
|
828
|
-
.hx-forge-why { margin: 0; font-size: var(--corn-text-xs); line-height: 1.5; }
|
|
829
|
-
.hx-forge-step { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
830
|
-
.hx-forge-startspec { flex: none; align-self: center; }
|
|
831
|
-
.hx-forge-notice--ok { border-color: var(--corn-ok); }
|
|
832
|
-
.hx-confirm-scrim { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: var(--corn-space-5); background: var(--corn-scrim); }
|
|
833
|
-
.hx-confirm-scrim[hidden] { display: none; }
|
|
834
|
-
.hx-confirm { display: flex; flex-direction: column; gap: var(--corn-space-3); width: min(440px, 100%); max-height: 100%; overflow-y: auto; padding: var(--corn-space-5); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-lg); box-shadow: var(--corn-shadow-lg); font-size: var(--corn-text-sm); user-select: text; }
|
|
835
|
-
.hx-confirm-title { margin: 0; font-size: var(--corn-text-lg); font-weight: 700; color: var(--corn-text); }
|
|
836
|
-
.hx-confirm-facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--corn-space-1) var(--corn-space-4); margin: 0; }
|
|
837
|
-
.hx-confirm-facts dt { color: var(--corn-text-3); }
|
|
838
|
-
.hx-confirm-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--corn-text); }
|
|
839
|
-
.hx-confirm-checks { display: flex; flex-direction: column; gap: var(--corn-space-1); margin: 0; padding: 0; list-style: none; }
|
|
840
|
-
.hx-confirm-label { margin: 0; color: var(--corn-text-3); }
|
|
841
|
-
.hx-confirm-pre { margin: 0; max-height: 140px; overflow: auto; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-text); font: var(--corn-text-xs)/1.5 var(--corn-mono); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
|
|
842
|
-
.hx-confirm-pre:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
843
|
-
.hx-confirm-note { margin: 0; color: var(--corn-text-2); line-height: 1.5; }
|
|
844
|
-
.hx-confirm-actions { display: flex; justify-content: flex-end; gap: var(--corn-space-3); }
|
|
845
|
-
.hx-tokens-list { display: flex; flex-direction: column; gap: var(--corn-space-2); margin: 0; padding: 0; list-style: none; }
|
|
846
|
-
.hx-tokens-item { display: grid; grid-template-columns: 1fr auto; gap: calc(var(--corn-space-1) / 2) var(--corn-space-3); align-items: center; padding: var(--corn-space-2) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); }
|
|
847
|
-
.hx-tokens-item[data-state="revoked"], .hx-tokens-item[data-state="expired"] { opacity: 0.65; }
|
|
848
|
-
.hx-tokens-label { font-weight: 600; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
849
|
-
.hx-tokens-meta { grid-column: 1; }
|
|
850
|
-
.hx-tokens-item .hx-btn { grid-column: 2; grid-row: 1 / span 2; }
|
|
851
|
-
.hx-tokens-row { display: flex; gap: var(--corn-space-3); align-items: center; }
|
|
852
|
-
.hx-tokens-row .hx-forge-input { flex: 1; }
|
|
853
|
-
.hx-tokens-form { display: grid; grid-template-columns: 1fr 5rem; gap: var(--corn-space-3); align-items: end; }
|
|
854
|
-
.hx-tokens-form .hx-btn { grid-column: 1 / -1; justify-self: start; }
|
|
855
|
-
.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)); }
|
|
856
|
-
/* A node button is a button (a square corner, a filled face, an arrow), never a state pill */
|
|
857
|
-
.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); }
|
|
858
|
-
.hx-forge-node::after { content: ' \2192'; }
|
|
859
|
-
.hx-forge-node:hover { background: var(--corn-surface-3); }
|
|
860
|
-
.hx-forge-work-filters { display: flex; flex-wrap: wrap; gap: var(--corn-space-2) var(--corn-space-4); }
|
|
861
|
-
.hx-forge-work-filters[hidden], .hx-forge-filters[hidden] { display: none; }
|
|
862
|
-
.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); }
|
|
863
|
-
.hx-forge-toggle input { accent-color: var(--corn-accent-text); }
|
|
864
|
-
.hx-forge-toggle input:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
865
|
-
.hx-forge-group { display: flex; flex-direction: column; gap: var(--corn-space-1); margin: 0 0 var(--corn-space-3); list-style: none; }
|
|
866
|
-
.hx-forge-gtitle { margin: 0; font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
|
|
867
|
-
.hx-forge-gout { margin-left: var(--corn-space-1); }
|
|
868
|
-
.hx-forge-agentline { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); }
|
|
869
|
-
.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; }
|
|
870
|
-
.hx-forge-why { font-size: var(--corn-text-xs); overflow-wrap: anywhere; }
|
|
871
|
-
.hx-forge-notes, .hx-forge-confirm { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
872
|
-
.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; }
|
|
873
|
-
.hx-forge-preview:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
874
|
-
.hx-forge-actions { display: flex; flex-wrap: wrap; gap: var(--corn-space-3); }
|
|
875
|
-
.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; }
|
|
876
|
-
.hx-forge-msg--bad { border-color: var(--corn-warn); }
|
|
877
|
-
.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; }
|
|
878
|
-
.hx-forge-runs { display: flex; flex-direction: column; gap: var(--corn-space-2); margin: var(--corn-space-1) 0 var(--corn-space-3); }
|
|
879
|
-
.hx-forge-runs[hidden] { display: none; }
|
|
880
|
-
/* A Specs row: title and state on one line, a line of what it is, the facts */
|
|
881
|
-
.hx-forge-line { display: flex; align-items: center; gap: var(--corn-space-3); }
|
|
882
|
-
.hx-forge-line .hx-forge-title { flex: 1; min-width: 0; }
|
|
883
|
-
.hx-forge-sum { color: var(--corn-text-2); line-height: 1.4; overflow-wrap: anywhere; }
|
|
884
|
-
.hx-forge-facts { display: flex; flex-wrap: wrap; gap: 0 var(--corn-space-3); }
|
|
885
|
-
.hx-forge-add { color: var(--corn-added-text); }
|
|
886
|
-
.hx-forge-chg { color: var(--corn-warn); }
|
|
887
|
-
/* A selection replaces the list, with a back control named by the list; Land it is the one primary action */
|
|
888
|
-
.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); }
|
|
889
|
-
.hx-forge-back:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
890
|
-
.hx-forge-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-1) var(--corn-space-3); }
|
|
891
|
-
.hx-forge-cta { display: flex; flex-wrap: wrap; gap: var(--corn-space-3); }
|
|
892
|
-
.hx-forge-cta .hx-btn { min-height: 32px; justify-content: center; }
|
|
893
|
-
.hx-forge-cta .hx-btn--approve { flex: 1; }
|
|
894
|
-
.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; }
|
|
895
|
-
.hx-forge-open { text-decoration: none; color: var(--corn-text-2); }
|
|
896
|
-
.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 */
|
|
897
|
-
/* The foot of a list: Release notes … on PRs, New idea on Specs and Threads */
|
|
898
|
-
.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); }
|
|
899
|
-
.hx-forge-foot > .hx-btn { align-self: flex-start; }
|
|
900
|
-
/* A phone: the tabs are pills, and everything a thumb has to hit is 44px */
|
|
901
|
-
@media (max-width: 767px) {
|
|
902
|
-
.hx-forge-tabs { gap: var(--corn-space-2); padding-bottom: var(--corn-space-3); border-bottom: 0; }
|
|
903
|
-
.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); }
|
|
904
|
-
.hx-forge-tab[aria-pressed="true"] { background: var(--corn-accent); border-color: var(--corn-accent); color: var(--corn-text-on-accent); }
|
|
905
|
-
.hx-forge-tab[aria-pressed="true"] .hx-forge-count { color: inherit; }
|
|
906
|
-
.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; }
|
|
907
|
-
.hx-forge .hx-close { display: inline-flex; align-items: center; justify-content: center; }
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
/* Threads (forge-panel.js, docs/threads.md): messages as written, read-only; a node's "Threads" opens one */
|
|
911
|
-
.hx-thread-msgs { display: flex; flex-direction: column; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
912
|
-
.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); }
|
|
913
|
-
.hx-thread-body { margin: 0; color: var(--corn-text); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
|
|
914
|
-
.hx-thread-nodes { padding-left: 0; }
|
|
915
|
-
.hx-thread-compose { font-family: inherit; min-height: 8em; }
|
|
916
|
-
.hx-thread-open { display: block; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
|
|
917
|
-
#forge-idea[hidden], #idea-form[hidden], #idea-message[hidden] { display: none; }
|
|
918
|
-
|
|
919
|
-
/* ---- agent runs on the map (explorer/runs-map.js, issue #82) ---- */
|
|
920
|
-
.hx-run-overlay { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
|
|
921
|
-
.hx-run-overlay[hidden] { display: none; }
|
|
922
|
-
.hx-run-mark { position: absolute; width: 0; height: 0; --r: 14px; }
|
|
923
|
-
.hx-run-ring { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); box-sizing: border-box; border-radius: 50%; border: var(--corn-border-strong) solid var(--corn-added); }
|
|
924
|
-
/* In flight: the ring pulses outward and fades; when motion is reduced it is a still, slightly thicker ring */
|
|
925
|
-
.hx-run-mark--flight .hx-run-ring { animation: hx-run-pulse 1.8s ease-out infinite; }
|
|
926
|
-
@keyframes hx-run-pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.55); opacity: 0.1; } }
|
|
927
|
-
.hx-run-overlay.is-static .hx-run-ring { animation: none; transform: none; opacity: 1; border-width: calc(var(--corn-border-strong) + var(--corn-border)); }
|
|
928
|
-
@media (prefers-reduced-motion: reduce) { .hx-run-ring { animation: none !important; transform: none; opacity: 1; border-width: calc(var(--corn-border-strong) + var(--corn-border)); } }
|
|
929
|
-
/* Collision: dashed, a sign and words; the same ring whether or not colour is seen */
|
|
930
|
-
.hx-run-mark--collision .hx-run-ring { border: calc(var(--corn-border-strong) + var(--corn-border)) dashed var(--corn-map-collision); animation: none; }
|
|
931
|
-
.hx-run-tag { position: absolute; left: 0; top: calc(var(--r) + 4px); transform: translateX(-50%); white-space: nowrap; padding: calc(var(--corn-space-1) / 2) var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-map-collision); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); color: var(--corn-map-collision); font-size: var(--corn-text-xs); font-weight: 700; }
|
|
932
|
-
.hx-run-swatch { display: inline-block; width: 14px; height: 14px; flex: none; box-sizing: border-box; border-radius: 50%; border: var(--corn-border-strong) solid var(--corn-added); }
|
|
933
|
-
.hx-run-swatch--collision { border: var(--corn-border-strong) dashed var(--corn-map-collision); }
|
|
934
|
-
|
|
935
|
-
/* 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 */
|
|
936
|
-
.hx-runs-list { display: flex; flex-direction: column; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
937
|
-
.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; }
|
|
938
|
-
.hx-run-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--corn-space-1) var(--corn-space-3); }
|
|
939
|
-
.hx-run-actions { display: flex; flex-wrap: wrap; gap: var(--corn-space-2); }
|
|
940
|
-
.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; }
|
|
941
|
-
.hx-run-limits { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--corn-space-3); margin: 0; font-size: var(--corn-text-xs); }
|
|
942
|
-
.hx-run-limits dt { color: var(--corn-text-2); font-weight: 600; }
|
|
943
|
-
.hx-run-limits dd { margin: 0; color: var(--corn-text-2); }
|
|
944
|
-
.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); }
|
|
945
|
-
.hx-run-timeline li { color: var(--corn-text-2); }
|
|
946
|
-
.hx-run-timeline time { color: var(--corn-text-2); margin-right: var(--corn-space-2); }
|
|
947
|
-
.hx-run-note { display: block; color: var(--corn-text-2); white-space: pre-wrap; }
|
|
948
|
-
.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); }
|
|
949
|
-
.hx-run-compare-title { margin: 0; font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); }
|
|
950
|
-
.hx-run-columns { display: grid; grid-template-columns: 1fr; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
|
|
951
|
-
@media (min-width: 1100px) {
|
|
952
|
-
.hx-stage:has(.hx-forge .hx-run-compare) { --hx-forge-w: min(780px, calc(100% - 24px)); }
|
|
953
|
-
.hx-run-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
954
|
-
}
|
|
955
|
-
/* With the node panel open as well, a 780px compare only fits beside it from 1600px: below that the panel keeps its width and the
|
|
956
|
-
profiles stack, so neither panel nor the proposal bar between them is covered */
|
|
957
|
-
@media (min-width: 1100px) and (max-width: 1599px) {
|
|
958
|
-
.hx-stage:has(.hx-forge .hx-run-compare):has(.drawer-open) { --hx-forge-w: min(400px, calc(100% - 24px)); }
|
|
959
|
-
.hx-stage:has(.drawer-open) .hx-run-columns { grid-template-columns: 1fr; }
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
/* theme.pixelated (docs/config.md#theme): small pixel-art images are sampled without smoothing, in the page as on the map (map-style.js) */
|
|
963
|
-
:root[data-pixelated] img { image-rendering: pixelated; }
|
|
964
|
-
|
|
965
|
-
/* ---- the node panel (panels.js, #138): type · name · one line · facts · mockups · threads · the diff · the actions ------------ */
|
|
966
|
-
.hx-drawer-id { flex: 1; min-width: 0; }
|
|
967
|
-
.hx-kicker { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 var(--corn-space-2); font-size: var(--corn-text-sm); color: var(--corn-text-3); }
|
|
968
|
-
/* The badge carries a project's own kind ("Service · timer", spec 0009): a long one wraps inside the panel, never past it */
|
|
969
|
-
.hx-kicker [data-corn="badge"] { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
|
|
970
|
-
#drawer-host { white-space: pre; } /* the kicker is a flex row, which drops a leading space: keep " · host" */
|
|
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); }
|
|
972
|
-
.hx-drawer-id .hx-drawer-title.hx-mono { font-family: var(--corn-mono); }
|
|
973
|
-
.hx-facts { display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
974
|
-
.hx-fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--corn-space-4); }
|
|
975
|
-
.hx-fact-k { color: var(--corn-text-3); }
|
|
976
|
-
.hx-fact-v { min-width: 0; color: var(--corn-text); }
|
|
977
|
-
.hx-fact-v .hx-line { padding: 0; }
|
|
978
|
-
.hx-fact-v .hx-name { color: var(--corn-text); }
|
|
979
|
-
.hx-fact-v .hx-code { color: var(--corn-text-2); font-size: var(--corn-text-sm); }
|
|
980
|
-
.hx-fact-v .hx-chips { padding-top: 0; }
|
|
981
|
-
.hx-sec-block { display: flex; flex-direction: column; gap: var(--corn-space-3); }
|
|
982
|
-
.hx-sec-title { margin: 0; font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text-3); }
|
|
983
|
-
.hx-drawer .hx-mockups { margin: 0; padding: 0; border: 0; }
|
|
984
|
-
.hx-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
985
|
-
.hx-row { display: flex; align-items: center; gap: var(--corn-space-4); width: 100%; min-height: 36px; padding: var(--corn-space-3) var(--corn-space-4); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-sm); background: var(--corn-surface-2); color: var(--corn-text); font: inherit; text-align: left; }
|
|
986
|
-
.hx-row:hover { background: var(--corn-accent-soft); }
|
|
987
|
-
.hx-row:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
988
|
-
.hx-row-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
989
|
-
.hx-row-meta { flex: none; font-size: var(--corn-text-sm); color: var(--corn-text-3); font-variant-numeric: tabular-nums; }
|
|
990
|
-
.hx-drawer .hx-mockup-list { margin: var(--corn-space-3) 0 0; }
|
|
991
|
-
.hx-drawer .hx-mockup-item { flex-wrap: nowrap; gap: var(--corn-space-4); padding: var(--corn-space-1) var(--corn-space-1) var(--corn-space-1) 0; border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-sm); background: var(--corn-surface-2); }
|
|
992
|
-
.hx-drawer .hx-mockup-open { flex: 1; min-width: 0; min-height: 36px; border: 0; background: none; color: var(--corn-text); font-weight: 400; }
|
|
993
|
-
.hx-drawer .hx-mockup-state { flex: none; padding-right: var(--corn-space-3); color: var(--corn-text-3); }
|
|
994
|
-
.hx-drawer .hx-mockup-state--approved { color: var(--corn-added-text); }
|
|
995
|
-
.hx-drawer .hx-mockup-state--changed { color: var(--corn-warn); }
|
|
996
|
-
.hx-drawer .hx-mockup-state--missing { color: var(--corn-bad); }
|
|
997
|
-
.hx-textact { align-self: flex-start; background: none; border: 0; padding-left: 0; }
|
|
998
|
-
.hx-diff { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: var(--corn-space-1) var(--corn-space-4); padding: var(--corn-space-1) 0 var(--corn-space-1) var(--corn-space-4); border-left: var(--corn-border-strong) solid var(--corn-changed); font-family: var(--corn-mono); font-size: var(--corn-text-sm); color: var(--corn-text-2); }
|
|
999
|
-
.hx-diff--added { border-left-color: var(--corn-added); }
|
|
1000
|
-
.hx-diff--removed { border-left-color: var(--corn-removed); }
|
|
1001
|
-
.hx-diff--edit { border-left-color: var(--corn-edit); }
|
|
1002
|
-
.hx-diff-k { color: var(--corn-text-3); }
|
|
1003
|
-
.hx-diff-v { min-width: 0; overflow-wrap: anywhere; }
|
|
1004
|
-
.hx-drawer .hx-why { margin: 0; }
|
|
1005
|
-
.hx-drawer-foot .hx-open[hidden], .hx-drawer-foot .hx-foot-btn[hidden] { display: none; }
|
|
1006
|
-
.hx-foot-btn { min-height: var(--hx-control-h); padding: 0 var(--corn-space-4); justify-content: center; }
|
|
1007
|
-
@media (max-width: 767px) {
|
|
1008
|
-
/* a phone: the sheet's actions are full width at the foot, each a 44px target */
|
|
1009
|
-
.hx-drawer-foot { flex-direction: column; }
|
|
1010
|
-
.hx-drawer-foot .hx-open, .hx-foot-btn { min-height: 44px; }
|
|
1011
|
-
.hx-drawer .hx-row, .hx-drawer .hx-mockup-open, .hx-textact, .hx-drawer .hx-whatif-drawer .hx-btn, .hx-drawer .hx-whatif-drawer select, .hx-drawer .hx-whatif-edges summary, .hx-cloud-play { min-height: 44px; }
|
|
1012
|
-
.hx-drawer .hx-close { width: 44px; height: 44px; }
|
|
1013
|
-
}
|
|
1014
|
-
.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); }
|
|
1015
|
-
.hx-whatif-drawer:focus { outline: none; } /* it only holds the focus between two paints */
|
|
1016
|
-
.hx-drawer .hx-whatif-edgeto { display: flex; align-items: center; gap: var(--corn-space-2); align-self: stretch; }
|
|
1017
|
-
.hx-drawer .hx-whatif-edgeto .hx-whatif-field { flex: 1; min-width: 0; }
|
|
1018
|
-
.hx-drawer .hx-whatif-drawer select { max-width: 100%; }
|
|
1019
|
-
.hx-drawer .hx-whatif-edges { align-self: stretch; }
|
|
1020
|
-
.hx-cloud-play { align-self: flex-start; } /* the cloud panel's "Play: X is down", a quiet button under the facts (spec 0031 section 8) */
|
|
1021
|
-
.hx-drawer-foot .hx-btn--quiet { border-color: transparent; background: none; text-decoration: none; }
|
|
1022
|
-
.hx-more { display: contents; }
|
|
1023
|
-
.hx-more[hidden] { display: none; }
|
|
1024
|
-
.hx-more-btn { display: block; margin-top: var(--corn-space-1); min-height: 0; padding: 0; font-size: var(--corn-text-sm); }
|
|
1025
|
-
@media (max-width: 767px) { .hx-more-btn { min-height: 44px; } }
|
|
1026
|
-
|
|
1027
|
-
/* ==== the chrome contract (CF review F46, F49, F54, F55): what a flat brand reaches, and what never clips or moves ================ */
|
|
1028
|
-
/* The phone search field's magnifier: an image taken from the text colour (it was a fixed grey picture); the mode caret's chevron */
|
|
1029
|
-
:root { --hx-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E");
|
|
1030
|
-
--hx-magnifier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E"); }
|
|
1031
|
-
.hx-mobile-search::before { content: ""; position: absolute; top: 50%; left: calc(var(--corn-space-3) + 8px); width: 14px; height: 14px; transform: translateY(-50%); background: var(--corn-text-3); -webkit-mask: var(--hx-magnifier) no-repeat center / contain; mask: var(--hx-magnifier) no-repeat center / contain; pointer-events: none; z-index: 1; }
|
|
1032
|
-
/* A brand wordmark that does not fit leaves the logo (header-fit.js measures); a row that still scrolls shows it at its edge */
|
|
1033
|
-
.hx-header-left[data-brand-short] .hx-title { display: none; }
|
|
1034
|
-
.hx-header-left[data-overflow] { -webkit-mask: linear-gradient(to right, var(--corn-text) calc(100% - var(--corn-space-6)), transparent); mask: linear-gradient(to right, var(--corn-text) calc(100% - var(--corn-space-6)), transparent); }
|
|
1035
|
-
/* 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 */
|
|
1036
|
-
.hx-forge-body, .hx-drawer-body, .hx-rc-scroll, .hx-proposal-bar, .hx-confirm, .hx-whatif-edges .hx-whatif-list { scroll-padding-block: calc(var(--corn-focus-width) + var(--corn-focus-offset) + var(--corn-space-1)); }
|
|
1037
|
-
/* The Work tabs scroll sideways: a tab brought into view stops short of the edge by the strip's own padding */
|
|
1038
|
-
.hx-forge-tabs { scroll-padding-inline: var(--corn-space-4); }
|
|
1039
|
-
/* Numbers shown as data take the number face (a brand sets --corn-font-num; digits in a pixel face misread) */
|
|
1040
|
-
.hx-count, .hx-layers-count, .hx-forge-count, .hx-forge-lit, .hx-player-count, .hx-ms, .hx-row-meta, .hx-run-limits dd { font-family: var(--corn-font-num); font-variant-numeric: tabular-nums; }
|
|
1041
|
-
/* Windows high contrast (forced colours) repaints backgrounds, which would leave a masked icon the colour of the page: draw it in the text colour */
|
|
1042
|
-
@media (forced-colors: active) {
|
|
1043
|
-
.hx-mobile-search::before, .hx-proposal-mode::after { background: CanvasText; }
|
|
1044
|
-
}
|
|
1045
|
-
/* No panel, sheet or menu slides, and nothing fades or grows, for a viewer who asked for less motion */
|
|
1046
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1047
|
-
.hx-drawer, .hx-forge, .hx-input, .hx-btn, .hx-dot, .hx-sheet, .hx-menu, .hx-dock > .hx-sheet { transition: none; animation: none; }
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
/* ---- the review flow, 0.34 design review (explorer/proposal.js, review.js, scenario-ui.js) -----------------------------
|
|
1051
|
-
F08 the source chip on the bar; F11 the player's controls in a phone peek; F14 the note above the keyboard; F15 the reason
|
|
1052
|
-
Approve is off in a peek; F16 the ways on from a bad link; F21 reflow at 400% zoom and with text spacing raised. */
|
|
1053
|
-
.hx-proposal-source { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-pill); background: var(--corn-surface-2); color: var(--corn-text-2); font-size: var(--corn-text-xs); line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
|
|
1054
|
-
.hx-proposal-source[hidden] { display: none; }
|
|
1055
|
-
a.hx-proposal-source { min-height: 24px; } /* a link: at least the WCAG 2.5.8 target (44px on a phone, below) */
|
|
1056
|
-
a.hx-proposal-source:hover { color: var(--corn-text); text-decoration: underline; }
|
|
1057
|
-
a.hx-proposal-source:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
1058
|
-
.hx-proposal-source[data-corn-state="draft"] { border-color: color-mix(in srgb, var(--corn-changed) 50%, transparent); }
|
|
1059
|
-
.hx-proposal-ways { display: flex; flex-wrap: wrap; gap: var(--corn-space-2) var(--corn-space-3); margin-top: var(--corn-space-3); }
|
|
1060
|
-
.hx-proposal-ways[hidden] { display: none; }
|
|
1061
|
-
.hx-proposal-ways .hx-btn { height: auto; min-height: 32px; padding: var(--corn-space-1) var(--corn-space-4); white-space: normal; text-align: left; }
|
|
1062
|
-
.hx-btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; } /* a review being posted: the button keeps the focus */
|
|
1063
|
-
|
|
1064
|
-
@media (max-width: 767px) {
|
|
1065
|
-
.hx-proposal-source { grid-column: 1 / -1; order: 1; justify-self: start; }
|
|
1066
|
-
.hx-player-controls .hx-btn { min-height: 44px; min-width: 44px; padding: 0 var(--corn-space-3); white-space: nowrap; }
|
|
1067
|
-
/* On a phone the controls are glyphs, the names are said: ◀ ⏸ ▶ in a 44px row */
|
|
1068
|
-
.hx-player-prev .hx-player-label, .hx-player-next .hx-player-label, .hx-player-toggle .hx-player-label { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
1069
|
-
.hx-player-prev::before, .hx-player-next::after, .hx-player-toggle::before { margin: 0; }
|
|
1070
|
-
.hx-player-next-scenario { font-size: var(--corn-text-sm); }
|
|
1071
|
-
.hx-proposal-ways .hx-btn, a.hx-proposal-source { min-height: 44px; } /* targets a thumb can hit */
|
|
1072
|
-
.hx-proposal-source { padding: 0; border: 0; border-radius: 0; background: none; } /* a line of the sheet, not a pill 44px tall */
|
|
1073
|
-
a.hx-proposal-source { text-decoration: underline; text-underline-offset: 3px; }
|
|
1074
|
-
.hx-player-controls { gap: var(--corn-space-2); }
|
|
1075
|
-
/* While a scenario plays the proposal sheet folds to its title and counts: the player needs the room */
|
|
1076
|
-
.hx-dock:has(> .hx-player) .hx-proposal-bar[data-sheet-state="peek"] .hx-rc-foot { display: none; }
|
|
1077
|
-
/* The note open: the field, Cancel and the send button are all there is, so all of them stay above the keyboard */
|
|
1078
|
-
.hx-proposal-bar:has(.hx-review-form:not([hidden])) :is(.hx-proposal-name, .hx-proposal-source, .hx-proposal-counts, .hx-proposal-tools, .hx-proposal-more, .hx-review-status, .hx-review-line, .hx-rc-scroll, .hx-rc-tabs, .hx-proposal-peek) { display: none; } /* the review column's lists too: the sheet holds the note and its buttons */
|
|
1079
|
-
.hx-proposal-bar:has(.hx-review-form:not([hidden])) .hx-proposal-actions { order: 4; grid-template-columns: 1fr; }
|
|
1080
|
-
.hx-proposal-bar:has(.hx-review-form:not([hidden])) .hx-proposal-actions .hx-btn--approve { display: none; }
|
|
1081
|
-
/* Reflow: nothing is wider than the sheet, and long words and counts wrap instead of being cut */
|
|
1082
|
-
.hx-proposal-bar { overflow-x: hidden; overflow-wrap: anywhere; }
|
|
1083
|
-
.hx-proposal-head { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1084
|
-
.hx-proposal-chip { flex-wrap: wrap; max-width: 100%; white-space: normal; text-align: left; }
|
|
1085
|
-
.hx-proposal-counts { min-width: 0; }
|
|
1086
|
-
}
|
|
1087
|
-
/* A short window (400% zoom is 225px tall): an open sheet may take the window, and the node panel's title wraps */
|
|
1088
|
-
@media (max-width: 767px) and (max-height: 480px) {
|
|
1089
|
-
.hx-proposal-bar[data-sheet-state="expanded"], .hx-player[data-sheet-state="expanded"] { max-height: calc(100dvh - var(--corn-space-3)); }
|
|
1090
|
-
.hx-drawer[data-sheet-state="peek"] .hx-drawer-title { overflow: visible; text-overflow: clip; white-space: normal; }
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
/* Search status (F24, spec 0008): the polite live region by each search field. The count and the list say it on the screen (below), so
|
|
1094
|
-
the region itself is only for a screen reader: it stays in the page, out of sight. */
|
|
1095
|
-
.hx-search { position: relative; }
|
|
1096
|
-
.hx-search-status { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
1097
|
-
|
|
1098
|
-
/* The node panel's facts break at word boundaries only (F60): "hook" is never "hoo / k". A long path or name still wraps, at its slashes and dashes, and only as a last resort anywhere. */
|
|
1099
|
-
.hx-fact-v { overflow-wrap: break-word; word-break: normal; }
|
|
1100
|
-
|
|
1101
|
-
/* ---------------------------------------------------------------------------
|
|
1102
|
-
Target sizes (0.34 review, F57): a thumb target is 44x44 (hit area, the drawn size may be smaller), and a change row is
|
|
1103
|
-
28px at a desk. Phone width or a coarse pointer. test/explorer/target-size.test.js holds this list.
|
|
1104
|
-
--------------------------------------------------------------------------- */
|
|
1105
|
-
.hx-change-row { min-height: 28px; }
|
|
1106
|
-
.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) */
|
|
1107
|
-
@media (max-width: 767px), (pointer: coarse) {
|
|
1108
|
-
.hx-change-row, .hx-sc-row, .hx-step, .hx-rc-tab, .hx-toggle-row, .hx-textbtn, .hx-player-speed, .hx-player .hx-close,
|
|
1109
|
-
.hx-confirm .hx-btn, .hx-confirm .hx-forge-input, .hx-confirm .hx-forge-select, .hx-mobile-search .hx-input { min-height: 44px; }
|
|
1110
|
-
.hx-textbtn, .hx-player-speed, .hx-player .hx-close, .hx-confirm .hx-btn { min-width: 44px; }
|
|
1111
|
-
.hx-proposal-chip { flex-wrap: wrap; white-space: normal; text-align: left; } .hx-proposal-count { white-space: normal; text-align: left; } /* the counts say what they count, so they are longer: they wrap rather than clip */
|
|
1112
|
-
.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) */
|
|
1113
|
-
.hx-run .hx-link, .hx-forge-check .hx-link { display: inline-flex; align-items: center; min-height: 44px; }
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
/* ==========================================================================
|
|
1117
|
-
The Work panel's states, results, disabled controls, loading and empty lists, and its fixed top (the 0.34 design review)
|
|
1118
|
-
========================================================================== */
|
|
1119
|
-
|
|
1120
|
-
/* 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
|
|
1121
|
-
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. */
|
|
1122
|
-
.hx-forge-state { display: inline-flex; align-items: center; gap: var(--corn-space-1); }
|
|
1123
|
-
.hx-state-icon { flex: none; width: 1em; height: 1em; }
|
|
1124
|
-
.hx-forge-state--requested { color: var(--corn-run-requested); }
|
|
1125
|
-
.hx-forge-state--claimed { color: var(--corn-run-claimed); }
|
|
1126
|
-
.hx-forge-state--working { color: var(--corn-run-working); }
|
|
1127
|
-
.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); }
|
|
1128
|
-
.hx-forge-state--done { color: var(--corn-run-done); }
|
|
1129
|
-
.hx-forge-state--failed { color: var(--corn-run-failed); }
|
|
1130
|
-
.hx-forge-state--stopped { color: var(--corn-run-stopped); }
|
|
1131
|
-
.hx-state-spin { transform-origin: 6px 6px; animation: hx-state-turn 1.2s linear infinite; }
|
|
1132
|
-
@keyframes hx-state-turn { to { transform: rotate(360deg); } }
|
|
1133
|
-
@media (prefers-reduced-motion: reduce) { .hx-state-spin { animation: none; } }
|
|
1134
|
-
|
|
1135
|
-
/* What an action came to, by the control that was used: the words, and a mark that is not a colour */
|
|
1136
|
-
.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; }
|
|
1137
|
-
.hx-forge-result[hidden] { display: none; }
|
|
1138
|
-
.hx-forge-result[data-corn-state="success"] { border-left-color: var(--corn-ok); }
|
|
1139
|
-
.hx-forge-result[data-corn-state="failure"] { border-left-color: var(--corn-bad); }
|
|
1140
|
-
.hx-forge-result[data-corn-state="success"]::before { content: '\2713 '; }
|
|
1141
|
-
.hx-forge-result[data-corn-state="failure"]::before { content: '\2715 '; }
|
|
1142
|
-
.hx-drawer-foot .hx-forge-result { flex-basis: 100%; }
|
|
1143
|
-
|
|
1144
|
-
/* A disabled control looks disabled: no fill, a dashed edge, the quiet text colour and a cursor that says so */
|
|
1145
|
-
.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; }
|
|
1146
|
-
|
|
1147
|
-
/* Retry, in a notice, sits at the end of the line */
|
|
1148
|
-
.hx-forge-notice .hx-btn { margin-left: var(--corn-space-2); }
|
|
1149
|
-
.hx-forge-runs .hx-forge-notice[hidden], .hx-forge-notice[hidden] { display: none; }
|
|
1150
|
-
|
|
1151
|
-
/* A list that is being read holds its height: rows of a row's size, a quiet bar in each */
|
|
1152
|
-
.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; }
|
|
1153
|
-
.hx-forge-skeleton > span { display: block; height: 10px; border-radius: var(--corn-radius-sm); background: var(--corn-surface-3); }
|
|
1154
|
-
.hx-forge-skeleton > span:last-child { width: 55%; }
|
|
1155
|
-
.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 */
|
|
1156
|
-
.hx-forge-empty { line-height: 1.5; }
|
|
1157
|
-
|
|
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: var(--corn-panel-pad); --hx-forge-padx: var(--corn-panel-pad); }
|
|
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 */
|
|
1161
|
-
.hx-forge-top .hx-forge-tabs { margin: 0 calc(var(--hx-forge-padx) * -1); padding: 0 var(--hx-forge-padx); }
|
|
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 */
|
|
1163
|
-
.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%); }
|
|
1164
|
-
.hx-forge-top[data-more~="start"] { --hx-fade-l: calc(var(--corn-space-6) * 1.5); }
|
|
1165
|
-
.hx-forge-top[data-more~="end"] { --hx-fade-r: calc(var(--corn-space-6) * 1.5); }
|
|
1166
|
-
|
|
1167
|
-
/* The page's one offline notice */
|
|
1168
|
-
.hx-offline { position: fixed; top: 64px; /* below the header */ left: 50%; transform: translateX(-50%); z-index: 70; max-width: min(560px, calc(100% - 32px)); margin: 0; padding: var(--corn-space-2) var(--corn-space-4); border: var(--corn-border-strong) solid var(--corn-warn); border-radius: var(--corn-radius); background: var(--corn-surface-1); color: var(--corn-text); box-shadow: var(--corn-shadow); line-height: 1.5; }
|
|
1169
|
-
.hx-offline[hidden] { display: none; }
|
|
1170
|
-
.hx-offline[data-corn-state="success"] { border-color: var(--corn-ok); }
|
|
1171
|
-
|
|
1172
|
-
/* ---------------------------------------------------------------------------
|
|
1173
|
-
Search: the count, the step buttons and the list of what was found (spec 0008 D4)
|
|
1174
|
-
--------------------------------------------------------------------------- */
|
|
1175
|
-
.hx-search-steps { display: flex; align-items: center; flex: none; gap: var(--corn-space-1); }
|
|
1176
|
-
.hx-search-steps[hidden] { display: none; }
|
|
1177
|
-
.hx-search-count { padding: 0 var(--corn-space-2); font-size: var(--corn-text-2xs); color: var(--corn-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
1178
|
-
.hx-search-count[data-empty="true"] { color: var(--corn-text); font-weight: 600; }
|
|
1179
|
-
.hx-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--corn-radius-xs); background: none; color: var(--corn-text-3); }
|
|
1180
|
-
.hx-search-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
1181
|
-
.hx-search-btn:focus-visible, .hx-search-row:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: calc(var(--corn-focus-offset) * -1); }
|
|
1182
|
-
.hx-search:has(.hx-search-steps:not([hidden])) { flex-basis: 340px; }
|
|
1183
|
-
/* A narrow desktop leaves the field too little room for the count and three buttons: Previous and Next go (Enter and Shift+Enter, N and P
|
|
1184
|
-
and the list's rows still step), the count and Clear stay */
|
|
1185
|
-
@media (min-width: 768px) and (max-width: 959px) {
|
|
1186
|
-
.hx-search [data-action="search-prev"], .hx-search [data-action="search-next"] { display: none; }
|
|
1187
|
-
}
|
|
1188
|
-
.hx-search-results { position: absolute; top: calc(100% + var(--corn-space-2)); right: 0; z-index: 40; width: min(440px, 92vw); max-height: min(60vh, 560px); overflow-y: auto; padding: var(--corn-space-1) 0; border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-ground); box-shadow: var(--corn-shadow); color: var(--corn-text); font-size: var(--corn-text-sm); } /* the ground itself, not a surface: a surface is see-through, and the panel under the list would show in it */
|
|
1189
|
-
.hx-search-results[hidden] { display: none; }
|
|
1190
|
-
/* The list is part of the header, which sits under the node panel (40): while the list is open the header is over it, so a row is never half under the panel */
|
|
1191
|
-
.hx-header:has(.hx-search-results:not([hidden])) { z-index: 46; }
|
|
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
|
|
1193
|
-
Work sheet never covers rows of it. Without :has() the list stays under the sheets, as the bar always was */
|
|
1194
|
-
.hx-mobile-search:has(.hx-search-results:not([hidden])) { z-index: 46; }
|
|
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; }
|
|
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; }
|
|
1197
|
-
.hx-search-row:hover, .hx-search-row:focus-visible { background: var(--corn-surface-3); }
|
|
1198
|
-
.hx-search-row[aria-current="true"] { border-left-color: var(--corn-accent); background: var(--corn-accent-soft); }
|
|
1199
|
-
.hx-search-row-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1200
|
-
.hx-search-row-parent { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--corn-text-3); font-size: var(--corn-text-xs); }
|
|
1201
|
-
.hx-search-frame { font-weight: 600; color: var(--corn-text); }
|
|
1202
|
-
.hx-search-empty, .hx-search-more { margin: 0; padding: var(--corn-space-2) var(--corn-space-3); color: var(--corn-text-2); overflow-wrap: anywhere; }
|
|
1203
|
-
.hx-mobile-search { flex-wrap: wrap; }
|
|
1204
|
-
.hx-mobile-search .hx-input { flex: 1 1 0; min-width: 0; }
|
|
1205
|
-
.hx-mobile-search::before { top: calc(var(--corn-space-3) + 22px); } /* the magnifier stays by the field when the bar wraps to a second row of steps */
|
|
1206
|
-
.hx-mobile-search .hx-search-steps { flex: 1 0 100%; justify-content: flex-end; gap: var(--corn-space-1); }
|
|
1207
|
-
.hx-mobile-search .hx-search-count { margin-right: auto; font-size: var(--corn-text-xs); }
|
|
1208
|
-
.hx-mobile-search .hx-search-results { top: 100%; left: 0; right: 0; width: auto; max-height: 50vh; border-radius: 0; border-left: 0; border-right: 0; }
|
|
1209
|
-
@media (max-width: 767px), (pointer: coarse) {
|
|
1210
|
-
.hx-search-btn { min-width: 44px; min-height: 44px; }
|
|
1211
|
-
.hx-search-row { min-height: 44px; }
|
|
1212
|
-
}
|
|
1213
|
-
@media (forced-colors: active) {
|
|
1214
|
-
.hx-search-row[aria-current="true"] { border-left-color: Highlight; }
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
/* ==== the review column (spec 0006, review-column.js): the changes, and the personas with the scenarios that apply to them ==============
|
|
1218
|
-
From 768px it is docked on the left of the map under the proposal bar (the free map is what it leaves: sheets.js visibleMapRect);
|
|
1219
|
-
on a phone it is the expanded proposal sheet's body, a two-part switch at its top, its foot (the decision) always in view. */
|
|
1220
|
-
.hx-review-column { position: absolute; left: 12px; bottom: 12px; top: var(--hx-column-top, 150px); width: 400px; z-index: 14; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--corn-radius-lg); font-size: var(--corn-text-sm); user-select: text; }
|
|
1221
|
-
.hx-review-column[hidden] { display: none; }
|
|
1222
|
-
@media (max-width: 1023px) { .hx-review-column { width: 320px; } }
|
|
1223
|
-
/* The Work panel: from 1280px the column moves over to make room for it; narrower, the panel lies over the column while it is open (moving it would leave the map a sliver) */
|
|
1224
|
-
@media (min-width: 1280px) { .hx-stage:has(.forge-open) .hx-review-column { left: calc(var(--hx-forge-w) + 12px); } }
|
|
1225
|
-
/* The node panel (480px) and the 320px column do not both fit under 1024px: the column gives up its width, so the panel covers none of it */
|
|
1226
|
-
@media (min-width: 768px) and (max-width: 1023px) { .hx-stage:has(.drawer-open) .hx-review-column { width: min(320px, calc(100% - 504px)); } }
|
|
1227
|
-
.hx-rc-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--corn-space-2); overflow: hidden; padding: var(--corn-space-3) var(--corn-space-4); }
|
|
1228
|
-
.hx-proposal-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0; flex: none; }
|
|
1229
|
-
.hx-rc-lists { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--corn-space-4); }
|
|
1230
|
-
/* Both lists are on screen at once: the changes take what they need up to 40%, the scenarios the rest, each scrolling on its own */
|
|
1231
|
-
.hx-rc-section { display: flex; flex-direction: column; min-height: 0; }
|
|
1232
|
-
/* review-column.js measures the scenarios and sets --hx-changes-max: 40% while the scenarios need the rest, more when they are few */
|
|
1233
|
-
#rc-changes { flex: 0 1 auto; max-height: var(--hx-changes-max, 40%); }
|
|
1234
|
-
#rc-scenarios { flex: 1 1 0; min-height: min(12em, var(--hx-scenarios-need, 12em)); }
|
|
1235
|
-
.hx-change-list, .hx-rc-sbody { min-height: 0; overflow-y: auto; scroll-padding-block: var(--corn-space-2); }
|
|
1236
|
-
.hx-rc-h { flex: none; }
|
|
1237
|
-
.hx-rc-tabs { display: flex; gap: var(--corn-space-2); }
|
|
1238
|
-
.hx-rc-tabs[hidden] { display: none; }
|
|
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; }
|
|
1240
|
-
.hx-rc-tab[aria-selected="true"] { background: var(--corn-accent); border-color: var(--corn-accent); color: var(--corn-text-on-accent); }
|
|
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); }
|
|
1242
|
-
.hx-rc-section[hidden] { display: none; }
|
|
1243
|
-
.hx-rc-h { margin: 0 0 var(--corn-space-2); font-size: var(--corn-text-sm); font-weight: 700; color: var(--corn-text); }
|
|
1244
|
-
.hx-rc-h [data-corn="count"] { color: var(--corn-text-3); font-variant-numeric: tabular-nums; }
|
|
1245
|
-
.hx-rc-empty, .hx-rc-note, .hx-rc-coverage { margin: var(--corn-space-2) 0 0; line-height: 1.5; }
|
|
1246
|
-
.hx-rc-coverage { color: var(--corn-text-2); }
|
|
1247
|
-
.hx-change-list, .hx-sc-list, .hx-steps { margin: 0; padding: 0; list-style: none; }
|
|
1248
|
-
.hx-change-list { display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
1249
|
-
.hx-persona { margin-top: var(--corn-space-4); }
|
|
1250
|
-
.hx-persona:first-of-type { margin-top: 0; }
|
|
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 */
|
|
1252
|
-
.hx-sc-list { display: flex; flex-direction: column; gap: var(--corn-space-1); }
|
|
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; }
|
|
1254
|
-
.hx-sc-row:hover { background: color-mix(in srgb, var(--corn-accent-hover) 18%, transparent); }
|
|
1255
|
-
.hx-sc-caret { flex: none; width: 1em; color: var(--corn-text-3); }
|
|
1256
|
-
.hx-sc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
1257
|
-
.hx-sc-title { font-weight: 600; overflow-wrap: anywhere; }
|
|
1258
|
-
.hx-sc-meta { font-size: var(--corn-text-xs); color: var(--corn-text-3); }
|
|
1259
|
-
.hx-sc-seen { flex: none; font-size: var(--corn-text-xs); color: var(--corn-added-text); white-space: nowrap; }
|
|
1260
|
-
.hx-steps { margin: var(--corn-space-1) 0 var(--corn-space-2) var(--corn-space-4); display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
1261
|
-
.hx-steps[hidden] { display: none; }
|
|
1262
|
-
.hx-step { display: flex; align-items: flex-start; gap: var(--corn-space-3); width: 100%; padding: var(--corn-space-2) var(--corn-space-2); border: 0; border-left: var(--corn-border-strong) solid transparent; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text); font: inherit; font-size: var(--corn-text-xs); text-align: left; cursor: pointer; }
|
|
1263
|
-
.hx-step:hover { background: var(--corn-line-soft); }
|
|
1264
|
-
.hx-step[aria-current="step"] { border-left-color: var(--corn-accent-text); background: color-mix(in srgb, var(--corn-accent-hover) 22%, transparent); }
|
|
1265
|
-
.hx-step-n { flex: none; min-width: 1.4em; color: var(--corn-accent-text); font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
1266
|
-
.hx-step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
1267
|
-
.hx-step-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--corn-space-3); }
|
|
1268
|
-
.hx-step-who { color: var(--corn-text-2); font-weight: 600; }
|
|
1269
|
-
.hx-step-where { font-weight: 600; overflow-wrap: anywhere; }
|
|
1270
|
-
.hx-step-mark { display: inline-flex; align-items: center; gap: var(--corn-space-1); color: var(--corn-text-3); }
|
|
1271
|
-
.hx-step-mark .hx-mark-dot { margin: 0; }
|
|
1272
|
-
.hx-step-text { color: var(--corn-text-2); line-height: 1.4; overflow-wrap: anywhere; }
|
|
1273
|
-
.hx-step-off { color: var(--corn-text-3); font-style: italic; }
|
|
1274
|
-
.hx-step-verdict { align-self: flex-start; white-space: normal; text-align: right; max-width: 40%; overflow-wrap: anywhere; }
|
|
1275
|
-
.hx-rc-foot { flex: none; display: flex; flex-direction: column; gap: var(--corn-space-2); padding: var(--corn-space-3) var(--corn-space-4); border-top: var(--corn-border) solid var(--corn-line); }
|
|
1276
|
-
.hx-rc-foot .hx-review { flex: none; order: 0; }
|
|
1277
|
-
.hx-rc-foot .hx-proposal-actions { margin-left: auto; }
|
|
1278
|
-
@media (max-width: 767px) {
|
|
1279
|
-
/* The expanded proposal sheet: the column is its body, with no box of its own */
|
|
1280
|
-
.hx-review-column { position: static; width: auto; max-height: none; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
|
|
1281
|
-
.hx-rc-scroll, .hx-rc-lists, .hx-rc-section, .hx-change-list, .hx-rc-sbody { display: block; overflow: visible; max-height: none; min-height: 0; }
|
|
1282
|
-
.hx-rc-scroll { padding: var(--corn-space-2) 0; }
|
|
1283
|
-
.hx-rc-section[hidden] { display: none; }
|
|
1284
|
-
/* the sheet scrolls, not a section: each section is as tall as its list (the desktop's 40% cap and 12em floor would let the rows run under the decision) */
|
|
1285
|
-
#rc-changes, #rc-scenarios { flex: none; max-height: none; min-height: 0; }
|
|
1286
|
-
.hx-rc-lists { display: flex; flex-direction: column; }
|
|
1287
|
-
.hx-change-list { display: flex; }
|
|
1288
|
-
.hx-rc-foot { padding: var(--corn-space-3) 0 0; } /* after both lists, in the sheet's own flow: nothing overlaps the rows above it */
|
|
1289
|
-
.hx-rc-foot .hx-proposal-actions { margin-left: 0; width: 100%; }
|
|
1290
|
-
.hx-step { min-height: 44px; }
|
|
1291
|
-
.hx-sc-row, .hx-rc-tab { min-height: 44px; }
|
|
1292
|
-
.hx-step-verdict { max-width: 45%; }
|
|
1293
|
-
/* The peek: the title, the one line of counts, and the decision; the lists wait for the sheet to open */
|
|
1294
|
-
.hx-proposal-bar[data-sheet-state="peek"] #proposal-body > .hx-review-column { display: flex; }
|
|
1295
|
-
.hx-proposal-bar[data-sheet-state="peek"] .hx-review-column > :not(.hx-rc-foot) { display: none; }
|
|
1296
|
-
.hx-proposal-bar[data-sheet-state="peek"] .hx-proposal-chip { display: none; }
|
|
1297
|
-
/* Opened, the sheet's switch carries the counts, so the head is one short row: Before / Diff / After, Edit and ⋯ */
|
|
1298
|
-
.hx-proposal-bar[data-sheet-state="expanded"] { max-height: 62dvh; }
|
|
1299
|
-
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-chip, .hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-summary { display: none; }
|
|
1300
|
-
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-counts { grid-column: 1; order: 3; }
|
|
1301
|
-
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-tools { grid-column: 2; order: 4; }
|
|
1302
|
-
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-head { grid-template-columns: minmax(0, 1fr) auto auto; }
|
|
1303
|
-
.hx-proposal-bar[data-sheet-state="expanded"] .hx-proposal-more .hx-btn--icon { grid-column: 3; order: 4; }
|
|
1304
|
-
.hx-proposal-summary { display: none; }
|
|
1305
|
-
.hx-proposal-bar[data-sheet-state="peek"] .hx-proposal-peek { display: block; color: var(--corn-text-2); }
|
|
1306
|
-
}
|
|
1307
|
-
/* ==== end of the review column ================================================================================================== */
|
|
1308
|
-
|
|
1309
|
-
/* ==== the scenario player, one bar under the map (spec 0006 D6) ================================================================
|
|
1310
|
-
From 768px it sits at the foot of the map area, to the right of the review column; the stage tells it how wide the column is. */
|
|
1311
|
-
@media (min-width: 768px) {
|
|
1312
|
-
.hx-stage:has(.hx-review-column:not([hidden])) { --hx-col-w: 400px; }
|
|
1313
|
-
.hx-stage:has(.forge-open):has(.hx-review-column:not([hidden])) { --hx-col-w: max(400px, var(--hx-forge-w)); }
|
|
1314
|
-
.hx-stage:has(.drawer-open) .hx-player { right: 504px; }
|
|
1315
|
-
}
|
|
1316
|
-
@media (min-width: 1280px) {
|
|
1317
|
-
.hx-stage:has(.forge-open):has(.hx-review-column:not([hidden])) { --hx-col-w: calc(400px + var(--hx-forge-w)); }
|
|
1318
|
-
}
|
|
1319
|
-
@media (min-width: 768px) and (max-width: 1023px) {
|
|
1320
|
-
.hx-stage:has(.hx-review-column:not([hidden])) { --hx-col-w: 320px; }
|
|
1321
|
-
.hx-stage:has(.forge-open):has(.hx-review-column:not([hidden])) { --hx-col-w: max(320px, var(--hx-forge-w)); }
|
|
1322
|
-
}
|
|
1323
|
-
.hx-player-as, .hx-player-check { flex: 1 0 100%; }
|
|
1324
|
-
.hx-player-speed[data-corn="control"] { color: var(--corn-text); }
|
|
1325
|
-
/* ==== end of the player bar ===================================================================================================== */
|
|
1326
|
-
|
|
1327
|
-
/* ---------------------------------------------------------------------------
|
|
1328
|
-
Project layers and finer kinds (spec 0009): the Layers menu holds its title (with All and None) while the rows scroll, the Overlays heading,
|
|
1329
|
-
the "+N shown by the proposal" note and the kinds key under a row. Every colour is a token; a theme reaches each through its data-corn hook.
|
|
1330
|
-
--------------------------------------------------------------------------- */
|
|
1331
|
-
.hx-layers .hx-menu { display: flex; flex-direction: column; overflow: hidden; }
|
|
1332
|
-
.hx-layers .hx-menu[hidden] { display: none; }
|
|
1333
|
-
.hx-layers .hx-menu-head { flex: none; }
|
|
1334
|
-
.hx-menu-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
1335
|
-
.hx-overlays { margin-top: var(--corn-space-3); padding-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line); }
|
|
1336
|
-
.hx-layer-note { font-size: var(--corn-text-2xs); }
|
|
1337
|
-
.hx-kinds { padding: 0 var(--corn-space-3) var(--corn-space-1) var(--corn-space-5); }
|
|
1338
|
-
.hx-kinds-btn { display: inline-flex; align-items: center; gap: var(--corn-space-1); }
|
|
1339
|
-
.hx-kind-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); }
|
|
1340
|
-
.hx-kind-key { display: flex; align-items: center; gap: var(--corn-space-3); padding: calc(var(--corn-space-1) / 2) 0; color: var(--corn-text-2); font-size: var(--corn-text-xs); }
|
|
1341
|
-
.hx-kind-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; padding: 0 var(--corn-space-1); border-radius: var(--corn-radius-xs); background: var(--corn-surface-3); color: var(--corn-text); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); font-weight: 700; }
|
|
1342
|
-
.hx-kind-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
1343
|
-
@media (max-width: 767px) {
|
|
1344
|
-
/* On a phone the menu spans the screen, at most 70% of its height */
|
|
1345
|
-
.hx-layers .hx-menu { position: fixed; top: calc(56px + var(--corn-space-4) + 44px + var(--corn-space-2)); left: 12px; right: 12px; width: auto; max-width: none; max-height: 70dvh; }
|
|
1346
|
-
/* An open menu is over the phone's sheets (the dock, z-index 45), not under them: else a proposal's sheet hides its last rows, which no scroll reaches */
|
|
1347
|
-
.hx-header:has(.hx-layers .hx-menu:not([hidden])) { z-index: 46; }
|
|
1348
|
-
.hx-kinds-btn { min-height: 44px; }
|
|
1349
|
-
}
|
|
1350
|
-
/* ==== end of project layers and finer kinds ============================================================================================ */
|
|
1351
|
-
|
|
1352
|
-
/* ==========================================================================
|
|
1353
|
-
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
|
|
1354
|
-
========================================================================== */
|
|
1355
|
-
|
|
1356
|
-
/* 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 */
|
|
1357
|
-
.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; }
|
|
1358
|
-
.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; }
|
|
1359
|
-
.hx-waiting-badge[hidden] { display: none; }
|
|
1360
|
-
/* 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
|
|
1361
|
-
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
|
|
1362
|
-
again), and keeps the tab's gap from its word on the left */
|
|
1363
|
-
.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); }
|
|
1364
|
-
.hx-work .hx-waiting-badge { margin-right: calc(var(--corn-space-2) * -1); }
|
|
1365
|
-
|
|
1366
|
-
/* A group of the Specs list: its header says who must act and how many; Drafts past ten rows fold behind it */
|
|
1367
|
-
.hx-spec-group > .hx-forge-list { margin: 0; padding: 0; }
|
|
1368
|
-
.hx-spec-group > .hx-forge-list[hidden] { display: none; }
|
|
1369
|
-
.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; }
|
|
1370
|
-
.hx-forge-gtoggle::before { content: '\25B8'; font-size: var(--corn-text-xs); }
|
|
1371
|
-
.hx-forge-gtoggle[aria-expanded="true"]::before { content: '\25BE'; }
|
|
1372
|
-
.hx-forge-gtoggle:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
1373
|
-
/* 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 */
|
|
1374
|
-
.hx-run-heading { list-style: none; margin: var(--corn-space-3) 0 var(--corn-space-1); }
|
|
1375
|
-
.hx-run-heading:first-child { margin-top: 0; }
|
|
1376
|
-
/* A spec sent back is not a colour alone: a dashed edge and a turning arrow, and its words */
|
|
1377
|
-
.hx-forge-state--sent-back { color: var(--corn-run-stopped); border-style: dashed; }
|
|
1378
|
-
.hx-forge-reviewed { color: var(--corn-text-2); }
|
|
1379
|
-
.hx-forge-unread { margin: var(--corn-space-1) 0 0; color: var(--corn-bad); overflow-wrap: anywhere; }
|
|
1380
|
-
.hx-forge-specsearch { margin: 0 0 var(--corn-space-2); }
|
|
1381
|
-
.hx-forge-specsearch[hidden] { display: none; }
|
|
1382
|
-
.hx-forge-specsearch .hx-forge-field { width: 100%; }
|
|
1383
|
-
@media (max-width: 767px) {
|
|
1384
|
-
.hx-forge-gtoggle { min-height: 44px; }
|
|
1385
|
-
.hx-forge-unread .hx-btn { min-height: 44px; }
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
/* The proposal bar's line when a run waits on the open proposal (spec 0010 D2): one line under the buttons, in the waiting colour's own mark (a left edge and its words), then Answer */
|
|
1389
|
-
.hx-waiting-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2) var(--corn-space-3); margin: var(--corn-space-2) 0 0; padding: var(--corn-space-1) var(--corn-space-3); border-left: calc(var(--corn-border-strong) * 2) solid var(--corn-run-waiting); border-radius: var(--corn-radius-sm); background: var(--corn-surface-2); color: var(--corn-text); line-height: 1.4; overflow-wrap: anywhere; }
|
|
1390
|
-
.hx-waiting-line[hidden] { display: none; }
|
|
1391
|
-
@media (max-width: 767px) { .hx-waiting-line .hx-btn { min-height: 44px; min-width: 44px; } }
|
|
1392
|
-
|
|
1393
|
-
/* ==========================================================================
|
|
1394
|
-
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
|
|
1395
|
-
========================================================================== */
|
|
1396
|
-
.hx-sheet-stub { display: none; }
|
|
1397
|
-
@media (max-width: 767px) {
|
|
1398
|
-
/* The node panel and Work take turns: the one displaced is hidden, not closed (its node stays selected) */
|
|
1399
|
-
.hx-dock > .hx-sheet[data-sheet-away] { display: none; }
|
|
1400
|
-
/* 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 */
|
|
1401
|
-
.hx-dock > .hx-sheet[data-sheet-state="stub"] { min-height: 44px; max-height: 44px; padding-top: 0; padding-bottom: 0; overflow: hidden; }
|
|
1402
|
-
.hx-dock > .hx-sheet[data-sheet-state="stub"] > :not(.hx-sheet-stub) { display: none !important; }
|
|
1403
|
-
.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; }
|
|
1404
|
-
.hx-sheet-stub[hidden] { display: none; }
|
|
1405
|
-
.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); }
|
|
1406
|
-
.hx-sheet-stub-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1407
|
-
}
|
|
1408
|
-
/* 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
|
|
1409
|
-
window (400% zoom), where an open sheet may take the window. */
|
|
1410
|
-
@media (max-width: 767px) and (min-height: 481px) {
|
|
1411
|
-
.hx-dock > .hx-proposal-bar[data-sheet-state="expanded"], .hx-dock > .hx-player[data-sheet-state="expanded"] { max-height: min(var(--hx-sheet-cap, 50dvh), 50dvh); }
|
|
1412
|
-
.hx-dock > .hx-drawer[data-sheet-state="expanded"], .hx-dock > .hx-forge[data-sheet-state="expanded"] { max-height: min(var(--hx-sheet-cap, 60dvh), 60dvh); }
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
/* ---------------------------------------------------------------------------
|
|
1416
|
-
The node panel's lines (spec 0008 D5 and D6): the lit lines by kind, the switch, and Frame them
|
|
1417
|
-
--------------------------------------------------------------------------- */
|
|
1418
|
-
.hx-lines { display: flex; flex-direction: column; gap: var(--corn-space-2); }
|
|
1419
|
-
.hx-lines .hx-chips { padding-top: 0; }
|
|
1420
|
-
.hx-lines-kind { display: inline-flex; align-items: baseline; gap: var(--corn-space-1); min-height: 28px; 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: inherit; font-size: var(--corn-text-xs); font-weight: 600; cursor: pointer; }
|
|
1421
|
-
.hx-lines-kind:hover { background: var(--corn-surface-3); color: var(--corn-text); }
|
|
1422
|
-
.hx-lines-kind[aria-pressed="true"] { border-color: var(--corn-accent); background: var(--corn-accent-soft); color: var(--corn-accent-text); }
|
|
1423
|
-
.hx-lines-kind:focus-visible, .hx-lines-switch input:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: var(--corn-focus-offset); }
|
|
1424
|
-
.hx-lines-count { font-variant-numeric: tabular-nums; color: var(--corn-text-3); }
|
|
1425
|
-
.hx-lines-list { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--corn-space-1) / 2); }
|
|
1426
|
-
.hx-lines-list .hx-linkbtn { margin-left: 0; text-align: left; overflow-wrap: anywhere; }
|
|
1427
|
-
.hx-lines-switch { display: flex; align-items: center; gap: var(--corn-space-2); min-height: 28px; font-size: var(--corn-text-sm); color: var(--corn-text-2); cursor: pointer; }
|
|
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; }
|
|
1429
|
-
@media (max-width: 767px), (pointer: coarse) {
|
|
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
|
-
.hx-lines-switch input { width: 24px; height: 24px; }
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
/* ---------------------------------------------------------------------------
|
|
1436
|
-
The Key (spec 0008 D7, edge-key.js): each kind of line drawn with its real style and end mark. The map says the kind by line style
|
|
1437
|
-
and mark, never by colour alone, so the swatches are one ink; a `when` is told by ticks (cloud-model.js WHEN_STYLES)
|
|
1438
|
-
--------------------------------------------------------------------------- */
|
|
1439
|
-
.hx-legend-swatch--wide { width: 44px; justify-content: flex-start; color: var(--corn-text-2); }
|
|
1440
|
-
.hx-key-line { display: block; overflow: visible; }
|
|
1441
|
-
.hx-key-note { margin: var(--corn-space-1) 0 0; font-size: var(--corn-text-xs); }
|
|
1442
|
-
|
|
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.5; }
|
|
1445
|
-
.hx-decision-line[hidden], .hx-review-ask[hidden], .hx-hold[hidden], .hx-review-landing[hidden], .hx-sent-edits[hidden] { display: none; }
|
|
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
|
-
.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); }
|
|
1448
|
-
.hx-review-landing p { margin: 0; line-height: 1.4; }
|
|
1449
|
-
.hx-sent-edits { color: var(--corn-text-2); }
|
|
1450
|
-
.hx-sent-edits summary { cursor: pointer; min-height: 24px; }
|
|
1451
|
-
.hx-hold { height: 3px; border-radius: var(--corn-radius-sm); background: color-mix(in srgb, var(--corn-accent) 22%, transparent); overflow: hidden; }
|
|
1452
|
-
.hx-hold-fill { display: block; height: 100%; width: 100%; background: var(--corn-accent); transform-origin: left center; animation-name: hx-hold-drain; animation-timing-function: linear; animation-fill-mode: forwards; }
|
|
1453
|
-
@keyframes hx-hold-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
|
|
1454
|
-
.hx-proposal-actions .hx-btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
|
|
1455
|
-
.hx-proposal-actions .hx-btn[data-holding="true"] { opacity: 1; font-variant-numeric: tabular-nums; }
|
|
1456
|
-
.hx-review-undo[hidden] { display: none; }
|
|
1457
|
-
@media (max-width: 767px) {
|
|
1458
|
-
.hx-review-undo { min-height: 44px; min-width: 44px; order: 1; grid-column: 1 / -1; } /* a row of its own under Send back and Approve: never where the finger that pressed is */
|
|
1459
|
-
.hx-review-landing .hx-btn { min-height: 44px; }
|
|
1460
|
-
.hx-proposal-bar:has(.hx-review-form:not([hidden])) .hx-decision-line { display: none; } /* the note's sheet shows the send back line under the note, not Approve's */
|
|
1461
|
-
}
|
|
1462
|
-
@media (prefers-reduced-motion: reduce) { .hx-hold { display: none; } .hx-hold-fill { animation: none; } } /* only the words count down */
|
|
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
|
-
.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"]: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
|
-
.hx-whatif-row [aria-disabled="true"] { opacity: 0.55; cursor: default; }
|
|
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
|
-
.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
|
-
}
|