From: Anton Khorev Date: Mon, 9 Dec 2024 12:54:22 +0000 (+0300) Subject: Add map filter css property X-Git-Tag: live^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/73170726e2e1c6f5dcbb649f82c4a845b9d6e980?ds=inline;hp=-c Add map filter css property --- 73170726e2e1c6f5dcbb649f82c4a845b9d6e980 diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c5e2d14b1..b0b706562 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -9,6 +9,7 @@ body { font-size: $typeheight; + --dark-mode-map-filter: brightness(.8); } time[title] { @@ -507,7 +508,7 @@ body.small-nav { @include color-mode(dark) { .leaflet-tile-container .leaflet-tile, .mapkey-table-entry td:first-child > * { - filter: brightness(.8); + filter: var(--dark-mode-map-filter); } .leaflet-container .leaflet-control-attribution a {