diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-21 00:29:14 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-21 00:29:14 +0200 |
commit | d0761c05a44c293a4f91e8a53bd2023563f45f09 (patch) | |
tree | f4c56e3222f580ab25d8b2aeb3206ea3c16e73c3 /play.css | |
parent | 8bef982a2a98a2bb12e49b9c2bccd832b645dc75 (diff) | |
download | rommel-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.css | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |