added code to darken images in dark mode. Easier on the eyes.
authordanix <danix@danix.xyz>
Thu, 23 Feb 2023 12:56:05 +0000 (13:56 +0100)
committerdanix <danix@danix.xyz>
Thu, 23 Feb 2023 12:56:05 +0000 (13:56 +0100)
assets/sass/components/_image.scss
assets/sass/main.scss

index 6f7981c..9636a0f 100644 (file)
@@ -65,7 +65,7 @@
                @include circle(200px, "block");\r
                @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));\r
                @media screen and (prefers-color-scheme: dark) {\r
-                       @include box-shadow(-5px, 5px, 5px, _palette_dark(fg-bold));\r
+                       @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));\r
                }\r
        }\r
 \r
index 37f5678..26fae48 100644 (file)
        @import 'layout/footer';
        @import 'layout/wrapper';
        @import 'layout/menu';
+
+// darken images in dark mode
+@media screen and (prefers-color-scheme: dark) {
+       $image-filter: grayscale(50%);
+
+       img:not([src*='.svg']) {
+         filter: $image-filter;
+       }
+}