Desktop after the artboard, the panels too: the rail dark like the topbar (the open panel's item on a lighter band with an accent edge), side panels 400 px, the map's buttons as white cards of 40 px; Route laid out as drawn — Reverse/Clear in the head, each point with a grip to drag it elsewhere, its letter (the same on the marker), name and role, the leg to it as a dashed line between, + Search / Saved point / My position chips, the totals as a card (distance, time, climb, arrival; descent and steepest grade under it), vehicle and avoid as chips, Directions and Reach folded with their counts, Save to library and Elevation profile at the bottom; On the map: the Online/Offline choice and the legend are the first group of the Overlays panel, renamed On the map — no Base map item or panel of its own. TODO: copy the cursor's position, the scale back over the map
CI / check (push) Successful in 24s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-03 09:20:27 +01:00
1 parent 258d35a7a1
commit d559f76b4a
6 files changed
+536 -142

No files matched your search

+399 -33
View File
@@ -8,6 +8,7 @@
:root {
--rail: 72px; /* the labelled side rail */
--statusbar: 24px;
--panel: 400px; /* a side panel's width */
/* planning UI (NPS) */
--ui-bg: #ffffff;
--ui-bg-2: #f0f0f0; /* hover, subtle fills */
@@ -651,7 +652,7 @@ html, body {
position: fixed;
top: 44px; /* below the topbar, its title in view */
left: var(--rail);
width: 300px;
width: var(--panel);
max-width: 90vw;
bottom: var(--statusbar);
display: flex;
@@ -669,11 +670,11 @@ html, body {
/* 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);
margin-left: min(var(--panel), 90vw);
}
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .profile-panel {
left: calc(var(--rail) + min(300px, 90vw));
left: calc(var(--rail) + min(var(--panel), 90vw));
}
/* Phone portrait: a pinned 300px panel left the map a sliver, so there it
@@ -1078,7 +1079,7 @@ button.basemap-panel__link[hidden] { display: none; }
position: fixed;
top: 44px; /* below the topbar, its title in view */
left: var(--rail);
width: 300px;
width: var(--panel);
max-width: 90vw;
bottom: var(--statusbar);
display: flex;
@@ -1664,7 +1665,8 @@ button.basemap-panel__link[hidden] { display: none; }
}
.search-ctrl__key {
font: 12px inherit;
font-family: inherit;
font-size: 12px;
padding: 0 6px;
border: 1px solid rgb(255 255 255 / 0.25);
border-radius: 4px;
@@ -1703,7 +1705,8 @@ button.basemap-panel__link[hidden] { display: none; }
border: none;
background: none;
color: #fff;
font: 14px inherit;
font-family: inherit;
font-size: 14px;
outline: none;
}
@@ -2837,33 +2840,9 @@ button.basemap-panel__link[hidden] { display: none; }
opacity: 1;
}
.route-panel__buttons {
display: flex;
gap: 6px;
margin-bottom: 8px;
}
.route-panel__buttons button {
border: 1px solid var(--ui-line);
border-radius: 4px;
background: var(--ui-bg);
padding: 4px 8px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.route-panel__buttons button {
display: inline-flex;
align-items: center;
gap: 4px;
}
.route-panel__buttons svg {
width: 16px;
height: 16px;
flex: none;
}
.route-panel__saved {
margin-bottom: 8px;
@@ -2899,9 +2878,6 @@ button.basemap-panel__link[hidden] { display: none; }
background: #eef3fb;
}
.route-panel__buttons button[hidden] {
display: none;
}
.route-panel__directions,
.route-panel__fold {
@@ -3799,3 +3775,393 @@ html.follow-3d .maplibregl-ctrl-overview-map { display: none; }
display: none;
}
}
/* ---- The Design canvas' Desktop artboard ------------------------------ */
/* The rail: dark like the topbar, the open panel's item marked by a light
band and an accent edge. */
.sidebar {
background: var(--band);
border-right: none;
gap: 2px;
padding: 6px 0;
}
.sidebar-item {
align-self: stretch;
}
.sidebar .sidebar-icon {
width: 100%;
height: 58px;
border-radius: 0;
border-left: 3px solid transparent;
color: #bdbab0;
}
.sidebar .sidebar-icon:hover {
background: #2c2c28;
color: #fff;
}
.sidebar .sidebar-icon.active {
background: #2c2c28;
color: #fff;
border-left-color: var(--accent);
}
.sidebar-group-label {
margin: 4px 12px;
background: #3a3a35;
}
/* The map's buttons: white cards of 40 px buttons, a group per card. */
.maplibregl-ctrl-top-right {
top: 12px;
right: 12px;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl {
margin: 0;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group {
border-radius: 8px;
box-shadow: 0 1px 6px rgb(0 0 0 / 0.25);
overflow: hidden;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group button {
width: 40px;
height: 40px;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group button svg {
width: 20px;
height: 20px;
}
/* Panel heads as on the artboard: a bigger title. */
:is(.gpx-panel__header, .basemap-panel__header) > strong {
font-size: 17px;
}
/* Route (route.js) */
.route-panel {
font-size: 14px;
}
.route-panel__body {
flex: 1;
min-height: 0;
padding: 8px 16px;
}
.route-panel__head-actions {
display: flex;
gap: 6px;
margin-left: auto;
}
.route-panel .route-panel__head-actions button {
min-height: 30px;
height: 30px;
display: flex;
align-items: center;
gap: 4px;
padding: 0 10px;
border: 1px solid var(--ui-line);
border-radius: 6px;
background: none;
color: var(--ui-fg);
font-family: inherit;
font-size: 13px;
cursor: pointer;
}
.route-panel__head-actions svg {
width: 14px;
height: 14px;
}
.route-panel__points {
margin: 0;
}
.route-panel .route-panel__stop {
display: flex;
align-items: center;
gap: 10px;
min-height: 44px;
padding: 0;
}
.route-panel__dragging {
opacity: 0.4;
}
.route-panel__grip {
color: var(--ui-muted);
cursor: grab;
letter-spacing: -2px;
}
.route-panel__badge {
width: 24px;
height: 24px;
flex: none;
border-radius: 50%;
background: var(--accent);
color: #fff;
font-size: 12px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.route-panel__badge--end {
background: #a21caf;
}
.route-panel__point {
min-width: 0;
display: flex;
flex-direction: column;
}
.route-panel__name {
font-size: 15px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.route-panel__role {
font-size: 12px;
color: var(--ui-muted);
}
.route-panel .route-panel__leg {
display: block;
margin-left: 46px;
padding: 2px 0 2px 12px;
border-left: 2px dashed var(--ui-line);
color: var(--ui-muted);
font-size: 12px;
}
.route-panel__add {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
padding: 8px 0 12px 36px;
}
.route-panel .route-panel__chip {
min-height: 32px;
height: 32px;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0 12px;
border: 1px solid var(--ui-line);
border-radius: 16px;
background: none;
color: var(--ui-fg);
font-family: inherit;
font-size: 13px;
cursor: pointer;
}
.route-panel .route-panel__chip--add {
border: 1px dashed var(--accent);
color: var(--accent);
font-weight: 600;
}
.route-panel .route-panel__hint {
margin: 0;
font-size: 12px;
}
/* a ticked avoid chip, the vehicle in use */
.route-panel .route-panel__chip:has(input:checked),
.route-panel select.route-panel__chip {
border-color: var(--accent);
background: var(--accent-bg);
font-weight: 600;
}
.route-panel__chip input {
display: none;
}
.route-panel__totals {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 4px;
margin-bottom: 4px;
padding: 12px;
border-radius: 10px;
background: var(--ui-bg-2);
text-align: center;
}
.route-panel__totals[hidden] {
display: none;
}
.route-panel__totals > span {
display: flex;
flex-direction: column;
}
.route-panel__totals b {
font-size: 18px;
font-variant-numeric: tabular-nums;
}
.route-panel__totals small {
font-size: 11px;
color: var(--ui-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.route-panel .route-panel__totals-more {
grid-column: 1 / 5;
margin-top: 4px;
font-size: 12px;
color: var(--ui-muted);
}
.route-panel__summary:empty {
display: none;
}
.route-panel .route-panel__summary {
padding: 0;
background: none;
font-weight: 400;
color: var(--ui-muted);
}
.route-panel__row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin: 10px 0 0;
}
.route-panel__label {
width: 56px;
font-size: 12px;
color: var(--ui-muted);
}
.route-panel .route-panel__fold {
margin: 12px -16px 0;
border-top: 1px solid var(--ui-line);
}
.route-panel .route-panel__fold + .route-panel__fold {
margin-top: 0;
}
.route-panel .route-panel__fold > summary {
display: flex;
align-items: center;
padding: 0 16px;
font-weight: 600;
list-style: none;
}
.route-panel__fold > summary::-webkit-details-marker {
display: none;
}
.route-panel__fold-meta {
margin-left: auto;
font-size: 12px;
font-weight: 400;
color: var(--ui-muted);
}
.route-panel__fold-meta::after {
content: " ›";
}
.route-panel__fold[open] .route-panel__fold-meta::after {
content: " ⌄";
}
.route-panel__fold > :not(summary) {
margin: 0 16px 12px;
}
.route-panel__footer {
display: flex;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid var(--ui-line);
}
.route-panel__footer:not(:has(button:not([hidden]))) {
display: none;
}
.route-panel .route-panel__footer button {
flex: 1;
height: 40px;
border-radius: 8px;
font-family: inherit;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}
.route-panel .route-panel__primary {
border: none;
background: var(--accent);
color: #fff;
}
.route-panel .route-panel__secondary {
border: 1px solid var(--ui-line);
background: none;
color: var(--ui-fg);
}
.route-panel__footer button[hidden] {
display: none;
}
/* a route's markers in the panel's colours */
.route-marker {
background: var(--accent);
}
/* "On the map" on two lines in the rail */
.sidebar-icon::after {
max-width: 100%;
white-space: normal;
text-align: center;
}
/* On the map's Map group sits above the overlays' own scrolling list */
.onthemap-map {
flex: none;
}
.onthemap-map .overlays-panel__group {
margin: 0;
border-top: none;
}