diff --git a/OpenBench/static/style.css b/OpenBench/static/style.css index d1de851..ebcde55 100644 --- a/OpenBench/static/style.css +++ b/OpenBench/static/style.css @@ -263,12 +263,16 @@ body, html, main{ background-color: #76D576; } +#content .statblock-blue { + background-color: #60F0FF; +} + #content .statblock-yellow { - background-color: #EFF891 + background-color: #EFF891; } #content .statblock-red { - background-color: #FA9696 + background-color: #FA9696; } #content .redlink { diff --git a/OpenBench/templatetags/mytags.py b/OpenBench/templatetags/mytags.py index 4bf1595..53e2a5b 100644 --- a/OpenBench/templatetags/mytags.py +++ b/OpenBench/templatetags/mytags.py @@ -129,7 +129,9 @@ def longStatBlock(test): def testResultColour(test): - if test.passed: return 'green' + if test.passed: + if test.elolower + test.eloupper < 0: return 'blue' + return 'green' if test.failed: if test.wins >= test.losses: return 'yellow' return 'red'