Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'public/map.css')
-rw-r--r--public/map.css10
1 files changed, 7 insertions, 3 deletions
diff --git a/public/map.css b/public/map.css
index b961d35..d960ba8 100644
--- a/public/map.css
+++ b/public/map.css
@@ -144,11 +144,15 @@ polygon.firing-arc[data-allegiance="liao"] {
stroke: none;
}
-#lines polygon {
+#lines polyline, #lines line {
fill: none;
stroke: black;
}
+#lines line {
+ pointer-events: none;
+}
+
.sight-line {
stroke: orangered;
stroke-width: 0.5px;
@@ -203,7 +207,7 @@ g.start-locations > g:last-child {
}
/* Inradius and circumradius values come from the hexagon */
-.grid {
+.grid, g.start-locations {
--inradius: 8.66px;
--circumradius: 10px;
--x-step: calc(var(--inradius) * 2);
@@ -215,7 +219,7 @@ g[data-y], g.start-locations > g {
transform: translate(var(--translateX), calc(var(--y-step) * var(--i)));
}
-g[data-y]:nth-child(even) {
+g[data-y]:nth-child(odd) {
--translateX: calc(var(--inradius));
}