Result cells: outline for tests without a verdict, diagonal hatching for stopped tests, clearer blue
This commit is contained in:
1 parent
dfa7687247
commit
7718d593f4
2 files changed
+44
-1
No files matched your search
@@ -233,3 +233,46 @@
|
|||||||
color: var(--color-font1);
|
color: var(--color-font1);
|
||||||
font-weight: 500;
|
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);
|
||||||
|
}
|
||||||
@@ -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_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 %}
|
{% if test|test_is_smp_odds %}<span class="flag flag-smp" title="Thread odds">thread odds</span>{% endif %}
|
||||||
</td>
|
</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