}
@include color-mode(dark) {
- .leaflet-tile-container .leaflet-tile,
+ .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,
.mapkey-table-entry td:first-child > * {
- filter: brightness(.8);
+ filter: var(--dark-mode-map-filter);
+ }
+
+ .leaflet-tile-container .leaflet-tile {
+ filter: none;
}
+}
- .leaflet-container .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;
}
}