From ee2ee25753102a75bdfaad3d42523cb9280b3069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=B8=E9=B9=BF/Zhilu?= Date: Thu, 30 May 2024 10:26:16 +0800 Subject: [PATCH] [fix] #477 bad appearence with no prefers-color-scheme (#478) * [fix] #477 bad appearence with no prefers-color-scheme * [fix] safari status bar --- layout/_partial/head.ejs | 2 +- source/css/_defines/func.styl | 3 +-- source/css/_defines/theme.styl | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index c9a495d..e0eccc1 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -102,8 +102,8 @@ function custom_inject() { - + <%- generate_title() %> diff --git a/source/css/_defines/func.styl b/source/css/_defines/func.styl index f39dce8..85fde3c 100644 --- a/source/css/_defines/func.styl +++ b/source/css/_defines/func.styl @@ -118,7 +118,6 @@ hoverable-card() :root[data-theme="dark"] & ondark() :root:not([data-theme]) & - @media (prefers-color-scheme: light) - onlight() + onlight() @media (prefers-color-scheme: dark) ondark() diff --git a/source/css/_defines/theme.styl b/source/css/_defines/theme.styl index b0dc823..8724520 100644 --- a/source/css/_defines/theme.styl +++ b/source/css/_defines/theme.styl @@ -79,7 +79,6 @@ _common_root() :root[data-theme="dark"] _dark_root() :root:not([data-theme]) - @media (prefers-color-scheme: light) - _light_root() + _light_root() @media (prefers-color-scheme: dark) _dark_root()