From db6136b3dae500216fdfbf1a4baf56336f008d05 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 10 Dec 2023 23:11:27 +0100 Subject: Remove favored suit piece. --- play.css | 21 +-------------------- play.js | 3 +-- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/play.css b/play.css index 9726e90..7e28e9b 100644 --- a/play.css +++ b/play.css @@ -397,26 +397,7 @@ body.shift #tooltip.focus { display: block; } drop-shadow(2px 0 0 black) } -/* FAVORED SUIT MARKER AND SPACES */ - -#favored_suit_marker { - position: absolute; - pointer-events: none; - width: 32px; - height: 70px; - background-image: url(pieces/favored_suit_marker.svg); - background-size: contain; - background-repeat: no-repeat; - left: 42px; - filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5)); - transition: 500ms; - transform-origin: bottom center; -} - -#favored_suit_marker.Political { top: 112px; } -#favored_suit_marker.Intelligence { top: 200px; } -#favored_suit_marker.Economic { top: 289px; } -#favored_suit_marker.Military { top: 378px; } +/* FAVORED SUIT SPACES */ .suit { position: absolute; diff --git a/play.js b/play.js index 3543b3f..0ba5715 100644 --- a/play.js +++ b/play.js @@ -720,11 +720,11 @@ function on_update() { ui.body.classList.toggle("open", !!view.open) - ui.favored1.className = view.favored ui.suit_political.classList.toggle("favored", view.favored === "Political") ui.suit_intelligence.classList.toggle("favored", view.favored === "Intelligence") ui.suit_economic.classList.toggle("favored", view.favored === "Economic") ui.suit_military.classList.toggle("favored", view.favored === "Military") + ui.favored2.src = "icons/suit_" + view.favored.toLowerCase() + ".svg" for (let row = 0; row < 2; ++row) { @@ -1053,7 +1053,6 @@ function build_ui() { ui.market_b = document.getElementById("market_b") ui.status = document.getElementById("status") ui.tooltip = document.getElementById("tooltip") - ui.favored1 = document.getElementById("favored_suit_marker") ui.favored2 = document.getElementById("favored_suit_icon") ui.popup_label = document.getElementById("popup_label") ui.global_events = document.getElementById("global_events") -- cgit v1.2.3