From cb1ced535bd617d3106bf153b6368fe67d881575 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Wed, 1 Apr 2026 17:31:11 +0200 Subject: [PATCH] Replace .admin-hint / .admin-field-hint with .admin-body form small MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - admin.css: remove .admin-hint and .admin-field-hint class rules; add .admin-body form small with the same font-size/color/margin properties plus display:block so it stacks below sibling inputs; stub comment left where .admin-field-hint was to document the change - add.php: 5×

- edit.php: 3×

- import.php:

(block hint below CSV input) - pages-edit.php: class="admin-hint" removed from already-correct - account.php:

Hint text is now styled purely via the semantic element selector; no class required on any hint element in admin templates. --- TODO.md | 4 ++-- public/admin/account.php | 2 +- public/admin/add.php | 10 +++++----- public/admin/edit.php | 12 ++++++------ public/admin/import.php | 4 ++-- public/admin/pages-edit.php | 2 +- public/assets/css/admin.css | 9 +++------ 7 files changed, 20 insertions(+), 23 deletions(-) diff --git a/TODO.md b/TODO.md index ccb8c23..3cfcdc2 100644 --- a/TODO.md +++ b/TODO.md @@ -9,7 +9,7 @@ - [ ] **`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 `

` +- [x] **`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` - [x] **`main.css`**: Replace `.card__caption` with `.home-body .cards-container li p` or target `li > a > p` directly @@ -24,7 +24,7 @@ - [x] **`system.php`**: Move inline `