From bf2594112bf6ad528c5968784d76de4ac772c6e3 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Thu, 2 Apr 2026 14:11:11 +0200 Subject: [PATCH] fix serve recipe: filter output to Development Server start + [200] requests only refactor: unify CSS color variables across public and admin - Replace old variable structure with new standardized naming: - Background: --bg-primary, --bg-secondary, --bg-tertiary, --bg-active - Text: --text-primary, --text-secondary, --text-tertiary - Border: --border-primary, --border-secondary - Status: --success, --error, --warning - Accent: --accent-primary, --accent-secondary, --accent-foreground, --accent-muted - Remove admin-specific color variables (--admin-*) - Update all CSS files to use shared variables: - variables.css, common.css, main.css, admin.css - tfe.css, search.css, apropos.css, system.css, colors.css --- TODO.md | 1406 +---------------- .../ANALYSIS_PHP_VS_FLASK.md | 0 .../REFACTORING_RECOMMENDATIONS.md | 0 docs/chat-export-2026-04-02.md | 167 ++ justfile | 2 +- public/assets/css/README.md | 35 + public/assets/css/admin.css | 180 ++- public/assets/css/apropos.css | 20 +- public/assets/css/colors.css | 29 + public/assets/css/common.css | 55 +- public/assets/css/main.css | 46 +- public/assets/css/search.css | 70 +- public/assets/css/system.css | 124 +- public/assets/css/tfe.css | 22 +- public/assets/css/variables.css | 36 + 15 files changed, 536 insertions(+), 1656 deletions(-) rename ANALYSIS_PHP_VS_FLASK.md => docs/ANALYSIS_PHP_VS_FLASK.md (100%) rename REFACTORING_RECOMMENDATIONS.md => docs/REFACTORING_RECOMMENDATIONS.md (100%) create mode 100644 docs/chat-export-2026-04-02.md create mode 100644 public/assets/css/README.md create mode 100644 public/assets/css/colors.css create mode 100644 public/assets/css/variables.css diff --git a/TODO.md b/TODO.md index 3861185..3309c28 100644 --- a/TODO.md +++ b/TODO.md @@ -1,1398 +1,12 @@ # TODO -## Template Simplification — Remove Custom Classes Where Semantic HTML Suffices - -### CSS class audit: replace with semantic selectors -- [x] **`admin.css`**: Replace `.admin-main` with `.admin-body main` — only one `
` per page -- [x] **`admin.css`**: Replace `.admin-page-title` with `.admin-body main > h1` — always the first `h1` in `
` -- [x] **`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 -- [x] **`admin.css`**: Replace `.admin-form-row` with `.admin-form > div:not(.admin-submit-wrap)` — form rows are direct `
` children of `.admin-form`; excludes submit wrapper -- [x] **`admin.css`**: Replace `.admin-label` with `.admin-form > div:not(.admin-submit-wrap) > label` — every label in admin form rows -- [x] **`admin.css`**: Replace `.admin-input` / `.admin-select` / `.admin-textarea` with `.admin-form input:not([type=...])`, `.admin-form select`, `.admin-form textarea` — leverage native element selectors; extended to `.admin-inline-form` for tags table -- [x] **`admin.css`**: Replace `.admin-hint` with `.admin-body form small` — use `` instead of `

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

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