From 0fc5f849b6f39eefb7d4e1dce9f58acb8ab74b6e Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Tue, 2 Nov 2021 18:36:21 +0800 Subject: [PATCH] Add color-scheme CSS property (#388) --- source/css/_colors.styl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/css/_colors.styl b/source/css/_colors.styl index 3f05eab..25d49cd 100644 --- a/source/css/_colors.styl +++ b/source/css/_colors.styl @@ -24,6 +24,8 @@ --highlight-foreground: $highlight-foreground; --highlight-gutter-background: $highlight-gutter-background; --highlight-gutter-foreground: $highlight-gutter-foreground; + + color-scheme: light; } if (hexo-config('darkmode')) { @@ -54,6 +56,8 @@ if (hexo-config('darkmode')) { --highlight-foreground: $highlight-foreground-dark; --highlight-gutter-background: $highlight-gutter-background-dark; --highlight-gutter-foreground: $highlight-gutter-foreground-dark; + + color-scheme: dark; } img { @@ -63,5 +67,9 @@ if (hexo-config('darkmode')) { opacity: .9; } } + + iframe { + color-scheme: light; + } } }