From f99efcb30feffb03a5769da0779eae9a273e0dc3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 May 2021 15:03:55 +0200 Subject: Add 'shift zoom' for blocks. --- play.html | 5 +++++ ui.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/play.html b/play.html index 0da37e4..8d973fe 100644 --- a/play.html +++ b/play.html @@ -114,6 +114,11 @@ X.map svg path.area.highlight:hover { /* BLOCKS */ +body.shift .block.known:hover { + transform: scale(2) !important; + transition: 100ms; +} + .map div.block { position: absolute; } diff --git a/ui.js b/ui.js index ef73ff6..d6b5402 100644 --- a/ui.js +++ b/ui.js @@ -753,4 +753,6 @@ build_map(); drag_element_with_mouse(".battle", ".battle_header"); scroll_with_middle_mouse(".grid_center", 2); +init_map_zoom(); +init_shift_zoom(); init_client(["Lancaster", "York"]); -- cgit v1.2.3