]> git.openstreetmap.org Git - rails.git/commitdiff
Darken/lighten trace images to match their backgrounds
authorAnton Khorev <tony29@yandex.ru>
Thu, 11 Apr 2024 12:54:29 +0000 (15:54 +0300)
committerAnton Khorev <tony29@yandex.ru>
Thu, 11 Apr 2024 12:54:29 +0000 (15:54 +0300)
app/assets/stylesheets/common.scss

index cd45d0381f591e785352d549c4e6dae0bbf67ba4..6ec251a179b52a5048f64afbf977d80df12f7190 100644 (file)
@@ -1038,9 +1038,14 @@ div.secondary-actions {
 
 /* Rules for traces */
 
+img.trace_image {
+  mix-blend-mode: darken;
+}
+
 @include color-mode(dark) {
   img.trace_image {
     filter: invert(1);
+    mix-blend-mode: lighten;
   }
 }