Skip to content

Commit db99835

Browse files
committed
fix 404 dark theme and delay
1 parent 2e67985 commit db99835

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

public/404.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
document.head.append(refresh)
4545
}
4646

47-
document.getElementById('main').classList.toggle('invisible')
47+
setTimeout(() => document.getElementById('main').classList.toggle('invisible'), 500)
4848
</script>
4949

5050
<style>
@@ -94,6 +94,12 @@
9494
box-shadow: inset -3px 0 0 transparent;
9595
}
9696
}
97+
98+
@media (prefers-color-scheme: dark) {
99+
body {
100+
background: rgb(17 24 39)
101+
}
102+
}
97103
</style>
98104
</head>
99105

0 commit comments

Comments
 (0)