[fix] #477 bad appearence with no prefers-color-scheme (#478)

* [fix] #477 bad appearence with no prefers-color-scheme

* [fix] safari status bar
This commit is contained in:
纸鹿/Zhilu 2024-05-30 10:26:16 +08:00 committed by GitHub
parent c5aafde03c
commit ee2ee25753
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View File

@ -102,8 +102,8 @@ function custom_inject() {
<meta name="HandheldFriendly" content="True" >
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f9fafb">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000">
<meta name="theme-color" content="#f9fafb">
<title><%- generate_title() %></title>

View File

@ -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()

View File

@ -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()