Page fixes: v1.10.7 to v1.10.10 #21

Merged
ngu-git-admin merged 17 commits from page-fixes into main 2026-10-01 10:53:41 +01:00
2 changed files with 15 additions and 3 deletions
Showing only changes of commit dc003a5487 - Show all commits

View file

@ -189,8 +189,12 @@ export default function Layout() {
</NavLink>
{pageSections.length > 0 && (
// pt-3 is the bridge the pointer crosses from the
// link into the menu without it closing.
<div className="invisible absolute top-full left-0 z-10 pt-3 opacity-0 transition-opacity duration-150 group-hover:visible group-hover:opacity-100 group-focus-within:visible group-focus-within:opacity-100">
// link into the menu without it closing. Keyboard
// focus opens it too, but only keyboard focus
// (:focus-visible): a click leaves focus on the
// link, which held the menu open after the
// pointer had gone.
<div className="invisible absolute top-full left-0 z-10 pt-3 opacity-0 transition-opacity duration-150 group-hover:visible group-hover:opacity-100 group-has-[:focus-visible]:visible group-has-[:focus-visible]:opacity-100">
<ul
className="min-w-56 py-2 shadow-xl"
style={{ background: "rgba(0, 16, 17, 0.97)", borderTop: "2px solid #9cc47c" }}

View file

@ -140,7 +140,15 @@ export default function PageShell({ title, intro, sections, sideNav = false }: P
style={{ width: "calc((100% - 72rem) / 2 + 1rem)" }}
>
<div className="sticky pt-8 pl-4 pr-2" style={{ top: "calc(var(--header-h, 5rem) + 1rem)" }}>
<SectionNav sections={sections.map((s) => ({ id: s.id, label: s.title }))} wrap />
<div className="relative">
{/* A solid circle behind the list, centered on it: the
tint, which the nav's text reads on in either mode. */}
<div
aria-hidden="true"
className="absolute top-1/2 left-1/2 -z-10 aspect-square w-[min(150%,22rem)] -translate-x-1/2 -translate-y-1/2 rounded-full bg-tint"
/>
<SectionNav sections={sections.map((s) => ({ id: s.id, label: s.title }))} wrap />
</div>
</div>
</aside>
{bands}