tools / admin /css /maps.css
Tataaicoltd's picture
feat: POI move/bulk-save + APK download page
4e2d9ce verified
Raw History Blame Contribute Delete
15.5 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
padding: 0;
margin: 0;
height: 100vh;
overflow: hidden;
}
.container {
width: 100%;
height: 100vh;
overflow: auto;
}
h1 {
display: none;
}
.gallery {
display: grid;
grid-template-columns: repeat(23, 800px);
gap: 0;
width: 100%;
opacity: 0.5;
}
.gallery-item {
background-color: white;
border-radius: 0;
overflow: hidden;
box-shadow: none;
transition: none;
}
.gallery-item:hover {
transform: none;
box-shadow: none;
}
.image-wrapper {
width: 100%;
height: 100%;
position: relative;
background-color: #e0e0e0;
}
.gallery-item img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
border-right: 0.1px solid rgba(0, 0, 0, 1);
border-bottom: 0.1px solid rgba(0, 0, 0, 1);
}
.image-info {
display: none;
}
.loading {
text-align: center;
padding: 40px;
font-size: 18px;
color: #999;
}
.error {
text-align: center;
padding: 40px;
font-size: 16px;
color: #d32f2f;
}
@media (max-width: 1200px) {
.gallery {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 768px) {
.gallery {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 480px) {
.gallery {
grid-template-columns: repeat(4, 1fr);
}
}
.coordinates {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
pointer-events: none;
z-index: 50;
}
.pointr {
position: fixed;
width: 10px;
height: 10px;
background-color: red;
border: 1px solid darkred;
border-radius: 50%;
transform: translate(-50%, -50%);
cursor: pointer;
pointer-events: auto;
z-index: 50;
}
.pointr:hover {
width: 14px;
height: 14px;
background-color: #ff4444;
}
.pointr-tooltip {
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.75);
color: #fff;
font-size: 10px;
white-space: nowrap;
padding: 2px 6px;
border-radius: 3px;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s;
}
.pointr:hover .pointr-tooltip {
opacity: 1;
}
.pointr.active {
background-color: blue;
border-color: darkblue;
width: 14px;
height: 14px;
}
.pointr.selected {
background-color: #9c27b0;
border-color: #6a0080;
width: 14px;
height: 14px;
}
.pointr.pointr-reload {
background-color: #ff9800;
border-color: #e65100;
}
.pointr.pointr-reload:hover {
background-color: #ffa726;
}
.toolbar {
position: fixed;
top: 20px;
right: 50px;
z-index: 100;
width: 700px;
height: 50px;
background-color: rgba(255, 255, 255, 0.8);
border: 0.5px solid #888;
border-radius: 4px;
padding: 8px 12px;
display: flex;
gap: 8px;
align-items: center;
}
.toolbar select,
.toolbar input {
padding: 6px 8px;
border: 1px solid #ccc;
border-radius: 3px;
font-size: 12px;
flex: 1;
}
/* Save button */
.save-btn {
padding: 8px 14px;
border: none;
border-radius: 4px;
background: linear-gradient(180deg,#2b7cff,#1a5fd6);
color: #fff;
font-weight: 600;
cursor: pointer;
box-shadow: 0 2px 6px rgba(43,124,255,0.25);
}
.save-btn:hover { filter: brightness(1.03); transform: translateY(-1px); }
.toolbar input {
background-color: white;
}
.location-marker {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 32px;
line-height: 1;
z-index: 10;
}
.location-info-card {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 8px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
opacity: 0;
transition: opacity 0.3s;
display: flex;
flex-direction: column;
justify-content: center;
}
.gallery-item:hover .location-info-card {
opacity: 1;
}
.location-info-card h3 {
font-size: 12px;
margin: 4px 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.location-info-card p {
font-size: 10px;
margin: 2px 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.location-details {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 100;
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #888;
border-radius: 4px;
padding: 12px;
font-size: 12px;
max-width: 400px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.location-details p {
margin: 6px 0;
}
/* ==================== STREET PANEL ==================== */
.street-panel-toggle {
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
z-index: 200;
width: 22px;
height: 48px;
border: 1px solid #bbb;
border-left: none;
border-radius: 0 6px 6px 0;
background: rgba(255,255,255,0.92);
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 2px 0 6px rgba(0,0,0,0.12);
padding: 0;
transition: background 0.15s;
}
.street-panel-toggle:hover { background: #e8f0fe; }
.street-panel-toggle.open { background: #d0e4ff; border-color: #2b7cff; }
.street-panel {
position: fixed;
top: 50%;
left: -240px;
transform: translateY(-50%);
z-index: 199;
width: 240px;
max-height: 70vh;
background: rgba(255,255,255,0.97);
border: 1px solid #ccc;
border-radius: 0 8px 8px 0;
box-shadow: 4px 0 16px rgba(0,0,0,0.13);
display: flex;
flex-direction: column;
transition: left 0.22s ease;
overflow: hidden;
}
.street-panel.open { left: 22px; }
.street-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 10px 6px;
border-bottom: 1px solid #eee;
flex-shrink: 0;
}
.street-panel-title {
font-size: 12px;
font-weight: 700;
color: #222;
}
.street-panel-radius {
font-size: 10px;
color: #888;
background: #f0f4ff;
border-radius: 10px;
padding: 1px 7px;
}
.street-panel-list {
overflow-y: auto;
flex: 1;
padding: 4px 0;
}
.street-panel-empty {
font-size: 11px;
color: #aaa;
text-align: center;
padding: 18px 10px;
}
.street-panel-item {
display: flex;
flex-direction: column;
padding: 6px 12px;
cursor: pointer;
border-bottom: 1px solid #f5f5f5;
transition: background 0.1s;
}
.street-panel-item:hover { background: #e8f0fe; }
.street-panel-item.active { background: #d0e4ff; }
.street-panel-item-name {
font-size: 12px;
font-weight: 600;
color: #1a3a6c;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.street-panel-item-meta {
font-size: 10px;
color: #888;
margin-top: 1px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ==================== POI MARKERS ==================== */
.poi-marker {
position: fixed;
transform: translate(-50%, -100%);
z-index: 60;
pointer-events: auto;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
}
body.mode-move .poi-marker { cursor: grab; }
body.mode-move .poi-marker.active,
body.mode-move .poi-marker:active { cursor: grabbing; }
.poi-marker-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #9C27B0;
border: 2px solid #fff;
box-shadow: 0 1px 4px rgba(0,0,0,0.4);
transition: transform 0.1s, box-shadow 0.1s;
}
.poi-marker.active .poi-marker-dot {
transform: scale(1.4);
box-shadow: 0 0 0 3px rgba(33,150,243,0.6), 0 1px 6px rgba(0,0,0,0.4);
}
.poi-marker.poi-edited .poi-marker-dot {
background: #FF9800;
box-shadow: 0 0 0 2px rgba(255,152,0,0.4), 0 1px 4px rgba(0,0,0,0.4);
}
.poi-marker.poi-edited .poi-marker-label {
background: rgba(255,152,0,0.9);
}
.poi-marker-label {
margin-top: 2px;
background: rgba(156,39,176,0.85);
color: #fff;
font-size: 9px;
padding: 1px 4px;
border-radius: 3px;
white-space: nowrap;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
}
/* ==================== SEARCH ==================== */
.search-btn {
position: fixed;
top: 16px;
left: 16px;
z-index: 200;
width: 20px;
height: 20px;
border-radius: 4px;
border: 1px solid #aaa;
background: rgba(255, 255, 255, 0.92);
font-size: 11px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.18);
padding: 0;
line-height: 1;
}
.search-btn:hover { background: #e8e8e8; }
.search-modal {
position: fixed;
top: 44px;
left: 16px;
z-index: 200;
}
.search-modal-content {
background: #fff;
border: 1px solid #ccc;
border-radius: 6px;
padding: 12px 14px;
min-width: 280px;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
display: flex;
flex-direction: column;
gap: 8px;
}
.search-modal-title {
font-size: 12px;
font-weight: bold;
color: #222;
}
.search-row {
display: flex;
gap: 6px;
}
.search-input {
flex: 1;
padding: 5px 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 12px;
outline: none;
min-width: 0;
}
.search-input:focus { border-color: #2196F3; }
.search-submit {
padding: 5px 14px;
border: none;
border-radius: 4px;
background: #2196F3;
color: #fff;
font-size: 12px;
cursor: pointer;
align-self: flex-end;
}
.search-submit:hover { background: #1976D2; }
.search-submit:disabled { background: #90CAF9; cursor: default; }
.search-result {
font-size: 11px;
color: #333;
max-height: 200px;
overflow-y: auto;
}
.search-result .sr-label { font-weight: bold; margin-bottom: 4px; }
.search-result .sr-tts { background: #f1f8e9; border-left: 3px solid #8bc34a; padding: 6px 8px; margin-bottom: 6px; font-size: 11px; line-height: 1.5; color: #33691e; border-radius: 0 4px 4px 0; }
.search-result .sr-warning { color: #e65100; font-size: 11px; }
.search-result .sr-message { color: #555; font-size: 11px; margin-bottom: 4px; }
.search-result .sr-point {
display: grid;
grid-template-columns: 52px 1fr;
grid-template-rows: auto auto;
column-gap: 4px;
padding: 3px 0;
border-bottom: 1px solid #f0f0f0;
font-size: 11px;
}
.search-result .sr-step { grid-row: 1 / 3; align-self: center; color: #2196F3; font-weight: bold; font-size: 10px; }
.search-result .sr-streets { color: #333; }
.search-result .sr-coords { color: #999; font-size: 10px; }
/* ==================== SETTINGS ==================== */
.settings-btn {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 200;
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid #aaa;
background: rgba(255, 255, 255, 0.9);
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
transition: background 0.2s;
}
.settings-btn:hover {
background: #f0f0f0;
}
.settings-panel {
position: fixed;
bottom: 64px;
left: 20px;
z-index: 200;
background: #fff;
border: 1px solid #ccc;
border-radius: 6px;
padding: 14px 16px;
min-width: 180px;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
display: none;
flex-direction: column;
gap: 10px;
}
.settings-panel.open {
display: flex;
}
.settings-title {
font-size: 13px;
font-weight: bold;
color: #222;
margin-bottom: 2px;
}
.settings-label {
display: flex;
flex-direction: column;
gap: 3px;
font-size: 12px;
color: #444;
}
.settings-label input[type="number"] {
padding: 5px 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 13px;
outline: none;
width: 100%;
}
.settings-label--row {
flex-direction: row;
align-items: center;
gap: 8px;
}
.settings-save {
padding: 6px 14px;
border: none;
border-radius: 4px;
background: #333;
color: #fff;
font-size: 13px;
cursor: pointer;
align-self: flex-end;
}
.settings-save:hover {
background: #111;
}
/* ==================== EDITOR MODES ==================== */
body.mode-create .gallery,
body.mode-create .gallery * { cursor: crosshair; }
body.mode-move .pointr { cursor: grab; }
body.mode-move .pointr.active { cursor: grabbing; }
/* ==================== POINTR SUB-MENU ==================== */
.pointr-submenu {
position: fixed;
z-index: 150;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
min-width: 130px;
padding: 4px 0;
pointer-events: auto;
}
.pointr-submenu button {
background: none;
border: none;
padding: 7px 14px;
text-align: left;
font-size: 12px;
cursor: pointer;
color: #333;
white-space: nowrap;
}
.pointr-submenu button:hover { background: #f0f0f0; }
.pointr-submenu .btn-danger { color: #d32f2f; }
.pointr-submenu .btn-danger:hover { background: #fdecea; }
/* ==================== MODAL BOOL OPTIONS ==================== */
.bool-options {
display: flex;
gap: 24px;
padding: 8px 0;
}
.radio-label {
display: flex;
flex-direction: row !important;
align-items: center;
gap: 6px;
font-size: 13px;
cursor: pointer;
}
.radio-label input[type="radio"] { cursor: pointer; margin: 0; }
/* ==================== MODAL ==================== */
.modal {
display: none;
position: fixed;
inset: 0;
z-index: 200;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: #fff;
border-radius: 6px;
padding: 24px 28px;
min-width: 320px;
max-width: 440px;
width: 100%;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.modal-content h2 {
font-size: 16px;
margin-bottom: 12px;
color: #222;
}
.modal-context {
font-size: 12px;
color: #555;
margin-bottom: 16px;
}
.modal-content form {
display: flex;
flex-direction: column;
gap: 14px;
}
.modal-content label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 13px;
color: #444;
}
.modal-content input[type="text"] {
padding: 8px 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 13px;
outline: none;
}
.modal-content input[type="text"]:focus {
border-color: #555;
}
.required {
color: #d32f2f;
}
.modal-error {
font-size: 12px;
color: #d32f2f;
min-height: 16px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 4px;
}
.btn-cancel {
padding: 7px 16px;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
font-size: 13px;
cursor: pointer;
}
.btn-cancel:hover {
background: #f0f0f0;
}
.btn-submit {
padding: 7px 18px;
border: none;
border-radius: 4px;
background: #333;
color: #fff;
font-size: 13px;
cursor: pointer;
}
.btn-submit:hover {
background: #111;
}