// The time-left bar of a running CI run: the elapsed share of its expected total. It fills with the // heat colour, the same as the repo home's CI bar, and stays full once the run is past its estimate. progress.ci-est { -webkit-appearance: none; appearance: none; flex: 0 0 96px; box-sizing: border-box; width: 96px; height: 4px; margin: 0; border: 0; border-radius: 2px; overflow: hidden; background: var(--border); color: var(--heat-3); &::-webkit-progress-bar { background: var(--border); } &::-webkit-progress-value { border-radius: 2px; background: linear-gradient(90deg, var(--heat-2), var(--heat-3), var(--heat-4)); } &::-moz-progress-bar { border-radius: 2px; background: linear-gradient(90deg, var(--heat-2), var(--heat-3), var(--heat-4)); } } progress.ci-est-run { display: block; flex: none; width: 100%; max-width: 320px; height: 4px; margin-top: 8px; } // A step's progress: a 2 px bar along the foot of its row. A finished step is full in its state's colour; // a running one fills to its share of the expected time (the page script moves it). A running step with // no estimate has no value, so it shows a sliding segment rather than a made-up share. progress.ci-est.ci-tl-stepprog { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 2px; flex: none; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--accent); &::-webkit-progress-bar { background: transparent; border-radius: 0; } &::-webkit-progress-value { border-radius: 0; background: var(--border-strong); } &::-moz-progress-bar { border-radius: 0; background: var(--border-strong); } // Each engine's pseudo-element gets its own rule: one it does not know drops the whole list. &.ci-sp-pass::-webkit-progress-value { background: var(--ok); } &.ci-sp-pass::-moz-progress-bar { background: var(--ok); } &.ci-sp-fail::-webkit-progress-value { background: var(--bad); } &.ci-sp-fail::-moz-progress-bar { background: var(--bad); } // Each engine's pseudo-element gets its own rule: one it does not know drops the whole list. &.ci-sp-off::-webkit-progress-value { background: var(--border); } &.ci-sp-off::-moz-progress-bar { background: var(--border); } // Each engine's pseudo-element gets its own rule: one it does not know drops the whole list. &.ci-sp-run::-webkit-progress-value { background: var(--accent); } &.ci-sp-run::-moz-progress-bar { background: var(--accent); } // No value attribute: the element's own background carries a 30% segment that slides across. &:not([value]) { background: linear-gradient(var(--accent), var(--accent)) no-repeat, transparent; background-size: 30% 100%, auto; background-position: -43% 0, 0 0; animation: ci-step-slide 1.4s linear infinite; &::-webkit-progress-bar, &::-webkit-progress-value { background: transparent; animation: none; } &::-moz-progress-bar { background: transparent; animation: none; } } } @keyframes ci-step-slide { from { background-position: -43% 0, 0 0; } to { background-position: 100% 0, 0 0; } } @media (prefers-reduced-motion: reduce) { progress.ci-est.ci-tl-stepprog:not([value]) { animation: none; background-position: 0 0, 0 0; } }