docs: task 7 must style the detail block too, not only the card

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-15 14:25:33 -05:00
1 parent 1e9e5cb07d
commit 1fda796812
1 file changed
+18 -3
@@ -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 `<!-- wp:chrnx/selected-work /-->` line with a paragraph, so the hom
<!-- wp:paragraph --><p><?php echo esc_html__( 'Lo que sobrevive a la loquera nocturna, con su repo y su estado real.', 'chrnx' ); ?></p><!-- /wp:paragraph -->
```
- [ ] **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**