Side panels: pinned (the map moves over) or overlay (hides on mouse out), switched by a pin button in each panel header
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-17 23:18:21 +01:00
1 parent 066e831219
commit c2df1f4d30
3 files changed
+91 -1

No files matched your search

+30
View File
@@ -535,6 +535,36 @@ html, body {
display: none;
}
/* Pinned side panel: the map (and the profile panel under it) moves over
instead of being covered. Switching panels swaps the one in that spot. */
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) #map {
margin-left: min(300px, 90vw);
}
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .profile-panel {
left: calc(52px + min(300px, 90vw));
}
.side-panel-pin {
margin-left: auto;
margin-right: 4px;
padding: 2px;
border: none;
border-radius: 4px;
background: none;
color: #898781;
cursor: pointer;
display: inline-flex;
}
.side-panel-pin:hover {
background: #f0f0f0;
}
.side-panel-pin.active {
color: #1a5fb4;
}
.basemap-panel__header {
display: flex;
align-items: center;