Terrain: the cars redrawn (a rear view on its tyres with the back window, a side view on two round wheels with two windows, the wheels apart from the body); every row of the panel a cell as on the artboard, what a bigger screen adds goes to a blank row above the buttons instead of stretching the fields and the elevation; the dials' data-key renamed data-dial (the keys took it for a binding and drew an empty label)
This commit is contained in:
1 parent
1ee79fff66
commit
21ad6c0c21
2 files changed
+27
-13
No files matched your search
+12
-7
@@ -4688,9 +4688,13 @@ html.driving .dash-card { display: none; } /* the grid's cells and its Terrain v
|
||||
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: calc(var(--cell, 80px) * 2.9); max-height: calc(var(--cell, 80px) * 2); min-height: 0; flex: 1; color: var(--band-fg); }
|
||||
/* every row a cell, as on the artboard; what a bigger screen adds goes to a
|
||||
blank row above the buttons, not into the dials and fields */
|
||||
.drive-panel.drive-terrain { grid-template-rows: repeat(7, var(--cell, 80px)) minmax(0, 1fr) var(--cell, 80px); }
|
||||
.drive-terrain__spare { grid-area: 8 / 1 / 9 / -1; }
|
||||
.drive-terrain__dial[data-dial="roll"] { grid-area: 2 / 1 / 5 / 4; }
|
||||
.drive-terrain__dial[data-dial="pitch"] { grid-area: 2 / 4 / 5 / 8; }
|
||||
.drive-terrain__svg { width: 100%; max-width: calc(var(--cell, 80px) * 2.9); max-height: calc(var(--cell, 80px) * 2); min-height: 0; flex: 1 1 0; 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; }
|
||||
@@ -4699,8 +4703,9 @@ html.driving .dash-card { display: none; } /* the grid's cells and its Terrain v
|
||||
.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__wheel { stroke: var(--band); stroke-width: 4; }
|
||||
.drive-terrain__svg .drive-terrain__peak { fill: var(--band-fg); opacity: 0.8; }
|
||||
.drive-terrain__value { font-size: calc(44px * var(--s, 1)); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
|
||||
.drive-terrain__value { font-size: calc(36px * var(--s, 1)); 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; }
|
||||
@@ -4710,9 +4715,9 @@ html.driving .dash-card { display: none; } /* the grid's cells and its Terrain v
|
||||
.drive-panel button.drive-terrain__level,
|
||||
.drive-panel button.drive-terrain__reset,
|
||||
.drive-panel button.drive-terrain__road { font-size: calc(17px * var(--s, 1)); 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-terrain__level { grid-area: -2 / 1 / -1 / 4; }
|
||||
.drive-terrain__reset { grid-area: -2 / 4 / -1 / 6; }
|
||||
.drive-terrain__road { grid-area: -2 / 6 / -1 / 8; }
|
||||
.drive-panel button.drive-terrain__level--armed { background: var(--inst-caution); color: #000; }
|
||||
|
||||
/* Drive keys (canvas GridKeys): the key that does a button in its corner, the
|
||||
|
||||
Reference in new issue
Block a user