From aa2380b6a25ca6f8e2024ab38033cb26cea6cfd0 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 25 Apr 2024 03:47:07 +0300 Subject: [PATCH] Adapt Leaflet popups to dark mode --- app/assets/stylesheets/common.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index d3399420b..526fef99e 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -473,8 +473,17 @@ body.small-nav { border-top: 0px !important; } +.leaflet-popup-content-wrapper, +.leaflet-popup-tip { + @extend .bg-body, .text-body; +} + .leaflet-popup-content-wrapper { - border-radius: 4px !important; + @extend .rounded-1; + + a { + color: var(--bs-link-color) !important; + } } /* Rules for attribution text under the main map shown on printouts */ -- 2.45.1