]> git.openstreetmap.org Git - rails.git/commitdiff
Adapt Leaflet context menus to dark mode
authorAnton Khorev <tony29@yandex.ru>
Mon, 29 Apr 2024 06:47:14 +0000 (09:47 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 29 Apr 2024 06:47:14 +0000 (09:47 +0300)
app/assets/stylesheets/common.scss

index d8f13287bf5b53f6127178beb7945f3b8a5c02a4..105f7927ec6952dbe7db6567b9babc8b139c52dd 100644 (file)
@@ -460,10 +460,16 @@ body.small-nav {
 }
 
 .leaflet-popup-content-wrapper,
-.leaflet-popup-tip {
+.leaflet-popup-tip,
+.leaflet-contextmenu,
+.leaflet-contextmenu-item {
   @extend .bg-body, .text-body;
 }
 
+.leaflet-contextmenu-item.over {
+  @extend .bg-body-secondary, .border-secondary, .border-opacity-10;
+}
+
 .leaflet-popup-content-wrapper {
   @extend .rounded-1;