From 9eefc8f24b42fbc9c430144bb059a655ae91d5e3 Mon Sep 17 00:00:00 2001 From: zkqiang Date: Sun, 2 Jul 2023 16:41:24 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=9A=97=E8=89=B2?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E8=87=AA=E5=8A=A8=E5=88=A4=E6=96=AD=20#967?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_pages/_base/color-schema.styl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/css/_pages/_base/color-schema.styl b/source/css/_pages/_base/color-schema.styl index df30cc90..0d3ec1f9 100644 --- a/source/css/_pages/_base/color-schema.styl +++ b/source/css/_pages/_base/color-schema.styl @@ -59,7 +59,7 @@ dark-colors() transition background-color .2s ease-in-out if (hexo-config("dark_mode.enable")) - @media not print and (prefers-color-scheme: dark) + @media (prefers-color-scheme: dark) :root --color-mode "dark" @@ -69,3 +69,7 @@ if (hexo-config("dark_mode.enable")) @media not print [data-user-color-scheme="dark"] dark-colors() + + @media print + :root + --color-mode "light"