diff --git a/OpenBench/static/refresh.css b/OpenBench/static/refresh.css index de3b284..fec7d7a 100644 --- a/OpenBench/static/refresh.css +++ b/OpenBench/static/refresh.css @@ -234,6 +234,49 @@ font-weight: 500; } +/* ========================================================================== + Result cells + + A filled cell is a verdict: green passed, blue passed as a non-regression + test, amber and red failed. A cell without a fill has no verdict yet, so it + is only outlined, in warm grey that cannot be mistaken for the blue. + A stopped test keeps the outline and gains diagonal hatching, like an entry + that has been struck out. + ========================================================================== */ + +:root { + --hatch: rgba(237, 234, 227, 0.14); +} + +/* Blue: a stronger fill, so it holds its own beside the green */ +#content .statblock-blue { + background-color: rgba(76, 141, 255, 0.2); + color: #A9CBFF; +} + +/* No verdict yet: running, pending, awaiting artifacts, stopped. + .statblock- is the empty colour name the template renders for them, which + also covers result cells that carry no state class. */ +#content .statblock.statblock-, +#content .statblock.state-running, +#content .statblock.state-pending, +#content .statblock.state-awaiting, +#content .statblock.state-stopped { + background-color: transparent; + box-shadow: inset 0 0 0 1px var(--line-strong); + color: var(--color-font2); +} + +/* Nothing has been played yet */ +#content .statblock.state-pending, +#content .statblock.state-awaiting { + color: var(--muted); +} + +#content .statblock.state-stopped { + background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, var(--hatch) 6px, var(--hatch) 7.5px, transparent 7.5px, transparent 9px); +} + /* Author names are shown in full; very long ones are clipped with an ellipsis */ #content td.col-author { max-width: 14ch; diff --git a/Templates/OpenBench/Blocks/testsummary.html b/Templates/OpenBench/Blocks/testsummary.html index 095df0f..f0c1c03 100644 --- a/Templates/OpenBench/Blocks/testsummary.html +++ b/Templates/OpenBench/Blocks/testsummary.html @@ -23,4 +23,4 @@ {% if test|test_is_time_odds %}time odds{% endif %} {% if test|test_is_smp_odds %}thread odds{% endif %} -