Restore result cell styling (outline, hatching, clearer blue)
This commit is contained in:
1 parent
142296006b
commit
0dab31718a
2 files changed
+44
-1
No files matched your search
@@ -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;
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
{% if test|test_is_time_odds %}<span class="flag flag-time" title="Time odds">time odds</span>{% endif %}
|
||||
{% if test|test_is_smp_odds %}<span class="flag flag-smp" title="Thread odds">thread odds</span>{% endif %}
|
||||
</td>
|
||||
<td class='statblock statblock-{{test|testResultColour}} col-result'><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
||||
<td class='statblock statblock-{{test|testResultColour}} state-{{ test|test_status }} col-result'><strong>{{test|shortStatBlock|linebreaksbr}}</strong></td>
|
||||
Reference in new issue
Block a user