Improve map measurement tools and project layers

This commit is contained in:
livio committed 2026-09-21 12:01:35 +02:00
1 parent 0344227a1b
commit 06050b05f5
8 files changed
+396 -156

No files matched your search

+13 -53
View File
@@ -292,41 +292,18 @@ input[type="checkbox"] {
color: var(--ink);
}
.map-measure-tools {
position: absolute;
top: 72px;
right: 12px;
z-index: 860;
display: grid;
grid-template-columns: auto repeat(3, minmax(76px, auto));
align-items: center;
gap: 6px;
padding: 7px;
border: 1px solid rgba(255, 255, 255, 0.7);
border-radius: 8px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
transition: top 140ms ease;
.leaflet-top.leaflet-right {
top: 68px;
right: 2px;
}
.map-measure-tools > span {
padding: 0 4px;
color: var(--muted);
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
.map-stage.search-active .leaflet-top.leaflet-right {
top: 136px;
}
.map-measure-tools button {
min-height: 38px;
padding: 0 10px;
background: #fff3e8;
color: #8a3a08;
border: 1px solid #e4b58f;
}
.map-measure-tools.search-open {
top: 140px;
.leaflet-touch .leaflet-draw-toolbar a {
width: 38px;
height: 38px;
}
.tool-sheet {
@@ -755,16 +732,6 @@ footer {
display: none;
}
@media (min-width: 701px) and (max-width: 900px) {
.map-measure-tools {
top: 126px;
}
.map-measure-tools.search-open {
top: 194px;
}
}
@media (max-width: 700px) {
.map-toolbar {
top: 8px;
@@ -808,20 +775,13 @@ footer {
top: 136px;
}
.map-measure-tools,
.map-measure-tools.search-open {
top: 126px;
right: 8px;
left: 8px;
grid-template-columns: repeat(3, minmax(0, 1fr));
.leaflet-top.leaflet-right {
top: 122px;
right: 0;
}
.map-measure-tools.search-open {
top: 194px;
}
.map-measure-tools > span {
display: none;
.map-stage.search-active .leaflet-top.leaflet-right {
top: 190px;
}
.gps-main,