Repository navigation
Commit e4b0eb0
committed
chore(webview): remove dead CSS classes from the global stylesheet
What:
- Drop the `.border-x` / `.border-y` selectors from the `@layer components`
border-color rule (`.border`, `.border-r`, `.border-l`, `.border-t`,
`.border-b` stay).
- Drop `.animate-smooth-bounce` (the `smooth-bounce` keyframe stays: RooHero
applies it through an inline `animation` style).
- Drop the `.code-block-scrollable` selectors: the two border/transition
rules and the five `::-webkit-scrollbar-*` rules plus their comment block.
`.scrollable` and its `body:hover` / `body:focus-within` variants stay.
- Drop `.custom-markdown > pre` and `.animate-slide-in-right` together with
its now-orphaned `slide-in-right` keyframe.
Why:
- Every removed class has zero references across the tracked tree
(`git grep <class> -- . ':!webview-ui/src/index.css'` returns 0 for each).
No component, test, visual fixture, or dependency emits them. The
`.code-block-scrollable` emitter was deleted upstream when the className was
commented out; the stylesheet rules were left behind.
- `.animate-smooth-bounce` was never applied: RooHero.tsx:24 sets
`animation: "smooth-bounce 1s ease-in-out infinite"` directly, which is why
the keyframe must stay and only the wrapper class goes.
Impact:
- No runtime behavior change. The built stylesheet keeps every live sibling
(verified against `src/webview-ui/build/assets/index.css`: `animate-fade-in`,
`smooth-bounce`, and `scrollable` are all still emitted; the four removed
names are absent).
- 63 lines removed, 3 lines added (the shortened selector terminators).
- Also normalizes this file's line endings to LF to match the committed blob,
which incidentally clears a pre-existing Prettier failure on the file.
Deliberately out of scope (kept): `.dropdown-container`. The seats disagree on
whether it is dead, and it is a documented toolkit dropdown pattern, so it is
deferred to a NEEDS-TEST unit rather than decided here.1 parent 159c42e commit e4b0eb0
1 file changed
Lines changed: 3 additions & 63 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
| 202 | + | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
| |||
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 235 | | |
242 | 236 | | |
243 | 237 | | |
| |||
274 | 268 | | |
275 | 269 | | |
276 | 270 | | |
277 | | - | |
278 | | - | |
279 | | - | |
| 271 | + | |
280 | 272 | | |
281 | 273 | | |
282 | 274 | | |
283 | 275 | | |
284 | 276 | | |
285 | 277 | | |
286 | 278 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 279 | + | |
292 | 280 | | |
293 | 281 | | |
294 | 282 | | |
| |||
323 | 311 | | |
324 | 312 | | |
325 | 313 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | 314 | | |
354 | 315 | | |
355 | 316 | | |
| |||
463 | 424 | | |
464 | 425 | | |
465 | 426 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 427 | | |
475 | 428 | | |
476 | 429 | | |
| |||
483 | 436 | | |
484 | 437 | | |
485 | 438 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | 439 | | |
500 | 440 | | |
501 | 441 | | |
| |||
0 commit comments