Skip to content

Commit

Permalink
[opt] dark statusbar theme-color on phone
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Apr 11, 2024
1 parent d70eb23 commit f36e6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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" content="#f9fafb">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1c1e21">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f9fafb">

This comment has been minimized.

Copy link
@L33Z22L11

L33Z22L11 Apr 12, 2024

Contributor

如果使用这个media,是不是还要添加对于no-preference对应的值🤔

This comment has been minimized.

Copy link
@xaoxuu

xaoxuu Apr 18, 2024

Author Owner

目前用起来没有发现什么问题

<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000">
<title><%- generate_title() %></title>
Expand Down

0 comments on commit f36e6b9

Please sign in to comment.