diff --git a/docs/superpowers/plans/2026-08-15-projects-as-entities.md b/docs/superpowers/plans/2026-08-15-projects-as-entities.md index ef46587..2f80b8d 100644 --- a/docs/superpowers/plans/2026-08-15-projects-as-entities.md +++ b/docs/superpowers/plans/2026-08-15-projects-as-entities.md @@ -819,7 +819,7 @@ git commit -m "feat: give project and show archives their own templates" - Create: `patterns/projects-landing.php` - Modify: `patterns/home-projects.php` -- Modify: `assets/css/components.css` +- Modify: `assets/css/components.css` — styles for BOTH `chrnx-project-card*` (Task 4) and `chrnx-project-detail*` (Task 5); neither shipped with any rules **Interfaces:** @@ -871,9 +871,24 @@ Replace the `` line with a paragraph, so the hom
``` -- [ ] **Step 3: Add card styles** +- [ ] **Step 3: Add styles for BOTH new components** -In `assets/css/components.css`, find the `.chrnx-release-card` rules and add `.chrnx-project-card` to the same selectors rather than duplicating the block. The two cards are the same object with a different label. +Task 5 shipped `blocks/project-detail/render.php` with `chrnx-project-detail__*` class names and no stylesheet rules, so the project archive header is currently unstyled. Task 4 shipped `chrnx-project-card*` in the same state. Both are fixed here. + +In `assets/css/components.css`, extend the existing selectors rather than duplicating rule bodies — the project components are structurally identical to their release counterparts: + +- `.chrnx-release-card*` rules appear in two separate places, around lines 270 and 886. Add the matching `.chrnx-project-card*` selector to every one of them, including `__art`, `__cover`, `__fallback`, `__link`, `__title`, the `::after`, and the `:hover`. +- `.chrnx-release-list` gains `.chrnx-project-list`. +- The eleven `.chrnx-release-detail*` rules gain their `.chrnx-project-detail*` counterparts, including `__head`, `__head.is-bare`, `__art`, `__cover`, `__fallback`, `__intro`, `__status`, and `__description`. + +Verify with a grep afterwards that no `chrnx-project-` class emitted by either render file lacks a rule: + +```bash +grep -oh "chrnx-project-[a-z-]*\(__[a-z-]*\)\?" blocks/project-*/render.php | sort -u +grep -oh "\.chrnx-project-[a-z-]*\(__[a-z-]*\)\?" assets/css/components.css | sort -u +``` + +The second list must cover the first. - [ ] **Step 4: Verify the landing renders locally**