Navigation banner across the top (the next maneuver's arrow by Valhalla's type, distance, street, then…, lanes, the street being driven; maneuvers gain type/street/exit); the driving view (tilted to 3D) hides route numbers and minor roads' names, road labels further apart
This commit is contained in:
1 parent
e62eb90dc7
commit
27313b3101
7 files changed
+144
-22
No files matched your search
@@ -3457,3 +3457,32 @@ html.night .maplibregl-marker {
|
||||
/* The GNSS position once it has a course: an arrow, not the dot. */
|
||||
.gnss-marker--arrow { width: 26px; height: 26px; border: none; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5)); }
|
||||
.gnss-marker--arrow svg { display: block; }
|
||||
|
||||
/* The navigation banner across the top (dashboard.js): the next turn. */
|
||||
.dash-banner {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 3;
|
||||
min-width: 260px;
|
||||
max-width: calc(100% - 140px);
|
||||
padding: 8px 14px;
|
||||
border-radius: 12px;
|
||||
background: rgb(var(--inst-bezel) / var(--dash-alpha, 0.9));
|
||||
box-shadow: 0 1px 6px rgb(0 0 0 / 0.3);
|
||||
color: var(--inst-text);
|
||||
font-family: system-ui, sans-serif;
|
||||
pointer-events: none;
|
||||
text-shadow: 0 0 3px var(--inst-halo);
|
||||
}
|
||||
.dash-banner[hidden] { display: none; }
|
||||
.dash-banner__main { display: flex; align-items: center; gap: 12px; }
|
||||
.dash-banner__icon { width: 44px; height: 58px; flex: none; }
|
||||
.dash-banner__arrow { fill: none; stroke: var(--inst-active); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.dash-banner__distance { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
|
||||
.dash-banner__street { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.dash-banner__lanes { margin-top: 6px; justify-content: center; }
|
||||
.dash-banner__then { margin-top: 4px; font-size: 13px; color: var(--inst-muted); display: flex; align-items: center; gap: 4px; }
|
||||
.dash-banner__then .dash-banner__icon { width: 14px; height: 18px; }
|
||||
.dash-banner__on { margin-top: 4px; font-size: 12px; color: var(--inst-muted); text-transform: uppercase; letter-spacing: 0.04em; }
|
||||
Reference in new issue
Block a user