diff --git a/html/map.ejs b/html/map.ejs index 5cae6d29..483500e2 100644 --- a/html/map.ejs +++ b/html/map.ejs @@ -22,12 +22,14 @@ .search{position:relative;flex:1;min-width:0} .search input{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:#fff;outline:none} .search input:focus{border-color:#444;box-shadow:0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent)} - .suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:42vh;overflow:auto;margin:0;padding:6px 0;list-style:none;border:1px solid var(--border);border-radius:12px;background:var(--surface);display:none} + .suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:42vh;overflow:auto;margin:0;padding:30px 0 6px;list-style:none;border:1px solid var(--border);border-radius:12px;background:var(--surface);display:none} .suggest li{padding:10px 12px;cursor:pointer;border-top:1px solid #111;display:flex;gap:8px;align-items:center} .suggest li:first-child{border-top:none} .suggest li.active{background:#141414} .suggest .pill{font-size:11px;border:1px solid #333;border-radius:999px;padding:2px 6px;opacity:.85} .suggest mark{background:transparent;color:var(--accent);font-weight:600} + .suggest .closer{position:sticky;top:0;display:flex;justify-content:flex-end;padding:6px;border-bottom:1px solid #111;background:linear-gradient(#0b0b0b, #0b0b0b)} + .suggest .closer button{border:1px solid #444;background:#161616;color:#fff;border-radius:10px;padding:6px 8px;cursor:pointer} .iconbtn{border:0;border-radius:10px;background:#222;color:#fff;padding:10px 12px;min-width:44px} .mapwrap{position:relative;height:calc(var(--vh) - 56px);overflow:hidden} iframe#map{position:absolute;inset:0;border:0;width:100%;height:100%} @@ -67,14 +69,30 @@ .settings input[type="color"]{width:42px;height:32px;border:0;background:none} .settings textarea{width:100%;min-height:120px;border-radius:10px;border:1px solid var(--border);background:#0a0a0a;color:#eee;padding:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace} .settings .about{font-size:13px;opacity:.92;line-height:1.5} - .desktop .bar{grid-column:2} - .desktop .app{grid-template-columns:320px 1fr;grid-template-rows:auto 1fr} - .desktop .sidebar{position:fixed;left:0;top:0;bottom:0;width:320px;background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;gap:10px;padding:12px;z-index:9} - .desktop .sidegroup{border:1px solid #222;border-radius:12px;overflow:hidden} - .desktop .sidegroup header{padding:10px 12px;border-bottom:1px solid #222;font-weight:600} - .desktop .sidegroup .row{display:flex;gap:8px;align-items:center;padding:8px 12px;border-top:1px solid #111} + + /* Desktop+Simplified layout */ + .desktop .app{grid-template-columns:auto 1fr;grid-template-rows:auto 1fr} + .desktop .left{position:fixed;left:0;top:0;bottom:0;width:320px;display:flex;flex-direction:column;background:var(--panel);border-right:1px solid var(--border);z-index:9;transition:width .2s ease} + .desktop .left .left-head{display:flex;align-items:center;gap:8px;padding:10px;border-bottom:1px solid #222} + .desktop .left .left-head strong{flex:1} + .desktop .left .group{border-bottom:1px solid #111;padding:10px} + .desktop .left .group h4{margin:0 0 6px 0;font-size:13px;opacity:.9} + .desktop .left .row{display:flex;gap:8px;align-items:center;margin:6px 0} + .desktop .left .row .select,.desktop .left .row .iconbtn{flex:1} + .desktop .left .mini{width:64px} + .desktop .left.mini .label-hide{display:none} + .desktop .left.mini .group{padding:10px 6px} + .desktop .left.mini .left-head strong{display:none} + .desktop .bar{grid-column:2;gap:10px} .desktop .mapwrap{grid-column:2} .desktop .menu,.desktop .pins,.desktop .settings{display:none !important} + + /* Pro mode density */ + body.pro .left{width:360px} + body.pro .suggest{max-height:60vh} + body.pro .bar{padding:6px var(--pad)} + body.pro .search input{padding:10px 12px} + @media (min-width:768px){ .bar{padding:10px 14px} .brand{font-size:20px} } @media (prefers-reduced-motion:reduce){ *{animation:none !important;transition:none !important} } @@ -86,7 +104,9 @@
-What is this? PokeMaps Public Beta is a lightweight viewer for exploring and sharing map positions with quick pin management. It focuses on speed, privacy-friendly defaults, and portability of links.
-Map credits: © OpenStreetMap.org contributors. Tiles/data from the OSM community. Powered by openstreetmap.org.
Important disclaimer: Geographic names, boundaries, labels, and depictions may be incomplete, outdated, or disputed. Displayed borders and place names are for reference only and must not be interpreted as statements of recognition or endorsement. The map does not reflect the politics of the Poke project nor the opinions of its contributors. Always verify critical details independently.
Privacy & usage: If you enable location, your browser may share approximate GPS/Wi-Fi data with the page via standard Web APIs. Search uses public OSM services (subject to their policies and rate limits).
Interoperability: A convenience action is provided to open the same view in Google Maps for satellite imagery. This is not recommended and may have different data policies.
-