spotnotes.app/static/assets/css/map.css

136 lines
2.8 KiB
CSS
Raw Normal View History

2026-05-12 23:58:18 +00:00
/* Map Container */
#map {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
/* Map Crosshair */
#map-crosshair {
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 900;
}
#map-crosshair::before, #map-crosshair::after {
content: '';
position: absolute;
background: rgba(0,0,0,0.6);
}
#map-crosshair::before { top: 9px; left: 0; width: 20px; height: 2px; }
#map-crosshair::after { top: 0; left: 9px; width: 2px; height: 20px; }
/* Map Note Card (Zoomed In) */
.map-note-card {
background: transparent;
2026-05-12 23:58:18 +00:00
border-radius: 4px;
box-shadow: var(--shadow-md);
2026-05-12 23:58:18 +00:00
width: 200px;
font-size: 0.85rem;
white-space: normal;
user-select: none;
}
/* Move Leaflet controls down so they aren't covered by the navbar */
.leaflet-top {
top: 50px; /* Matches navbar height */
}
@media (max-width: 600px) {
.leaflet-top {
top: 110px; /* Matches mobile navbar height */
}
}
/* Note Buttons */
.btn-note-share {
background-color: #6bbbf7; /* Blue */
color: black;
border: none;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
margin-top: 5px;
margin-right: 5px;
}
.btn-note-report {
background-color: #ffcccc; /* Light red */
color: black;
border: none;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
margin-top: 5px;
}
.btn-note-delete {
background-color: #ffcccc; /* Light red */
color: black;
border: none;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
margin-top: 5px;
}
.btn-note-edit {
background-color: #cce5ff; /* Light blue */
color: black;
border: none;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
margin-top: 5px;
margin-right: 5px;
2026-06-02 04:22:59 +00:00
}
.custom-div-icon {
background: transparent;
border: none;
}
/* Custom Leaflet Popup Overrides */
.leaflet-popup-content-wrapper {
padding: 0 !important;
overflow: hidden;
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
background: var(--bg-card);
border: 1px solid var(--border);
}
.leaflet-popup-content {
margin: 0 !important;
width: 240px !important;
font-family: var(--font-sans);
}
.popup-note-card {
display: flex;
flex-direction: column;
}
.popup-note-header {
font-family: var(--font-sans);
text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.popup-note-body {
padding: 12px 14px;
font-size: 0.85rem;
color: var(--text-main);
background-color: var(--bg-card);
}
.popup-note-body .note-card-link {
margin-top: 4px;
margin-right: 4px;
2026-05-12 23:58:18 +00:00
}