From 2aa8687b99aca6448c1689bcc3983f99e35e1d9b Mon Sep 17 00:00:00 2001 From: SuperCuteXiaoSi <1531733886@qq.com> Date: Mon, 11 Jul 2022 23:53:52 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20html=E6=B7=BB=E5=8A=A0=E5=A4=9C?= =?UTF-8?q?=E9=97=B4=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index ec3be12c..e9079b7a 100644 --- a/index.html +++ b/index.html @@ -142,6 +142,19 @@ opacity: 0; } } + @media (prefers-color-scheme: dark) { + html, + body { + background-color: #000; + } + } + + @media (prefers-color-scheme: light) { + html, + body { + background-color: #fff; + } + }