Make the statblock blue for passed simplification tests (#128)
Make the statblock blue for passed simplification tests
This commit is contained in:
2 files changed
+9
-3
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user