]> git.openstreetmap.org Git - rails.git/commitdiff
Add map filter css property
authorAnton Khorev <tony29@yandex.ru>
Mon, 9 Dec 2024 12:54:22 +0000 (15:54 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 11 Dec 2024 10:23:08 +0000 (13:23 +0300)
app/assets/stylesheets/common.scss

index c5e2d14b1577a8a35e90747739616b5f56b6b672..b0b706562df7cc1ff53dbb9441a97945b8fbedd8 100644 (file)
@@ -9,6 +9,7 @@
 
 body {
   font-size: $typeheight;
 
 body {
   font-size: $typeheight;
+  --dark-mode-map-filter: brightness(.8);
 }
 
 time[title] {
 }
 
 time[title] {
@@ -507,7 +508,7 @@ body.small-nav {
 @include color-mode(dark) {
   .leaflet-tile-container .leaflet-tile,
   .mapkey-table-entry td:first-child > * {
 @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 {
   }
 
   .leaflet-container .leaflet-control-attribution a {