From 045eb2b507b18eea813e2df31f4c9daff09beeb9 Mon Sep 17 00:00:00 2001 From: callumalpass Date: Sun, 15 Nov 2026 15:04:52 +1100 Subject: [PATCH 1/2] Drop the caption under the homepage film --- src/pages/index.astro | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 0ac4e6e..07fb20c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -28,7 +28,6 @@ import AppShot from "../components/AppShot.astro";

mdbase is in beta. Keep independent backups of important collections.

-
What mdbase does, in two minutes. No sound.
From aca11f0e53e6dc28f5948076dc2e5eb93f2c1a4f Mon Sep 17 00:00:00 2001 From: callumalpass Date: Sun, 15 Nov 2026 15:07:32 +1100 Subject: [PATCH 2/2] Remove the homepage section list; keep the motion control on its own --- DESIGN.md | 3 +- public/mdbase-murmuration.js | 4 --- scripts/home-animation.test.mjs | 2 +- src/pages/index.astro | 12 +------ src/styles/home.css | 62 ++++----------------------------- 5 files changed, 9 insertions(+), 74 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index e051f0c..83ba8b9 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -53,8 +53,7 @@ semibold; body text is 17px. Reading columns use a 72ch measure. ## Layout The homepage has long chapters in a left reading column, a fixed canvas on the -right, and a chapter index in the left gutter on wide screens. On narrow -screens, the canvas moves above each chapter. Interior pages open with a +right. On narrow screens, the canvas moves above each chapter. Interior pages open with a visible title and lede (`.page-intro`) under a still band of sky at the top right; documentation pages keep their three-column layout. Navigation, buttons, tables, callouts, and footer links remain visually quiet. diff --git a/public/mdbase-murmuration.js b/public/mdbase-murmuration.js index 4f196a7..b5163e5 100644 --- a/public/mdbase-murmuration.js +++ b/public/mdbase-murmuration.js @@ -1072,10 +1072,6 @@ chapters.forEach((chapter, chapterIndex) => { chapter.classList.toggle("is-active", chapterIndex === index); }); - document.querySelectorAll(".chapter-index a").forEach((link, linkIndex) => { - if (linkIndex === index) link.setAttribute("aria-current", "step"); - else link.removeAttribute("aria-current"); - }); buildScene(scene, true); } diff --git a/scripts/home-animation.test.mjs b/scripts/home-animation.test.mjs index c04509e..173c17d 100644 --- a/scripts/home-animation.test.mjs +++ b/scripts/home-animation.test.mjs @@ -26,7 +26,7 @@ function harness(width, height, reducedMotion = true) { querySelector: selector => selector === '#diagram' ? canvas : { getBoundingClientRect: () => ({ bottom: width <= 350 ? 137 : 107 }), }, - querySelectorAll: selector => selector.includes('chapter-index') ? [] : chapters, + querySelectorAll: () => chapters, documentElement: { style: { setProperty() {} }, addEventListener() {}, scrollHeight: height * 8 }, fonts: { ready: { then() {} } }, addEventListener() {}, diff --git a/src/pages/index.astro b/src/pages/index.astro index 07fb20c..a1f34fc 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -9,17 +9,7 @@ import AppShot from "../components/AppShot.astro"; > - +

Structured data in ordinary Markdown files

diff --git a/src/styles/home.css b/src/styles/home.css index c5586ab..a6f65b4 100644 --- a/src/styles/home.css +++ b/src/styles/home.css @@ -362,81 +362,31 @@ color: var(--syntax-link); } -/* Chapter index in the left gutter on wide screens; elsewhere only the motion control shows. */ -.chapter-index { +/* The motion control sits in the bottom-right corner at every width. */ +.motion-control { position: fixed; z-index: 3; right: 12px; bottom: 12px; padding: 4px 10px; - font: 12px/1.3 var(--sans); - background: color-mix(in srgb, var(--color-canvas) 90%, transparent); -} - -.chapter-index a { - display: none; -} - -@media (width>=1400px) { - .chapter-index { - display: flex; - flex-direction: column; - gap: 9px; - position: fixed; - z-index: 3; - right: auto; - bottom: auto; - left: 16px; - top: 50%; - padding: 0; - background: none; - transform: translateY(-50%); - font: 12px/1.3 var(--sans); - } - .chapter-index a { - display: block; - color: var(--color-text-muted); - text-decoration: none; - padding-left: 10px; - border-left: 2px solid transparent; - } - .chapter-index a:hover { - color: var(--color-text); - } - .chapter-index a[aria-current] { - color: var(--color-text); - border-left-color: var(--color-accent); - } -} - -.chapter-index__motion { - padding: 0; border: 0; - background: none; + background: color-mix(in srgb, var(--color-canvas) 90%, transparent); color: var(--color-text-muted); - font: inherit; - text-align: left; + font: 12px/1.3 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; } -.chapter-index__motion:hover { +.motion-control:hover { color: var(--color-text); } -.chapter-index__motion:focus-visible { +.motion-control:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; } -@media (width>=1400px) { - .chapter-index__motion { - margin-top: 10px; - padding-left: 12px; - } -} - /* The fixed header's backing fades into the sky, so it never ends in a hard edge. */ .home-body > .site-header { background: transparent;