From 92a07d0b99d373a6165309048a7c1441e54e43b2 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Wed, 1 Apr 2026 12:36:58 +0200 Subject: [PATCH] TODO: add targeted tasks for template simplification, PHP partials/components, and system page caching --- TODO.md | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 93d9860..d10cffd 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,79 @@ # TODO -## In Progress +## Template Simplification — Remove Custom Classes Where Semantic HTML Suffices + +### CSS class audit: replace with semantic selectors +- [ ] **`admin.css`**: Replace `.admin-main` with `.admin-body main` — only one `
` per page +- [ ] **`admin.css`**: Replace `.admin-page-title` with `.admin-body main > h1` — always the first `h1` in `
` +- [ ] **`admin.css`**: Replace `.admin-alert` / `.admin-alert--error` / `.admin-alert--success` with `[role="alert"]` or `.admin-body main > .alert` using `data-type="error|success"` attribute instead of modifier classes +- [ ] **`admin.css`**: Replace `.admin-form-row` with `.admin-body form > div` or `.admin-body form > .row` — form rows are always direct `
` children of `
` +- [ ] **`admin.css`**: Replace `.admin-label` with `.admin-body form label` — every label in admin forms +- [ ] **`admin.css`**: Replace `.admin-input` / `.admin-select` / `.admin-textarea` with `.admin-body form input[type="text"]`, `.admin-body form select`, `.admin-body form textarea` — leverage native element selectors +- [ ] **`admin.css`**: Replace `.admin-hint` with `.admin-body form small` — use `` instead of `

` +- [ ] **`admin.css`**: Replace `.admin-table` with `.admin-body table` — only one table per admin page +- [ ] **`admin.css`**: Replace `.admin-fieldset` / `.admin-fieldset-legend` with `.admin-body fieldset` / `.admin-body legend` +- [ ] **`main.css`**: Replace `.card__caption` with `.home-body .cards-container li p` or target `li > a > p` directly +- [ ] **`main.css`**: Replace `.card__media` with `.home-body figure` — already uses `

` elements +- [ ] **`tfe.css`**: Replace `.tfe-meta-list` selectors with `article dl`, `article dt`, `article dd` — already using `
` inside `
` +- [ ] **`tfe.css`**: Replace `.tfe-media-block` with `aside figure` — already wrapped in `
` inside `