]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.scss
Adapt Leaflet context menus to dark mode
[rails.git] / app / assets / stylesheets / common.scss
index 4a3317edcd78110ea2a98aa4baf5f7c08908bbfd..105f7927ec6952dbe7db6567b9babc8b139c52dd 100644 (file)
@@ -10,22 +10,12 @@ body {
   font-size: $typeheight;
 }
 
-p > img {
-  width: auto;
-  max-width: 100%;
-}
-
 time[title] {
   text-decoration: underline dotted;
 }
 
 #container { position: relative; }
 
-.small_icon {
-  vertical-align: middle;
-  margin-right: $lineheight * 0.25;
-}
-
 /* Rules for icons */
 
 .icon {
@@ -470,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;