summaryrefslogtreecommitdiff
path: root/play.css
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-21 00:29:14 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-21 00:29:14 +0200
commitd0761c05a44c293a4f91e8a53bd2023563f45f09 (patch)
treef4c56e3222f580ab25d8b2aeb3206ea3c16e73c3 /play.css
parent8bef982a2a98a2bb12e49b9c2bccd832b645dc75 (diff)
downloadrommel-in-the-desert-d0761c05a44c293a4f91e8a53bd2023563f45f09.tar.gz
Use raster image for map instead of SVG.
Chrome is too slow with the SVG map for a good experience.
Diffstat (limited to 'play.css')
-rw-r--r--play.css9
1 files changed, 8 insertions, 1 deletions
diff --git a/play.css b/play.css
index 8967dd2..c8b8fd7 100644
--- a/play.css
+++ b/play.css
@@ -208,13 +208,20 @@ td img { vertical-align: middle }
/* MAP */
#map {
- background-repeat: no-repeat;
+ background-image: url(map75.jpg);
+ background-size: 2672px 960px;
width: 2672px;
height: 960px;
overflow: clip;
box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
}
+@media (min-resolution: 97dpi) {
+ #map {
+ background-image: url(map150.jpg);
+ }
+}
+
#mapsvg {
display: block;
position: absolute;