Tracker and ITS-G5 as separate overlays, Overlays grouped by category: the tracker gets a name/icon/color, charging from its USB power topic, a floating info card (per-device opacity), a trail of the last 1–24 h and optional position logging that survives restarts (LiveStore); hiking trails keep their main checkbox as an all-countries toggle
This commit is contained in:
1 parent
3fc8c75c60
commit
0e5f79f8e4
9 files changed
+801
-205
No files matched your search
@@ -2119,6 +2119,20 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Category headings between the Overlays items (overlays.js). */
|
||||
.overlays-panel__group {
|
||||
margin: 10px 4px 2px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #888;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.overlays-panel__group:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.overlays-panel__row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -2993,3 +3007,88 @@ body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .pr
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Tracker overlay settings (live.js). */
|
||||
.live-tracker__settings {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
/* Same "author display wins over the UA [hidden] rule" gotcha as
|
||||
.gpx-panel__action[hidden]. */
|
||||
.live-tracker__settings[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.live-tracker__row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.live-tracker__row input[type="range"] {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.live-tracker__name-input {
|
||||
padding: 4px 6px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.live-tracker__save {
|
||||
align-self: flex-start;
|
||||
padding: 4px 14px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* The tracker's floating info card over the map (per-device opacity). */
|
||||
.live-tracker-card {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
bottom: 36px;
|
||||
z-index: 3;
|
||||
min-width: 170px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.live-tracker-card__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-bottom: 4px;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.live-tracker-card__icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 5px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.live-tracker-card__icon svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.live-tracker-card th {
|
||||
padding-right: 10px;
|
||||
color: #666;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
}
|
||||
Reference in new issue
Block a user