Drive as the Design canvas' Grid: the page as 16 × 10 cells from a screen profile (public/drive/road.json, {area, widget, …} per cell, to be edited in the app later), the map 13 × 8 with nothing over it; the manoeuvre, speed, limit, altitude, time, sun, status (online, rec), next stop with km / ETA to it and to the end, the route's elevation of the next 10 km, a compass; keys Trip, Points, Layers, Search, Menu, − + 3D Follow, Terrain, day/dusk/night. A menu opens in the right 7 × 8 as cells of its own and the map narrows to 9 × 8 (drive_menus.js): Trip and Search as GridTrip / GridSearch (a stop a row, ✓ ↑ ↓ ✕ a cell each; results with their pins on the map); Points as GridPoints (the library nearest the car — /api/search with no words and a center lists every saved feature nearest first — along the route ahead, shown, or one folder at a time; an eye per row, + a point as a stop); Layers as GridLayers (the On the map panel's own switches and Online | Offline, presets Road / Off-road / Overnight, + Keep); Terrain as GridTerrain (roll / pitch dials with the max held, climb and side slope ahead from the DEM, the next 2 km, Level here = can.json's levelling action in two taps), on by itself on an unpaved surface (/api/road now gives Valhalla's surface) or past 10° for 10 s, back after 2 km of paved road, automatic / by hand in the Menu. The dashboard polls for the grid without its overlay; the old drive bar and floating buttons gone
This commit is contained in:
1 parent
285af64a65
commit
f73badd107
14 files changed
+1253
-277
No files matched your search
+233
-135
@@ -3527,8 +3527,8 @@ button.basemap-panel__link[hidden] { display: none; }
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Driving mode (driving.js): big buttons down the map's left side, the
|
||||
planning sidebar and its panels out of the way. */
|
||||
/* Driving mode (driving.js): the cockpit grid below, the planning sidebar
|
||||
and its panels out of the way. */
|
||||
.topbar__drive {
|
||||
height: 40px;
|
||||
padding: 0 12px;
|
||||
@@ -3552,119 +3552,76 @@ html.driving .profile-panel,
|
||||
html.driving #map .maplibregl-ctrl-top-right > :not(.maplibregl-ctrl-overview-map),
|
||||
html.driving .topbar__search,
|
||||
html.driving .statusbar { display: none; }
|
||||
.drive-bar {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 4;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
max-height: calc(100% - 24px); /* a low screen: the buttons shrink, to 44 px */
|
||||
}
|
||||
.drive-bar[hidden] { display: none; }
|
||||
.drive-bar button,
|
||||
.drive-bar__recenter {
|
||||
width: 76px;
|
||||
flex: 0 1 76px;
|
||||
min-height: 44px;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: var(--band);
|
||||
color: var(--band-fg);
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
|
||||
cursor: pointer;
|
||||
}
|
||||
.drive-bar .drive-bar__overview { font-size: 16px; }
|
||||
.drive-bar button:active,
|
||||
.drive-bar__recenter:active { background: var(--accent); }
|
||||
/* the one follow / back-to-the-position button, bottom left, only while
|
||||
the map isn't following (driving.js); gnss.js's own one not meanwhile */
|
||||
.drive-bar__recenter {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
bottom: 36px;
|
||||
z-index: 4;
|
||||
width: auto;
|
||||
height: 76px;
|
||||
padding: 0 22px;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: var(--band);
|
||||
color: var(--band-fg);
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
|
||||
cursor: pointer;
|
||||
}
|
||||
.drive-bar__recenter[hidden],
|
||||
html.driving .follow-resume { display: none; }
|
||||
.drive-bar button:disabled { opacity: 0.4; }
|
||||
html.driving .follow-resume { display: none; } /* the Follow key instead */
|
||||
html.follow-3d .maplibregl-ctrl-overview-map { display: none; }
|
||||
/* npmap's home button draws its house in #333: the UI's text color instead */
|
||||
.feather-home { fill: var(--ui-fg); }
|
||||
:root[data-palette] .drive-bar button,
|
||||
:root[data-palette] .drive-bar__recenter { box-shadow: 0 0 0 1px var(--ui-line), 0 2px 8px rgb(0 0 0 / 0.35); }
|
||||
|
||||
/* The driving mode's Trip menu (driving.js): big rows, big actions, beside
|
||||
the map on the right (the map narrower, its buttons kept, like Android
|
||||
Auto); the crosshair in the middle of the map. */
|
||||
.drive-trip {
|
||||
flex: 0 0 min(540px, 45%);
|
||||
margin: 12px;
|
||||
/* The driving grid (driving.js, the screen profile public/drive/road.json):
|
||||
the page as columns × rows of cells, 1 px of line between them, the map
|
||||
one area of it; a menu takes the profile's menu area and the map narrows. */
|
||||
:root { --drive-line: #3a3a35; --drive-muted: #9b988d; --drive-key-on: #546619; --drive-input: #2a2b27; --drive-eye: #a5b84f; }
|
||||
:root[data-palette="dusk"] { --drive-muted: #8c8a82; --drive-key-on: #6e7c32; }
|
||||
:root[data-palette="night"] { --drive-line: #34332d; --drive-muted: #5f5c55; --drive-key-on: #3c4419; --drive-input: #1c1c19; --drive-eye: #8f9c4d; }
|
||||
html.driving #app {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--drive-cols, 16), minmax(0, 1fr));
|
||||
grid-template-rows: repeat(var(--drive-rows, 10), minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
background: var(--drive-line);
|
||||
}
|
||||
html.driving .topbar { display: none; }
|
||||
html.driving .app-body { grid-area: var(--drive-map, 2 / 1 / 10 / 14); }
|
||||
html:not(.driving) .drive-cell { display: none; }
|
||||
.drive-cell {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 14px;
|
||||
background: var(--ui-bg);
|
||||
color: var(--ui-fg);
|
||||
box-shadow: 0 0 0 1px var(--ui-line), 0 4px 16px rgb(0 0 0 / 0.35);
|
||||
overflow: hidden;
|
||||
}
|
||||
.drive-trip[hidden] { display: none; }
|
||||
.drive-trip__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 0 0 20px;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
padding: 6px 10px;
|
||||
background: var(--band);
|
||||
color: var(--band-fg);
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.drive-trip__close { width: 76px; height: 64px; border: none; background: none; color: inherit; font-size: 26px; cursor: pointer; }
|
||||
.drive-trip__stops { flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
|
||||
.drive-trip__stops li { display: flex; align-items: stretch; min-height: 76px; border-bottom: 1px solid var(--ui-line); }
|
||||
.drive-trip__stops button {
|
||||
border: none;
|
||||
background: none;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.drive-trip__stops .drive-bar__stop-name { flex: 1; padding: 0 16px; text-align: left; font-size: 18px; font-weight: 600; }
|
||||
.drive-trip__stops .drive-bar__stop-up,
|
||||
.drive-trip__stops .drive-bar__stop-down,
|
||||
.drive-trip__stops .drive-bar__stop-drop { width: 68px; font-size: 26px; border-left: 1px solid var(--ui-line); }
|
||||
.drive-trip__stops button:disabled { opacity: 0.25; }
|
||||
.drive-trip__stops button:active:not(:disabled) { background: var(--accent-bg); }
|
||||
.drive-trip__empty { padding: 20px 16px; color: var(--ui-muted); font-size: 16px; }
|
||||
.drive-trip__actions { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-top: 1px solid var(--ui-line); }
|
||||
.drive-trip__actions button {
|
||||
min-height: 72px;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
.drive-trip__actions [data-action="start"] { background: var(--band); color: var(--band-fg); }
|
||||
.drive-bar .drive-bar__trip { font-size: 16px; }
|
||||
.drive-bar button.active { background: var(--accent); }
|
||||
.drive-cell__label { font-size: 11px; color: var(--drive-muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-cell__value { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-cell__value small { font-size: 13px; font-weight: 500; color: var(--drive-muted); }
|
||||
.drive-cell__value--mid { font-size: 22px; }
|
||||
.drive-cell--small .drive-cell__value { font-size: 22px; }
|
||||
.drive-cell__muted { font-size: 12px; color: var(--drive-muted); font-weight: 400; }
|
||||
.drive-cell__text { display: flex; flex-direction: column; min-width: 0; }
|
||||
.drive-cell__street { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-cell--warn { color: var(--inst-warning); }
|
||||
.drive-cell--caution { color: var(--inst-caution); font-size: 22px; }
|
||||
.drive-cell--limit { color: var(--sign-ring); }
|
||||
.drive-cell--maneuver,
|
||||
.drive-cell--compass { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
|
||||
.drive-cell--maneuver .dash-banner__icon { width: 42px; height: 56px; }
|
||||
.drive-status__brand { font-size: 14px; letter-spacing: 0.12em; }
|
||||
.drive-status--ok { color: var(--inst-ok); }
|
||||
.drive-status--rec { color: var(--route-driven); }
|
||||
.drive-elevation { width: 100%; flex: 1; min-height: 0; max-height: 120px; }
|
||||
.drive-elevation__area { fill: var(--drive-muted); opacity: 0.35; }
|
||||
.drive-elevation__line { fill: none; stroke: var(--band-fg); stroke-width: 2; vector-effect: non-scaling-stroke; }
|
||||
.drive-elevation__here { stroke: var(--inst-active); stroke-width: 3; vector-effect: non-scaling-stroke; }
|
||||
.drive-compass { width: 64px; height: 64px; flex: none; }
|
||||
.drive-compass--stale { opacity: 0.55; }
|
||||
.drive-compass__ring { fill: none; stroke: var(--drive-muted); stroke-width: 2; }
|
||||
.drive-compass__north, .drive-compass__n { fill: var(--inst-warning); }
|
||||
.drive-compass__south { fill: var(--drive-muted); }
|
||||
.drive-compass__n { font-size: 14px; font-weight: 800; text-anchor: middle; }
|
||||
.drive-compass__lubber { fill: var(--inst-active); }
|
||||
button.drive-cell--key { align-items: center; padding: 0; border: none; font: inherit; cursor: pointer; }
|
||||
.drive-key__icon { font-size: 24px; line-height: 1; }
|
||||
.drive-key--big .drive-key__icon { font-size: 34px; }
|
||||
.drive-key__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
|
||||
button.drive-cell--key[aria-pressed="true"],
|
||||
button.drive-cell--key:active:not(:disabled) { background: var(--drive-key-on); color: #fff; }
|
||||
button.drive-cell--key:disabled { opacity: 0.35; cursor: default; }
|
||||
|
||||
.drive-crosshair {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
@@ -3680,43 +3637,102 @@ html.follow-3d .maplibregl-ctrl-overview-map { display: none; }
|
||||
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
|
||||
}
|
||||
.drive-crosshair[hidden] { display: none; }
|
||||
.drive-trip__search { padding: 10px 12px; border-bottom: 1px solid var(--ui-line); }
|
||||
.route-panel__leg { display: block; color: var(--ui-muted); font-size: 11px; }
|
||||
/* Passed stops (route.js): dimmed, still editable — the buttons keep full strength */
|
||||
.route-panel__passed .route-panel__point { opacity: 0.45; }
|
||||
.route-marker--passed { opacity: 0.45; }
|
||||
|
||||
/* The driving grid's menus (driving.js, the canvas' GridTrip / GridSearch):
|
||||
the menu area as cells of its own, 1 px of line between them, everything
|
||||
a cell — the stops a row each (name over 3 cells, ✓ ↑ ↓ ✕ one each). */
|
||||
.drive-panel {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--drive-menu-cols, 7), minmax(0, 1fr));
|
||||
grid-template-rows: repeat(var(--drive-menu-rows, 8), minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
min-height: 0;
|
||||
background: var(--drive-line);
|
||||
color: var(--band-fg);
|
||||
}
|
||||
html:not(.driving) .drive-panel,
|
||||
.drive-panel[hidden] { display: none; }
|
||||
html.driving .drive-panel { grid-area: var(--drive-menu, 2 / 10 / 10 / 17); }
|
||||
.drive-panel > *,
|
||||
.drive-panel__cell,
|
||||
.drive-panel__empty {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
border: none;
|
||||
background: var(--band);
|
||||
color: var(--band-fg);
|
||||
font: inherit;
|
||||
}
|
||||
.drive-panel button { cursor: pointer; font-size: 26px; }
|
||||
.drive-panel button:disabled { opacity: 0.3; cursor: default; }
|
||||
.drive-panel button:active:not(:disabled) { background: var(--drive-key-on); color: #fff; }
|
||||
.drive-panel__head { grid-area: 1 / 1 / 2 / -2; display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; }
|
||||
.drive-panel__head small { font-size: 16px; font-weight: 500; color: var(--drive-muted); }
|
||||
.drive-panel__close { grid-area: 1 / -2 / 2 / -1; }
|
||||
.drive-panel__text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
|
||||
.drive-panel__text b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-panel__text small { font-size: 13px; color: var(--drive-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-panel__empty { grid-column: 1 / -1; padding: 16px; color: var(--drive-muted); font-size: 16px; }
|
||||
.drive-panel button.drive-panel__primary { background: var(--drive-key-on); color: #fff; font-size: 18px; font-weight: 700; }
|
||||
/* the Trip: recording, search, the stops, the actions */
|
||||
.drive-trip__log { grid-area: 2 / 1 / 3 / 4; }
|
||||
.drive-panel button.drive-trip__log { font-size: 18px; font-weight: 700; color: var(--route-driven); }
|
||||
.drive-panel button.drive-trip__log--on { background: var(--route-driven); color: #fff; }
|
||||
.drive-trip__log-state { grid-area: 2 / 4 / 3 / -1; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; }
|
||||
.drive-trip__log-text { font-size: 16px; font-weight: 600; color: var(--drive-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-trip__log-text--on { font-size: 18px; font-weight: 700; color: var(--route-driven); }
|
||||
.drive-trip__search { grid-area: 3 / 1 / 4 / -1; display: flex; align-items: center; padding: 0 10px; }
|
||||
.drive-trip__search input {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
height: 60px;
|
||||
padding: 0 16px;
|
||||
border: 1px solid var(--ui-line);
|
||||
border-radius: 10px;
|
||||
background: var(--ui-bg-2);
|
||||
color: var(--ui-fg);
|
||||
border: 1px solid var(--drive-line);
|
||||
border-radius: 8px;
|
||||
background: var(--drive-input);
|
||||
color: var(--band-fg);
|
||||
font-size: 20px;
|
||||
}
|
||||
.drive-trip__stops .drive-bar__stop-name small { display: block; color: var(--ui-muted); font-size: 14px; font-weight: 400; }
|
||||
.drive-trip__stops .drive-bar__stop-add { width: 76px; font-size: 30px; font-weight: 700; color: var(--accent); border-left: 1px solid var(--ui-line); }
|
||||
.drive-trip__total { margin-left: 10px; font-size: 16px; font-weight: 500; opacity: 0.8; }
|
||||
.route-panel__leg { display: block; color: var(--ui-muted); font-size: 11px; }
|
||||
/* Passed stops (route.js): dimmed, still editable — the buttons keep full strength */
|
||||
.drive-trip__passed .drive-bar__stop-name,
|
||||
.route-panel__passed .route-panel__point { opacity: 0.45; }
|
||||
.drive-trip__stops .drive-bar__stop-done { width: 68px; font-size: 24px; border-left: 1px solid var(--ui-line); color: var(--ui-muted); }
|
||||
.drive-trip__stops .drive-bar__stop-done.active { color: var(--inst-ok); font-weight: 700; }
|
||||
.route-marker--passed { opacity: 0.45; }
|
||||
.drive-trip__log { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--ui-line); }
|
||||
.drive-trip__log[hidden] { display: none; }
|
||||
.drive-trip__log button {
|
||||
min-height: 60px;
|
||||
padding: 0 18px;
|
||||
border: 2px solid var(--route-driven);
|
||||
border-radius: 10px;
|
||||
background: none;
|
||||
color: var(--ui-fg);
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
.drive-trip__stops,
|
||||
.drive-trip__results {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--drive-menu-cols, 7), minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
overflow-y: auto;
|
||||
align-content: start;
|
||||
background: var(--drive-line);
|
||||
}
|
||||
.drive-trip__log button.drive-trip__log--on { background: var(--route-driven); color: #fff; }
|
||||
.drive-trip__log-state { flex: 1; color: var(--route-driven); font-weight: 600; font-size: 15px; }
|
||||
/* ponytail: rows sized for the 8-row menu (4 stops, 5 results a screen), from the profile if another menu size comes */
|
||||
.drive-trip__stops { grid-area: 4 / 1 / -2 / -1; grid-auto-rows: calc((100% - 3px) / 4); }
|
||||
.drive-trip__results { grid-area: 3 / 1 / -2 / -1; grid-auto-rows: calc((100% - 4px) / 5); }
|
||||
.drive-panel__stop { grid-column: 1 / -5; padding: 0 14px; display: flex; align-items: center; }
|
||||
.drive-panel__result { grid-column: 1 / -2; padding: 0 14px; display: flex; align-items: center; gap: 12px; }
|
||||
.drive-panel__passed .drive-panel__text { opacity: 0.45; }
|
||||
.drive-panel .drive-panel__done { color: var(--drive-muted); font-weight: 700; }
|
||||
.drive-panel .drive-panel__done.active { color: var(--inst-ok); }
|
||||
.drive-panel .drive-panel__drop { font-size: 24px; }
|
||||
.drive-panel .drive-panel__add { font-size: 32px; font-weight: 700; color: var(--drive-eye); }
|
||||
.drive-trip__add { grid-area: -2 / 1 / -1 / 5; }
|
||||
.drive-panel button.drive-trip__start { grid-area: -2 / 5 / -1 / -1; font-size: 17px; font-weight: 700; }
|
||||
.drive-panel button.drive-trip__back { grid-area: -2 / 1 / -1 / -1; font-size: 17px; font-weight: 700; }
|
||||
.drive-trip[data-mode="trip"] :is(.drive-trip__results, .drive-trip__back),
|
||||
.drive-trip[data-mode="search"] :is(.drive-trip__log, .drive-trip__log-state, .drive-trip__stops, .drive-trip__add, .drive-trip__start) { display: none; }
|
||||
.drive-trip[data-mode="search"] .drive-trip__search { grid-row: 2 / 3; }
|
||||
.drive-trip[data-mode="search"] .drive-trip__search input { border: 2px solid var(--drive-key-on); }
|
||||
/* the search's results on the map and in the list: saved points cyan, places amber */
|
||||
.drive-pin { width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
|
||||
.maplibregl-marker.drive-pin { width: 18px; height: 18px; box-shadow: 0 0 0 2.5px #fff, 0 1px 4px rgb(0 0 0 / 0.4); }
|
||||
.drive-pin--saved { background: #12bedf; }
|
||||
.drive-pin--place { background: #e8a200; }
|
||||
/* the Menu: a row a cell high each */
|
||||
.drive-panel button.drive-menu__row { grid-column: 1 / -1; padding: 0 16px; text-align: left; font-size: 19px; font-weight: 700; }
|
||||
.drive-menu__row small { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--drive-muted); }
|
||||
|
||||
/* The side rail, labelled (map.js sets data-label), and the status bar
|
||||
under the map — the Design canvas' Desktop. */
|
||||
@@ -4614,3 +4630,85 @@ html.follow-3d .maplibregl-ctrl-overview-map { display: none; }
|
||||
html.driving #map {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
html.driving .dash-banner { display: none; } /* the grid's manoeuvre cell instead */
|
||||
|
||||
/* Points and Layers (drive_menus.js, the canvas' GridPoints / GridLayers):
|
||||
a bar of cells on top, an item a row (its eye, its + or ›), a foot. */
|
||||
.drive-panel__list {
|
||||
grid-area: 4 / 1 / -2 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--drive-menu-cols, 7), minmax(0, 1fr));
|
||||
grid-auto-rows: calc((100% - 3px) / 4); /* ponytail: 4 rows a screen, as the 8-row menu */
|
||||
gap: 1px;
|
||||
overflow-y: auto;
|
||||
align-content: start;
|
||||
background: var(--drive-line);
|
||||
}
|
||||
.drive-panel__foot { grid-area: -2 / 1 / -1 / 5; display: flex; align-items: center; padding: 0 16px; font-size: 15px; color: var(--drive-muted); }
|
||||
.drive-panel button.drive-panel__wide { grid-area: -2 / 5 / -1 / -1; font-size: 17px; font-weight: 700; }
|
||||
.drive-points__search { grid-area: 2 / 1 / 3 / -1; display: flex; align-items: center; padding: 0 10px; }
|
||||
.drive-points__search input { width: 100%; box-sizing: border-box; height: 60px; padding: 0 16px; border: 1px solid var(--drive-line); border-radius: 8px; background: var(--drive-input); color: var(--band-fg); font-size: 20px; }
|
||||
.drive-points__bar,
|
||||
.drive-layers__presets,
|
||||
.drive-layers__source {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--drive-menu-cols, 7), minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
background: var(--drive-line);
|
||||
}
|
||||
.drive-points__bar { grid-area: 3 / 1 / 4 / -1; }
|
||||
.drive-layers__presets { grid-area: 2 / 1 / 3 / -1; }
|
||||
.drive-layers__source { grid-area: 3 / 4 / 4 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.drive-panel .drive-panel__scope { grid-column: span 2; font-size: 16px; font-weight: 700; }
|
||||
.drive-layers__source .drive-panel__scope { grid-column: auto; }
|
||||
.drive-panel__preset { grid-column: span 2; }
|
||||
.drive-panel__preset,
|
||||
.drive-panel__mode { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
|
||||
.drive-panel .drive-panel__scope[aria-pressed="true"],
|
||||
.drive-panel .drive-panel__preset[aria-pressed="true"],
|
||||
.drive-panel .drive-panel__mode[aria-pressed="true"] { background: var(--drive-key-on); color: #fff; }
|
||||
.drive-points__path { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; white-space: nowrap; overflow: hidden; }
|
||||
.drive-points__path b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-panel .drive-panel__item { grid-column: 1 / -3; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
|
||||
.drive-points__icon { width: 22px; flex: none; text-align: center; font-size: 20px; }
|
||||
.drive-points__away { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--drive-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.drive-panel .drive-panel__eye { color: var(--drive-muted); }
|
||||
.drive-panel .drive-panel__eye.active { color: var(--drive-eye); }
|
||||
.drive-panel .drive-panel__open { font-size: 30px; font-weight: 700; }
|
||||
.drive-panel .drive-panel__blank { cursor: default; }
|
||||
.drive-layers__map { grid-area: 3 / 1 / 4 / 4; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; white-space: nowrap; overflow: hidden; }
|
||||
.drive-layers__map span { font-size: 15px; font-weight: 600; color: var(--drive-muted); overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-layers__item { grid-column: 1 / -2; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
|
||||
.drive-layers__icon { width: 24px; height: 24px; flex: none; color: var(--drive-muted); }
|
||||
.drive-layers__icon svg { width: 100%; height: 100%; }
|
||||
|
||||
/* Terrain (drive_menus.js, the canvas' GridTerrain): two dials of 3 × 3.5
|
||||
cells (roll as a rear view, pitch as a side view), the fields ahead, the
|
||||
elevation of the next 2 km, the actions at the foot. */
|
||||
.drive-terrain__dial { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
|
||||
.drive-terrain__dial[data-key="roll"] { grid-area: 2 / 1 / 5 / 4; }
|
||||
.drive-terrain__dial[data-key="pitch"] { grid-area: 2 / 4 / 5 / 8; }
|
||||
.drive-terrain__svg { width: 100%; max-width: 232px; min-height: 0; flex: 1; color: var(--band-fg); }
|
||||
.drive-terrain__svg path, .drive-terrain__svg line { fill: none; }
|
||||
.drive-terrain__ok, .drive-terrain__amber, .drive-terrain__red { stroke-width: 10; }
|
||||
.drive-terrain__ok { stroke: var(--inst-ok); opacity: 0.55; }
|
||||
.drive-terrain__amber { stroke: var(--inst-caution); }
|
||||
.drive-terrain__red { stroke: var(--inst-warning); }
|
||||
.drive-terrain__ground { stroke: var(--drive-muted); stroke-width: 1; stroke-dasharray: 4 5; }
|
||||
.drive-terrain__mast { stroke: currentColor; stroke-width: 3; }
|
||||
.drive-terrain__svg .drive-terrain__car { fill: currentColor; }
|
||||
.drive-terrain__svg .drive-terrain__peak { fill: var(--band-fg); opacity: 0.8; }
|
||||
.drive-terrain__value { font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
|
||||
.drive-terrain--caution { color: var(--inst-caution); }
|
||||
.drive-terrain__field { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; overflow: hidden; }
|
||||
.drive-terrain__field[data-field="heading"] { grid-area: 5 / 1 / 6 / 3; }
|
||||
.drive-terrain__field[data-field="climb"] { grid-area: 5 / 3 / 6 / 5; }
|
||||
.drive-terrain__field[data-field="across"] { grid-area: 5 / 5 / 6 / 8; }
|
||||
.drive-terrain__elevation { grid-area: 6 / 1 / 8 / 8; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 14px; min-height: 0; overflow: hidden; }
|
||||
.drive-panel button.drive-terrain__level,
|
||||
.drive-panel button.drive-terrain__reset,
|
||||
.drive-panel button.drive-terrain__road { font-size: 17px; font-weight: 700; }
|
||||
.drive-terrain__level { grid-area: 8 / 1 / 9 / 4; }
|
||||
.drive-terrain__reset { grid-area: 8 / 4 / 9 / 6; }
|
||||
.drive-terrain__road { grid-area: 8 / 6 / 9 / 8; }
|
||||
.drive-panel button.drive-terrain__level--armed { background: var(--inst-caution); color: #000; }
|
||||
Reference in new issue
Block a user