summaryrefslogtreecommitdiffstats
path: root/layouts/partials/styles.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/styles.html')
-rw-r--r--layouts/partials/styles.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html
new file mode 100644
index 0000000..cc6d930
--- /dev/null
+++ b/layouts/partials/styles.html
@@ -0,0 +1,13 @@
+{{ if ne .Site.Params.disableDarkImage true }}
+<style>
+ @media (prefers-color-scheme: dark) {
+ body[data-theme='auto'] img {
+ filter: brightness(60%);
+ }
+ }
+
+ body[data-theme='dark'] img {
+ filter: brightness(60%);
+ }
+</style>
+{{ end }} \ No newline at end of file