From 27e1c173919d3d1506ced0350df576781dec491f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 29 Jul 2022 23:56:00 +0200 Subject: Hide/reveal units. Pursuit Deception. --- play.html | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'play.html') diff --git a/play.html b/play.html index b1162c6..40b45a0 100644 --- a/play.html +++ b/play.html @@ -365,33 +365,41 @@ svg .hex.tip { } .unit { - background-image: url(units.svg); background-size: 1000%; border-style: solid; transition: top 200ms, left 200ms, transform 200ms; } -#mapwrap.fit .unit { +.unit.revealed { + background-image: url(units.svg); +} + +#mapwrap.fit .unit.revealed { background-image: url(units-simple.svg); } -.unit.italian { - background-color: #f9e3b3; - border-color: dimgray; +.unit.italian, .unit.german { + background-color: #9aa880; + border-color: #899572; box-shadow: 0 0 2px 1px #2d292c80; } -.unit.german { +.unit.allied { + background-color: #cebc9a; + border-color: #b7a889; + box-shadow: 0 0 2px 1px #5c3a1e80; +} + +.unit.italian.revealed { + background-color: #f9e3b3; +} + +.unit.german.revealed { background-color: #abba8e; - border-color: dimgray; - box-shadow: 0 0 2px 1px #004e2f; - box-shadow: 0 0 2px 1px #2d292c80; } -.unit.allied { +.unit.allied.revealed { background-color: #e4d1ab; - border-color: tan; - box-shadow: 0 0 2px 1px #5c3a1e80; } .unit.action { -- cgit v1.2.3