]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5387' live
authorTom Hughes <tom@compton.nu>
Wed, 11 Dec 2024 17:09:07 +0000 (17:09 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 11 Dec 2024 17:09:07 +0000 (17:09 +0000)
app/assets/stylesheets/common.scss

index cabdfff493bac420e9daa5b1fe0b3cc3bc6570b9..323f60e08c192a91d2934f5e2309c1841591f357 100644 (file)
@@ -9,6 +9,7 @@
 
 body {
   font-size: $typeheight;
+  --dark-mode-map-filter: brightness(.8);
 }
 
 time[title] {
@@ -515,9 +516,13 @@ body.small-nav {
 }
 
 @mixin dark-map-color-scheme {
-  .leaflet-tile-container .leaflet-tile,
+  .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;
   }
 }