fix(front): use theme-aware background color on root elements

Flupsi 2025-08-10 00:56:15 +02:00 zatwierdzone przez Arne Bollinger
rodzic aba06d38d5
commit 07e312589f
2 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -141,6 +141,10 @@ store.dispatch('auth/fetchUser')
}
</style>
<style>
html, body {
background-color: var(--background-color);
}
/* Make inert pages (behind modals) unscrollable */
body:has(#app[inert="true"]) {
overflow: hidden;

Wyświetl plik

@ -85,6 +85,10 @@
// Light theme
:root:has(body.theme-light) {
--background-color: var(--fw-beige-100);
}
:is(body.theme-light, html:not(.dark) > body:not(.theme-dark)),
.force-light-theme.force-light-theme.force-light-theme {
--focus-ring-color: var(--fw-primary);
@ -328,6 +332,10 @@
// Dark theme
:root:has(body.theme-dark) {
--background-color: var(--fw-gray-960);
}
:is(body.theme-dark, html.dark > body:not(.theme-light)),
.force-dark-theme.force-dark-theme.force-dark-theme {
--focus-ring-color: var(--fw-gray-600);