Sticky headerbar (with blur :D)

This commit is contained in:
Martin Prokoph
2024-09-18 19:34:05 +02:00
parent 04b741b133
commit e7f77b9ea9

View File

@@ -4,7 +4,7 @@ import { SkipLinks } from 'accessible-astro-components'
import { Icon } from 'astro-icon/components'
---
<header>
<header class="sticky top-0 z-50 backdrop-blur-md">
<SkipLinks />
<Navigation>
<li class="menu-item">
@@ -58,6 +58,8 @@ import { Icon } from 'astro-icon/components'
@use '../assets/scss/base/outline' as *;
header {
background-color: rgb(255, 255, 255, 0.75);
.type-icon a {
display: block;
@@ -78,4 +80,7 @@ import { Icon } from 'astro-icon/components'
}
}
}
header:is(.darkmode *) {
background-color: rgba(24, 24, 37, 0.75);
}
</style>