avoid overriding styles/themes that work on 'body'
Massimo Melina committed
Nov 5, 2024 at 19:57 UTC
d3c17797cf7ccf0f1ff548db0bc4efc4a5a51dc8
2 files changed
+2
-2
admin/index.html
+1
-1
@@ -11,7 +11,7 @@
11
<link href="../frontend/fontello.woff2" rel="prefetch" />
12
</head>
13
<body>
14
- <style>@media (prefers-color-scheme: dark) { body { background-color: #000; color: #888; } }</style>
14
+ <style>@media (prefers-color-scheme: dark) { html { background-color: #000; color: #888; } }</style>
15
<div id="root"></div>
16
<script nomodule>document.getElementById('root').innerText = "Please use a newer browser"</script>
17
</body>
frontend/index.html
+1
-1
@@ -7,7 +7,7 @@
7
<script type="module" src="/src/index.ts"></script>
8
</head>
9
<body>
10
- <style>@media (prefers-color-scheme: dark) { body { background-color: #000; color: #888; } }</style>
10
+ <style>@media (prefers-color-scheme: dark) { html { background-color: #000; color: #888; } }</style>
11
<div id="root">Wait for loading or <a href="?get=basic">use basic interface now</a></div>
12
</body>
13
</html>