Skip to content

Commit

Permalink
Apply invert + hue-rotate filter to select layers
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Nov 21, 2024
1 parent 9ae6e0b commit c47522c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/assets/stylesheets/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,21 @@ body.small-nav {
}

@include color-mode(dark) {
[data-map-layer="cyclosm"],
[data-map-layer="cyclemap"],
[data-map-layer="tracestracktopo"] {
--map-layer-filter: brightness(.8);
}

[data-map-layer="mapnik"],
[data-map-layer="transportmap"],
[data-map-layer="hot"] {
--map-layer-filter: invert(.9) hue-rotate(180deg);
}

.leaflet-tile-container .leaflet-tile,
.mapkey-table-entry td:first-child > * {
filter: brightness(.8);
filter: var(--map-layer-filter);
}

.leaflet-container .leaflet-control-attribution a {
Expand Down

0 comments on commit c47522c

Please sign in to comment.