Add per-map editable markers and backups
This commit is contained in:
1 parent
e71447da5d
commit
bbb4cadddd
23 files changed
+11090
-129
No files matched your search
+135
-23
@@ -123,15 +123,64 @@ html, body {
|
||||
.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; }
|
||||
#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: 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; }
|
||||
#trim-editor,
|
||||
#marker-editor { padding-top: 10px; }
|
||||
#placement-editor p,
|
||||
#trim-editor p { margin: 5px 0 9px; color: var(--muted); font-size: 12px; }
|
||||
#trim-editor p,
|
||||
#marker-editor p { margin: 5px 0 9px; color: var(--muted); font-size: 12px; }
|
||||
|
||||
.coordinate-fields,
|
||||
.placement-actions {
|
||||
@@ -193,6 +242,49 @@ html, body {
|
||||
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; }
|
||||
#marker-fields { margin-top: 9px; }
|
||||
.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);
|
||||
}
|
||||
#marker-map-name,
|
||||
#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; }
|
||||
#marker-delete { background: #57292c; border-color: #8b4348; color: #ffd8d5; }
|
||||
#marker-save { background: #27513a; border-color: #3f7957; }
|
||||
#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 {
|
||||
@@ -203,21 +295,35 @@ html, body {
|
||||
|
||||
.poi-content { position: absolute; inset: 0; }
|
||||
|
||||
.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: #3d78a8;
|
||||
background: var(--marker-color, #3d78a8);
|
||||
color: white;
|
||||
font: 700 10px/1 system-ui, sans-serif;
|
||||
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;
|
||||
@@ -234,26 +340,32 @@ html, body {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.poi-label-hidden { display: none !important; }
|
||||
|
||||
#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; }
|
||||
#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; }
|
||||
|
||||
.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;
|
||||
|
||||
Reference in new issue
Block a user