Web Dev Solutions

Catalin Mititiuc

From d3975d3fc519f21b670178a6e52c65edb75360a5 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Fri, 26 Jul 2024 15:43:53 -0700 Subject: Fix counters radial dispersal when in grid-top --- public/assets/css/map.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'public/assets/css') diff --git a/public/assets/css/map.css b/public/assets/css/map.css index f5f9dae..461f72f 100644 --- a/public/assets/css/map.css +++ b/public/assets/css/map.css @@ -532,14 +532,15 @@ g.counter use[class^="counter-"] { /* Counters placed on a hex */ [data-q][data-r][data-s][data-t]:hover > g.counter ~ use[class^="counter-"], [data-q][data-r][data-s][data-t].hover > g.counter ~ use[class^="counter-"], -.grid-top use[class^="counter-"] { +.grid-top > g.counter ~ use[class^="counter-"] { x: calc(var(--x) * 2); y: calc(var(--y) * 2); --translateY: -5px; } [data-q][data-r][data-s][data-t]:hover > use[class^="counter-"], -[data-q][data-r][data-s][data-t].hover > use[class^="counter-"] { +[data-q][data-r][data-s][data-t].hover > use[class^="counter-"], +.grid-top > use[class^="counter-"] { x: calc(var(--x) * 1.5); y: calc(var(--y) * 1.5); --translateY: -5px; -- cgit v1.2.3