From 1408a52e8be67cabe274f8164c6aea14a9410e97 Mon Sep 17 00:00:00 2001 From: Ludo Date: Sat, 11 Apr 2026 02:18:12 +0200 Subject: [PATCH] docs: add css/html cleanup todo note Co-Authored-By: Claude Sonnet 4.6 --- docs/css-html-cleanup-todo.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/css-html-cleanup-todo.md diff --git a/docs/css-html-cleanup-todo.md b/docs/css-html-cleanup-todo.md new file mode 100644 index 0000000..1043937 --- /dev/null +++ b/docs/css-html-cleanup-todo.md @@ -0,0 +1,17 @@ +# CSS / HTML cleanup — loose ends + +Found during sidebar/TOC refactor session (2026-04-11). + +## Redundant resets + +- `nav[data-nav="sidebar"] ul li { margin: 0; padding: 0 }` — browser default for `
  • ` already has no margin/padding. No-op, remove. +- `aside[data-toc] nav ul li { margin: 0; padding: 0 }` — same. + +## Semantic HTML + +- `← Previous` and `Next →` in prev/next footer (`docs/single.html`, `vault/single.html`) — `` is fine print, not a directional label. Replace with something appropriate. +- `role="main"` on `
    ` in `docs/single.html` — redundant and misleading. `
    ` does not map to the `main` landmark; `
    ` does. Remove the attribute. + +## i18n + +- `"On this page"` is hardcoded in `docs/single.html` and `vault/single.html`. Move to Hugo i18n strings or a site param before adding any second language.