Skip to content

Commit 4ac9fe3

Browse files
committed
chore(cleanup): strip ~1400 lines of dead CSS across 8 stylesheets
Programmatic sweep: parse each .css into rule blocks, gather class selectors per block, treat a block as dead when ALL its class selectors have zero references in src-ui/src/*.{tsx,ts}. Excludes xterm.js's library-rendered classes (.scrollbar / .xterm-scrollable-element / .xterm-viewport / .xterm-cursor-layer / .xterm-helpers). Verified dynamic-construction matches up front (multi-agent-grid--columns-${N}, pane-slot-${idx}, remote-pill- ${proto}, status-${state}) so they aren't false-positive killed. Per-file deltas: - styles/global.css: 2463 → 1577 lines (-886) Old Compiler / synthesis / repo-map / sp-* / k-* / view-stats / token-row / price-row / scan-* / rm-* / analysis-progress / cache-badge / deep-analysis-btn / etc. Most of the file was carcass from the pre-launchpad builder UI. - center/CenterPanel.css: 1401 → 1235 (-166) resume-section / resume-card-* / launchpad-card-main / launchpad-empty-state / library-pin-btn / library-skeleton-pin / multi-agent-toggle / tab-drag-ghost - center/DosPlayer.css: 245 → 92 (-153) Old in-app DOS-game picker UI: dos-cloud-frame / dos-picker* / dos-game-* / dos-esc-overlay+title+btn+resume. - center/MultiAgentGrid.css: 352 → 341 (-11) empty-pane-title / unused .is-disabled rule. - left/Explorer.css: 776 → 704 (-72) panel-label / status-bar / open-folder-btn / explorer-welcome / recent-folder-item / tree-rename-wrap / lang-dropdown-trigger. - right/DiffPanel.css: 205 → 185 (-20) diff-line-add / diff-line-del (legacy add/del row backgrounds superseded by line-by-line tokenization). - right/HistoryBoard.css: 137 → 130 (-7) history-card-time / history-card-tool (only -tool-wrap is alive). - right/TaskBoard.css: 725 → 656 (-69) task-add-btn / task-add-btn.active / task-input / task-input-area / task-empty-sub / task-card.shift-down (drag flip animation never applied). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6aeee3d commit 4ac9fe3

8 files changed

Lines changed: 24 additions & 1416 deletions

File tree

src-ui/src/components/center/CenterPanel.css

Lines changed: 0 additions & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -499,87 +499,6 @@
499499
animation: slideDownToast 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
500500
pointer-events: none;
501501
}
502-
503-
/* ─── Resumable Sessions ─── */
504-
505-
.resume-section {
506-
margin-top: 24px;
507-
width: 100%;
508-
}
509-
510-
.resume-section-title {
511-
font-size: 13px;
512-
font-weight: 600;
513-
color: var(--text-2);
514-
text-transform: uppercase;
515-
letter-spacing: 0.5px;
516-
margin-bottom: 12px;
517-
padding-left: 4px;
518-
}
519-
520-
.resume-list {
521-
display: flex;
522-
flex-direction: column;
523-
gap: 8px;
524-
}
525-
526-
.resume-card {
527-
display: flex;
528-
align-items: center;
529-
gap: 12px;
530-
padding: 12px 16px;
531-
background: var(--bg-card);
532-
border: 1px solid transparent;
533-
box-shadow: 0 2px 8px rgba(0,0,0,0.02);
534-
border-radius: var(--radius-md);
535-
cursor: pointer;
536-
transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
537-
}
538-
539-
.resume-card:hover {
540-
transform: translateY(-2px);
541-
background-color: var(--bg-card);
542-
}
543-
544-
.resume-card-icon {
545-
font-size: 20px;
546-
display: flex;
547-
align-items: center;
548-
flex-shrink: 0;
549-
}
550-
551-
.resume-card-info {
552-
flex: 1;
553-
display: flex;
554-
flex-direction: column;
555-
gap: 2px;
556-
min-width: 0;
557-
}
558-
559-
.resume-card-title {
560-
font-size: 14px;
561-
font-weight: 500;
562-
color: var(--text-1);
563-
}
564-
565-
.resume-card-token {
566-
font-size: 11px;
567-
color: var(--text-3, var(--text-2));
568-
font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
569-
opacity: 0.7;
570-
}
571-
572-
.resume-card-badge {
573-
font-size: 11px;
574-
font-weight: 600;
575-
color: #34d399;
576-
background: rgba(52, 211, 153, 0.12);
577-
padding: 3px 10px;
578-
border-radius: var(--radius-sm);
579-
flex-shrink: 0;
580-
letter-spacing: 0.3px;
581-
}
582-
583502
/* ─── Mode Switch Button (Arcade vs Tools) ─────────────── */
584503
/* Sized to match the right-pane add-task FAB so the "switch to full tool
585504
list" affordance is actually findable. Default card-bg + accent glyph is
@@ -613,30 +532,10 @@
613532
background: transparent;
614533
transition: transform 0.4s ease;
615534
}
616-
617-
/* ─── Desktop Empty State ──────────────────────────────────────────────── */
618-
619-
.launchpad-empty-state {
620-
display: flex;
621-
flex-direction: column;
622-
align-items: center;
623-
justify-content: center;
624-
gap: 14px;
625-
padding: 80px 24px;
626-
text-align: center;
627-
}
628-
629535
.empty-icon {
630536
color: var(--text-3);
631537
opacity: 0.6;
632538
}
633-
634-
.empty-title {
635-
font-size: 16px;
636-
font-weight: 500;
637-
color: var(--text-1);
638-
}
639-
640539
.empty-hint {
641540
font-size: 13px;
642541
color: var(--text-2);
@@ -1038,27 +937,6 @@
1038937
.tool-config-btn-primary:hover:not(:disabled) {
1039938
background: var(--accent-hover);
1040939
}
1041-
1042-
/* ─── Tab Drag Ghost (drag-to-detach feedback) ─── */
1043-
1044-
.tab-drag-ghost {
1045-
position: fixed;
1046-
padding: 8px 20px;
1047-
font-size: 13px;
1048-
font-weight: 500;
1049-
color: var(--text-1);
1050-
background: var(--bg-panel);
1051-
border: 1px solid var(--border);
1052-
border-radius: var(--radius-sm);
1053-
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
1054-
backdrop-filter: blur(12px);
1055-
pointer-events: none;
1056-
z-index: 9999;
1057-
white-space: nowrap;
1058-
opacity: 0.92;
1059-
transition: border-color 0.15s, box-shadow 0.15s;
1060-
}
1061-
1062940
.tab-drag-ghost.ready {
1063941
border-color: #34d399;
1064942
box-shadow: 0 12px 40px rgba(52, 211, 153, 0.25), 0 0 0 1px rgba(52, 211, 153, 0.3);
@@ -1136,23 +1014,6 @@
11361014
.remote-pill:hover {
11371015
background: rgba(255, 255, 255, 0.08);
11381016
}
1139-
1140-
.remote-pill-ws {
1141-
color: #cca47b;
1142-
border-color: rgba(204, 164, 123, 0.2);
1143-
}
1144-
.remote-pill-ws:hover {
1145-
border-color: rgba(204, 164, 123, 0.4);
1146-
}
1147-
1148-
.remote-pill-ssh {
1149-
color: #8da2b3;
1150-
border-color: rgba(141, 162, 179, 0.2);
1151-
}
1152-
.remote-pill-ssh:hover {
1153-
border-color: rgba(141, 162, 179, 0.4);
1154-
}
1155-
11561017
.remote-pill-proto {
11571018
font-size: 10px;
11581019
font-weight: 700;
@@ -1368,33 +1229,6 @@
13681229
color: #fff;
13691230
box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
13701231
}
1371-
1372-
/* Multi-agent mode toggle — floating icon button in pane's top-right. */
1373-
.multi-agent-toggle {
1374-
position: absolute;
1375-
top: 6px;
1376-
right: 8px;
1377-
z-index: 10;
1378-
width: 24px;
1379-
height: 24px;
1380-
padding: 0;
1381-
font-size: 14px;
1382-
line-height: 22px;
1383-
color: var(--text-muted, #888);
1384-
background: var(--bg-tertiary, rgba(15, 15, 15, 0.6));
1385-
border: 1px solid var(--border-color, #2a2a2a);
1386-
border-radius: 4px;
1387-
cursor: pointer;
1388-
/* Color transitions only per CLAUDE.md §4 (no translate/scale on hover). */
1389-
transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
1390-
}
1391-
1392-
.multi-agent-toggle:hover {
1393-
color: var(--text-primary, #ddd);
1394-
background: var(--bg-hover, rgba(45, 45, 45, 0.8));
1395-
border-color: var(--accent, #6cc275);
1396-
}
1397-
13981232
.multi-agent-toggle.is-on {
13991233
color: var(--accent, #6cc275);
14001234
border-color: var(--accent, #6cc275);

src-ui/src/components/center/DosPlayer.css

Lines changed: 0 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -21,106 +21,6 @@
2121
outline: none;
2222
cursor: default;
2323
}
24-
25-
/* Cloud mode — iframe fills container seamlessly */
26-
.dos-cloud-frame {
27-
flex: 1;
28-
width: 100%;
29-
height: 100%;
30-
border: none;
31-
background: #000;
32-
outline: none;
33-
}
34-
35-
36-
/* ─── Game Picker (no game loaded) ─── */
37-
38-
.dos-picker {
39-
flex: 1;
40-
display: flex;
41-
flex-direction: column;
42-
align-items: center;
43-
justify-content: center;
44-
gap: 20px;
45-
padding: 40px;
46-
user-select: none;
47-
}
48-
49-
.dos-picker-title {
50-
font-family: 'Cascadia Mono', 'Cascadia Code', Consolas, monospace;
51-
font-size: 20px;
52-
font-weight: 600;
53-
color: #e8e4de;
54-
letter-spacing: 2px;
55-
text-transform: uppercase;
56-
opacity: 0.7;
57-
}
58-
59-
.dos-picker-subtitle {
60-
font-family: 'Cascadia Mono', monospace;
61-
font-size: 12px;
62-
color: #6b6762;
63-
margin-top: -8px;
64-
}
65-
66-
.dos-game-grid {
67-
display: flex;
68-
flex-wrap: wrap;
69-
gap: 16px;
70-
justify-content: center;
71-
margin-top: 12px;
72-
}
73-
74-
.dos-game-card {
75-
width: 160px;
76-
height: 120px;
77-
border-radius: var(--radius-sm);
78-
background: rgba(255, 255, 255, 0.04);
79-
border: 1px solid rgba(255, 255, 255, 0.06);
80-
display: flex;
81-
flex-direction: column;
82-
align-items: center;
83-
justify-content: center;
84-
gap: 10px;
85-
cursor: pointer;
86-
transition: all 0.2s ease;
87-
padding: 16px;
88-
}
89-
90-
.dos-game-card:hover {
91-
background: rgba(196, 149, 106, 0.08);
92-
border-color: rgba(196, 149, 106, 0.2);
93-
}
94-
95-
.dos-game-card:active {
96-
transform: scale(0.97);
97-
}
98-
99-
.dos-game-icon {
100-
font-size: 32px;
101-
line-height: 1;
102-
opacity: 0.8;
103-
}
104-
105-
.dos-game-name {
106-
font-family: 'Cascadia Mono', monospace;
107-
font-size: 11px;
108-
color: #e8e4de;
109-
text-align: center;
110-
white-space: nowrap;
111-
overflow: hidden;
112-
text-overflow: ellipsis;
113-
max-width: 140px;
114-
opacity: 0.8;
115-
}
116-
117-
.dos-game-size {
118-
font-family: 'Cascadia Mono', monospace;
119-
font-size: 9px;
120-
color: #6b6762;
121-
margin-top: -6px;
122-
}
123-
12424
.dos-empty-hint {
12525
font-family: 'Cascadia Mono', monospace;
12626
font-size: 11px;
@@ -136,63 +36,10 @@
13636
border-radius: var(--radius-xs);
13737
font-size: 10px;
13838
}
139-
140-
/* ─── ESC Overlay ─── */
141-
142-
.dos-esc-overlay {
143-
position: absolute;
144-
inset: 0;
145-
background: rgba(26, 25, 23, 0.85);
146-
display: flex;
147-
flex-direction: column;
148-
align-items: center;
149-
justify-content: center;
150-
gap: 16px;
151-
z-index: 10;
152-
backdrop-filter: blur(4px);
153-
animation: dosOverlayIn 0.2s ease;
154-
}
155-
15639
@keyframes dosOverlayIn {
15740
from { opacity: 0; }
15841
to { opacity: 1; }
15942
}
160-
161-
.dos-esc-title {
162-
font-family: 'Cascadia Mono', monospace;
163-
font-size: 16px;
164-
color: #e8e4de;
165-
font-weight: 600;
166-
}
167-
168-
.dos-esc-btn {
169-
font-family: 'Cascadia Mono', monospace;
170-
font-size: 12px;
171-
padding: 8px 28px;
172-
border-radius: var(--radius-xs);
173-
border: 1px solid rgba(196, 149, 106, 0.3);
174-
background: rgba(196, 149, 106, 0.1);
175-
color: #C4956A;
176-
cursor: pointer;
177-
transition: all 0.15s ease;
178-
}
179-
180-
.dos-esc-btn:hover {
181-
background: rgba(196, 149, 106, 0.2);
182-
border-color: rgba(196, 149, 106, 0.5);
183-
}
184-
185-
.dos-esc-resume {
186-
font-family: 'Cascadia Mono', monospace;
187-
font-size: 11px;
188-
color: #6b6762;
189-
cursor: pointer;
190-
}
191-
192-
.dos-esc-resume:hover {
193-
color: #e8e4de;
194-
}
195-
19643
/* ─── Loading state ─── */
19744

19845
.dos-loading {

0 commit comments

Comments
 (0)