summaryrefslogtreecommitdiff
path: root/play.html
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-29 23:56:00 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:26 +0100
commit27e1c173919d3d1506ced0350df576781dec491f (patch)
treecc4c232e174e37ce5b7453aaa50ba633b2da6383 /play.html
parent1ec5d762368bfca6e51e83e100c7de2138fae0e8 (diff)
downloadrommel-in-the-desert-27e1c173919d3d1506ced0350df576781dec491f.tar.gz
Hide/reveal units. Pursuit Deception.
Diffstat (limited to 'play.html')
-rw-r--r--play.html32
1 files changed, 20 insertions, 12 deletions
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 {