X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c1dc4f62ebdd4f145948897dbab5edee0a43286a..b3759c0d5811579a2a409b9c8c218d605cb62aa4:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 8a5aa142c..17d20c812 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -476,6 +476,13 @@ body.small-nav { } } +@include color-mode(dark) { + .leaflet-tile-container, + .mapkey-table-entry td:first-child > * { + filter: brightness(.8); + } +} + /* Rules for attribution text under the main map shown on printouts */ .donate-attr { color: darken($green, 10%) !important; } @@ -1032,4 +1039,12 @@ img.trace_image { .browse-section #{$class}::before { content: image-url('browse/#{map.get($item, "filename")}'); } + + @if map.get($item, "invert") { + @include color-mode(dark) { + .browse-section #{$class}::before { + filter: invert(.8) hue-rotate(180deg); + } + } + } }