summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-30 20:12:12 +0100
committerTor Andersson <tor@ccxvii.net>2023-10-30 20:12:12 +0100
commit47026c54cd34f9c015a5c066a7279e389b7aad01 (patch)
treee21955ea32d29634704331203065091bb4a3da00
parent89d5f45ef54c7ba3c713b62d4bfd3c63540b1c13 (diff)
downloadrommel-in-the-desert-47026c54cd34f9c015a5c066a7279e389b7aad01.tar.gz
Restore mapwrap and simple labels when zoomed out.
-rw-r--r--play.css9
-rw-r--r--play.html2
2 files changed, 9 insertions, 2 deletions
diff --git a/play.css b/play.css
index d32185e..bf1553b 100644
--- a/play.css
+++ b/play.css
@@ -51,7 +51,7 @@ header.your_turn { background-color: orange; }
width: 124px;
height: 170px;
border-radius: 8px;
- box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
+ box-shadow: 1px 1px 4px #0008;
transition: 100ms;
}
@@ -228,6 +228,11 @@ td img { vertical-align: middle }
/* MAP */
+#mapwrap {
+ width: 2672px;
+ height: 960px;
+}
+
#map {
background-image: url(map75.jpg);
background-size: 2672px 960px;
@@ -421,7 +426,7 @@ svg #lines line.axis_supply.allied_supply {
background-image: url(units.svg);
}
-#mapwrap.fit .unit.revealed {
+#mapwrap[data-fit="both"] .unit.revealed {
background-image: url(units-simple.svg);
}
diff --git a/play.html b/play.html
index 7c227f6..85677aa 100644
--- a/play.html
+++ b/play.html
@@ -93,6 +93,7 @@
<div id="pursuit_message"></div>
</details>
+<div id="mapwrap">
<div id="map">
<!-- BEGIN INSERT MAP FILE -->
@@ -311,6 +312,7 @@
</div>
</div>
+</div>
<div id="hand" class="hand"></div>