Night mode (auto after sunset / on / off, one invert+dim filter for now), tracker drawn as a top-down vehicle rotated by its GNSS course with a heading-up tilted Navigate mode, side panels float over the map on phone width instead of squeezing it
This commit is contained in:
1 parent
0e5f79f8e4
commit
9148c9a411
5 files changed
+189
-17
No files matched your search
@@ -552,6 +552,30 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
||||
left: calc(52px + min(300px, 90vw));
|
||||
}
|
||||
|
||||
/* Phone portrait: a pinned 300px panel left the map a sliver, so there it
|
||||
always floats over the map instead (closed by its × button). */
|
||||
@media (max-width: 640px) {
|
||||
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) #map {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .profile-panel {
|
||||
left: 52px;
|
||||
}
|
||||
|
||||
/* body: outranks .gpx-panel's own rule further down */
|
||||
body .basemap-panel,
|
||||
body .gpx-panel {
|
||||
width: auto;
|
||||
right: 0;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.side-panel-pin {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.side-panel-pin {
|
||||
margin-left: auto;
|
||||
margin-right: 4px;
|
||||
@@ -3092,3 +3116,47 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Big enough to hit while driving. */
|
||||
.live-tracker-card__nav {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
margin-top: 6px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font: inherit;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.live-tracker-card__nav.active {
|
||||
background: #c0392b;
|
||||
}
|
||||
|
||||
/* Night mode (map.js): the whole page inverted and dimmed, map included,
|
||||
the already-black topbar and photos inverted back.
|
||||
ponytail: one filter instead of a dark map style + dark copy of this
|
||||
stylesheet; colors come out approximate (hue kept, lightness flipped) —
|
||||
a real dark Park Tiles palette in map_themes.js if that's not enough. */
|
||||
html.night {
|
||||
filter: invert(1) hue-rotate(180deg) brightness(0.75);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
html.night .topbar,
|
||||
html.night img {
|
||||
filter: invert(1) hue-rotate(180deg);
|
||||
}
|
||||
|
||||
.topbar__night {
|
||||
border: none;
|
||||
background: none;
|
||||
color: #bbb;
|
||||
font-size: 16px;
|
||||
padding: 4px 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
Reference in new issue
Block a user