Make the statblock blue for passed simplification tests (#128)

Make the statblock blue for passed simplification tests
This commit is contained in:
Andrew Grant authored and GitHub committed 2023-06-12 21:28:42 -04:00
commit 711608a8ee
2 files changed
+9 -3

No files matched your search

+6 -2
View File
@@ -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 {
+3 -1
View File
@@ -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'