feat(regions): label the map pins and link them to the region list
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m17s
ci / test (pull_request) Successful in 12m34s
ci / build (pull_request) Canceled after 4m21s
ci / image (pull_request) Canceled after 0s

Pins carry the region's name, turn dark when the region is selected and
show a green dot while a checker of the region is live. Hovering a pin
highlights its row in the list and the other way round, and a region
ticked in the list pans into view. Scrolling the page no longer zooms
the map, and the attribution stays compact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-28 20:31:11 +01:00
1 parent 3562f8224e
commit 6c246b145f
6 files changed
+92 -31

No files matched your search

+44 -13
View File
@@ -119,23 +119,54 @@
}
}
/* Region maps: a dot per region, filled when it is selected and grey
when no checker of the region is live. */
.region-marker {
width: 14px;
height: 14px;
padding: 0;
border: 2px solid var(--color-ink);
/* Region maps: a labelled pin per region, filled when it is selected;
its dot is green while a checker of the region is live. */
.region-pin {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 9px 3px 5px;
border: 1px solid var(--color-rule);
border-radius: 9999px;
background: var(--color-paper);
color: var(--color-ink);
font: 500 11px/1.3 var(--font-sans);
white-space: nowrap;
cursor: pointer;
box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.region-marker.is-checked { background: var(--color-ink); }
.region-marker[data-live="0"] { border-color: var(--color-unknown); }
.region-marker.is-checked[data-live="0"] { background: var(--color-unknown); }
.region-marker.is-pick {
border-color: var(--color-down);
.region-pin-dot {
flex: none;
width: 8px;
height: 8px;
border-radius: 9999px;
background: var(--color-unknown);
box-shadow: 0 0 0 2px var(--color-paper);
}
.region-pin:not([data-live="0"]) .region-pin-dot { background: var(--color-up); }
.region-pin.is-checked {
border-color: var(--color-ink);
background: var(--color-ink);
color: var(--color-paper);
}
.region-pin.is-checked .region-pin-dot { box-shadow: 0 0 0 2px var(--color-ink); }
.maplibregl-marker.is-hover,
.maplibregl-marker:hover { z-index: 3; }
.is-hover > .region-pin,
.region-pin:hover {
transform: scale(1.1);
box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
}
.region-pin:focus-visible { outline: 2px solid var(--color-maintenance); outline-offset: 2px; }
.region-pick {
width: 14px;
height: 14px;
border: 2px solid var(--color-paper);
border-radius: 9999px;
background: var(--color-down);
cursor: default;
box-shadow: 0 1px 4px rgb(0 0 0 / 0.4);
}
.region-row { transition: background-color 0.15s; }
.region-row.is-hover { background: color-mix(in srgb, var(--color-ink) 7%, transparent); }
.region-map .maplibregl-ctrl-attrib { font-size: 10px; }