fix: make colors extend past screen borders

This commit is contained in:
Xylight committed 2024-03-05 18:31:57 -08:00
1 parent d42a9e181c
commit 0ade08b3dd
5 files changed
+19 -14

No files matched your search

+1 -7
View File
@@ -6,20 +6,14 @@
export let route: { id: string | null } | undefined = undefined
$: title = route ? routes[(route.id as keyof typeof routes) ?? ''] : ''
let scroll = 0
</script>
<svelte:window bind:scrollY={scroll} />
<div class="shell {$$props.class}" style={colorsToVars($colors)}>
<slot />
<slot
name="navbar"
class="sticky top-0 border-b border-slate-200 dark:border-zinc-900
{scroll > 0
? 'bg-slate-50/70 dark:bg-zinc-950/70'
: 'bg-slate-50 dark:bg-zinc-950'} transition-colors duration-500"
bg-slate-25 dark:bg-zinc-950 transition-colors duration-500"
style="grid-area: navbar"
{title}
/>