feat: show feature information on map click

This commit is contained in:
2026-07-22 07:21:03 +01:00
parent ec922c22ff
commit c60840e4c1
3 changed files with 199 additions and 3 deletions
+80
View File
@@ -308,6 +308,86 @@ button:disabled {
inset: 0;
}
.feature-modal[hidden] {
display: none;
}
.feature-modal {
position: fixed;
z-index: 20;
inset: 0;
display: grid;
padding: 24px;
place-items: center;
}
.feature-modal-backdrop {
position: absolute;
inset: 0;
background: rgba(31, 42, 46, 0.35);
backdrop-filter: blur(3px);
}
.feature-modal-dialog {
position: relative;
width: min(100%, 360px);
padding: 28px;
border: 1px solid var(--panel-border);
border-radius: 24px;
background: #fffefb;
box-shadow: var(--shadow);
}
.feature-modal-close {
position: absolute;
top: 12px;
right: 12px;
display: grid;
width: 36px;
height: 36px;
padding: 0;
place-items: center;
border: 1px solid var(--panel-border);
border-radius: 50%;
background: transparent;
color: var(--ink);
box-shadow: none;
font-size: 1.5rem;
line-height: 1;
}
.feature-modal-kind {
margin-bottom: 6px;
color: var(--accent-strong);
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.feature-details {
margin: 20px 0 0;
}
.feature-details div {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
padding: 14px 0;
border-top: 1px solid var(--panel-border);
}
.feature-details dt {
color: var(--muted);
}
.feature-details dd {
margin: 0;
font-size: 1.1rem;
font-weight: 700;
}
.map-wrap .ol-zoom {
top: 16px;
right: 16px;