Skip to content

Commit 670a554

Browse files
style(layout): align navbar shadow with bottom border
1 parent 00dbb60 commit 670a554

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/routes/+layout.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@
7171
<ProgressBar class="text-primary" zIndex={100} />
7272

7373
<header
74-
class="sticky top-0 z-40 w-full bg-background/95 shadow-sm backdrop-blur supports-[backdrop-filter]:bg-background/60"
74+
class={[
75+
"sticky top-0 z-40 w-full bg-background/95 backdrop-blur transition-shadow duration-500 supports-[backdrop-filter]:bg-background/60",
76+
{
77+
"shadow-sm": newsToDisplay || (scrollY.current ?? 0) >= 25
78+
}
79+
]}
7580
>
7681
<div
7782
class={[

0 commit comments

Comments
 (0)