From acd7e3bca5b9ce23bfd6cae9588b7d1972564ba6 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sat, 11 Apr 2026 05:29:38 +0200 Subject: [PATCH] Remove dead css Signed-off-by: Frank Elsinga --- app/assets/stylesheets/common.scss | 22 ---------------------- app/views/legend_panes/show.html.erb | 4 ++-- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 2cda51ba2..33230c62c 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -13,7 +13,6 @@ $bootstrap-icons-font-dir: "bootstrap-icons/font/fonts"; body { font-size: $typeheight; - --dark-mode-map-filter: none; } time[title] { @@ -417,27 +416,6 @@ nav.primary, nav.secondary { } } -@mixin dark-map-color-scheme { - .leaflet-tile-container, - #legend .filtered-image { - filter: var(--dark-mode-map-filter); - } - - .leaflet-tile-container .leaflet-tile { - filter: none; - } -} - -body[data-map-theme="dark"] { - @include dark-map-color-scheme; -} - -@include color-mode(dark) { - body:not([data-map-theme]) { - @include dark-map-color-scheme; - } -} - /* Rules for attribution text under the main map shown on printouts */ .donate-attr { color: darken($green, 10%) !important; } diff --git a/app/views/legend_panes/show.html.erb b/app/views/legend_panes/show.html.erb index 9551bb63e..b0153215c 100644 --- a/app/views/legend_panes/show.html.erb +++ b/app/views/legend_panes/show.html.erb @@ -6,9 +6,9 @@ <% description = entry["name"].map { |feature_name| t ".entries.#{feature_name}" }.join(" · ") %> <% if entry["image"] %> - <%= image_tag "legend/#{layer_name}/#{entry['image']}", :class => "filtered-image d-block mx-auto", :alt => description %> + <%= image_tag "legend/#{layer_name}/#{entry['image']}", :class => "d-block mx-auto", :alt => description %> <% else %> - <%= legend_svg_tag :class => "filtered-image d-block mx-auto", **entry, :title => description %> + <%= legend_svg_tag :class => "d-block mx-auto", **entry, :title => description %> <% end %> <%= description %> -- 2.47.3