]> git.openstreetmap.org Git - rails.git/commitdiff
Disable filter inheritance on tiles, apply filter to tile container
authorAnton Khorev <tony29@yandex.ru>
Mon, 9 Dec 2024 12:51:07 +0000 (15:51 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 11 Dec 2024 10:23:08 +0000 (13:23 +0300)
app/assets/stylesheets/common.scss

index b0b706562df7cc1ff53dbb9441a97945b8fbedd8..c1e71cc2d7e53d892214df5e1bc4f82848ab11e6 100644 (file)
@@ -506,11 +506,15 @@ body.small-nav {
 }
 
 @include color-mode(dark) {
-  .leaflet-tile-container .leaflet-tile,
+  .leaflet-tile-container,
   .mapkey-table-entry td:first-child > * {
     filter: var(--dark-mode-map-filter);
   }
 
+  .leaflet-tile-container .leaflet-tile {
+    filter: none;
+  }
+
   .leaflet-container .leaflet-control-attribution a {
     color: var(--bs-link-color);
   }