}
@include color-mode(dark) {
- .leaflet-tile-container .leaflet-tile,
- .mapkey-table-entry td:first-child > * {
- filter: brightness(.8);
- }
-
.leaflet-container .leaflet-control-attribution a {
color: var(--bs-link-color);
}
}
}
+@mixin dark-map-color-scheme {
+ .leaflet-tile-container .leaflet-tile,
+ .mapkey-table-entry td:first-child > * {
+ filter: brightness(.8);
+ }
+}
+
+body[data-map-theme="dark"] {
+ @include dark-map-color-scheme;
+}
+
+@include color-mode(dark) {
+ body:not([data-map-theme]) {
+ @include dark-map-color-scheme;
+ }
+}
+
/* Rules for attribution text under the main map shown on printouts */
.donate-attr { color: darken($green, 10%) !important; }
/* Rules for map sidebar icons */
.browse-section .browse-element-list {
- line-height: 20px;
+ line-height: 1.25rem;
+
+ .browse-icon {
+ height: 1.25rem;
+ }
+
+ .d-flex > .browse-icon {
+ height: max(20px, 1.25rem);
+ }
@include color-mode(dark) {
.browse-icon-invertible {