1
0

wip: menu

This commit is contained in:
2026-02-24 17:27:44 +01:00
parent fe0e19fed3
commit 30a7d570f4
10 changed files with 522 additions and 230 deletions
+24 -24
View File
@@ -1,6 +1,6 @@
---
interface Props {
contentId: string;
contentId: string;
}
const { contentId } = Astro.props;
@@ -9,33 +9,33 @@ const { contentId } = Astro.props;
<a href={`#${contentId}`}>Skip to main content</a>
<style>
a {
position: fixed;
left: -10000px;
top: 1.35rem;
width: 1px;
height: 1px;
overflow: hidden;
a {
position: fixed;
left: -10000px;
top: 1.35rem;
width: 1px;
height: 1px;
overflow: hidden;
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
background-color: oklch(from var(--clr-ts-red-400) calc(l - 0.05) c h);
font-weight: 600;
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
background-color: oklch(from var(--clr-ts-red-400) calc(l - 0.05) c h);
font-weight: 600;
z-index: 10;
opacity: 0;
z-index: 10;
opacity: 0;
@media (prefers-reduced-motion: no-preference) {
transition: opacity 250ms;
}
@media (prefers-reduced-motion: no-preference) {
transition: opacity 250ms;
}
}
a:focus {
left: 5rem;
width: auto;
height: auto;
opacity: 1;
a:focus-visible {
left: 5rem;
width: auto;
height: auto;
opacity: 1;
border: 2px solid var(--clr-light-400);
}
border: 2px solid var(--clr-light-400);
}
</style>