style.css uses non-ASCII glyphs in CSS content (panel arrow, pin). Without a declared encoding the browser can fall back to Latin-1 for the stylesheet and render them as mojibake, which happened once in the preview. @charset at the top of style.css fixes it everywhere; serve.py also sends charset=utf-8 for html/css/js/json. Co-Authored-By: Claude Fable 5 <[email protected]>
659 lines
17 KiB
CSS
659 lines
17 KiB
CSS
@charset "UTF-8";
|
|
:root {
|
|
--bg: #14161a;
|
|
--panel: #1e2229ee;
|
|
--line: #333a44;
|
|
--text: #e6e8ec;
|
|
--muted: #9aa3b0;
|
|
--accent: #7fc4a0;
|
|
}
|
|
|
|
[hidden] { display: none !important; }
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
height: 100%;
|
|
overflow: hidden; /* the map owns the page; only #panel scrolls */
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
#map {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--bg);
|
|
}
|
|
|
|
#boot {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* --- map picker ------------------------------------------------------- */
|
|
|
|
#map-toolbar {
|
|
position: absolute;
|
|
z-index: 1000;
|
|
top: calc(10px + env(safe-area-inset-top));
|
|
left: calc(10px + env(safe-area-inset-left));
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
#panel {
|
|
position: relative;
|
|
max-width: min(260px, calc(100vw - 20px));
|
|
/* Tall editor sections scroll inside the panel; the page itself never grows. */
|
|
max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #4a5360 transparent;
|
|
}
|
|
|
|
#panel summary {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-width: 150px;
|
|
background: #1e2229;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
letter-spacing: .04em;
|
|
text-transform: uppercase;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
user-select: none;
|
|
list-style: none;
|
|
}
|
|
#panel summary::-webkit-details-marker { display: none; }
|
|
#panel summary:hover .panel-title { color: var(--text); }
|
|
.panel-title::after { content: " ▾"; }
|
|
#panel:not([open]) .panel-title::after { content: " ▸"; }
|
|
/* Pin status: the header itself is the pin toggle. */
|
|
#panel-pin {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: .04em;
|
|
color: #6f7986;
|
|
}
|
|
#panel-pin::before { content: "📌 "; font-size: 10px; filter: grayscale(1); opacity: .5; }
|
|
#panel[data-pinned="true"] #panel-pin { color: var(--accent); }
|
|
#panel[data-pinned="true"] #panel-pin::before { filter: none; opacity: 1; }
|
|
|
|
/* Overview lives in the list as its permanent first entry. */
|
|
#maplist #overview-map {
|
|
border-bottom: 1px solid var(--line);
|
|
font-weight: 600;
|
|
letter-spacing: .03em;
|
|
}
|
|
|
|
/* --- marker size slider (top right) ---------------------------------- */
|
|
|
|
#marker-scale-control {
|
|
position: absolute;
|
|
z-index: 1000;
|
|
top: calc(10px + env(safe-area-inset-top));
|
|
right: calc(10px + env(safe-area-inset-right));
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 42px;
|
|
padding: 0 10px 0 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel);
|
|
color: var(--muted);
|
|
font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
letter-spacing: .04em;
|
|
text-transform: uppercase;
|
|
user-select: none;
|
|
}
|
|
#marker-scale-control input {
|
|
width: 110px;
|
|
margin: 0;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
#marker-scale-value {
|
|
all: unset;
|
|
min-width: 40px;
|
|
text-align: right;
|
|
color: var(--text);
|
|
font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
font-variant-numeric: tabular-nums;
|
|
cursor: pointer;
|
|
}
|
|
#marker-scale-value:hover,
|
|
#marker-scale-value:focus-visible { color: var(--accent); }
|
|
|
|
#maplist {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
#maplist button {
|
|
all: unset;
|
|
padding: 11px 14px;
|
|
min-height: 44px; /* touch target */
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
border-bottom: 1px solid #ffffff0f;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
#maplist button:last-child { border-bottom: 0; }
|
|
#maplist button:hover,
|
|
#maplist button:focus-visible { background: #ffffff12; }
|
|
#maplist button[aria-current="true"] { color: var(--accent); }
|
|
#maplist button[aria-current="true"]::before { content: "●"; font-size: 9px; }
|
|
#maplist button:not([aria-current="true"])::before { content: "○"; font-size: 9px; color: var(--muted); }
|
|
#maplist button[data-selected="true"] { background: #ffffff12; }
|
|
#maplist button[data-sub-map="true"] {
|
|
min-height: 40px;
|
|
padding-left: 34px;
|
|
color: #c7cdd5;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* --- interactive placement editor ---------------------------------- */
|
|
|
|
#placement-tools {
|
|
border-top: 1px solid var(--line);
|
|
padding: 10px;
|
|
}
|
|
|
|
#placement-tools button,
|
|
#placement-tools input {
|
|
font: inherit;
|
|
}
|
|
|
|
.layer-actions button,
|
|
.editor-mode-actions button,
|
|
.placement-actions button {
|
|
min-height: 38px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 5px;
|
|
color: var(--text);
|
|
background: #2a3038;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.layer-actions { margin-bottom: 7px; }
|
|
.layer-actions button { width: 100%; min-height: 38px; }
|
|
#quality-toggle { margin-top: 7px; color: var(--muted); font-size: 12px; }
|
|
#quality-toggle:hover, #quality-toggle:focus-visible { color: var(--text); }
|
|
.layer-actions button[aria-pressed="true"] { border-color: #57806a; color: var(--accent); }
|
|
.layer-actions button[aria-pressed="false"] { opacity: .65; }
|
|
#marker-settings {
|
|
margin-top: 7px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 5px;
|
|
background: #171b20;
|
|
}
|
|
#marker-settings > summary {
|
|
padding: 8px 10px;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
#marker-categories {
|
|
max-height: 32vh;
|
|
padding: 0 9px 8px;
|
|
overflow-y: auto;
|
|
}
|
|
#marker-categories fieldset { margin: 7px 0 0; padding: 3px 0 0; border: 0; }
|
|
#marker-categories legend {
|
|
color: var(--muted);
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: .06em;
|
|
text-transform: uppercase;
|
|
}
|
|
#marker-categories label {
|
|
display: grid;
|
|
grid-template-columns: 18px 22px 1fr;
|
|
align-items: center;
|
|
gap: 5px;
|
|
min-height: 29px;
|
|
color: #d5d9df;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
}
|
|
#marker-categories input { accent-color: var(--accent); }
|
|
.marker-category-swatch {
|
|
display: grid;
|
|
width: 19px;
|
|
height: 19px;
|
|
place-items: center;
|
|
border: 1px solid #fff9;
|
|
border-radius: 50%;
|
|
color: white;
|
|
font-size: 10px;
|
|
line-height: 1;
|
|
}
|
|
.editor-mode-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
|
|
.editor-mode-actions button { width: 100%; }
|
|
.editor-mode-actions button:disabled { cursor: default; opacity: .45; }
|
|
.editor-mode-actions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
|
|
.editor-mode-actions[data-marker-only="true"] #edit-markers { grid-column: 1 / -1; }
|
|
#export-status { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
|
|
#export-status[data-error="true"] { color: #ff8b8b; }
|
|
|
|
#placement-editor,
|
|
#trim-editor,
|
|
#marker-editor { padding-top: 10px; }
|
|
#placement-editor p,
|
|
#trim-editor p,
|
|
#marker-editor p { margin: 5px 0 9px; color: var(--muted); font-size: 12px; }
|
|
|
|
.coordinate-fields,
|
|
.placement-actions,
|
|
.marker-editor-actions {
|
|
display: flex;
|
|
gap: 7px;
|
|
}
|
|
|
|
.marker-editor-actions button { flex: 1; }
|
|
|
|
.coordinate-fields label { flex: 1; color: var(--muted); font-size: 11px; }
|
|
.coordinate-fields input {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 3px;
|
|
padding: 6px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: #14171c;
|
|
color: var(--text);
|
|
}
|
|
|
|
.size-fields { margin-top: 7px; }
|
|
#placement-aspect {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.placement-actions { margin-top: 8px; }
|
|
.placement-actions button { flex: 1; padding: 6px 8px; }
|
|
#placement-save { background: #27513a; border-color: #3f7957; }
|
|
#placement-status { display: block; min-height: 17px; margin-top: 7px; color: var(--muted); font-size: 11px; }
|
|
#placement-status[data-error="true"] { color: #ff9b94; }
|
|
|
|
.transparency-field {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 3px 8px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
.transparency-field input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
|
|
#trim-point-count,
|
|
#trim-status {
|
|
display: block;
|
|
min-height: 17px;
|
|
margin-top: 7px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
#trim-status[data-error="true"] { color: #ff9b94; }
|
|
#trim-save {
|
|
width: 100%;
|
|
min-height: 38px;
|
|
margin-top: 8px;
|
|
border: 1px solid #3f7957;
|
|
border-radius: 5px;
|
|
background: #27513a;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
}
|
|
|
|
#marker-drop {
|
|
width: 100%;
|
|
min-height: 38px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 5px;
|
|
background: #2a3038;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
}
|
|
#marker-drop[aria-pressed="true"] { border-color: #ffcf4a; color: #ffcf4a; }
|
|
|
|
/* --- inline marker edit box (popup anchored to the marker) --------- */
|
|
|
|
.marker-edit-popup .leaflet-popup-content-wrapper {
|
|
padding: 0;
|
|
border: 1px solid #5a6470;
|
|
border-radius: 7px;
|
|
background: #1a1f26f5;
|
|
color: var(--text);
|
|
box-shadow: 0 6px 22px #000b;
|
|
}
|
|
.marker-edit-popup .leaflet-popup-content { margin: 0; line-height: 1.4; }
|
|
.marker-edit-popup .leaflet-popup-tip {
|
|
background: #1a1f26f5;
|
|
box-shadow: 0 3px 8px #0008;
|
|
}
|
|
.marker-edit-box { padding: 9px 11px 8px; }
|
|
.marker-edit-box .marker-field:first-child { margin-top: 0; }
|
|
.marker-field {
|
|
display: block;
|
|
margin-top: 7px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
.marker-field input,
|
|
.marker-field select {
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 3px;
|
|
padding: 7px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: #14171c;
|
|
color: var(--text);
|
|
font: 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
}
|
|
.marker-field input:focus-visible,
|
|
.marker-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
|
|
.marker-edit-box-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
.marker-edit-box-map { flex: 1; color: var(--muted); font-size: 11px; }
|
|
.marker-edit-box-delete {
|
|
min-height: 28px;
|
|
padding: 0 10px;
|
|
border: 1px solid #8b4348;
|
|
border-radius: 5px;
|
|
background: #57292c;
|
|
color: #ffd8d5;
|
|
font: 12px system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
cursor: pointer;
|
|
}
|
|
.marker-edit-box-delete:disabled { cursor: default; opacity: .5; }
|
|
.marker-edit-box-hint { margin: 7px 0 0; color: #6f7986; font-size: 10px; }
|
|
#marker-edit-status {
|
|
display: block;
|
|
min-height: 17px;
|
|
margin-top: 7px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
#marker-edit-status[data-error="true"] { color: #ff9b94; }
|
|
|
|
/* --- right-click "add marker" menu ---------------------------------- */
|
|
|
|
#marker-context-menu {
|
|
position: fixed;
|
|
z-index: 1200;
|
|
min-width: 200px;
|
|
max-width: 260px;
|
|
max-height: calc(100dvh - 16px);
|
|
padding: 4px 0;
|
|
border: 1px solid #5a6470;
|
|
border-radius: 7px;
|
|
background: #1a1f26f8;
|
|
color: var(--text);
|
|
box-shadow: 0 8px 26px #000c;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
user-select: none;
|
|
}
|
|
#marker-context-menu .context-menu-header {
|
|
padding: 6px 12px 5px;
|
|
border-bottom: 1px solid var(--line);
|
|
color: var(--text);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: .03em;
|
|
}
|
|
#marker-context-menu .context-menu-group {
|
|
padding: 7px 12px 2px;
|
|
color: var(--muted);
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: .06em;
|
|
text-transform: uppercase;
|
|
}
|
|
#marker-context-menu button {
|
|
all: unset;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
min-height: 30px;
|
|
padding: 3px 12px;
|
|
color: #d5d9df;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
#marker-context-menu button:hover,
|
|
#marker-context-menu button:focus-visible { background: #ffffff14; color: var(--text); }
|
|
#map.marker-editing .poi-icon { cursor: grab; }
|
|
#map.marker-editing .poi-icon:active { cursor: grabbing; }
|
|
#map.marker-dropping { cursor: crosshair; }
|
|
|
|
/* --- semantic marker layer ----------------------------------------- */
|
|
|
|
.leaflet-marker-icon.poi-icon {
|
|
overflow: visible;
|
|
border: 0;
|
|
background: none;
|
|
}
|
|
|
|
.poi-content {
|
|
position: absolute;
|
|
inset: 0;
|
|
/* The size slider: one transform per marker, no icon rebuilds. */
|
|
transform: scale(var(--marker-scale, 1));
|
|
transform-origin: 50% 50%;
|
|
}
|
|
|
|
.poi-leader {
|
|
position: absolute;
|
|
z-index: 1;
|
|
display: none;
|
|
height: 2px;
|
|
border-radius: 2px;
|
|
background: #eef3f6e6;
|
|
box-shadow: 0 0 0 1px #10161dcc, 0 1px 3px #000b;
|
|
pointer-events: none;
|
|
transform-origin: 0 50%;
|
|
}
|
|
|
|
.poi-dot {
|
|
position: absolute;
|
|
z-index: 3;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
border: 2px solid #f5f7f8;
|
|
border-radius: 50%;
|
|
background: var(--marker-color, #3d78a8);
|
|
color: white;
|
|
font: 700 clamp(8px, calc(var(--marker-size, 18px) * .55), 15px)/1 system-ui, sans-serif;
|
|
box-shadow: 0 1px 4px #000c;
|
|
}
|
|
|
|
.poi-label {
|
|
position: absolute;
|
|
z-index: 2;
|
|
left: 21px;
|
|
top: 50%;
|
|
width: max-content;
|
|
max-width: 210px;
|
|
transform: translateY(-50%);
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
background: #111820d9;
|
|
color: var(--marker-text-color, #f5f7f8);
|
|
font: 600 11px/1.25 system-ui, sans-serif;
|
|
letter-spacing: .01em;
|
|
text-shadow: 0 1px 2px #000;
|
|
box-shadow: 0 1px 3px #0008;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.poi-label-hidden { display: none !important; }
|
|
|
|
#map:not(.marker-labels-visible) .poi-label { display: none; }
|
|
#map.marker-extract-labels-visible .marker-extract .poi-label { display: block; }
|
|
#map.marker-overview .poi-icon:not(.marker-extract) { opacity: .7; }
|
|
#map.marker-overview .poi-icon:not(.marker-extract) .poi-dot {
|
|
inset: 3px;
|
|
font-size: 0;
|
|
border-width: 1px;
|
|
}
|
|
.marker-extract .poi-dot {
|
|
border-width: 3px;
|
|
box-shadow: 0 0 0 2px #10161cd9, 0 2px 8px #000e;
|
|
}
|
|
.marker-extract .poi-label { font-size: 12px; font-weight: 750; }
|
|
|
|
/* Location names are fixed cartographic labels, not movable marker tags. */
|
|
.marker-location .poi-dot { display: none; }
|
|
.marker-location .poi-leader { display: none !important; }
|
|
.marker-location .poi-label {
|
|
left: 50%;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: #ddd9cd;
|
|
font: italic 650 12px/1.1 "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
text-shadow: 0 1px 2px #000, 0 0 5px #000e;
|
|
box-shadow: none;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.poi-tooltip {
|
|
padding: 6px 8px;
|
|
border: 1px solid #5a6470;
|
|
background: #12171deF;
|
|
color: var(--text);
|
|
box-shadow: 0 3px 10px #000a;
|
|
}
|
|
.poi-tooltip::before { border-top-color: #5a6470 !important; }
|
|
.poi-tooltip strong { display: block; font-size: 12px; }
|
|
.poi-tooltip span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
|
|
|
|
.trim-vertex {
|
|
width: 14px !important;
|
|
height: 14px !important;
|
|
margin: -7px 0 0 -7px !important;
|
|
border: 2px solid #ffcf4a;
|
|
border-radius: 50%;
|
|
background: #18202a;
|
|
box-shadow: 0 0 0 2px #111a;
|
|
}
|
|
|
|
.placement-anchor {
|
|
width: 28px !important;
|
|
height: 28px !important;
|
|
margin: -14px 0 0 -14px !important;
|
|
border: 2px solid #ffe66d;
|
|
border-radius: 50%;
|
|
background: #111a;
|
|
box-shadow: 0 0 0 2px #111a;
|
|
}
|
|
.placement-anchor::before,
|
|
.placement-anchor::after {
|
|
content: "";
|
|
position: absolute;
|
|
background: #ffe66d;
|
|
}
|
|
.placement-anchor::before { left: 12px; top: -7px; width: 2px; height: 38px; }
|
|
.placement-anchor::after { left: -7px; top: 12px; width: 38px; height: 2px; }
|
|
|
|
/* --- tiles -------------------------------------------------------------- */
|
|
|
|
/* Low-res underlay per detail map: shown while its full-res layer loads,
|
|
* faded out once every visible tile is in (see app.js). */
|
|
.tile-preview { transition: opacity .3s ease; }
|
|
|
|
/* --- leaflet chrome --------------------------------------------------- */
|
|
|
|
.leaflet-container { background: var(--bg); font: inherit; }
|
|
|
|
/* Zoom buttons: same look as the toolbar buttons, and -- like them -- plain
|
|
* non-draggable controls (Leaflet renders <a href="#">, see app.js). */
|
|
.leaflet-bar {
|
|
border: 0 !important;
|
|
border-radius: 8px;
|
|
box-shadow: none !important;
|
|
}
|
|
.leaflet-control-zoom a,
|
|
.leaflet-touch .leaflet-control-zoom a {
|
|
width: 42px;
|
|
height: 42px;
|
|
line-height: 40px;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line) !important;
|
|
color: var(--muted);
|
|
-webkit-user-drag: none;
|
|
user-select: none;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
.leaflet-control-zoom a + a { border-top: 0 !important; }
|
|
.leaflet-control-zoom-in { border-radius: 8px 8px 0 0 !important; }
|
|
.leaflet-control-zoom-out { border-radius: 0 0 8px 8px !important; }
|
|
.leaflet-control-zoom a:hover,
|
|
.leaflet-control-zoom a:focus-visible { background: #2a303a; color: var(--text); }
|
|
|
|
.leaflet-control-attribution {
|
|
background: var(--panel) !important;
|
|
color: var(--muted);
|
|
padding: 3px 8px;
|
|
font-size: 11px;
|
|
}
|
|
.leaflet-control-attribution a { color: var(--accent); }
|
|
|
|
@media (max-width: 640px) {
|
|
#panel {
|
|
max-width: calc(100vw - 20px);
|
|
/* Stop above the marker slider that sits in the bottom-left corner. */
|
|
max-height: calc(100dvh - 90px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
|
}
|
|
.leaflet-control-zoom { display: none; } /* pinch to zoom instead */
|
|
/* The toolbar owns the whole top edge on a phone; the slider moves to the
|
|
* free bottom-left corner (the attribution keeps bottom-right). */
|
|
#marker-scale-control {
|
|
top: auto;
|
|
right: auto;
|
|
bottom: calc(34px + env(safe-area-inset-bottom)); /* clear the attribution bar */
|
|
left: calc(10px + env(safe-area-inset-left));
|
|
min-height: 36px;
|
|
}
|
|
#marker-scale-control input { width: 90px; }
|
|
}
|