From dc003a5487e384893df75bc98735b51d4bf37441 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Thu, 1 Oct 2026 03:36:20 -0500 Subject: [PATCH 001/119] Header dropdowns close after a click; a tint circle behind the side nav The dropdowns opened on any focus inside, and a click leaves focus on the link, so they stayed open after the pointer left; now only keyboard focus (:focus-visible) opens them besides hover. Co-Authored-By: Claude Opus 5.5 --- src/components/Layout.tsx | 8 ++++++-- src/components/PageShell.tsx | 10 +++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index f930891..e98b6b2 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -189,8 +189,12 @@ export default function Layout() { {pageSections.length > 0 && ( // pt-3 is the bridge the pointer crosses from the - // link into the menu without it closing. -
+ // 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. +
    - ({ id: s.id, label: s.title }))} wrap /> +
    + {/* A solid circle behind the list, centered on it: the + tint, which the nav's text reads on in either mode. */} +
    {bands} From c0ae48b064aac9e1dc742645b02b8454610ef23d Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Thu, 1 Oct 2026 03:37:06 -0500 Subject: [PATCH 002/119] Version v1.10.8 Co-Authored-By: Claude Opus 5.5 --- src/lib/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/version.ts b/src/lib/version.ts index 07f42c7..79668fb 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -7,4 +7,4 @@ box or a build banner can read the same value later. ═══════════════════════════════════════════════════════════════ */ -export const SITE_VERSION = "NGU-Web.v1.10.7"; +export const SITE_VERSION = "NGU-Web.v1.10.8"; From 857506abb74e8f53edb6878d07458aacf822dc57 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Thu, 1 Oct 2026 03:41:06 -0500 Subject: [PATCH 003/119] Side nav circle: its own sticky layer behind the section lines, clipped at the nav column The circle centers on the list's measured box, so it stays on the nav at any width, and the column clips it (overflow: clip, which keeps the sticky layers sticking) so it never covers content. Co-Authored-By: Claude Opus 5.5 --- src/components/PageShell.tsx | 62 ++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 9 deletions(-) diff --git a/src/components/PageShell.tsx b/src/components/PageShell.tsx index 00104af..cf5f4b2 100644 --- a/src/components/PageShell.tsx +++ b/src/components/PageShell.tsx @@ -38,7 +38,7 @@ /> ═══════════════════════════════════════════════════════════════ */ -import { useEffect, type ReactNode } from "react"; +import { useEffect, useRef, useState, type ReactNode } from "react"; import { documentTitle } from "../lib/site.ts"; import { accentText, BRAND } from '../lib/color.ts' @@ -101,7 +101,32 @@ export function Section({ section }: { section: ShellSection }) { ); } +/* The side nav's circle: half again the list's width (or a little + more than its height, if taller), at most 22rem. */ +const circleSize = (box: { width: number; height: number }) => + Math.min(Math.max(box.width * 1.5, box.height * 1.1), 22 * 16); + +/* Where the side nav sticks, and how far its list sits in from the + column's top and left (pt-8, pl-4): the circle centers on that. */ +const STICK = "calc(var(--header-h, 5rem) + 1rem)"; +const LIST_TOP = 32; +const LIST_LEFT = 16; + export default function PageShell({ title, intro, sections, sideNav = false }: PageShellProps) { + // The list's measured box, so its circle can center on it from a + // layer of its own (below). + const listRef = useRef(null); + const [listBox, setListBox] = useState<{ width: number; height: number } | null>(null); + useEffect(() => { + const el = listRef.current; + if (!el) return; + const ro = new ResizeObserver(([entry]) => + setListBox({ width: entry.borderBoxSize[0].inlineSize, height: entry.borderBoxSize[0].blockSize }), + ); + ro.observe(el); + return () => ro.disconnect(); + }, [sideNav]); + // The tab's title as the visitor moves around. The first load's // comes from the server (pageMeta.js), which also sets the page's // description and preview for search and link sharing. @@ -134,19 +159,38 @@ export default function PageShell({ title, intro, sections, sideNav = false }: P {sideNav ? (
    - {/* The margin left of the content (72rem, its text 1.5rem in). */} + {/* The margin left of the content (72rem, its text 1.5rem in), + clipping anything wider so the circle never reaches the + content. clip, not hidden: hidden would make it a scroll + container, and the sticky layers in it would stop + sticking. */}