From cd58bc13e47c533fd68b1f7f36c6f01ea06adcfb Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Wed, 1 Apr 2026 17:08:12 +0200 Subject: [PATCH] css: replace presentational class selectors with semantic element selectors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace 6 CSS class selectors across tfe.css, main.css, and search.css with semantic element-based selectors, removing the corresponding classes from the HTML templates entirely. tfe.css: - .tfe-meta-list → article dl / article dl > div / article dl dt / article dl dd - .tfe-media-block → aside figure (+ img, video, embed children) - .tfe-file-caption → aside figcaption main.css: - .card__media → .home-body figure (+ img/video children and hover/motion rules) - .card__caption → .home-body li > a > p search.css: - .repertoire-col > h2 → .repertoire-index section > h2 Template changes: - tfe.php: removed class= from
,
, and
- index.php: removed class= from
and

; stripped orphaned card__media from the gradient

(only --gradient needed) No visual change — selectors match the same elements as before since the semantic HTML was already in place from prior refactoring work. --- TODO.md | 20 ++++++++++---------- public/assets/css/main.css | 24 ++++++++++++------------ public/assets/css/search.css | 2 +- public/assets/css/tfe.css | 30 +++++++++++++++--------------- public/index.php | 6 +++--- public/tfe.php | 6 +++--- 6 files changed, 44 insertions(+), 44 deletions(-) diff --git a/TODO.md b/TODO.md index 17a7c56..a72dca3 100644 --- a/TODO.md +++ b/TODO.md @@ -12,12 +12,12 @@ - [ ] **`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 `