Skip to content

Commit 3f0f0e7

Browse files
committed
Avoid white Safari browser chrome
1 parent 777dc9b commit 3f0f0e7

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

clocks/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6-
<meta name="theme-color" content="#fffefb" />
6+
<meta name="theme-color" content="#351a17" />
7+
<meta name="color-scheme" content="dark light" />
8+
<meta name="supported-color-schemes" content="dark light" />
79
<meta name="apple-mobile-web-app-capable" content="yes" />
810
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
911
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23fffefb'/%3E%3Ccircle cx='32' cy='32' r='24' fill='none' stroke='%232f9e48' stroke-width='4'/%3E%3Cpath d='M32 18v16l11 7' fill='none' stroke='%23070604' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='32' cy='32' r='4' fill='%23bd1430'/%3E%3C/svg%3E" />

clocks/src/styles/global.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:root {
66
--clock-document-bg: oklch(0.997 0.004 91.445);
77

8+
color-scheme: dark light;
89
color: oklch(0.213 0.006 62.958);
910
background: var(--clock-document-bg);
1011
font-family: Futura, "League Spartan", Montserrat, Avenir, system-ui, sans-serif;
@@ -36,6 +37,15 @@ body {
3637
min-width: 320px;
3738
}
3839

40+
body::before {
41+
content: "";
42+
position: fixed;
43+
inset: -100vmax;
44+
z-index: -1;
45+
pointer-events: none;
46+
background: var(--clock-document-bg);
47+
}
48+
3949
button,
4050
input,
4151
select,

0 commit comments

Comments
 (0)