web: switch main body color depending on theme
This commit is contained in:
parent
36c11556d7
commit
1712dc8948
2 changed files with 15 additions and 1 deletions
|
@ -17,7 +17,17 @@
|
|||
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover" data-sveltekit-preload-code="eager" style="background-color: black">
|
||||
<style>
|
||||
body {
|
||||
background-color: black;
|
||||
}
|
||||
@media (prefers-color-scheme: light) {
|
||||
body {
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<body data-sveltekit-preload-data="hover" data-sveltekit-preload-code="eager">
|
||||
<div style="display: contents">
|
||||
%sveltekit.body%
|
||||
</div>
|
||||
|
|
|
@ -135,6 +135,10 @@
|
|||
overscroll-behavior-y: none;
|
||||
}
|
||||
|
||||
:global(body) {
|
||||
background-color: var(--secondary);
|
||||
}
|
||||
|
||||
#cobalt {
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
|
|
Loading…
Reference in a new issue