forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | // ci: page parts in the one page language (docs/ui-language.md). Tokens only. |
| 2 | |
| 3 | // Runs list: one line per run, the way the issue list reads. Tick, title, then the meta. |
| 4 | // The mini bar and the estimate bar are not part of a row; the run page shows the detail. |
| 5 | .ci-split > .ci-side .ci-row { |
| 6 | display: flex; |
| 7 | flex-direction: row; |
| 8 | align-items: center; |
| 9 | gap: 10px; |
| 10 | min-height: 46px; |
| 11 | padding: 8px 18px; |
| 12 | border-bottom: 1px solid var(--border); |
| 13 | border-radius: 0; |
| 14 | box-shadow: none; |
| 15 | text-align: left; |
| 16 | } |
| 17 | |
| 18 | .ci-split > .ci-side .ci-row:last-child { |
| 19 | border-bottom: 0; |
| 20 | } |
| 21 | |
| 22 | .ci-split > .ci-side .ci-row[aria-current="true"], |
| 23 | .ci-split > .ci-side .ci-run-item:has(> .ci-row[aria-current="true"]) { |
| 24 | background: var(--surface-2); |
| 25 | } |
| 26 | |
| 27 | .ci-split > .ci-side .ci-run-item > .ci-row[aria-current="true"] { |
| 28 | background: none; |
| 29 | } |
| 30 | |
| 31 | .ci-split > .ci-side .ci-row .ci-bar, |
| 32 | .ci-split > .ci-side .ci-row .ci-est { |
| 33 | display: none; |
| 34 | } |
| 35 | |
| 36 | .ci-split > .ci-side .ci-row .name { |
| 37 | flex: 0 1 auto; |
| 38 | min-width: 0; |
| 39 | max-width: 50%; |
| 40 | overflow: hidden; |
| 41 | font-weight: 600; |
| 42 | white-space: nowrap; |
| 43 | text-overflow: ellipsis; |
| 44 | } |
| 45 | |
| 46 | .ci-split > .ci-side .ci-row .val { |
| 47 | flex: 0 1 auto; |
| 48 | min-width: 0; |
| 49 | overflow: hidden; |
| 50 | font-size: 14px; |
| 51 | text-overflow: ellipsis; |
| 52 | white-space: nowrap; |
| 53 | } |
| 54 | |
| 55 | .ci-split > .ci-side .ci-row time, |
| 56 | .ci-split > .ci-side .ci-row .ci-row-dur { |
| 57 | font-size: 14px; |
| 58 | } |
| 59 | |
| 60 | .ci-split > .ci-side .ci-row .ci-row-dur { |
| 61 | font-family: var(--mono); |
| 62 | font-size: 13px; |
| 63 | } |
| 64 | |
| 65 | // A run's Re-run sits right after its row's text, not at the far end. The row's line is the item's. |
| 66 | .ci-split > .ci-side .ci-run-item { |
| 67 | display: flex; |
| 68 | align-items: center; |
| 69 | gap: 4px; |
| 70 | border-bottom: 1px solid var(--border); |
| 71 | |
| 72 | &:last-child { |
| 73 | border-bottom: 0; |
| 74 | } |
| 75 | |
| 76 | > .ci-row { |
| 77 | flex: 0 1 auto; |
| 78 | min-width: 0; |
| 79 | border-bottom: 0; |
| 80 | } |
| 81 | |
| 82 | > .ci-row-rerun-form { |
| 83 | flex: none; |
| 84 | } |
| 85 | |
| 86 | // A phone row is the whole width: Re-run goes under its text, on the text's edge. |
| 87 | @media (max-width: 700px) { |
| 88 | flex-wrap: wrap; |
| 89 | |
| 90 | > .ci-row { |
| 91 | flex: 1 1 100%; |
| 92 | } |
| 93 | |
| 94 | > .ci-row-rerun-form { |
| 95 | margin: -10px 0 8px calc(var(--row-x, 18px) - 10px); |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // Run workflow and Status badge: the same soft pill as every other button in the head. |
| 101 | .ci-tool > summary { |
| 102 | display: inline-flex; |
| 103 | align-items: center; |
| 104 | gap: 8px; |
| 105 | height: var(--control-h); |
| 106 | box-sizing: border-box; |
| 107 | padding: 0 14px 0 18px; |
| 108 | border: 0; |
| 109 | border-radius: 19px; |
| 110 | background: var(--surface-2); |
| 111 | box-shadow: none; |
| 112 | color: var(--text); |
| 113 | font-size: 15px; |
| 114 | font-weight: 600; |
| 115 | cursor: pointer; |
| 116 | list-style: none; |
| 117 | } |
| 118 | |
| 119 | .ci-tool > summary:hover { |
| 120 | background: color-mix(in oklab, var(--surface-2) 88%, var(--text)); |
| 121 | } |
| 122 | |
| 123 | .ci-tool > .menu-list { |
| 124 | left: 0; |
| 125 | right: auto; |
| 126 | } |
| 127 | |
| 128 | // The badge is a quiet tool word in the runs sheet's tools row, not a head pill. |
| 129 | .sheet-tools > .ci-badge-tool > summary.act { |
| 130 | height: 30px; |
| 131 | padding: 0 10px; |
| 132 | border-radius: 12px; |
| 133 | background: none; |
| 134 | color: var(--accent-ink); |
| 135 | font-size: 14px; |
| 136 | font-weight: 600; |
| 137 | } |
| 138 | |
| 139 | .sheet-tools > .ci-badge-tool > summary.act:hover { |
| 140 | background: none; |
| 141 | } |
| 142 | |
| 143 | // The run's estimate bar is the step strip's job: the head keeps only the words. |
| 144 | .ci-run > .head progress.ci-est-run { |
| 145 | display: none; |
| 146 | } |
| 147 | |
| 148 | // Steps: each keeps at least its label's width, so a short step still reads its name. |
| 149 | .ci-run > .strip { |
| 150 | margin-top: 12px; |
| 151 | } |
| 152 | |
| 153 | .ci-run > .strip > .seg { |
| 154 | min-width: min(150px, 28vw); |
| 155 | } |
| 156 | |
| 157 | .ci-run > .strip > .seg .lab { |
| 158 | text-overflow: ellipsis; |
| 159 | } |
| 160 | |
| 161 | // A job page's wrapper is not a box: its head and sheet are the page's own parts. |
| 162 | .ci-job { |
| 163 | display: contents; |
| 164 | } |
| 165 | |
| 166 | // The log's tabs: the shared tab look, with no underline. |
| 167 | .sheet-tools .ci-tl-tab, |
| 168 | .sheet-tools .ci-tl-tab-log, |
| 169 | .sheet-tools .ci-tl-tab-timeline { |
| 170 | border-bottom: 0; |
| 171 | box-shadow: none; |
| 172 | } |
| 173 | |
| 174 | // The job page fills the window like the run page: the sheet takes what the head leaves, and its |
| 175 | // log scrolls inside it. The commit chart is a small strip under the log, not a block of colour. |
| 176 | .shell-body > main:has(> .ci-job) { |
| 177 | display: flex; |
| 178 | flex-direction: column; |
| 179 | height: calc(100dvh - 66px); |
| 180 | min-height: 560px; |
| 181 | } |
| 182 | |
| 183 | main:has(> .ci-job) > .sheet { |
| 184 | flex: 1 1 0; |
| 185 | min-height: 0; |
| 186 | margin-top: 14px; |
| 187 | } |
| 188 | |
| 189 | .ci-job .ci-dock { |
| 190 | flex: none; |
| 191 | height: 132px; |
| 192 | padding: 10px 18px 12px; |
| 193 | overflow: hidden; |
| 194 | } |
| 195 | |
| 196 | .ci-dock .history-label { |
| 197 | text-transform: none; |
| 198 | letter-spacing: 0; |
| 199 | font-family: var(--font); |
| 200 | font-size: 13px; |
| 201 | color: var(--muted); |
| 202 | } |
| 203 | |
| 204 | .ci-dock .history-bars { |
| 205 | height: 56px; |
| 206 | align-items: flex-end; |
| 207 | } |
| 208 | |
| 209 | // The timeline's job rows: the shared quiet action, and its output as the log is, not as a box. |
| 210 | .ci-tl-panel-timeline .ci-job-all, |
| 211 | .ci-tl-panel-timeline .ci-job-last { |
| 212 | height: 30px; |
| 213 | padding: 0 10px; |
| 214 | border: 0; |
| 215 | border-radius: 12px; |
| 216 | background: none; |
| 217 | box-shadow: none; |
| 218 | color: var(--muted); |
| 219 | font-size: 14px; |
| 220 | font-weight: 500; |
| 221 | } |
| 222 | |
| 223 | .ci-tl-panel-timeline .ci-job-all:hover, |
| 224 | .ci-tl-panel-timeline .ci-job-last:hover { |
| 225 | background: var(--surface-2); |
| 226 | color: var(--text); |
| 227 | } |
| 228 | |
| 229 | .ci-tl-panel-timeline pre { |
| 230 | background: none; |
| 231 | border: 0; |
| 232 | border-radius: 0; |
| 233 | padding: 0 0 0 26px; |
| 234 | } |
| 235 | |
| 236 | .ci-row .ci-row-meta { |
| 237 | font-size: 14px; |
| 238 | } |
| 239 | |
| 240 | // The status badge preview in its menu: the badge keeps its colours and sits in the menu's ring. |
| 241 | .ci-pop .ci-chip { |
| 242 | border: 0; |
| 243 | border-radius: 12px; |
| 244 | box-shadow: 0 0 0 1px var(--border); |
| 245 | } |
| 246 | |
| 247 | // The log's tools row is as tall as its tools: on a phone they wrap, and nothing is cut off. |
| 248 | .sheet-tools.ci-tl-logbar { |
| 249 | height: auto; |
| 250 | min-height: 48px; |
| 251 | flex-wrap: wrap; |
| 252 | gap: 4px 8px; |
| 253 | padding: 6px 10px 6px 18px; |
| 254 | box-sizing: border-box; |
| 255 | } |
| 256 | |
| 257 | .sheet-tools.ci-tl-logbar .ci-tl-tools { |
| 258 | flex-wrap: wrap; |
| 259 | gap: 4px 8px; |
| 260 | } |
| 261 | |
| 262 | // A timeline job's Re-run sits right after its row's text, not at the far end. |
| 263 | .ci-tl-panel-timeline .ci-job-item .ci-job-line { |
| 264 | flex: 0 1 auto; |
| 265 | } |
| 266 | |
| 267 | // A run's title is its commit subject: one line, cut with an ellipsis, whole on hover. |
| 268 | .head-sub .b[data-run] { |
| 269 | display: inline-block; |
| 270 | max-width: min(60ch, 100%); |
| 271 | overflow: hidden; |
| 272 | text-overflow: ellipsis; |
| 273 | white-space: nowrap; |
| 274 | vertical-align: bottom; |
| 275 | } |
| 276 | |
| 277 | // The timeline is drawn on 640 units with text of the page's size: at 640px its labels match the page's |
| 278 | // text, so it stops growing there instead of filling a wide window. |
| 279 | .ci-gantt { |
| 280 | max-width: 640px; |
| 281 | } |
| 282 | |
| 283 | // The log search's match count takes room only once there is a count to show. |
| 284 | .ci-logcount:empty { |
| 285 | display: none; |
| 286 | } |
| 287 | |
| 288 | // The count and the match arrows show only while the log search has text. |
| 289 | .ci-tl-tools:has(input:placeholder-shown) { |
| 290 | .ci-logcount, |
| 291 | [data-log-prev], |
| 292 | [data-log-next] { |
| 293 | display: none; |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | // The timeline tab: its parts keep their own heights in the scrolling panel (the chart had shrunk to |
| 298 | // nothing), start on the sheet's inset, and every action sits on the left with the rest. |
| 299 | .ci-tl-panel-timeline { |
| 300 | padding: 12px 18px; |
| 301 | |
| 302 | > * { |
| 303 | flex: none; |
| 304 | } |
| 305 | |
| 306 | .ci-job-head { |
| 307 | justify-content: flex-start; |
| 308 | margin: 12px 0 4px -10px; |
| 309 | } |
| 310 | |
| 311 | // A job's last log line reads as the start of its output: on the name's edge, not centred. |
| 312 | .ci-job-last { |
| 313 | justify-content: flex-start; |
| 314 | align-self: stretch; |
| 315 | padding-left: 26px; |
| 316 | font-family: var(--mono); |
| 317 | font-size: 13px; |
| 318 | } |
| 319 | |
| 320 | .ci-job-last-text { |
| 321 | overflow: hidden; |
| 322 | text-overflow: ellipsis; |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | // The run's commit history under the timeline: one caption line (how many commits, what a bar's |
| 327 | // height means), then the bars, each a narrow column in the CI colour of its commit, from the left. |
| 328 | .ci-tl-panel-timeline .ci-dock, |
| 329 | .ci-job .ci-dock { |
| 330 | display: flex; |
| 331 | flex-direction: row; |
| 332 | flex-wrap: wrap; |
| 333 | align-items: baseline; |
| 334 | column-gap: 6px; |
| 335 | height: auto; |
| 336 | padding: 14px 0 4px; |
| 337 | |
| 338 | > .hint { |
| 339 | order: 2; |
| 340 | margin: 0; |
| 341 | |
| 342 | &::before { |
| 343 | content: "· "; |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | .dock-history, |
| 348 | .history-strip { |
| 349 | display: contents; |
| 350 | } |
| 351 | |
| 352 | .history-label { |
| 353 | order: 1; |
| 354 | position: static; |
| 355 | width: auto; |
| 356 | height: auto; |
| 357 | clip-path: none; |
| 358 | margin: 0; |
| 359 | font-family: var(--font); |
| 360 | font-size: 13px; |
| 361 | letter-spacing: 0; |
| 362 | text-transform: none; |
| 363 | line-height: 18px; |
| 364 | } |
| 365 | |
| 366 | .history-bars { |
| 367 | order: 3; |
| 368 | flex: 0 0 100%; |
| 369 | justify-content: flex-start; |
| 370 | height: 48px; |
| 371 | margin-top: 10px; |
| 372 | gap: 3px; |
| 373 | |
| 374 | > a { |
| 375 | flex: 0 0 14px; |
| 376 | } |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | .ci-job .ci-dock { |
| 381 | padding: 12px 18px; |
| 382 | } |
| 383 | |
| 384 | // Log lines: the number column fits five digits on one line in the log's own font, so a number |
| 385 | // never wraps under itself and every line is one line tall. |
| 386 | .ci-log .ll { |
| 387 | grid-template-columns: 7ch minmax(0, 1fr); |
| 388 | column-gap: 2ch; |
| 389 | } |
| 390 | |
| 391 | .ci-log .ln { |
| 392 | width: auto; |
| 393 | padding-right: 0; |
| 394 | white-space: nowrap; |
| 395 | } |
| 396 | |
| 397 | // A group's name is a line like the others, with its number, and keeps a hairline under it while |
| 398 | // it sticks. |
| 399 | .ci-log details.lg > summary { |
| 400 | display: grid; |
| 401 | } |
| 402 | |
| 403 | // A run or job page fills the window under the top bar, whatever stands between them (a banner, |
| 404 | // a notice): the page is a column, and the log takes the room left. |
| 405 | body:has(> .shell main > :is(.ci-run, .ci-job)) { |
| 406 | height: 100dvh; |
| 407 | min-height: 600px; |
| 408 | |
| 409 | > .shell { |
| 410 | flex: 1 1 0; |
| 411 | min-height: 0; |
| 412 | } |
| 413 | |
| 414 | .shell-body { |
| 415 | min-height: 0; |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | .shell-body > main:has(> :is(.ci-run, .ci-job)) { |
| 420 | flex: 1 1 0; |
| 421 | height: auto; |
| 422 | min-height: 0; |
| 423 | } |
| 424 | |
| 425 | // Artifacts are one line of links under the log, not a list that pushes the page past the window. |
| 426 | .ci-job .ci-artifacts { |
| 427 | display: flex; |
| 428 | flex: none; |
| 429 | flex-wrap: wrap; |
| 430 | align-items: baseline; |
| 431 | gap: 4px 16px; |
| 432 | padding: 10px 18px; |
| 433 | border-top: 1px solid var(--border); |
| 434 | font-size: 14px; |
| 435 | |
| 436 | > h2 { |
| 437 | margin: 0; |
| 438 | color: var(--muted); |
| 439 | font-size: 13px; |
| 440 | font-weight: 600; |
| 441 | } |
| 442 | |
| 443 | .val { |
| 444 | color: var(--muted); |
| 445 | font-size: 13px; |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | // The state in a head's sub line is its word in its colour after a dot, on the line's middle, not a |
| 450 | // box that stands taller than the text around it. |
| 451 | .head-sub .ci-state { |
| 452 | display: inline-flex; |
| 453 | align-items: center; |
| 454 | gap: 6px; |
| 455 | height: auto; |
| 456 | padding: 0; |
| 457 | border: 0; |
| 458 | background: none; |
| 459 | font-size: 14px; |
| 460 | line-height: 20px; |
| 461 | } |
| 462 | |
| 463 | .head-sub .ci-state::before { |
| 464 | margin-right: 0; |
| 465 | } |
| 466 | |
| 467 | // The Timeline tab is the chart and one line a job: what ran where and for how long, with its Re-run. |
| 468 | // The output lives in the Log tab, so no tail of it repeats here. |
| 469 | .ci-tl-panel-timeline { |
| 470 | :is(.ci-job-head, .ci-job-last, .ci-job-tail, .ci-chev) { |
| 471 | display: none; |
| 472 | } |
| 473 | |
| 474 | .ci-job-list { |
| 475 | margin-top: 8px; |
| 476 | border-top: 1px solid var(--border); |
| 477 | } |
| 478 | } |