Switches in drive mode, after the Design canvas' GridSwitches: Menu → Switches (only when /api/outputs answers), 3×3 tiles per page with the output's name, On / Off / Flashing / level, the key and mode driving it and its LED colour line, a group per module, All off, More ▸, a tap toggles. The status pill above the car (pypilot's note in SidePanel): ● REC while the trip is recorded, estimated / no fix, hidden when all is well
This commit is contained in:
1 parent
82a728e024
commit
88fa2d27a3
5 files changed
+162
-5
No files matched your search
+37
-1
@@ -4937,12 +4937,16 @@ html.driving #app,
|
||||
.drive-points__bar,
|
||||
.drive-layers__presets,
|
||||
.drive-layers__source,
|
||||
.drive-switches__tiles,
|
||||
.drive-switches__groups,
|
||||
.drive-rec__days { gap: 0; background: var(--drive-ground); }
|
||||
.drive-cell,
|
||||
.drive-panel__cell,
|
||||
.drive-panel__empty,
|
||||
.drive-rec__day,
|
||||
.drive-panel > :not(.drive-trip__stops, .drive-trip__results, .drive-panel__list, .drive-points__bar, .drive-layers__presets, .drive-layers__source, .drive-rec__days) {
|
||||
.drive-switches__tiles > *,
|
||||
.drive-switches__groups > *,
|
||||
.drive-panel > :not(.drive-trip__stops, .drive-trip__results, .drive-panel__list, .drive-points__bar, .drive-layers__presets, .drive-layers__source, .drive-rec__days, .drive-switches__tiles, .drive-switches__groups) {
|
||||
margin: var(--drive-half-gap);
|
||||
border-radius: var(--drive-radius);
|
||||
}
|
||||
@@ -4956,6 +4960,10 @@ html.driving.drive-keypad [data-led] { box-shadow: inset 0 calc(-4px * var(--s,
|
||||
[data-led="cyan"] { --led: #22c3d6; }
|
||||
[data-led="white"] { --led: #e8e6df; }
|
||||
[data-led="yellow"] { --led: #f0a020; }
|
||||
[data-led="red"] { --led: #e8453a; }
|
||||
[data-led="green"] { --led: #34b545; }
|
||||
[data-led="blue"] { --led: #3b82f6; }
|
||||
[data-led="magenta"] { --led: #b45bd0; }
|
||||
.drive-rec__cutrow { flex: none; height: calc(var(--cell, 80px) / 2); display: flex; align-items: center; gap: 10px; padding-left: 28px; background: var(--band); color: var(--drive-muted); font-size: calc(14px * var(--s, 1)); }
|
||||
.drive-rec__cutrow span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-panel .drive-rec__cutrow button { height: 100%; padding: 0 16px; background: none; border-left: 1px solid var(--drive-line); font-size: calc(14px * var(--s, 1)); font-weight: 700; }
|
||||
@@ -5035,3 +5043,31 @@ rect.drive-level__none { fill: var(--band-fg); } text.drive-level__none { fill:
|
||||
.drive-panel button.drive-level__zero,
|
||||
.drive-panel button.drive-level__under,
|
||||
.drive-panel button.drive-level__terrain { font-size: calc(16px * var(--s, 1)); font-weight: 700; }
|
||||
|
||||
/* Switches (drive_menus.js, the canvas' GridSwitches): tiles 3 × 3 in the
|
||||
menu's first six columns, the modules down the seventh, All off / More
|
||||
below; a tile's line is its key's LED colour, full when it's on. */
|
||||
.drive-switches__tiles { grid-area: 2 / 1 / -2 / 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--drive-line); }
|
||||
.drive-panel button.drive-switches__tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 10px 12px 16px; text-align: left; font-size: inherit; min-width: 0; overflow: hidden; }
|
||||
.drive-panel button.drive-switches__tile[aria-pressed="true"] { background: color-mix(in srgb, var(--led, var(--drive-key-on)) 18%, var(--band)); }
|
||||
.drive-switches__tile::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 4px; border-radius: 2px; background: var(--led); opacity: 0.35; }
|
||||
.drive-switches__tile[aria-pressed="true"]::after { opacity: 1; }
|
||||
.drive-switches__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: auto; }
|
||||
.drive-switches__icon { font-size: calc(26px * var(--s, 1)); line-height: 1; color: var(--drive-muted); }
|
||||
.drive-switches__tile[aria-pressed="true"] .drive-switches__icon { color: var(--led, var(--band-fg)); }
|
||||
.drive-switches__key { font-size: calc(11px * var(--s, 1)); font-weight: 700; letter-spacing: 0.06em; color: var(--drive-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
|
||||
.drive-switches__name { font-size: calc(17px * var(--s, 1)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-switches__state { font-size: calc(13px * var(--s, 1)); color: var(--drive-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-switches__tile[aria-pressed="true"] .drive-switches__state { color: var(--band-fg); }
|
||||
.drive-switches__mode { font-size: calc(11px * var(--s, 1)); color: var(--drive-muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.drive-switches__groups { grid-area: 2 / 7 / -2 / 8; display: flex; flex-direction: column; gap: 1px; background: var(--drive-line); }
|
||||
.drive-panel .drive-switches__groups button { flex: 1; border: none; background: var(--band); color: var(--band-fg); font-size: calc(13px * var(--s, 1)); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
|
||||
.drive-panel .drive-switches__groups button[aria-pressed="true"] { background: var(--drive-key-on); color: #fff; }
|
||||
.drive-switches__off { grid-area: -2 / 1 / -1 / 4; }
|
||||
.drive-switches__page { grid-area: -2 / 4 / -1 / 8; }
|
||||
.drive-panel button.drive-switches__off, .drive-panel button.drive-switches__page { font-size: calc(17px * var(--s, 1)); font-weight: 700; }
|
||||
|
||||
/* the status pill above the car (gnss.js _showTag) */
|
||||
.gnss-tag { display: flex; gap: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.75); color: #fbbf24; font: 600 11px/1.4 system-ui, sans-serif; white-space: nowrap; pointer-events: none; }
|
||||
.gnss-tag:empty { display: none; }
|
||||
.gnss-tag__rec { color: #f87171; }
|
||||
Reference in new issue
Block a user