From ef5b4b013a1f61290da87cf03e274f77a5389110 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 | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/play.html b/play.html index 4ae34cd..1905988 100644 --- a/play.html +++ b/play.html @@ -114,6 +114,11 @@ div.turn.year_1314 { left: 1511px; top: 1677px; } /* BLOCKS */ +body.shift .block.known:hover { + transform: scale(2) !important; + transition: 100ms; +} + .oldblocks div.block { border-radius: 8px; } .newblocks div.block { border-radius: 4px; } diff --git a/ui.js b/ui.js index d974e5f..d7655c1 100644 --- a/ui.js +++ b/ui.js @@ -757,5 +757,6 @@ function on_update(state, player) { drag_element_with_mouse(".battle", ".battle_header"); drag_element_with_mouse(".herald", ".herald_header"); scroll_with_middle_mouse(".grid_center", 2); - +init_map_zoom(); +init_shift_zoom(); init_client([ "England", "Scotland" ]); -- cgit v1.2.3