309 lines
7.7 KiB
CSS
309 lines
7.7 KiB
CSS
:root {
|
|
--bg: #14161a;
|
|
--panel: #1e2229ee;
|
|
--line: #333a44;
|
|
--text: #e6e8ec;
|
|
--muted: #9aa3b0;
|
|
--accent: #7fc4a0;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
height: 100%;
|
|
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 ------------------------------------------------------- */
|
|
|
|
#panel {
|
|
position: absolute;
|
|
z-index: 1000;
|
|
top: calc(10px + env(safe-area-inset-top));
|
|
left: calc(10px + env(safe-area-inset-left));
|
|
max-width: min(260px, calc(100vw - 20px));
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
backdrop-filter: blur(6px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
#panel summary {
|
|
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::after { content: " ▾"; }
|
|
#panel:not([open]) summary::after { content: " ▸"; }
|
|
|
|
#maplist {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-top: 1px solid var(--line);
|
|
max-height: 50vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#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; }
|
|
.layer-actions button[aria-pressed="true"] { border-color: #57806a; color: var(--accent); }
|
|
.layer-actions button[aria-pressed="false"] { opacity: .65; }
|
|
.editor-mode-actions { display: flex; gap: 7px; }
|
|
.editor-mode-actions button { flex: 1; }
|
|
.editor-mode-actions button:disabled { cursor: default; opacity: .45; }
|
|
.editor-mode-actions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
|
|
|
|
#placement-editor,
|
|
#trim-editor { padding-top: 10px; }
|
|
#placement-editor p,
|
|
#trim-editor p { margin: 5px 0 9px; color: var(--muted); font-size: 12px; }
|
|
|
|
.coordinate-fields,
|
|
.placement-actions {
|
|
display: flex;
|
|
gap: 7px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* --- semantic marker layer ----------------------------------------- */
|
|
|
|
.leaflet-marker-icon.poi-icon {
|
|
overflow: visible;
|
|
border: 0;
|
|
background: none;
|
|
}
|
|
|
|
.poi-content { position: absolute; inset: 0; }
|
|
|
|
.poi-dot {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
border: 2px solid #f5f7f8;
|
|
border-radius: 50%;
|
|
background: #3d78a8;
|
|
color: white;
|
|
font: 700 10px/1 system-ui, sans-serif;
|
|
box-shadow: 0 1px 4px #000c;
|
|
}
|
|
|
|
.poi-label {
|
|
position: absolute;
|
|
left: 21px;
|
|
top: 50%;
|
|
width: max-content;
|
|
max-width: 210px;
|
|
transform: translateY(-50%);
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
background: #111820d9;
|
|
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;
|
|
}
|
|
|
|
#map:not(.marker-labels-visible) .poi-label { display: none; }
|
|
#map.marker-overview .poi-icon { opacity: .7; }
|
|
#map.marker-overview .poi-dot { inset: 3px; font-size: 0; border-width: 1px; }
|
|
.marker-extract-pmc .poi-dot { background: #39946a; }
|
|
.marker-extract-scav .poi-dot { background: #d18a32; }
|
|
.marker-extract-neutral .poi-dot { background: #4a9fa5; }
|
|
.marker-extract-hidden .poi-dot { background: #7957a6; }
|
|
.marker-transit .poi-dot { background: #406fbd; }
|
|
.marker-spawn .poi-dot { background: #4f8ac7; }
|
|
.marker-scav .poi-dot { background: #c28135; }
|
|
.marker-boss .poi-dot { background: #bd3f45; }
|
|
.marker-cultist .poi-dot { background: #7552a0; }
|
|
.marker-sniper .poi-dot,
|
|
.marker-hazard .poi-dot { background: #b43c3c; }
|
|
.marker-cache .poi-dot,
|
|
.marker-loot .poi-dot { background: #8a7140; }
|
|
.marker-key .poi-dot,
|
|
.marker-quest .poi-dot { background: #9a7830; }
|
|
.marker-location .poi-dot,
|
|
.marker-poi .poi-dot { background: #5d6876; }
|
|
|
|
.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; }
|
|
|
|
/* --- leaflet chrome --------------------------------------------------- */
|
|
|
|
.leaflet-container { background: var(--bg); font: inherit; }
|
|
|
|
.leaflet-control-zoom a {
|
|
background: var(--panel);
|
|
border-color: var(--line) !important;
|
|
color: var(--text);
|
|
}
|
|
.leaflet-control-zoom a:hover { background: #2a303a; }
|
|
|
|
.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); }
|
|
.leaflet-control-zoom { display: none; } /* pinch to zoom instead */
|
|
}
|