Web Dev Solutions

Catalin Mititiuc

From 0c1f7e2fde7ed6e05271c8aeb8d4babbf4f2188d Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sat, 27 Apr 2024 18:28:59 -0700 Subject: Add ability to change maps --- public/map.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'public/map.css') diff --git a/public/map.css b/public/map.css index 932d224..dbabab9 100644 --- a/public/map.css +++ b/public/map.css @@ -203,11 +203,11 @@ g.selected use { transform: translate(19px, 31px) scale(4); } -g.start-locations > g:first-child { +g.start-locations > g:first-child:not([data-y]) { --i: -2; } -g.start-locations > g:last-child { +g.start-locations > g:last-child:not([data-y]) { --i: 52; } @@ -249,6 +249,7 @@ g[data-y]:nth-child(odd) { transform: translateX(calc(var(--x-step) * var(--i))) scale(var(--scale)); } +g[data-y="-2"] { --i: -2; } g[data-y="0"] { --i: 0; } g[data-y="1"] { --i: 1; } g[data-y="2"] { --i: 2; } -- cgit v1.2.3