From 7fd55cc904aafb29df2cc8a8a878c2697d21d9af Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 15 Nov 2019 13:40:05 -0800 Subject: [PATCH] Fix double-percentage scoreboard bug --- theme/basic.css | 8 +- theme/scoreboard.html | 6 +- theme/scoreboard.js | 439 ++++++++++++++++++++++-------------------- 3 files changed, 238 insertions(+), 215 deletions(-) diff --git a/theme/basic.css b/theme/basic.css index cbe7987..b54e8b1 100644 --- a/theme/basic.css +++ b/theme/basic.css @@ -60,18 +60,18 @@ input:invalid { min-height: 3em; border: solid black 2px; } -#scoreboard { +#rankings { width: 100%; position: relative; } -#scoreboard span { +#rankings span { font-size: 75%; display: inline-block; overflow: hidden; height: 1.7em; } -#scoreboard span.teamname { +#rankings span.teamname { font-size: inherit; color: white; text-shadow: 0 0 3px black; @@ -79,7 +79,7 @@ input:invalid { position: absolute; right: 0.2em; } -#scoreboard div * {white-space: nowrap;} +#rankings div * {white-space: nowrap;} .cat0, .cat8, .cat16 {background-color: #a6cee3; color: black;} .cat1, .cat9, .cat17 {background-color: #1f78b4; color: white;} .cat2, .cat10, .cat18 {background-color: #b2df8a; color: black;} diff --git a/theme/scoreboard.html b/theme/scoreboard.html index 465b60a..b6b7647 100644 --- a/theme/scoreboard.html +++ b/theme/scoreboard.html @@ -10,9 +10,9 @@

-
- -
+
+
+