From 05ca4979005a57c31b79b5f250a87846593ed036 Mon Sep 17 00:00:00 2001 From: BenStullsBets Date: Fri, 26 Jun 2026 14:47:05 -0700 Subject: [PATCH] chore: drop dead cw-by-*/cw-mixed preview CSS; fix added-block comment to cw-ins-* Final-review follow-up: the live preview colors added blocks via colorByAuthor(kind="ins") emitting cw-ins-*; the cw-by-*/cw-mixed rules (only authorBadge, which has no callers) were styled-but-never-emitted. Cosmetic only; build + 260 unit green. Co-Authored-By: Claude Opus 4.8 (1M context) --- media/preview.css | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/media/preview.css b/media/preview.css index c67b333..fa944b0 100644 --- a/media/preview.css +++ b/media/preview.css @@ -35,16 +35,13 @@ del { text-decoration: line-through; opacity: 0.7; } .cw-del-claude { background: rgba(188,140,255,0.13); text-decoration: line-through; text-decoration-color: #bc8cff; } .cw-del-none { background: var(--vscode-diffEditor-removedTextBackground, rgba(248,81,73,0.11)); text-decoration: line-through; opacity: 0.7; } -/* whole-block ops: an added block is an insertion (author-colored inside via cw-by-*); - a standalone removed block is neutral struck (adjacency heuristic fallback) */ +/* whole-block ops: an added block is an insertion (its author runs are emitted as + cw-ins-* via colorByAuthor with kind="ins"); a standalone removed block is neutral + struck (adjacency heuristic fallback) */ .cw-added { background: transparent; } .cw-removed { background: var(--vscode-diffEditor-removedTextBackground, rgba(248,81,73,0.10)); text-decoration: line-through; opacity: 0.65; } .cw-changed { outline: none; } -/* added-block author runs (colorByAuthor sentinels) read as insertions */ -.cw-by-human { background: rgba(63,185,80,0.14); border-bottom: 2px solid #3fb950; text-decoration: none; } -.cw-by-claude { background: rgba(88,166,255,0.15); border-bottom: 2px solid #58a6ff; text-decoration: none; } -.cw-blk.cw-by-claude, .cw-blk.cw-by-human, .cw-blk.cw-mixed { outline: 2px solid currentColor; outline-offset: 2px; background: transparent; } #cw-legend .cw-swatch { padding: 0 0.4em; border-radius: 3px; } #cw-summary .cw-prop { opacity: 0.85; } .cw-badge {