// The history strip (one bar per recent commit) and the dock's shared parts. The repo home's panes // and dock are in _canvas_repo.scss; the run page keeps its thin dock here. // With no footer on this page, the dock sits close to the window's bottom edge. .shell-body > main:has(.repo-home) { padding-bottom: 12px; } // The page is exactly one window: the footer is left off this page, and the panes and the dock // fill the height. (The footer would sit under the floating profile panel.) body:has(.repo-home) .site-footer { display: none; } // The run page's dock: one thin row, the strip after the CI words. The repo home has its own dock. .repo-dock:not(.canvas-dock) { display: flex; align-items: center; gap: 16px; box-sizing: border-box; height: 52px; margin-top: 12px; padding: 0 16px; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 13px; } .dock-history { order: 1; display: flex; flex: 1 1 0; align-items: flex-end; min-width: 0; height: 100%; } .history-strip { flex: 1 1 auto; min-width: 0; } // Visually hidden on the run page; the repo home shows it as the strip's column label. .history-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .history-bars { display: flex; align-items: flex-end; gap: 2px; height: 28px; min-width: 0; overflow: hidden; > a { display: block; flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--muted); opacity: 0.42; } // A bar has its commit's CI colour: passed is the ok colour, softer, so a failure and the running // commit stand out at full strength. > a.hs-ok { background: var(--ok); opacity: 0.5; } > a.hs-bad { background: var(--bad); opacity: 1; } > a.hs-live { background: var(--heat-3); opacity: 1; } > a:hover { opacity: 0.75; } > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } } // Bar heights: one class per whole percent, from the floor of 6% to the full strip. Each class is // a child selector, so it outranks the bar's own rule. @for $i from 6 through 100 { .history-bars > .hs-h-#{$i} { height: $i * 1%; } } // Below 900px the panes stack and the page scrolls: the dock becomes the one-line CI row, and the // strip, which needs the width, is left out. @media (max-width: 899px) { .repo-dock:not(.canvas-dock) { height: auto; } .dock-history { display: none; } }