}
@include color-mode(dark) {
+ .leaflet-container .leaflet-control-attribution a {
+ color: var(--bs-link-color);
+ }
+
+ .leaflet-control-scale-line {
+ border-color: rgba(var(--bs-light-rgb), .75) !important;
+ }
+}
+
+@mixin dark-map-color-scheme {
.leaflet-tile-container .leaflet-tile,
.mapkey-table-entry td:first-child > * {
filter: brightness(.8);
}
+}
- .leaflet-control-attribution a {
- color: var(--bs-link-color);
- }
+body[data-map-theme="dark"] {
+ @include dark-map-color-scheme;
+}
- .leaflet-control-scale-line {
- border-color: rgba(var(--bs-light-rgb), .75) !important;
+@include color-mode(dark) {
+ body:not([data-map-theme]) {
+ @include dark-map-color-scheme;
}
}
.node, .way, .relation {
margin-left: 25px;
}
+
+ .node::before { content: image-url('browse/node.svg'); }
+ .way::before { content: image-url('browse/way.svg'); }
+ .relation::before { content: image-url('browse/relation.svg'); }
}
@each $class, $item in $map-sidebar-icons {