mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Replace site-search BEM classes with semantic header form[role="search"] selectors
CSS: .site-search → header form[role="search"],
.site-search__icon → header form[role="search"] svg,
.site-search__input → header form[role="search"] input,
.site-search__input::placeholder → header form[role="search"] input::placeholder
HTML: Removed class="site-search", class="site-search__icon", and
class="site-search__input" from header.php and search-bar.php.
The form already uses role="search" and contains a single svg + input,
so the semantic selectors are unambiguous.
This commit is contained in:
8
TODO.md
8
TODO.md
@@ -18,9 +18,9 @@
|
||||
- [ ] **`tfe.css`**: Replace `.tfe-media-block` with `aside figure` — already wrapped in `<figure>` inside `<aside>`
|
||||
- [ ] **`tfe.css`**: Replace `.tfe-file-caption` with `aside figcaption` — native `<figcaption>` element
|
||||
- [ ] **`search.css`**: Replace `.repertoire-col > h2` styling — already targets `section > h2`, can use `.repertoire-index section > h2`
|
||||
- [ ] **`common.css`**: Replace `.site-search__icon` with `header form[role="search"] svg`
|
||||
- [ ] **`common.css`**: Replace `.site-search__input` with `header form[role="search"] input`
|
||||
- [ ] **`common.css`**: Replace `.site-search` with `header form[role="search"]`
|
||||
- [x] **`common.css`**: Replace `.site-search__icon` with `header form[role="search"] svg`
|
||||
- [x] **`common.css`**: Replace `.site-search__input` with `header form[role="search"] input`
|
||||
- [x] **`common.css`**: Replace `.site-search` with `header form[role="search"]`
|
||||
- [ ] **`system.php`**: Move inline `<style>` block to `system.css` (already in TODO, reinforced here)
|
||||
|
||||
### Template HTML changes to match
|
||||
@@ -29,7 +29,7 @@
|
||||
- [ ] In `tfe.php`, remove `class="tfe-media-block"` — target via `aside figure`
|
||||
- [ ] In `tfe.php`, remove `class="tfe-file-caption"` — target via `aside figcaption`
|
||||
- [ ] In `index.php`, remove `class="card__caption"` — target via `li > a > p`
|
||||
- [ ] In `search-bar.php` and `header.php`, remove `class="site-search__icon"` and `class="site-search__input"`
|
||||
- [x] In `search-bar.php` and `header.php`, remove `class="site-search"`, `class="site-search__icon"` and `class="site-search__input"`
|
||||
|
||||
## PHP Components (Reusable Partials/Includes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user