Make the statblock blue for passed simplification tests
This commit is contained in:
1 parent
a9c532f873
commit
17a7aa7b70
2 files changed
+9
-3
No files matched your search
@@ -263,12 +263,16 @@ body, html, main{
|
|||||||
background-color: #76D576;
|
background-color: #76D576;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#content .statblock-blue {
|
||||||
|
background-color: #60F0FF;
|
||||||
|
}
|
||||||
|
|
||||||
#content .statblock-yellow {
|
#content .statblock-yellow {
|
||||||
background-color: #EFF891
|
background-color: #EFF891;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .statblock-red {
|
#content .statblock-red {
|
||||||
background-color: #FA9696
|
background-color: #FA9696;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .redlink {
|
#content .redlink {
|
||||||
|
|||||||
@@ -129,7 +129,9 @@ def longStatBlock(test):
|
|||||||
|
|
||||||
def testResultColour(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.failed:
|
||||||
if test.wins >= test.losses: return 'yellow'
|
if test.wins >= test.losses: return 'yellow'
|
||||||
return 'red'
|
return 'red'
|
||||||
|
|||||||
Reference in new issue
Block a user