Find a city: a search box in the HUD and on / that jumps the map there (closes #218)
This commit is contained in:
parent
d50fc201bb
commit
7756d89d41
15 changed files with 162 additions and 0 deletions
|
|
@ -29,3 +29,5 @@
|
|||
.minibar{height:6px;border-radius:4px;background:var(--line);overflow:hidden;margin-top:2px;width:100%}
|
||||
.minibar i{display:block;height:100%;background:var(--ok)}
|
||||
|
||||
/* Find a city: a square chip with just the magnifier. */
|
||||
#hud .chip.find{justify-content:center;align-items:center;padding:0;width:44px;min-width:44px;font-size:19px;cursor:pointer}
|
||||
|
|
|
|||
|
|
@ -196,3 +196,9 @@ h2 .rn{font-size:18px;vertical-align:middle;padding:2px 4px}
|
|||
.menu-links .lnk{background:none;border:0;padding:4px 2px;font-weight:700;font-size:14px;font-family:inherit;color:var(--ink2);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
|
||||
.menu-plugs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
|
||||
.mplug{border:2px solid var(--line);border-radius:12px;padding:8px 10px;font-weight:700;font-size:13px;line-height:1.25;color:var(--ink);text-decoration:none;background:var(--soft);display:flex;align-items:center}
|
||||
/* Find a city: big tap targets, the first result (what Enter picks) highlighted. */
|
||||
.findlist{margin-top:8px}
|
||||
.findrow{width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);font:inherit;color:var(--ink);min-height:48px;padding:6px 8px;cursor:pointer;border-radius:0}
|
||||
.findrow .nm,.findrow .meta{display:block}
|
||||
.findrow.on{background:var(--soft);border-radius:10px}
|
||||
.findrow:hover{background:var(--soft)}
|
||||
|
|
|
|||
|
|
@ -36,3 +36,8 @@
|
|||
.chip{padding:2px 7px}
|
||||
}
|
||||
|
||||
/* Narrow tablets: a slim find chip and slimmer speed buttons keep the HUD on one row. */
|
||||
@media (min-width:761px) and (max-width:860px){
|
||||
#hud .chip.find{width:32px;min-width:32px;font-size:15px}
|
||||
.speed button{min-width:23px;padding-left:2px;padding-right:2px}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,3 +119,5 @@ button,.chip,.b,a{touch-action:manipulation;-webkit-tap-highlight-color:transpar
|
|||
}
|
||||
@media (prefers-reduced-motion:reduce){:root:not(.anim-force) *{animation:none !important;transition:none !important}}
|
||||
:root.no-anim *{animation:none !important;transition:none !important}
|
||||
/* The narrowest phones: a slimmer find chip so the date still fits. */
|
||||
@media (max-width:340px){#hud .chip.find{width:34px;min-width:34px;font-size:15px}#hud .menubtn .caret{display:none}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue