summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-23 15:03:55 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commitc7a7a9376cb661dd14887e2f9d3889674b37cac9 (patch)
tree69857538ab997235894842138bee363ffd60400a
parentace58ffddf8edaeb7f2cd73fc655e0475a720f25 (diff)
downloadjulius-caesar-c7a7a9376cb661dd14887e2f9d3889674b37cac9.tar.gz
Add 'shift zoom' for blocks.
-rw-r--r--play.html5
-rw-r--r--ui.js3
2 files changed, 7 insertions, 1 deletions
diff --git a/play.html b/play.html
index f439ef5..49e4389 100644
--- a/play.html
+++ b/play.html
@@ -137,6 +137,11 @@
display: none;
}
+body.shift .block.known:hover {
+ transform: scale(2) !important;
+ transition: 100ms;
+}
+
.map .block { position: absolute; z-index: 2; }
.map .block.highlight { z-index: 3; }
.map .block.selected { z-index: 4; }
diff --git a/ui.js b/ui.js
index 3bea29b..9970ea2 100644
--- a/ui.js
+++ b/ui.js
@@ -775,5 +775,6 @@ document.querySelector(".battle").classList.add(label_style+'-labels');
drag_element_with_mouse(".battle", ".battle_header");
scroll_with_middle_mouse(".grid_center");
-
+init_map_zoom();
+init_shift_zoom();
init_client([ "Caesar", "Pompeius" ]);