@intentius/behold 0.29.18 → 0.29.20

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/web/kiosk.html CHANGED
@@ -26,10 +26,11 @@
26
26
  /* behold#571: the kiosk's text is the softened ink, its secondary text and state colours the ones held legible on every surface. */
27
27
  body { --fg: var(--soft); --muted: var(--muted-ink); --managed: var(--managed-ink); --foreign: var(--foreign-ink); --pending: var(--pending-ink); --degraded: var(--degraded-ink); --runtime: var(--runtime-ink); --zebra-row: color-mix(in srgb, var(--zebra) 3.5%, transparent); }
28
28
  /* #569 step 3: one screen. The bar is the narration, the frame is
29
- behold's own view of the change, the foot is the plan's facts. Sizes
30
- follow the screen's width, so a TV reads it from across a room. */
29
+ behold's own view of the change. behold#571: no footer; the plan's
30
+ facts are in the lead block, the legend over the graph. Sizes follow
31
+ the screen's width, so a TV reads it from across a room. */
31
32
  html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: clamp(13px, 0.82vw, 20px)/1.4 var(--font-ui); overflow: hidden; }
32
- body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
33
+ body { display: grid; grid-template-rows: auto minmax(0, 1fr); }
33
34
  #k-head { position: relative; }
34
35
  /* #569: the pipeline's runs (left), the selected run's jobs, steps and
35
36
  log (middle), behold's view of the change (right). */
@@ -39,8 +40,9 @@
39
40
  #runs-main { overflow: hidden; display: flex; flex-direction: column; min-height: 0; background: var(--surface-pane-a); border-radius: 6px 6px 0 0; }
40
41
  #k-runs-toggle { display: none; }
41
42
  .r-run:nth-child(even of .r-run), .r-job:nth-child(even of .r-job), .r-log-line:nth-child(even of .r-log-line) { background: var(--zebra-row); }
42
- .r-side-head { padding: 0.8em 1em 0.5em; }
43
- .r-side-title { font-weight: 700; font-size: 1.05em; }
43
+ /* behold#571: the panes step back from the lead block: quieter heads, lighter rules. */
44
+ .r-side-head { padding: 0.7em 1em 0.4em; }
45
+ .r-side-title { font-weight: 600; font-size: 0.95em; color: var(--muted); }
44
46
  .r-side-note { color: var(--muted); font-size: 0.82em; margin-top: 0.15em; }
45
47
  .r-runs { list-style: none; margin: 0; padding: 0 0 1em; }
46
48
  .r-group { font: 600 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.7em 1em 0.25em; }
@@ -55,13 +57,13 @@
55
57
  .r-word.r-idle { color: var(--muted); }
56
58
  @media (prefers-reduced-motion: no-preference) { .r-spin { animation: r-spin 1s linear infinite; } }
57
59
  @keyframes r-spin { to { transform: rotate(360deg); } }
58
- .r-head { padding: 0.8em 1em 0.6em; border-bottom: 1px solid var(--rule); }
59
- .r-head-title { display: flex; gap: 0.5em; align-items: center; font-weight: 700; font-size: 1.15em; }
60
+ .r-head { padding: 0.7em 1em 0.5em; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
61
+ .r-head-title { display: flex; gap: 0.5em; align-items: center; font-weight: 600; font-size: 1em; }
60
62
  .r-head-title .r-icon { margin: 0; }
61
63
  .r-head-sub { color: var(--fg); font-size: 0.88em; margin-top: 0.15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
62
64
  .r-head-meta { color: var(--muted); font-size: 0.82em; }
63
65
  .r-label { font: 600 0.7em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.6em 1em 0; }
64
- .r-jobs { list-style: none; margin: 0; padding: 0.3em 0 0.5em; border-bottom: 1px solid var(--rule); }
66
+ .r-jobs { list-style: none; margin: 0; padding: 0.3em 0 0.5em; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
65
67
  .r-job { display: flex; gap: 0.5em; align-items: center; padding: 0.22em 1em 0.22em calc(1em + var(--depth, 0) * 0.9em); cursor: pointer; }
66
68
  .r-job .r-icon { margin: 0; }
67
69
  .r-job.r-selected { background: var(--active); }
@@ -117,7 +119,7 @@
117
119
  .r-flash { background: color-mix(in srgb, var(--focus) 30%, transparent) !important; }
118
120
  @media (prefers-reduced-motion: no-preference) { .r-flash { transition: background 0.6s; } }
119
121
  /* behold#571: folded, whole lines only (fitFeatures); opened, it scrolls inside a bounded box. */
120
- .r-feats { padding: 0.1em 1em 0.45em; border-bottom: 1px solid var(--rule); }
122
+ .r-feats { padding: 0.1em 1em 0.45em; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
121
123
  .r-feats-open .r-feats-list { max-height: 12em; overflow-y: auto; scrollbar-width: thin; }
122
124
  .r-feats-label { padding: 0.3em 0 0.15em; }
123
125
  .r-feats-list { display: flex; flex-wrap: wrap; gap: 0.3em 0.35em; align-items: center; }
@@ -128,55 +130,77 @@
128
130
  .r-feats-more { color: var(--pending); border-style: dashed; }
129
131
  .r-feat:hover, .r-feat:focus-visible { border-color: var(--focus); background: var(--zebra-row); }
130
132
  /*
131
- * behold#571: the header in fixed boxes. The title, the card, the step
132
- * line, and the hold's box each have a height that holds their text
133
- * budget at 1600x1000 and 1920x1080 (terragucci#1061: the card's fields
134
- * 120, 220 and 120 characters, the step 200); more scrolls inside the
135
- * box, with a fade at the edge, so the panes below never move.
133
+ * behold#571: the header in fixed boxes. The lead block on the left is
134
+ * the page's lead: the title, the two beats (what changes, and the step:
135
+ * what just happened and why), the progress, the rest of the card and
136
+ * the pull request's facts, each in a box whose height holds its text
137
+ * budget at 1440x900 and 1920x1080 (terragucci#1061: the card's fields
138
+ * 120, 220 and 120 characters, the step 200). More scrolls inside the
139
+ * box, with a fade at the edge, so the panes below never move. The hold
140
+ * panel on the right takes the lead's height and never sets it.
136
141
  */
137
- #bar { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.4em 0.9em; align-items: stretch;
138
- padding: 0.45em 1em 0.5em; background: var(--bg); }
139
- #bar > .k-empty { grid-column: 1 / -1; }
140
- .k-left { display: grid; grid-template-rows: var(--k-title-h) var(--k-card-h) var(--k-step-h); gap: 0.35em; min-width: 0; }
141
- :root { --k-title-h: 1.8em; --k-card-h: 6.2em; --k-step-h: 3.35em; }
142
- .k-box { min-height: 0; overflow-y: auto; scrollbar-width: thin; background: var(--surface-box); border-radius: 6px; padding: 0.35em 0.7em; }
142
+ #bar { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.4em 0.7em; align-items: stretch;
143
+ padding: 0.3em 0.6em 0.3em; background: var(--bg); }
144
+ #bar > .k-empty, #bar > .k-replay, #bar > .k-nograph-note { grid-column: 1 / -1; }
145
+ :root { --k-title-h: 1.82em; --k-beat-h: 3.25em; --k-step-h: 4.45em; --k-progress-h: 1.5em; --k-card-h: 3.3em; --k-facts-h: 1.2em; }
146
+ /* Wide enough that the step's 200 characters, and Watch for with Shows, take two lines each: their boxes are two lines tall. */
147
+ @media (min-width: 1700px) { :root { --k-step-h: 3.05em; --k-card-h: 2.3em; } }
148
+ .k-lead { display: grid; grid-template-rows: var(--k-title-h) var(--k-beat-h) var(--k-step-h) var(--k-progress-h) var(--k-card-h) var(--k-facts-h) auto; gap: 0.16em; min-width: 0;
149
+ padding: 0.25em 0.8em 0.3em; background: var(--surface-pane-b); border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
150
+ .k-box { min-height: 0; overflow-y: auto; scrollbar-width: thin; border-radius: 6px; padding: 0.1em 0.2em; }
143
151
  .k-box.k-more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.3em), transparent); }
144
152
  .k-box.k-more-above { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 1.3em), transparent); }
145
153
  .k-box.k-more-above.k-more-below { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.3em, #000 calc(100% - 1.3em), transparent); mask-image: linear-gradient(to bottom, transparent, #000 1.3em, #000 calc(100% - 1.3em), transparent); }
146
- .k-box-empty { background: transparent; }
147
- .k-box-title { background: transparent; padding: 0.1em 0.1em 0; overflow: hidden; }
148
- /* behold#571: between scenarios the card's box carries what the demo is about. */
149
- .k-intro { margin: 0; font-size: 1.12em; line-height: 1.4; color: var(--fg); }
150
- .k-intro-head { display: block; font: 600 0.62em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.15em; }
151
- .k-kicker { font: 600 0.58em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.9em; vertical-align: 0.2em; white-space: nowrap; }
154
+ .k-box-empty { background: transparent; box-shadow: none; }
155
+ .k-box-title { overflow: hidden; padding: 0; }
156
+ .k-kicker { font: 600 0.5em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.9em; vertical-align: 0.3em; white-space: nowrap; }
152
157
  .k-cycle { color: var(--muted); font: 0.78em var(--font-mono); white-space: nowrap; }
153
- .k-title { margin: 0; font-size: 1.3em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
154
- /* behold#571: the scenario's card, three labelled rows under the title. */
155
- .k-about { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.08em 0.9em; align-items: baseline; margin: 0; font-size: 0.88em; line-height: 1.25; }
156
- .k-about-label { font: 600 0.74em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
157
- .k-about-text { margin: 0; color: var(--fg); }
158
+ .k-title { margin: 0; font-size: 1.5em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
159
+ /* The two beats: the largest text after the title, each with its label first. */
160
+ .k-beat, .k-intro { margin: 0; font-size: 1.32em; line-height: 1.22; color: var(--fg); }
161
+ .k-step { margin: 0; font-size: 1.16em; line-height: 1.25; color: var(--fg); }
162
+ .k-beat-text { font-weight: 600; }
163
+ .k-box-beat { padding: 0 0.2em; }
164
+ .k-beat-label, .k-step-word, .k-intro-head { font: 700 0.62em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 0.8em; vertical-align: 0.12em; white-space: nowrap; }
165
+ .k-beat-label, .k-intro-head { color: var(--muted); }
166
+ .k-step-word { color: var(--pending); }
167
+ .k-box-step { border-left: 4px solid var(--pending); border-radius: 0 6px 6px 0; padding: 0.05em 0.2em 0.05em 0.65em; background: color-mix(in srgb, var(--pending) 7%, transparent); }
168
+ .k-box-step:has(.k-step-waiting) { border-left-color: var(--foreign); }
169
+ .k-box-step:has(.k-step-failed), .k-box-step:has(.k-step-stalled) { border-left-color: var(--degraded); }
170
+ .k-box-step:has(.k-step-applied) { border-left-color: var(--managed); }
171
+ .k-box-step:has(.k-step-reset) { border-left-color: var(--neutral); }
172
+ /* The rest of the card, quieter. */
173
+ .k-box-more { padding: 0 0.2em; }
174
+ .k-about { margin: 0; font-size: 0.84em; line-height: 1.3; }
175
+ .k-about-label { font: 600 0.74em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.6em; }
176
+ .k-about-text { margin-right: 1.2em; color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
158
177
  .k-muted { color: var(--muted); margin: 0.25em 0; }
159
- .k-step { border-left: 4px solid var(--pending); padding: 0 0 0 0.7em; margin: 0; font-size: 0.95em; line-height: 1.3; }
160
- .k-step-word { font: 600 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.7em; }
161
- .k-step-waiting { border-left-color: var(--foreign); }
162
- .k-step-failed, .k-step-stalled { border-left-color: var(--degraded); }
163
- .k-step-applied { border-left-color: var(--managed); }
164
- .k-step-reset { border-left-color: var(--neutral); }
165
- /* The right column takes the left's height and never sets it: its hold box scrolls instead. */
166
- .k-right { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 0.35em; min-width: 0; min-height: 0; contain: size; }
167
- .k-where { padding-right: 13em; flex-wrap: nowrap; }
168
- .k-next .k-cycle { margin-left: auto; }
169
- .k-where { display: flex; flex-wrap: wrap; gap: 0.35em 1em; align-items: center; }
170
- .k-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35em; padding: 0; margin: 0; }
171
- .k-stop { font: 0.82em var(--font-mono); padding: 0.25em 0.7em; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); }
178
+ /* The progress, with the step: the strip, the driver's next action, the cycle. */
179
+ .k-progress { display: flex; flex-wrap: nowrap; gap: 0.3em 0.9em; align-items: center; min-width: 0; overflow: hidden; }
180
+ .k-progress .k-strip { flex: none; }
181
+ .k-progress .k-next { flex: 1; }
182
+ .k-strip { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.3em; padding: 0; margin: 0; }
183
+ .k-stop { font: 0.78em var(--font-mono); padding: 0.18em 0.6em; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
172
184
  .k-done { color: var(--fg); border-color: var(--managed); }
173
185
  .k-current { color: var(--bg); background: var(--pending); border-color: var(--pending); font-weight: 600; }
174
186
  .k-failed { color: var(--bg); background: var(--degraded); border-color: var(--degraded); font-weight: 600; }
175
- .k-next { display: flex; flex-wrap: wrap; gap: 0.3em 0.8em; align-items: baseline; font-size: 1.05em; }
187
+ .k-next { display: flex; gap: 0.3em 0.6em; align-items: baseline; font-size: 0.95em; min-width: 0; white-space: nowrap; }
176
188
  .k-next-word { font: 600 0.72em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
177
- .k-action { font-family: var(--font-mono); }
189
+ .k-action { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
178
190
  .k-when { color: var(--foreign); font-family: var(--font-mono); }
179
- .k-approve { border-left: 4px solid var(--foreign); padding-left: 0.8em; }
191
+ /* The pull request's facts, one line; the whole line is its title. */
192
+ .k-box-facts { overflow: hidden; padding: 0 0.2em; }
193
+ .k-facts { margin: 0; font-size: 0.86em; line-height: 1.4; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
194
+ .k-credits { margin: 0; color: var(--muted); font-size: 0.78em; line-height: 1.35; }
195
+ /* behold#571: the hold panel, lit in the waiting tone its job row and its wave box carry. */
196
+ .k-right { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.3em; min-width: 0; min-height: 0; contain: size; }
197
+ .k-right > .k-cycle { margin: 0; padding: 0.25em 13em 0 0.3em; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
198
+ .k-box-hold { padding: 0.5em 0.9em 0.6em; }
199
+ .k-hold { background: var(--surface-box); border-radius: 8px; }
200
+ .k-hold-head { margin: 0 0 0.3em; font: 700 0.95em var(--font-mono); color: var(--fg); }
201
+ .k-hold-wave { background: color-mix(in srgb, var(--foreign) 7%, var(--surface-box)); box-shadow: inset 4px 0 0 var(--foreign); padding-left: 1.2em; }
202
+ .k-hold-wave .k-hold-head { color: var(--foreign); }
203
+ .k-hold > .k-note { margin-top: 0.2em; }
180
204
  /* behold#571: "How this hold ends": four rows that light from the records. */
181
205
  .k-ap-head { font: 600 0.7em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.1em; }
182
206
  .k-ap-head .k-ap-plan { text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 400; }
@@ -210,13 +234,31 @@
210
234
  .k-view-on { color: var(--bg); background: var(--pending); }
211
235
  .k-view-on:hover { color: var(--bg); }
212
236
  .k-view-note { color: var(--muted); font-size: 0.8em; }
213
- #foot { display: flex; flex-wrap: wrap; gap: 0.2em 1.6em; padding: 0.5em 1.6em; border-top: 1px solid var(--rule); background: var(--surface-box); font-size: 0.85em; }
214
- .k-legend { color: var(--muted); flex-basis: 100%; }
237
+ /* behold#571: "How to read this", the graph pane's static frame: the legend of the view shown, folded to its header on request. */
238
+ #view-pane { position: relative; }
239
+ #views { padding-right: 11em; }
240
+ /* Folded, its header sits in the toggle's row; open, its rows lie over the top of the graph, two to a line. */
241
+ #k-read { font-size: 0.82em; }
242
+ #k-read[hidden] { display: none; }
243
+ .k-read-head { position: absolute; top: 0.55em; right: 1.1em; z-index: 5; font: 600 0.82em var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: transparent; border: 0; padding: 0.35em 0; cursor: pointer; }
244
+ .k-read-head::after { content: " ▸"; }
245
+ .k-read-open .k-read-head::after { content: " ▾"; }
246
+ .k-read-head:hover { color: var(--fg); }
247
+ .k-read-rows { position: absolute; top: 2.85em; left: 0.7em; right: 0.7em; z-index: 4; list-style: none; margin: 0; padding: 0.45em 0.9em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25em 1.4em;
248
+ background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 6px 22px color-mix(in srgb, var(--shadow) 60%, transparent); }
249
+ .k-read-row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 0.5em; align-items: center; color: var(--fg); line-height: 1.3; }
250
+ .k-read-mark { display: inline-block; justify-self: center; }
251
+ .k-read-card { width: 1.7em; height: 0.95em; border-radius: 3px; background: var(--panel); box-shadow: inset 3px 0 0 var(--muted); border: 1px solid var(--edge); }
252
+ .k-read-box { width: 1.9em; height: 1.05em; border-radius: 4px; border: 1.5px solid var(--muted); }
253
+ .k-read-solid, .k-read-dashed { width: 2em; height: 0; border-top: 2px solid var(--fg); }
254
+ .k-read-dashed { border-top-style: dashed; }
255
+ .k-read-order { width: 1.9em; height: 1em; background: linear-gradient(var(--muted), var(--muted)) 0 0 / 0.5em 100% no-repeat, linear-gradient(var(--muted), var(--muted)) 0.7em 25% / 0.5em 75% no-repeat, linear-gradient(var(--muted), var(--muted)) 1.4em 50% / 0.5em 50% no-repeat; opacity: 0.8; }
256
+ .k-read-marks { width: 1.5em; height: 0.75em; background: radial-gradient(circle at 25% 50%, var(--foreign) 0 0.3em, transparent 0.32em), radial-gradient(circle at 75% 50%, var(--runtime) 0 0.3em, transparent 0.32em); }
215
257
  /* behold#571: a tool's page. Its name (and logo where allowed) before the scenario, the replay's banner, the credit. */
216
258
  .k-brand { display: inline-flex; align-items: center; gap: 0.35em; margin-right: 0.8em; color: var(--fg); text-decoration: none; font-weight: 700; vertical-align: 0.05em; }
217
259
  .k-brand:hover .k-brand-name { text-decoration: underline; }
218
260
  .k-brand-logo { width: 1.25em; height: 1.25em; }
219
- .k-replay { grid-column: 1 / -1; margin: 0; padding: 0.2em 0.7em; padding-right: 16em; border-left: 4px solid var(--neutral); background: var(--surface-box); color: var(--fg); font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
261
+ .k-replay { margin: 0; padding: 0.2em 0.7em; padding-right: 16em; border-left: 4px solid var(--neutral); background: var(--surface-box); color: var(--fg); font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
220
262
  /* behold#571: "What is this?" and the theme, at the header's top right, outside the boxes that redraw. */
221
263
  #k-tools { position: absolute; top: 0.4em; right: 1em; z-index: 5; display: flex; gap: 0.7em; align-items: center; font-size: 0.8em; }
222
264
  .k-what { font: inherit; color: var(--pending); background: transparent; border: 0; padding: 0.1em 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@@ -231,9 +273,9 @@
231
273
  .k-menu summary::after { content: " ▾"; }
232
274
  .k-menu[open] summary { color: var(--fg); }
233
275
  .k-menu-body { position: absolute; right: 0; top: 1.8em; padding: 0.5em; background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; }
234
- .k-credit { color: var(--muted); flex-basis: 100%; }
276
+ .k-credit { color: var(--muted); }
235
277
  .k-credit-link { color: var(--fg); }
236
- .k-nograph-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.88em; }
278
+ .k-nograph-note { margin: 0; color: var(--muted); font-size: 0.88em; }
237
279
  /* With no graph to show, the graph pane folds away and the runs and the log take its width. */
238
280
  body.k-nograph #stage { grid-template-columns: minmax(15em, 22%) minmax(0, 1fr); }
239
281
  body.k-nograph #view-pane { display: none; }
@@ -241,7 +283,7 @@
241
283
  body.k-notyet #runs-side, body.k-notyet #runs-main, body.k-notyet #k-runs-toggle { display: none !important; }
242
284
  body.k-notyet #stage { grid-template-columns: minmax(0, 1fr); }
243
285
  .k-fact { color: var(--fg); }
244
- @media (max-width: 900px) and (min-width: 601px) { #bar { grid-template-columns: 1fr; } #stage, body.k-nograph #stage { grid-template-columns: 1fr; } }
286
+ @media (max-width: 900px) and (min-width: 601px) { #bar { grid-template-columns: 1fr; } .k-right { contain: none; } .k-box-hold { max-height: 16em; } #stage, body.k-nograph #stage { grid-template-columns: 1fr; } }
245
287
  /*
246
288
  * behold#571: a phone. One column that scrolls as a page: the header
247
289
  * (its boxes as tall as their text), the graph, then the runs and their
@@ -255,14 +297,27 @@
255
297
  .k-left, .k-right { display: block; contain: none; }
256
298
  .k-left > * + *, .k-right > * + * { margin-top: 0.4em; }
257
299
  .k-box { height: auto; max-height: none; overflow: visible; -webkit-mask-image: none !important; mask-image: none !important; }
258
- .k-title { white-space: normal; }
259
- .k-where { padding-right: 0; }
300
+ .k-box-empty { display: none; }
301
+ .k-title { white-space: normal; font-size: 1.4em; }
302
+ .k-progress { flex-wrap: wrap; overflow: visible; }
303
+ .k-progress .k-strip { flex: 1 1 100%; }
304
+ #views { flex-wrap: wrap; gap: 0.3em 0.9em; }
305
+ .k-strip { flex-wrap: wrap; }
306
+ .k-next { white-space: normal; flex-wrap: wrap; }
307
+ .k-facts { white-space: normal; }
308
+ .k-right > .k-cycle { padding: 0; }
309
+ #k-read { padding: 0.2em 16px; }
310
+ .k-read-head { position: static; }
311
+ .k-read-rows { position: static; grid-template-columns: 1fr; border-radius: 6px; box-shadow: none; margin-bottom: 0.3em; }
312
+ #views { padding-right: 1em; }
260
313
  .k-replay { padding-right: 0.7em; white-space: normal; }
261
314
  #k-tools { position: static; justify-content: flex-end; margin: 0; padding: 0.4em 16px 0; }
262
315
  #k-what-pop { right: 16px; left: 16px; width: auto; top: 2.2em; }
263
316
  .k-ap-row { grid-template-columns: 1.1em 5.6em minmax(0, 1fr); }
264
317
  #stage, body.k-nograph #stage { display: flex; flex-direction: column; padding: 0; gap: 0; }
265
318
  #view-pane { order: 1; height: 64vh; }
319
+ #view-pane:has(#k-read.k-read-open) { height: auto; }
320
+ #view-pane:has(#k-read.k-read-open) #view { height: 56vh; flex: none; }
266
321
  body.k-nograph #view-pane { display: none; }
267
322
  #k-runs-toggle { order: 2; display: block; margin: 0.6em 16px; padding: 0.6em 1em; font: 600 1em var(--font-ui); color: var(--fg); background: var(--surface-pane-b); border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; text-align: left; }
268
323
  #k-runs-toggle::after { content: " ▸"; }
@@ -274,7 +329,6 @@
274
329
  .r-log { margin-left: 0.4em; max-height: 60vh; }
275
330
  .r-log-line { grid-template-columns: 2.4em 1fr; gap: 0.5em; }
276
331
  .r-ann-note { grid-column: 1 / -1; }
277
- #foot { padding: 0.5em 16px; }
278
332
  }
279
333
  </style>
280
334
  </head>
@@ -290,13 +344,14 @@
290
344
  <div id="stage">
291
345
  <nav id="runs-side" aria-label="pipeline runs"></nav>
292
346
  <section id="runs-main" aria-live="polite"></section>
347
+ <aside id="k-metrics" aria-label="Pipeline metrics" hidden></aside>
293
348
  <button type="button" id="k-runs-toggle" aria-expanded="false">Runs and logs</button>
294
349
  <section id="view-pane">
295
350
  <div id="views" hidden></div>
351
+ <section id="k-read" aria-label="How to read this" hidden></section>
296
352
  <iframe id="view" title="behold's view of the change"></iframe>
297
353
  </section>
298
354
  </div>
299
- <footer id="foot"></footer>
300
355
  <script type="module">
301
356
  import { initTheme, KIOSK_THEME } from "/theme.js";
302
357
  import { startKiosk } from "/kiosk.js";
@@ -305,11 +360,13 @@
305
360
  // behold#571: /<tool> serves this page with its tool in a meta tag; /kiosk has none.
306
361
  startKiosk(
307
362
  {
308
- bar: document.getElementById("bar"), frame: document.getElementById("view"), foot: document.getElementById("foot"), side: document.getElementById("runs-side"), main: document.getElementById("runs-main"), views: document.getElementById("views"),
363
+ bar: document.getElementById("bar"), frame: document.getElementById("view"), read: document.getElementById("k-read"), side: document.getElementById("runs-side"), main: document.getElementById("runs-main"), views: document.getElementById("views"),
309
364
  tools: { what: document.querySelector(".k-what"), pop: document.getElementById("k-what-pop"), theme: document.getElementById("k-theme"), runsToggle: document.getElementById("k-runs-toggle") },
310
365
  },
311
366
  { tool: pageTool(document) },
312
367
  );
368
+ // behold#571: the repo's numbers from Prometheus, a pane of its own (web/kiosk-metrics.js).
369
+ import("/kiosk-metrics.js").then((m) => m.startMetrics(document.getElementById("k-metrics"), { tool: pageTool(document) }));
313
370
  </script>
314
371
  </body>
315
372
  </html>