diff --git a/TODO.md b/TODO.md index 7c1586b..a8c2cef 100644 --- a/TODO.md +++ b/TODO.md @@ -11,6 +11,8 @@ Pending tasks have been split into topic files under [`todo/`](todo/README.md): ## Recently completed (this session) +- [x] `templates/header.php` + `admin.css` — extracted last remaining inline `style=` from any shared template: `style="vertical-align:middle;margin-right:0.4em"` on the admin-nav public-site SVG icon moved to `.admin-body header nav > a svg` rule in `admin.css`; `templates/header.php` now contains zero `style=` attributes; only the dynamic gradient (`hsl(= $hue ?>)`) in `public/index.php` and the PHP-runtime `--disk-pct`/`--disk-color` custom properties in `system.php` remain (both legitimately dynamic) + - [x] `admin/thanks.php` + `admin/pages.php` + `admin.css` — extracted last 3 inline `style=` attributes from admin PHP templates: `
` in `thanks.php` → `class="admin-muted"` (`.admin-muted` rule added); `style="font-size:.8rem;padding:.3rem .75rem;"` on Éditer button in `pages.php` → `class="admin-btn admin-btn--sm"` (uses existing modifier). Only the dynamic `--disk-pct`/`--disk-color` CSS custom properties on the disk bar in `system.php` remain (carry PHP runtime values — legitimate). - [x] `variables.css` + `search.css` — public dark-mode support via `@media (prefers-color-scheme: dark)` scoped to `body:not(.admin-body)`: all semantic tokens (`--bg-*`, `--text-*`, `--border-*`, `--accent-*`, status colours) overridden with dark equivalents; `--accent-primary` lightened to `#b87fd4` for WCAG contrast on dark backgrounds; `--search-error-*` variables added to replace hardcoded `#fff0f0`/`#c00` in `.search-error`; admin pages unaffected diff --git a/public/assets/css/admin.css b/public/assets/css/admin.css index cd5994e..3c57cdf 100644 --- a/public/assets/css/admin.css +++ b/public/assets/css/admin.css @@ -18,6 +18,12 @@ opacity: 1; } +/* Public-site link icon in admin nav */ +.admin-body header nav > a svg { + vertical-align: middle; + margin-right: 0.4em; +} + /* Active nav link — non-colour indicator required by WCAG 1.4.1 */ .admin-body header nav ul a[aria-current="page"] { border-bottom: 2px solid currentColor; diff --git a/templates/header.php b/templates/header.php index d21b422..965be55 100644 --- a/templates/header.php +++ b/templates/header.php @@ -13,7 +13,7 @@ $_thesisId = $_GET['id'] ?? null;