[CSS] Dead code purge from redundancy report #21

Closed
opened 2026-04-10 17:28:45 +00:00 by vigilio · 0 comments
Owner

From Murdock's audit (full report: /tmp/agent-results/redundancy-report.txt).

HIGH PRIORITY

1. Remove 05-utilities.css lines ~52-120

The entire stats/grid-2/card-grid block is dead code — superseded by 08-layout.css.
6 selectors, all overridden.

2. Fix dialog min-width conflict

02-semantic.css:595 sets min-width: 100% (Pico legacy).
03-components.css:680 sets max-width: min(90vw, 42rem).
They fight each other. Remove or set min-width: auto in 02-semantic.

3. Fix ai-disclosure selector bug

CSS has [ai-disclosure] — missing the data- prefix.
Should be [data-ai-disclosure].

MEDIUM

  1. Remove hgroup p { font-family } in 02-semantic (overridden by 03-components)
  2. Remove nested list margin restatement in 02-semantic (00-reset already covers it)

LOW (cleanup)

  1. Simplify dialog > article > * selectors (Pico legacy) — verify against actual templates
  2. Convert table.striped class to [data-table="striped"] data-attr
  3. Simplify overqualified nav > ul > li > a chains
  4. Add comment on [data-layout="hero"] in 08-layout vs 09-landing (intentional override)

DO NOT DELETE

Data-attr selectors for future content (data-abstract, data-byline, data-paper, etc.) — flag with comments but keep.

From Murdock's audit (full report: /tmp/agent-results/redundancy-report.txt). ## HIGH PRIORITY ### 1. Remove 05-utilities.css lines ~52-120 The entire stats/grid-2/card-grid block is dead code — superseded by 08-layout.css. 6 selectors, all overridden. ### 2. Fix dialog min-width conflict 02-semantic.css:595 sets `min-width: 100%` (Pico legacy). 03-components.css:680 sets `max-width: min(90vw, 42rem)`. They fight each other. Remove or set `min-width: auto` in 02-semantic. ### 3. Fix ai-disclosure selector bug CSS has `[ai-disclosure]` — missing the `data-` prefix. Should be `[data-ai-disclosure]`. ## MEDIUM 4. Remove `hgroup p { font-family }` in 02-semantic (overridden by 03-components) 5. Remove nested list margin restatement in 02-semantic (00-reset already covers it) ## LOW (cleanup) 6. Simplify dialog > article > * selectors (Pico legacy) — verify against actual templates 7. Convert `table.striped` class to `[data-table="striped"]` data-attr 8. Simplify overqualified nav > ul > li > a chains 9. Add comment on [data-layout="hero"] in 08-layout vs 09-landing (intentional override) ## DO NOT DELETE Data-attr selectors for future content (data-abstract, data-byline, data-paper, etc.) — flag with comments but keep.
vigilio added this to the M3: oklch palette + dead code purge milestone 2026-04-10 17:28:45 +00:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: trentuna/asw#21
No description provided.