forked from coracle/flotilla
Apply theme to body so popovers get themed too, make selected popover item more clear
This commit is contained in:
+2
-2
@@ -51,10 +51,10 @@
|
|||||||
"@types/qrcode": "^1.5.5",
|
"@types/qrcode": "^1.5.5",
|
||||||
"@vite-pwa/assets-generator": "^0.2.6",
|
"@vite-pwa/assets-generator": "^0.2.6",
|
||||||
"@vite-pwa/sveltekit": "^0.6.6",
|
"@vite-pwa/sveltekit": "^0.6.6",
|
||||||
"@welshman/app": "^0.2.4",
|
"@welshman/app": "^0.2.5",
|
||||||
"@welshman/content": "^0.2.1",
|
"@welshman/content": "^0.2.1",
|
||||||
"@welshman/dvm": "^0.2.0",
|
"@welshman/dvm": "^0.2.0",
|
||||||
"@welshman/editor": "^0.2.1",
|
"@welshman/editor": "^0.2.2",
|
||||||
"@welshman/feeds": "^0.2.2",
|
"@welshman/feeds": "^0.2.2",
|
||||||
"@welshman/lib": "^0.2.2",
|
"@welshman/lib": "^0.2.2",
|
||||||
"@welshman/net": "^0.2.3",
|
"@welshman/net": "^0.2.3",
|
||||||
|
|||||||
+13
-10
@@ -46,9 +46,14 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-family: Lato;
|
font-family: Lato;
|
||||||
|
--sait: env(safe-area-inset-top);
|
||||||
|
--saib: env(safe-area-inset-bottom);
|
||||||
|
--sail: env(safe-area-inset-left);
|
||||||
|
--sair: env(safe-area-inset-right);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme] {
|
[data-theme] {
|
||||||
|
@apply bg-base-300;
|
||||||
--base-100: oklch(var(--b1));
|
--base-100: oklch(var(--b1));
|
||||||
--base-200: oklch(var(--b2));
|
--base-200: oklch(var(--b2));
|
||||||
--base-300: oklch(var(--b3));
|
--base-300: oklch(var(--b3));
|
||||||
@@ -57,16 +62,6 @@
|
|||||||
--primary-content: oklch(var(--pc));
|
--primary-content: oklch(var(--pc));
|
||||||
--secondary: oklch(var(--s));
|
--secondary: oklch(var(--s));
|
||||||
--secondary-content: oklch(var(--sc));
|
--secondary-content: oklch(var(--sc));
|
||||||
--sait: env(safe-area-inset-top);
|
|
||||||
--saib: env(safe-area-inset-bottom);
|
|
||||||
--sail: env(safe-area-inset-left);
|
|
||||||
--sair: env(safe-area-inset-right);
|
|
||||||
}
|
|
||||||
|
|
||||||
:root,
|
|
||||||
body,
|
|
||||||
html {
|
|
||||||
@apply bg-base-300;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* safe area insets */
|
/* safe area insets */
|
||||||
@@ -296,6 +291,14 @@ html {
|
|||||||
--tiptap-active-fg: var(--base-content);
|
--tiptap-active-fg: var(--base-content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tiptap-suggestions__item {
|
||||||
|
@apply border-l-2 border-solid border-base-100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tiptap-suggestions__selected {
|
||||||
|
@apply border-primary;
|
||||||
|
}
|
||||||
|
|
||||||
.tiptap {
|
.tiptap {
|
||||||
@apply max-h-[350px] overflow-y-auto p-2 px-4;
|
@apply max-h-[350px] overflow-y-auto p-2 px-4;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,9 +51,9 @@
|
|||||||
import {setupTracking} from "@app/tracking"
|
import {setupTracking} from "@app/tracking"
|
||||||
import {setupAnalytics} from "@app/analytics"
|
import {setupAnalytics} from "@app/analytics"
|
||||||
import {nsecDecode} from "@lib/util"
|
import {nsecDecode} from "@lib/util"
|
||||||
import {theme} from "@app/theme"
|
|
||||||
import {INDEXER_RELAYS, userMembership, ensureUnwrapped, canDecrypt} from "@app/state"
|
import {INDEXER_RELAYS, userMembership, ensureUnwrapped, canDecrypt} from "@app/state"
|
||||||
import {loadUserData, listenForNotifications} from "@app/requests"
|
import {loadUserData, listenForNotifications} from "@app/requests"
|
||||||
|
import {theme} from "@app/theme"
|
||||||
import * as commands from "@app/commands"
|
import * as commands from "@app/commands"
|
||||||
import * as requests from "@app/requests"
|
import * as requests from "@app/requests"
|
||||||
import * as notifications from "@app/notifications"
|
import * as notifications from "@app/notifications"
|
||||||
@@ -121,6 +121,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sync theme
|
||||||
|
theme.subscribe($theme => {
|
||||||
|
document.body.setAttribute("data-theme", $theme)
|
||||||
|
})
|
||||||
|
|
||||||
if (!db) {
|
if (!db) {
|
||||||
setupTracking()
|
setupTracking()
|
||||||
setupAnalytics()
|
setupAnalytics()
|
||||||
@@ -228,9 +233,9 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
{#await ready}
|
{#await ready}
|
||||||
<div data-theme={$theme}></div>
|
<div></div>
|
||||||
{:then}
|
{:then}
|
||||||
<div data-theme={$theme}>
|
<div>
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
{@render children()}
|
{@render children()}
|
||||||
</AppContainer>
|
</AppContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user