File size: 2,620 Bytes
cf09724 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /* SDLC 78 Routing rules. Lane E tickets add to this sheet. */
/* S78-T07: Save, Share and Delete fit one row as compact buttons with a 32 px hit target.
The id plus three classes outranks route-nav.css's 44 px rule for the primary region. */
#cg-route-popover .cg-route-primary-actions .cg-route-save-actions {
grid-template-columns: repeat(3, minmax(72px, max-content));
justify-content: start;
gap: 8px;
}
#cg-route-popover .cg-route-primary-actions .cg-route-save-actions .cg-btn {
min-height: 32px;
padding: 0 12px;
}
/* S78-T08: a stop row is one line of index, name and X. The picked up row fades and settles back
on drop through transform and opacity only, with the shared feedback timing. */
#cg-route-popover .cg-w46-stop-row {
transition: opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing),
transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing);
}
#cg-route-popover .cg-w46-stop-row.is-viewdrag {
transform: scale(0.98);
}
#cg-route-popover .cg-w46-stop-row[draggable="true"] > .cg-view-main {
cursor: grab;
}
@media (prefers-reduced-motion: reduce) {
#cg-route-popover .cg-w46-stop-row {
transition: none;
}
#cg-route-popover .cg-w46-stop-row.is-viewdrag {
transform: none;
}
}
/* S78-T08: while a stop drags, the apply block keeps its box so the list does not jump. */
#cg-route-popover .cg-w46-route-timer .is-drag-held {
visibility: hidden;
}
/* The drag figure and caption stay on one line, so the card keeps its height under the pointer. */
#cg-route-popover .cg-w46-route-timer.is-dragging .cg-w46-timer-head {
flex-wrap: nowrap;
min-width: 0;
}
#cg-route-popover .cg-w46-route-timer.is-dragging .cg-w46-timer-head > * {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The timer card holds its pre-move height (set inline) until the new drive time settles. */
#cg-route-popover .cg-w46-route-timer.is-held {
box-sizing: border-box;
overflow: hidden;
}
/* No name tip floats while a stop is in the air. */
body:has(#cg-route-popover .cg-w46-stop-row.is-viewdrag) .home-name-tip {
visibility: hidden;
}
/* S78-T09: Google's Maps mark is 16 px, decorative, and sits beside its text. */
.cg-gmaps-mark {
display: block;
flex: none;
width: 16px;
height: 16px;
}
#cg-route-popover .cg-w44-route-map-links h3.cg-gmaps-heading {
display: flex;
align-items: center;
gap: 8px;
}
/* S78-T09: a geocode slot with nothing to offer takes no flex slot, so the bar shows no doubled gap. */
.cg-map-bar > .cg-map-geo:empty {
display: none;
}
|