From: Anton Khorev Date: Thu, 11 Apr 2024 12:54:29 +0000 (+0300) Subject: Darken/lighten trace images to match their backgrounds X-Git-Tag: live~158^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/4f68d70125c881d2f2fd9ab771576b929510b483?hp=5a9bac33bfe0f9836f83660c28bdbd80b6a34cf6 Darken/lighten trace images to match their backgrounds --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index cd45d0381..6ec251a17 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -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; } }