X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/73170726e2e1c6f5dcbb649f82c4a845b9d6e980..7e7ede890e8e948236d3dbc48e24aca00cd01f62:/app/assets/stylesheets/common.scss?ds=sidebyside diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index b0b706562..323f60e08 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -506,11 +506,6 @@ body.small-nav { } @include color-mode(dark) { - .leaflet-tile-container .leaflet-tile, - .mapkey-table-entry td:first-child > * { - filter: var(--dark-mode-map-filter); - } - .leaflet-container .leaflet-control-attribution a { color: var(--bs-link-color); } @@ -520,6 +515,27 @@ body.small-nav { } } +@mixin dark-map-color-scheme { + .leaflet-tile-container, + .mapkey-table-entry td:first-child > * { + filter: var(--dark-mode-map-filter); + } + + .leaflet-tile-container .leaflet-tile { + filter: none; + } +} + +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; }