Profiles in a dialog, the chip in the map's bottom-left corner picks one (the Design canvas' Vehicle): a car gains fuel, Euro class, stickers and vignettes / toll units with dates; drive mode's Menu steps through them. Speed limits by country for cars and over 3.5 t (public/js/speed_limits.js, sources in it): the route's roads (km, road class, country), the limit shown the lower of the sign and the profile's; the Route panel's countries with their limits and how the motorways are paid; past a border a card in drive mode (GridBorder). The itinerary in the Route panel (Itinerary): the trip's name, leave time, days start; per stop a night, stay and note, planned times, day headers; another screen's change shown where it happened with Undo
This commit is contained in:
1 parent
a6158f4083
commit
5e31dfaba9
15 files changed
+733
-169
No files matched your search
+77
-43
@@ -1513,7 +1513,7 @@ button.basemap-panel__link[hidden] { display: none; }
|
||||
.here__position small, .here__position em { color: var(--ui-muted); font-style: normal; font-size: 12px; }
|
||||
.here__actions { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--ui-line); }
|
||||
.here__actions button { flex: 1; height: 30px; padding: 0 6px; border: 1px solid var(--ui-line); border-radius: 6px; background: none; font-weight: 600; font-size: 12px; white-space: nowrap; }
|
||||
.here__actions button:hover { background: var(--ui-hover, rgba(0, 0, 0, 0.06)); }
|
||||
.here__actions button:hover { background: var(--ui-bg-2); }
|
||||
.here__features { padding: 8px 12px 0; }
|
||||
.here__features summary { font-weight: 600; cursor: pointer; }
|
||||
.here__features .debug-popup__feature:first-of-type { margin-top: 6px; }
|
||||
@@ -2912,23 +2912,6 @@ button.basemap-panel__link[hidden] { display: none; }
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.route-panel__vehicle {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 6px;
|
||||
border: 1px solid var(--ui-line);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.route-panel__vehicle[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.route-panel__vehicle input {
|
||||
width: 4.5em;
|
||||
}
|
||||
|
||||
.route-panel__vehicle [hidden],
|
||||
.route-panel__avoid[hidden] {
|
||||
display: none;
|
||||
}
|
||||
@@ -2939,32 +2922,55 @@ button.basemap-panel__link[hidden] { display: none; }
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.route-panel__countries {
|
||||
margin: 0;
|
||||
padding-left: 1.2em;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
.route-panel__countries { margin: 0; padding: 0; list-style: none; font-size: 0.9em; border: 1px solid var(--ui-line); border-radius: 8px; overflow: hidden; }
|
||||
.route-panel__countries li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
|
||||
.route-panel__countries li + li { border-top: 1px solid var(--ui-line); }
|
||||
.route-panel__countries li > span:first-of-type { flex: 1; color: var(--ui-muted); }
|
||||
.route-panel__country--missing > span:first-of-type { color: var(--inst-caution, #b26a00) !important; font-weight: 600; }
|
||||
.route-panel__signs { display: flex; gap: 4px; }
|
||||
.route-panel__sign { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #d32f2f; background: #fff; color: #1a1a1a;
|
||||
align-items: center; justify-content: center; font: 700 10px inherit; box-sizing: border-box; }
|
||||
|
||||
.route-panel__vehicle-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.route-panel__vehicle-name,
|
||||
.route-panel__vehicle-hint {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.route-panel__vehicle-name input {
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
.route-panel__vehicle-hint {
|
||||
margin: 0;
|
||||
font-size: 0.85em;
|
||||
color: var(--ui-muted);
|
||||
}
|
||||
/* Profiles (route.js, the Design canvas' Vehicle): a dialog set once, the
|
||||
chip in the map's bottom-left corner picks one. */
|
||||
.profiles { width: min(860px, 96vw); max-height: 90vh; padding: 0; border: none; border-radius: 12px; background: var(--ui-bg); color: var(--ui-fg);
|
||||
box-shadow: 0 8px 40px rgb(0 0 0 / 0.4); display: none; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr auto; overflow: hidden; }
|
||||
.profiles[open] { display: grid; }
|
||||
.profiles::backdrop { background: rgb(0 0 0 / 0.35); }
|
||||
.profiles__head { grid-column: 1 / -1; display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--ui-line); }
|
||||
.profiles__head h2 { margin: 0; flex: 1; font-size: 17px; }
|
||||
.profiles__close { border: none; background: none; color: var(--ui-muted); font-size: 18px; cursor: pointer; }
|
||||
.profiles__list { border-right: 1px solid var(--ui-line); background: var(--ui-bg-2); padding: 6px 0; overflow-y: auto; }
|
||||
.profiles__list ul, .profile-chip__list { list-style: none; margin: 0; padding: 0; }
|
||||
.profiles__list li button, .profile-chip__list li button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 14px;
|
||||
border: none; border-left: 3px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
||||
.profiles__list li button b, .profile-chip__list li button b { flex: 1; font-weight: 500; }
|
||||
.profiles__list li button small, .profile-chip__list li button small { color: var(--ui-muted); }
|
||||
.profiles__list li.is-open button { border-left-color: var(--accent); background: var(--ui-bg); }
|
||||
.profiles__list li.is-open b, .profile-chip__list li.is-current b { font-weight: 700; }
|
||||
.profiles__list > button { margin: 6px 14px; border: none; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }
|
||||
.profiles__form { border: none; margin: 0; padding: 14px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; overflow-y: auto; }
|
||||
.profiles__form > label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ui-muted); }
|
||||
.profiles__form > label input, .profiles__form > label select { flex: 1; min-width: 0; height: 30px; color: var(--ui-fg); }
|
||||
.profiles__form [hidden] { display: none !important; }
|
||||
.route-panel__vehicle-name, .route-panel__vehicle-hint, .profiles__wide { grid-column: 1 / -1; }
|
||||
.route-panel__vehicle-hint { margin: 0; font-size: 0.85em; color: var(--ui-muted); }
|
||||
.profiles__vignettes > span { font-size: 13px; color: var(--ui-muted); }
|
||||
.profiles__vignettes ul { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
||||
.profiles__vignettes li { display: flex; gap: 6px; align-items: center; }
|
||||
.profiles__vignettes li [name="country"] { width: 3.5em; text-transform: uppercase; }
|
||||
.profiles__vignettes button, .profiles__delete { border: 1px solid var(--ui-line); border-radius: 6px; background: none; color: inherit; padding: 4px 10px; cursor: pointer; }
|
||||
.profiles__delete { justify-self: start; }
|
||||
.profiles__foot { grid-column: 1 / -1; padding: 10px 18px; border-top: 1px solid var(--ui-line); font-size: 12px; color: var(--ui-muted); }
|
||||
.profile-chip { position: relative; }
|
||||
.profile-chip__button { height: 32px; padding: 0 12px; border: none; border-radius: 16px; background: var(--ui-bg); color: var(--ui-fg);
|
||||
box-shadow: 0 1px 6px rgb(0 0 0 / 0.25); font: 600 13px inherit; cursor: pointer; white-space: nowrap; }
|
||||
.profile-chip__list { position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 230px; border-radius: 10px; background: var(--ui-bg);
|
||||
box-shadow: 0 2px 12px rgb(0 0 0 / 0.3); overflow: hidden; }
|
||||
.profile-chip__list[hidden] { display: none; }
|
||||
.profile-chip__list li.is-current button { background: var(--ui-bg-2); }
|
||||
.profile-chip__edit { width: 100%; height: 36px; border: none; border-top: 1px solid var(--ui-line); background: none; color: var(--accent);
|
||||
font-weight: 600; text-align: left; padding: 0 14px; cursor: pointer; }
|
||||
|
||||
.route-marker {
|
||||
width: 22px;
|
||||
@@ -4795,3 +4801,31 @@ html.driving .drive-cell--field { position: relative; }
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.drive-speed__limit small { font-size: calc(11px * var(--s, 1)); color: var(--drive-muted); white-space: nowrap; }
|
||||
|
||||
/* Drive: past a border, the new country's limits for the profile (the Design canvas' GridBorder) */
|
||||
.drive-cell--border { position: relative; z-index: 3; align-self: start; height: calc(var(--cell, 80px) * 3); justify-content: center; gap: calc(10px * var(--s, 1)); padding: calc(12px * var(--s, 1)) calc(16px * var(--s, 1)); cursor: pointer; }
|
||||
.drive-cell--border[hidden] { display: none; }
|
||||
.drive-border__head { display: flex; align-items: baseline; gap: 10px; }
|
||||
.drive-border__head b { font-size: calc(26px * var(--s, 1)); }
|
||||
.drive-border__signs { display: flex; gap: calc(18px * var(--s, 1)); }
|
||||
.drive-border__limit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
|
||||
.drive-border__limit .drive-speed__limit { position: static; transform: none; }
|
||||
.drive-border__limit small { font-size: calc(12px * var(--s, 1)); color: var(--drive-muted); }
|
||||
.drive-border__pays { font-size: calc(15px * var(--s, 1)); }
|
||||
|
||||
/* The itinerary in the Route panel (the Design canvas' Itinerary) */
|
||||
.route-panel__trip { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--ui-muted); }
|
||||
.route-panel__trip input[name="name"] { flex: 1 1 100%; font: 600 15px inherit; color: var(--ui-fg); border: none; border-bottom: 1px solid var(--ui-line); background: none; padding: 2px 0; }
|
||||
.route-panel__trip label { display: flex; gap: 4px; align-items: center; }
|
||||
.route-panel__day { list-style: none; display: flex; align-items: baseline; gap: 8px; padding: 10px 0 4px; font-size: 13px; }
|
||||
.route-panel__day::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--day); align-self: center; }
|
||||
.route-panel__day b { flex: 1; }
|
||||
.route-panel__day span { font-size: 12px; color: var(--ui-muted); }
|
||||
.route-panel__time { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.route-panel__note { display: block; margin-top: 2px; padding: 3px 6px; border-radius: 4px; background: var(--ui-bg-2); font-size: 12px; white-space: pre-wrap; }
|
||||
.route-panel__on { color: var(--accent) !important; font-weight: 700; }
|
||||
.route-panel__note-editor { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 4px 0 8px 36px; font-size: 12px; }
|
||||
.route-panel__note-editor input { width: 5em; }
|
||||
.route-panel__note-editor textarea { font: inherit; resize: vertical; }
|
||||
.route-remote-popup .maplibregl-popup-content { padding: 6px 10px; font-size: 12px; }
|
||||
.route-remote button { border: none; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }
|
||||
Reference in new issue
Block a user