From 90d38f878a5662023e8af9dd0d403bd358724d8b Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Fri, 19 May 2023 13:47:57 +0200 Subject: [PATCH] feat: add a sticky page header --- src/components/PageHeader.astro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/PageHeader.astro b/src/components/PageHeader.astro index 7ba638b..bdb13dd 100644 --- a/src/components/PageHeader.astro +++ b/src/components/PageHeader.astro @@ -12,7 +12,10 @@ export interface Props { } const { backLink, class: className, navigation = true } = Astro.props; -const classes = cx('grid w-full grid-cols-18 grid-rows-layout mbe-layout print:hidden', className); +const classes = cx( + 'sticky grid w-full grid-cols-18 grid-rows-layout bg-shibui-100 mbe-layout block-start-0 dark:bg-shibui-900 print:hidden z-50', + className +); ---