From 3806f4314837fcdb952173076b133944844f32df Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 28 Nov 2024 12:07:11 +0100 Subject: more visible overfulfilment warning! --- play.css | 43 +++++++++++++++++++++++++++++++++++++------ play.html | 8 ++++---- play.js | 2 +- 3 files changed, 42 insertions(+), 11 deletions(-) diff --git a/play.css b/play.css index e462540..17dae2f 100644 --- a/play.css +++ b/play.css @@ -452,14 +452,45 @@ span.suit.reserve { color: var(--color-reserve); font-weight: bold; font-family: .missing { position: absolute; - font-size: 18px; - line-height: 18px; + background-color: #c00c; + box-sizing: border-box; + color: white; + font-weight: bold; + font-size: 16px; + line-height: 20px; + padding: 6px; + white-space: pre; + text-align: center; } -#missing_pragmatic { top: 105px; left: 860px; } -#missing_prussia { top: 76px; left: 1990px; } -#missing_austria { top: 1562px; left: 2395px; } -#missing_france { top: 1568px; left: 145px; } +#missing_pragmatic { + left: 779px; + top: 79px; + width: 116px; + height: 58px; +} + +#missing_prussia { + left: 1909px; + top: 58px; + width: 116px; + height: 58px; +} + +#missing_austria { + left: 2316px; + top: 1543px; + width: 116px; + height: 58px; +} + +#missing_france { + background-color: #c00c; + left: 66px; + top: 1541px; + width: 116px; + height: 58px; +} /* SPACES */ diff --git a/play.html b/play.html index 927a35e..cbfdd62 100644 --- a/play.html +++ b/play.html @@ -62,10 +62,10 @@
-
-
-
-
+
+
+
+
diff --git a/play.js b/play.js index 3df499d..6cc2045 100644 --- a/play.js +++ b/play.js @@ -1251,7 +1251,7 @@ function layout_victory_pool(pow, max, x, y) { ui.markers_element.appendChild(e) } if (n > max) { - ui.missing[pow].textContent = "+" + (n-max) + ui.missing[pow].textContent = "overfulfilled\n" + (n-max) } else { ui.missing[pow].textContent = "" } -- cgit v1.2.3