// The CI run and job pages, as TimelineCi in the Layout Study: a 64 px head, a 300 px jobs pane beside // the log pane, and the history dock under them. The panes fill the window and scroll inside // themselves; the page does not scroll. Panes are --surface with a 1 px --border, no shadow. .ci-run.fit-pane, .ci-job.fit-pane { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; height: max(480px, calc(100dvh - 190px)); padding: 0; overflow: hidden; } .ci-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: none; } .ci-tl-list { flex: none; margin: 0; padding: 0; list-style: none; } .ci-tl-group { height: 26px; line-height: 26px; padding: 0 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); } .ci-tl-job { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; min-width: 0; padding: 0 14px; box-shadow: inset 0 -1px var(--border); color: var(--text); text-decoration: none; font-size: 13px; &:hover { background: var(--surface-2); } &[aria-current="true"] { background: var(--surface-2); } .ci-tl-dur { margin-left: auto; flex: none; font-family: var(--mono); font-size: 12px; color: var(--text-2); } } // The toggle sits over the job row's right end, a 28 px target (36 px on a phone). Its chevron turns // when the dropdown is open; the browser's marker is gone. .ci-tl-steptoggle { position: absolute; top: 0; right: 6px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 36px; list-style: none; cursor: pointer; &::-webkit-details-marker { display: none; } &::marker { content: ""; } .ci-chev { margin: 0; } &:hover .ci-chev { border-color: var(--text); } } .ci-tl-stepexp { flex: none; font-family: var(--mono); font-size: 11px; color: var(--muted); } // Log pane: the 48 px bar (the tabs, then the log's tools), the code area, and the timeline tab. .ci-tl-log { position: relative; } .ci-tl-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } .ci-tl-logbar { flex: none; height: 48px; margin: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px; min-width: 0; background: transparent; box-shadow: inset 0 -1px var(--border); border: 0; border-radius: 0; } .ci-tl-tabs { flex: none; display: flex; align-items: stretch; gap: 18px; height: 100%; } .ci-tl-tab { display: flex; align-items: center; padding: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; box-shadow: inset 0 0 0 0 transparent; } #ci-view-log:checked ~ .ci-tl-logbar .ci-tl-tab-log, #ci-view-timeline:checked ~ .ci-tl-logbar .ci-tl-tab-timeline { color: var(--text); box-shadow: inset 0 -2px var(--accent); } // The log's tools share the bar's right side; they scroll sideways rather than wrap. .ci-tl-tools { margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; .ci-logsearch { width: 140px; flex: none; height: 30px; } .ci-job-rerun { display: inline-flex; } } #ci-view-timeline:checked ~ .ci-tl-logbar .ci-tl-tools { display: none; } .ci-tl-panel-log { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; > :not(.ci-tl-code) { flex: none; } .ci-warnings, .ci-config-error { max-height: 30%; overflow: auto; margin: 0; } } .ci-tl-panel-timeline { display: none; flex: 1 1 0; min-height: 0; padding: 12px 14px; overflow: auto; overscroll-behavior: contain; } #ci-view-timeline:checked ~ .ci-tl-panel-log { display: none; } #ci-view-timeline:checked ~ .ci-tl-panel-timeline { display: block; } // The code area: --bg, mono 12.5 px on a 1.7 line, numbers right aligned in their own column. // A group's name sticks to the pane's edge, not inside its padding, or lines show above it. .ci-tl-code details.lg > summary { top: -14px; } .ci-tl-code { flex: 1 1 0; min-height: 0; margin: 0; padding: 14px 16px; overflow: auto; overscroll-behavior: contain; background: var(--bg); border-radius: 0 0 10px 10px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--text); .ll { display: flex; gap: 14px; white-space: pre; } .ln { flex: none; width: 2.6em; text-align: right; color: var(--muted); text-decoration: none; } .lt { min-width: 0; } } // The dock: the last commits as bars, their height the lines changed. The note sits at the top right. .ci-dock { position: relative; flex: none; height: 184px; box-sizing: border-box; padding: 12px 14px; } .ci-dock .dock-history { flex: 1 1 0; min-height: 0; height: auto; display: flex; order: 0; } .ci-dock .history-strip { flex: 1 1 auto; height: 100%; min-width: 0; display: grid; grid-template-columns: 254px minmax(0, 1fr); } .ci-dock .history-label { position: static; width: auto; height: 18px; overflow: visible; clip-path: none; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 18px; color: var(--muted); } .ci-dock .history-bars { flex: 1 1 0; min-height: 0; height: auto; align-items: flex-end; gap: 3px; padding-bottom: 0; } @media (prefers-reduced-motion: reduce) { .ci-tl-job, .ci-tl-tab { } } // Below 900 px the panes stack and the page scrolls, as the rest of the site does. @media (max-width: 899px) { .ci-run.fit-pane, .ci-job.fit-pane { height: auto; overflow: visible; } .ci-tl-log, .ci-tl-panel-timeline { overflow: visible; } // A thumb-sized toggle, and the job's duration keeps clear of it. .ci-tl-steptoggle { width: 36px; } // These panels share out a fixed height on a wide window; here there is none to share. .ci-tl-panel { flex: none; } .ci-tl-panel-log > .ci-log.ci-tl-code { flex: none; max-height: 60vh; } .ci-dock { height: auto; min-height: 140px; } }