Add foldable pathfinding panel and richer ETA tooltips
This commit is contained in:
1 parent
401dad3170
commit
e7940ae0cb
6 files changed
+1063
-3
No files matched your search
@@ -136,6 +136,134 @@ a:hover{
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
#directionsPanel{
|
||||
max-width: min(360px, 92vw);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
transition: transform 400ms cubic-bezier(0.445, 0.050, 0.550, 0.950);
|
||||
}
|
||||
|
||||
#directionsContents{
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
#directionsHeader{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-variation-settings: "wght" 600;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
#directionsHeaderRight{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
#directionsBody{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.directionToggle{
|
||||
padding: 8px;
|
||||
height: var(--legendButtonSize);
|
||||
width: var(--legendButtonSize);
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
margin-left: 0px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#directionsStops{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
#directionsControls{
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
#directionsOptions{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#directionsOptions label{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
#directionsOptions input{
|
||||
width: 72px;
|
||||
}
|
||||
|
||||
#directionsSummary{
|
||||
margin-top: 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.directionRow{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.directionBadge{
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 999px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 11px;
|
||||
font-variation-settings: "wght" 700;
|
||||
color: #0b0f1a;
|
||||
}
|
||||
|
||||
.directionInput{
|
||||
flex: 1;
|
||||
background: #111827;
|
||||
color: #e9e9e9;
|
||||
border: 1px solid #374151;
|
||||
border-radius: 4px;
|
||||
padding: 3px 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.directionInput::placeholder{
|
||||
color: #9aa0a6;
|
||||
}
|
||||
|
||||
.directionButton{
|
||||
border: 1px solid #374151;
|
||||
background: #1f2937;
|
||||
color: #e9e9e9;
|
||||
border-radius: 4px;
|
||||
padding: 2px 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.directionButton.active{
|
||||
border-color: #e79830;
|
||||
color: #31281b;
|
||||
background: #e79830;
|
||||
}
|
||||
|
||||
.directionButton:disabled{
|
||||
opacity: 0.45;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
#redrawTrigger{
|
||||
transition: background-color 800ms;
|
||||
display: inline-block;
|
||||
@@ -266,4 +394,4 @@ button{
|
||||
padding-bottom: 4px;
|
||||
opacity: 0.7;
|
||||
border-bottom: 2px solid #b3b3b396;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user