rerender-lens 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +146 -5
- package/dist/budget-COBu7jBU.d.cts +64 -0
- package/dist/budget-LkNjGtRc.d.ts +64 -0
- package/dist/cli.cjs +458 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +4 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +452 -0
- package/dist/cli.js.map +1 -0
- package/dist/devtools-BHGUUo-p.d.ts +244 -0
- package/dist/devtools-DmhWiWcN.d.cts +244 -0
- package/dist/index.cjs +652 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -336
- package/dist/index.d.ts +40 -336
- package/dist/index.js +636 -24
- package/dist/index.js.map +1 -1
- package/dist/notifiers-BGQtWKfX.d.cts +90 -0
- package/dist/notifiers-BjjGSHpp.d.ts +90 -0
- package/dist/playwright.cjs +196 -0
- package/dist/playwright.cjs.map +1 -0
- package/dist/playwright.d.cts +35 -0
- package/dist/playwright.d.ts +35 -0
- package/dist/playwright.js +184 -0
- package/dist/playwright.js.map +1 -0
- package/dist/relay.cjs +166 -0
- package/dist/relay.cjs.map +1 -0
- package/dist/relay.d.cts +41 -0
- package/dist/relay.d.ts +41 -0
- package/dist/relay.js +161 -0
- package/dist/relay.js.map +1 -0
- package/dist/rerender-lens.iife.js +1717 -0
- package/dist/setup.cjs +1510 -0
- package/dist/setup.cjs.map +1 -0
- package/dist/setup.d.cts +2 -0
- package/dist/setup.d.ts +2 -0
- package/dist/setup.js +1508 -0
- package/dist/setup.js.map +1 -0
- package/dist/types-BzUEVkxJ.d.cts +177 -0
- package/dist/types-BzUEVkxJ.d.ts +177 -0
- package/dist/vite.cjs +113 -0
- package/dist/vite.cjs.map +1 -0
- package/dist/vite.d.cts +84 -0
- package/dist/vite.d.ts +84 -0
- package/dist/vite.js +103 -0
- package/dist/vite.js.map +1 -0
- package/dist/vitest-setup.cjs +1299 -0
- package/dist/vitest-setup.cjs.map +1 -0
- package/dist/vitest-setup.d.cts +8 -0
- package/dist/vitest-setup.d.ts +8 -0
- package/dist/vitest-setup.js +1297 -0
- package/dist/vitest-setup.js.map +1 -0
- package/dist/vitest.cjs +1360 -0
- package/dist/vitest.cjs.map +1 -0
- package/dist/vitest.d.cts +52 -0
- package/dist/vitest.d.ts +52 -0
- package/dist/vitest.js +1351 -0
- package/dist/vitest.js.map +1 -0
- package/package.json +84 -4
- package/panel/panel.css +418 -0
- package/panel/panel.html +12 -0
- package/panel/panel.js +3325 -0
package/panel/panel.css
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
/* rerender-lens panel. Shared by panel.html (DevTools), sidepanel.html (side panel / window),
|
|
2
|
+
* sidebar.html (Elements sidebar) and popup.html. Row heights are mirrored in src/panel.ts. */
|
|
3
|
+
:root {
|
|
4
|
+
--bg: #ffffff;
|
|
5
|
+
--bg-alt: #f6f7f9;
|
|
6
|
+
--bg-toolbar: #fafbfc;
|
|
7
|
+
--bg-inset: #eef0f3;
|
|
8
|
+
--border: #e2e5ea;
|
|
9
|
+
--border-strong: #cfd4db;
|
|
10
|
+
--text: #1f2328;
|
|
11
|
+
--text-dim: #6b7280;
|
|
12
|
+
--text-faint: #9aa1ab;
|
|
13
|
+
--accent: #2563eb;
|
|
14
|
+
--accent-bg: #e8effd;
|
|
15
|
+
--selected: #e4edfd;
|
|
16
|
+
--selected-text: #1f2328;
|
|
17
|
+
--hover: #f1f3f6;
|
|
18
|
+
--danger: #d0342c;
|
|
19
|
+
--danger-bg: #fdecea;
|
|
20
|
+
--warn: #c2620a;
|
|
21
|
+
--warn-bg: #fff3e2;
|
|
22
|
+
--ok: #15803d;
|
|
23
|
+
--ok-bg: #e6f6ec;
|
|
24
|
+
--code: #1f2328;
|
|
25
|
+
--key: #6d3fc6;
|
|
26
|
+
--value-string: #b3261e;
|
|
27
|
+
--value-number: #1d4ed8;
|
|
28
|
+
--value-fn: #0e7490;
|
|
29
|
+
--guide: #e7eaee;
|
|
30
|
+
--shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
|
|
31
|
+
--radius: 6px;
|
|
32
|
+
--font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
33
|
+
--mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
34
|
+
}
|
|
35
|
+
.theme-dark {
|
|
36
|
+
--bg: #1e1f22;
|
|
37
|
+
--bg-alt: #232428;
|
|
38
|
+
--bg-toolbar: #202124;
|
|
39
|
+
--bg-inset: #2a2b30;
|
|
40
|
+
--border: #33353b;
|
|
41
|
+
--border-strong: #45484f;
|
|
42
|
+
--text: #e6e7ea;
|
|
43
|
+
--text-dim: #9da3ad;
|
|
44
|
+
--text-faint: #6f757e;
|
|
45
|
+
--accent: #7aa7f7;
|
|
46
|
+
--accent-bg: #1f2a44;
|
|
47
|
+
--selected: #223a63;
|
|
48
|
+
--selected-text: #ffffff;
|
|
49
|
+
--hover: #2a2c31;
|
|
50
|
+
--danger: #f28b82;
|
|
51
|
+
--danger-bg: #3a2220;
|
|
52
|
+
--warn: #f5c26b;
|
|
53
|
+
--warn-bg: #3a2f16;
|
|
54
|
+
--ok: #81c995;
|
|
55
|
+
--ok-bg: #1e3527;
|
|
56
|
+
--code: #e6e7ea;
|
|
57
|
+
--key: #c9a8ff;
|
|
58
|
+
--value-string: #f28b82;
|
|
59
|
+
--value-number: #8ab4f8;
|
|
60
|
+
--value-fn: #7fd1e0;
|
|
61
|
+
--guide: #33353b;
|
|
62
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
* { box-sizing: border-box; }
|
|
66
|
+
[hidden] { display: none !important; }
|
|
67
|
+
html, body { margin: 0; height: 100%; }
|
|
68
|
+
body {
|
|
69
|
+
font: 12px/1.45 var(--font);
|
|
70
|
+
color: var(--text);
|
|
71
|
+
background: var(--bg);
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
-webkit-font-smoothing: antialiased;
|
|
74
|
+
}
|
|
75
|
+
#root { display: flex; flex-direction: column; height: 100vh; }
|
|
76
|
+
button, input { font: inherit; color: inherit; }
|
|
77
|
+
button {
|
|
78
|
+
background: transparent; border: 1px solid transparent; border-radius: var(--radius);
|
|
79
|
+
padding: 0 8px; cursor: pointer; height: 26px; display: inline-flex; align-items: center; gap: 5px;
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
}
|
|
82
|
+
button:hover { background: var(--hover); }
|
|
83
|
+
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
84
|
+
button.active { background: var(--accent-bg); color: var(--accent); }
|
|
85
|
+
button:disabled { opacity: 0.4; cursor: default; }
|
|
86
|
+
button.ib .glyph { font-size: 12px; line-height: 1; width: 14px; text-align: center; color: var(--text-dim); }
|
|
87
|
+
button.ib.active .glyph { color: var(--accent); }
|
|
88
|
+
::selection { background: var(--accent-bg); }
|
|
89
|
+
|
|
90
|
+
/* ---------- toolbar ---------- */
|
|
91
|
+
.toolbar {
|
|
92
|
+
display: flex; align-items: center; gap: 4px; padding: 5px 8px;
|
|
93
|
+
background: var(--bg-toolbar); border-bottom: 1px solid var(--border); flex: none; min-height: 38px;
|
|
94
|
+
}
|
|
95
|
+
.toolbar .sep { width: 1px; height: 18px; background: var(--border); margin: 0 3px; flex: none; }
|
|
96
|
+
.toolbar input[type="search"] {
|
|
97
|
+
flex: 1; min-width: 110px; max-width: 340px; height: 26px; padding: 0 10px;
|
|
98
|
+
border: 1px solid var(--border-strong); border-radius: 13px; background: var(--bg); outline: none;
|
|
99
|
+
}
|
|
100
|
+
.toolbar input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
|
|
101
|
+
.toolbar label.check { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 0 6px; height: 26px; border-radius: var(--radius); }
|
|
102
|
+
.toolbar label.check:hover { background: var(--hover); }
|
|
103
|
+
.toolbar .spacer { flex: 1; }
|
|
104
|
+
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); padding: 0 6px; white-space: nowrap; }
|
|
105
|
+
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
|
|
106
|
+
.status.connected .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
|
|
107
|
+
.status.partial .dot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
|
|
108
|
+
.tab-chip {
|
|
109
|
+
max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
110
|
+
padding: 2px 8px; border-radius: 10px; background: var(--bg-inset); color: var(--text-dim); font-size: 11px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* ---------- summary strip ---------- */
|
|
114
|
+
.summary {
|
|
115
|
+
display: flex; align-items: center; gap: 14px; padding: 4px 12px; flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
|
|
116
|
+
background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-dim);
|
|
117
|
+
}
|
|
118
|
+
.summary .stat { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
|
|
119
|
+
.summary .stat b { font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
|
|
120
|
+
.summary .stat.bad b { color: var(--danger); }
|
|
121
|
+
.summary .stat.good b { color: var(--ok); }
|
|
122
|
+
.summary .stat .mono { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--key); overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
|
|
123
|
+
.summary button.stat { height: 22px; padding: 0 6px; margin: 0 -6px; }
|
|
124
|
+
.summary button.stat:hover { background: var(--hover); }
|
|
125
|
+
|
|
126
|
+
/* ---------- banner, toast ---------- */
|
|
127
|
+
.banner { padding: 6px 12px; background: var(--warn-bg); color: var(--text); border-bottom: 1px solid var(--border); font-size: 11px; flex: none; }
|
|
128
|
+
.banner div { padding-left: 16px; position: relative; }
|
|
129
|
+
.banner div::before { content: "!"; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--warn); }
|
|
130
|
+
.banner div + div { margin-top: 3px; }
|
|
131
|
+
.hidden-file { display: none; }
|
|
132
|
+
.toast {
|
|
133
|
+
position: fixed; right: 12px; bottom: 12px; z-index: 10; pointer-events: none;
|
|
134
|
+
background: var(--text); color: var(--bg); padding: 5px 12px; border-radius: 14px; font-size: 11px; box-shadow: var(--shadow);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ---------- layout ---------- */
|
|
138
|
+
.main { display: flex; flex: 1; min-height: 0; }
|
|
139
|
+
.left { width: 42%; min-width: 180px; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
|
|
140
|
+
.resizer { width: 5px; cursor: col-resize; background: var(--border); flex: none; transition: background 120ms; }
|
|
141
|
+
.resizer:hover { background: var(--accent); }
|
|
142
|
+
.views { display: flex; gap: 2px; padding: 5px 8px; border-bottom: 1px solid var(--border); background: var(--bg-toolbar); flex: none; }
|
|
143
|
+
.views button { height: 24px; font-size: 11px; padding: 0 10px; border-radius: 12px; color: var(--text-dim); }
|
|
144
|
+
.views button.active { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
|
|
145
|
+
.left .tree { width: auto; min-width: 0; border-right: none; flex: 1; position: relative; }
|
|
146
|
+
.tree { overflow: auto; outline: none; background: var(--bg); }
|
|
147
|
+
.tree:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-bg); }
|
|
148
|
+
.table-wrap { flex: 1; overflow: auto; }
|
|
149
|
+
.virtual-inner { position: relative; width: 100%; }
|
|
150
|
+
|
|
151
|
+
/* ---------- tree rows (scoped to the virtual list so other pages can use plain class names) ---------- */
|
|
152
|
+
.row {
|
|
153
|
+
display: flex; align-items: center; height: 22px; padding-right: 8px; white-space: nowrap;
|
|
154
|
+
cursor: default; user-select: none; box-sizing: border-box;
|
|
155
|
+
}
|
|
156
|
+
.virtual-inner > .row { position: absolute; left: 0; right: 0; }
|
|
157
|
+
.row:hover { background: var(--hover); }
|
|
158
|
+
.row.selected { background: var(--selected); color: var(--selected-text); box-shadow: inset 2px 0 0 var(--accent); }
|
|
159
|
+
.row .indent { display: inline-flex; height: 100%; flex: none; margin-left: 6px; }
|
|
160
|
+
.row .guide { display: inline-block; width: 14px; height: 100%; border-left: 1px solid var(--guide); flex: none; }
|
|
161
|
+
.row .chevron { width: 16px; flex: none; color: var(--text-faint); font-size: 9px; text-align: center; }
|
|
162
|
+
.row .chevron.leaf { visibility: hidden; }
|
|
163
|
+
.row .tag { font-family: var(--mono); font-size: 11.5px; color: var(--code); }
|
|
164
|
+
.row .tag .bracket { color: var(--text-faint); }
|
|
165
|
+
.row .tag .name { color: var(--key); }
|
|
166
|
+
.row.selected .tag .name { color: inherit; font-weight: 600; }
|
|
167
|
+
.row .badges { margin-left: auto; padding-left: 10px; display: inline-flex; gap: 4px; }
|
|
168
|
+
.badge {
|
|
169
|
+
font-size: 10px; line-height: 15px; padding: 0 6px; border-radius: 8px; font-variant-numeric: tabular-nums;
|
|
170
|
+
background: var(--bg-inset); color: var(--text-dim); border: 1px solid transparent;
|
|
171
|
+
}
|
|
172
|
+
.badge.avoid { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
|
|
173
|
+
.row.flash { animation: flash 900ms ease-out; }
|
|
174
|
+
.row.selected.flash { animation: none; }
|
|
175
|
+
@keyframes flash { from { box-shadow: inset 3px 0 0 var(--warn); background: var(--warn-bg); } to { box-shadow: none; background: transparent; } }
|
|
176
|
+
.empty { padding: 28px 18px; color: var(--text-dim); text-align: center; line-height: 1.6; }
|
|
177
|
+
.empty code { font-family: var(--mono); font-size: 11px; background: var(--bg-inset); padding: 1px 5px; border-radius: 4px; }
|
|
178
|
+
|
|
179
|
+
/* ---------- details ---------- */
|
|
180
|
+
.details { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
|
|
181
|
+
.details-header {
|
|
182
|
+
display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--border);
|
|
183
|
+
background: var(--bg-toolbar); flex: none; min-height: 38px; flex-wrap: wrap;
|
|
184
|
+
}
|
|
185
|
+
.details-header .title { font-family: var(--mono); font-size: 13px; }
|
|
186
|
+
.details-header .title .name { color: var(--key); font-weight: 600; }
|
|
187
|
+
.details-header .meta { color: var(--text-dim); }
|
|
188
|
+
.tabs { display: inline-flex; gap: 2px; margin-left: auto; }
|
|
189
|
+
.tabs button { height: 24px; border-radius: 12px; padding: 0 10px; color: var(--text-dim); }
|
|
190
|
+
.tabs button.active { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
|
|
191
|
+
.details-body { flex: 1; overflow: auto; padding: 0 0 20px; }
|
|
192
|
+
.section { padding: 10px 14px; border-bottom: 1px solid var(--border); }
|
|
193
|
+
.section h3 {
|
|
194
|
+
margin: 0 0 8px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
|
|
195
|
+
color: var(--text-faint);
|
|
196
|
+
}
|
|
197
|
+
.section-title { padding: 10px 14px 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
|
|
198
|
+
.verdict { display: inline-block; padding: 2px 9px; border-radius: 10px; font-weight: 600; font-size: 11px; }
|
|
199
|
+
.verdict.avoid { background: var(--danger-bg); color: var(--danger); }
|
|
200
|
+
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
|
|
201
|
+
.meta { color: var(--text-dim); }
|
|
202
|
+
.reasons { margin: 8px 0 0; padding-left: 18px; }
|
|
203
|
+
.reasons li { margin: 4px 0; }
|
|
204
|
+
.actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
|
|
205
|
+
.actions button, .section.fix button, .sb-actions button { border: 1px solid var(--border-strong); font-size: 11px; height: 24px; background: var(--bg); }
|
|
206
|
+
.actions button:hover, .section.fix button:hover, .sb-actions button:hover { background: var(--hover); }
|
|
207
|
+
.crumbs { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
|
|
208
|
+
.crumbs b { color: var(--key); font-weight: 600; }
|
|
209
|
+
|
|
210
|
+
/* key/value tables */
|
|
211
|
+
.kv { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
|
|
212
|
+
.kv td { padding: 3px 6px 3px 0; vertical-align: top; }
|
|
213
|
+
.kv td.k { color: var(--key); white-space: nowrap; width: 1%; padding-right: 12px; }
|
|
214
|
+
.kv tr.changed td.k::before { content: "●"; color: var(--warn); margin-right: 5px; font-size: 8px; vertical-align: middle; }
|
|
215
|
+
.kv tr.changed { background: var(--warn-bg); }
|
|
216
|
+
.kv tr.changed.real { background: transparent; }
|
|
217
|
+
.kv tr.changed.real td.k::before { color: var(--accent); }
|
|
218
|
+
.kv .arrow { color: var(--text-faint); padding: 0 6px; }
|
|
219
|
+
.kv .kind { color: var(--text-dim); font-family: var(--font); font-size: 10px; margin-left: 6px; }
|
|
220
|
+
.kv.leaves { margin: 3px 0 4px 12px; width: auto; }
|
|
221
|
+
.kv.leaves td.k { color: var(--text-dim); }
|
|
222
|
+
details.diff { display: block; margin-top: 2px; }
|
|
223
|
+
details.diff summary { cursor: pointer; color: var(--accent); font-family: var(--font); font-size: 10px; }
|
|
224
|
+
.v { white-space: pre-wrap; word-break: break-word; color: var(--code); }
|
|
225
|
+
.v.str { color: var(--value-string); }
|
|
226
|
+
.v.num, .v.bool { color: var(--value-number); }
|
|
227
|
+
.v.fn { color: var(--value-fn); font-style: italic; }
|
|
228
|
+
.v.nil { color: var(--text-faint); }
|
|
229
|
+
details.obj { display: inline-block; vertical-align: top; }
|
|
230
|
+
details.obj summary { cursor: pointer; color: var(--text-dim); }
|
|
231
|
+
details.obj pre { margin: 4px 0 0 12px; font: 11px/1.4 var(--mono); white-space: pre-wrap; }
|
|
232
|
+
|
|
233
|
+
/* history / affected lists */
|
|
234
|
+
.history { list-style: none; margin: 0; padding: 0; }
|
|
235
|
+
.history li { display: flex; gap: 10px; padding: 5px 14px; cursor: pointer; border-bottom: 1px solid var(--border); align-items: center; }
|
|
236
|
+
.history li:hover { background: var(--hover); }
|
|
237
|
+
.history li.selected { background: var(--selected); color: var(--selected-text); }
|
|
238
|
+
.history .t { font-variant-numeric: tabular-nums; color: var(--text-dim); width: 74px; flex: none; font-family: var(--mono); font-size: 11px; }
|
|
239
|
+
.history .n { width: 32px; flex: none; color: var(--text-dim); }
|
|
240
|
+
.history .comp { flex: none; font-family: var(--mono); font-size: 11px; color: var(--key); }
|
|
241
|
+
.history .sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
242
|
+
|
|
243
|
+
/* fixes */
|
|
244
|
+
.snippet {
|
|
245
|
+
margin: 8px 0; padding: 10px 12px; font: 11px/1.5 var(--mono); background: var(--bg-inset);
|
|
246
|
+
border: 1px solid var(--border); border-radius: var(--radius); white-space: pre-wrap; overflow: auto;
|
|
247
|
+
}
|
|
248
|
+
.section.fix h3 { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text); font-family: var(--mono); }
|
|
249
|
+
.roots { margin: 0; padding-left: 18px; }
|
|
250
|
+
.roots li { margin: 4px 0; }
|
|
251
|
+
.root-link { color: var(--key); font-family: var(--mono); font-weight: 600; text-decoration: none; }
|
|
252
|
+
.root-link:hover { text-decoration: underline; }
|
|
253
|
+
.details-header .title .name { font-family: var(--mono); color: var(--key); }
|
|
254
|
+
|
|
255
|
+
/* cascade */
|
|
256
|
+
.cascade { font-size: 11px; }
|
|
257
|
+
.cascade-row { display: flex; gap: 8px; align-items: center; height: 22px; white-space: nowrap; cursor: default; border-radius: 4px; }
|
|
258
|
+
.cascade-row.avoid, .cascade-row.ok { cursor: pointer; }
|
|
259
|
+
.cascade-row:hover { background: var(--hover); }
|
|
260
|
+
.cascade-row .tag { font-family: var(--mono); }
|
|
261
|
+
.cascade-row .tag .name { color: var(--key); }
|
|
262
|
+
.cascade-row.untracked .tag .name { color: var(--text-faint); }
|
|
263
|
+
.cascade-row .tag .bracket { color: var(--text-faint); }
|
|
264
|
+
.cascade-row .verdict { padding: 0 7px; font-size: 10px; }
|
|
265
|
+
|
|
266
|
+
/* ---------- left-pane lists ---------- */
|
|
267
|
+
.grid { width: 100%; border-collapse: collapse; font-size: 11px; }
|
|
268
|
+
.grid th {
|
|
269
|
+
text-align: left; font-weight: 600; color: var(--text-dim); padding: 6px 10px; border-bottom: 1px solid var(--border);
|
|
270
|
+
position: sticky; top: 0; background: var(--bg-alt); cursor: pointer; white-space: nowrap; user-select: none; z-index: 1;
|
|
271
|
+
}
|
|
272
|
+
.grid th:hover { color: var(--text); }
|
|
273
|
+
.grid th.sorted { color: var(--accent); }
|
|
274
|
+
.grid td { padding: 4px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
|
|
275
|
+
.grid th.num, .grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
276
|
+
.grid td.c .name { font-family: var(--mono); color: var(--key); }
|
|
277
|
+
.grid td.c .name::before { content: "<"; color: var(--text-faint); }
|
|
278
|
+
.grid td.c .name::after { content: ">"; color: var(--text-faint); }
|
|
279
|
+
.grid td.fix { color: var(--text-dim); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
|
|
280
|
+
.grid tbody tr { cursor: pointer; }
|
|
281
|
+
.grid tbody tr:hover { background: var(--hover); }
|
|
282
|
+
|
|
283
|
+
.commits, .fixes, .contexts { list-style: none; margin: 0; padding: 0; }
|
|
284
|
+
.commits li { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; font-size: 11px; }
|
|
285
|
+
.commits li:hover { background: var(--hover); }
|
|
286
|
+
.commits li.selected { background: var(--selected); color: var(--selected-text); box-shadow: inset 2px 0 0 var(--accent); }
|
|
287
|
+
.commits .id { font-family: var(--mono); color: var(--text-dim); width: 44px; flex: none; }
|
|
288
|
+
.commits .t { font-family: var(--mono); color: var(--text-dim); flex: none; }
|
|
289
|
+
.commits .n { flex: none; }
|
|
290
|
+
.commits .root { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
|
|
291
|
+
.root-commits li { cursor: pointer; }
|
|
292
|
+
.fixes li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 11px; }
|
|
293
|
+
.fixes li:hover { background: var(--hover); }
|
|
294
|
+
.fixes li.selected { background: var(--selected); color: var(--selected-text); box-shadow: inset 2px 0 0 var(--accent); }
|
|
295
|
+
.fixes .label { font-family: var(--mono); }
|
|
296
|
+
.fixes .meta, .contexts .meta { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
297
|
+
.contexts li { padding: 5px 10px; border-bottom: 1px solid var(--border); font-size: 11px; }
|
|
298
|
+
.contexts .name { font-family: var(--mono); color: var(--key); font-weight: 600; }
|
|
299
|
+
|
|
300
|
+
/* ---------- live stream ---------- */
|
|
301
|
+
.stream { flex: none; border-top: 1px solid var(--border); background: var(--bg-alt); }
|
|
302
|
+
.stream-header { display: flex; align-items: center; gap: 8px; padding: 4px 10px; color: var(--text-dim); cursor: pointer; user-select: none; font-size: 11px; }
|
|
303
|
+
.stream-header:hover { color: var(--text); }
|
|
304
|
+
.stream-header .count { margin-left: auto; font-variant-numeric: tabular-nums; }
|
|
305
|
+
.stream-list { margin: 0; padding: 0; height: 140px; overflow: auto; font-family: var(--mono); font-size: 11px; position: relative; background: var(--bg); border-top: 1px solid var(--border); }
|
|
306
|
+
.stream.collapsed .stream-list { display: none; }
|
|
307
|
+
.stream-item { display: flex; gap: 8px; align-items: center; height: 20px; padding: 0 10px; cursor: pointer; white-space: nowrap; position: absolute; left: 0; right: 0; box-sizing: border-box; }
|
|
308
|
+
.stream-item:hover { background: var(--hover); }
|
|
309
|
+
.stream-item .t { color: var(--text-faint); flex: none; }
|
|
310
|
+
.stream-item .c { color: var(--key); flex: none; }
|
|
311
|
+
.stream-item .c::before { content: "<"; color: var(--text-faint); }
|
|
312
|
+
.stream-item .c::after { content: ">"; color: var(--text-faint); }
|
|
313
|
+
.stream-item .v { white-space: nowrap; word-break: normal; flex: none; }
|
|
314
|
+
.stream-item .v.avoid { color: var(--danger); font-weight: 600; }
|
|
315
|
+
.stream-item .v.ok { color: var(--ok); }
|
|
316
|
+
.stream-item .s { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
|
|
317
|
+
|
|
318
|
+
/* ---------- settings drawer ---------- */
|
|
319
|
+
.drawer { width: 320px; flex: none; border-left: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; min-height: 0; box-shadow: -4px 0 12px rgba(16, 24, 40, 0.06); }
|
|
320
|
+
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 14px; border-bottom: 1px solid var(--border); background: var(--bg-toolbar); min-height: 38px; }
|
|
321
|
+
.drawer-body { overflow: auto; flex: 1; }
|
|
322
|
+
.opt { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
|
|
323
|
+
.opt.col { flex-direction: column; align-items: stretch; gap: 3px; }
|
|
324
|
+
.opt input[type="text"], .opt input[type="number"] { height: 24px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: inherit; font: inherit; }
|
|
325
|
+
.opt input[type="text"]:focus, .opt input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
|
|
326
|
+
.drawer .meta { color: var(--text-dim); margin-top: 4px; }
|
|
327
|
+
|
|
328
|
+
/* ---------- sessions, compare, commit priority ---------- */
|
|
329
|
+
button.ib.rec .glyph { color: var(--danger); animation: blink 1.2s ease-in-out infinite; }
|
|
330
|
+
@keyframes blink { 50% { opacity: 0.35; } }
|
|
331
|
+
.badge.rec { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
|
|
332
|
+
.sessions { list-style: none; margin: 0; padding: 0; }
|
|
333
|
+
.sessions li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; font-size: 11px; }
|
|
334
|
+
.sessions li:hover { background: var(--hover); }
|
|
335
|
+
.sessions li.selected { background: var(--selected); color: var(--selected-text); box-shadow: inset 2px 0 0 var(--accent); }
|
|
336
|
+
.sessions li.live .name::before { content: "●"; color: var(--danger); margin-right: 5px; font-size: 8px; vertical-align: middle; }
|
|
337
|
+
.sessions .name { font-weight: 600; flex: none; }
|
|
338
|
+
.sessions .t, .sessions .n { color: var(--text-dim); flex: none; font-variant-numeric: tabular-nums; }
|
|
339
|
+
.session-name { font: 600 13px var(--font); color: var(--text); background: transparent; border: 1px solid transparent; border-radius: var(--radius); padding: 2px 6px; margin-left: -6px; min-width: 120px; }
|
|
340
|
+
.session-name:hover { border-color: var(--border-strong); }
|
|
341
|
+
.session-name:focus { outline: none; border-color: var(--accent); background: var(--bg); }
|
|
342
|
+
.compare-select { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); height: 24px; padding: 0 6px; }
|
|
343
|
+
.compare-grid { margin-top: 8px; }
|
|
344
|
+
.compare-grid tr.total td { font-weight: 600; background: var(--bg-alt); }
|
|
345
|
+
.compare-grid td.delta.good { color: var(--ok); font-weight: 600; }
|
|
346
|
+
.compare-grid td.delta.bad { color: var(--danger); font-weight: 600; }
|
|
347
|
+
.compare .meta b { color: var(--text); }
|
|
348
|
+
.fix-list { margin: 0; padding-left: 18px; }
|
|
349
|
+
.fix-list li { margin: 4px 0; }
|
|
350
|
+
.fix-list .mono, .summary .mono { font-family: var(--mono); }
|
|
351
|
+
.prio { font-size: 10px; padding: 0 6px; border-radius: 8px; background: var(--bg-inset); color: var(--text-dim); flex: none; }
|
|
352
|
+
.prio.immediate { background: var(--accent-bg); color: var(--accent); }
|
|
353
|
+
.prio.normal { background: var(--warn-bg); color: var(--warn); }
|
|
354
|
+
.contexts .hint { white-space: normal; margin-top: 3px; padding-left: 8px; border-left: 2px solid var(--warn); }
|
|
355
|
+
.source-context { margin: 8px 0 0; padding: 6px 8px; font: 11px/1.5 var(--mono); background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; white-space: pre; }
|
|
356
|
+
.source-context .ln { color: var(--text-faint); }
|
|
357
|
+
.source-context .line.hit { background: var(--warn-bg); display: inline-block; width: 100%; }
|
|
358
|
+
.cause { font-size: 10px; padding: 0 6px; border-radius: 8px; flex: none; display: inline-block; }
|
|
359
|
+
.cause.effect { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
|
|
360
|
+
.cause.suspense { background: var(--accent-bg); color: var(--accent); }
|
|
361
|
+
.section .cause { margin-top: 2px; font-size: 11px; padding: 1px 8px; }
|
|
362
|
+
.views .spacer { flex: 1; }
|
|
363
|
+
.views button.instances { color: var(--text-dim); }
|
|
364
|
+
.views button.instances.active { background: var(--accent-bg); color: var(--accent); }
|
|
365
|
+
|
|
366
|
+
/* ---------- windowed grids, column chooser, notes ---------- */
|
|
367
|
+
.vhead { display: grid; position: sticky; top: 0; z-index: 1; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--text-dim); align-items: center; }
|
|
368
|
+
.vhead > span { padding: 6px 10px; white-space: nowrap; cursor: pointer; user-select: none; }
|
|
369
|
+
.vhead > span.sorted { color: var(--accent); }
|
|
370
|
+
.vhead > span.num { text-align: right; }
|
|
371
|
+
.vrow { display: grid; grid-template-columns: var(--grid-cols); align-items: center; height: 26px; position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--border); font-size: 11px; cursor: pointer; box-sizing: border-box; }
|
|
372
|
+
.vrow:hover { background: var(--hover); }
|
|
373
|
+
.vrow > span { padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
374
|
+
.vrow > span.num { text-align: right; font-variant-numeric: tabular-nums; }
|
|
375
|
+
.vrow > span.c .name { font-family: var(--mono); color: var(--key); }
|
|
376
|
+
.vrow > span.c .name::before { content: "<"; color: var(--text-faint); }
|
|
377
|
+
.vrow > span.c .name::after { content: ">"; color: var(--text-faint); }
|
|
378
|
+
.vrow > span.fix { color: var(--text-dim); font-family: var(--mono); }
|
|
379
|
+
.vrow.fix-row { display: flex; gap: 8px; padding: 0 10px; }
|
|
380
|
+
.vrow.fix-row .label { font-family: var(--mono); }
|
|
381
|
+
.vrow.fix-row .meta { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
|
|
382
|
+
.vrow.selected, .vrow.fix-row.selected { background: var(--selected); color: var(--selected-text); box-shadow: inset 2px 0 0 var(--accent); }
|
|
383
|
+
.table-tools { display: flex; justify-content: flex-end; padding: 3px 8px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
|
|
384
|
+
.columns-menu { position: relative; font-size: 11px; font-weight: 400; }
|
|
385
|
+
.columns-menu summary { list-style: none; cursor: pointer; color: var(--text-dim); padding: 2px 6px; border-radius: var(--radius); }
|
|
386
|
+
.columns-menu summary::-webkit-details-marker { display: none; }
|
|
387
|
+
.columns-menu summary:hover { background: var(--hover); color: var(--text); }
|
|
388
|
+
.columns-menu .menu { position: absolute; right: 0; top: 100%; z-index: 3; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 10px; min-width: 140px; }
|
|
389
|
+
.vhead .columns-menu { justify-self: end; }
|
|
390
|
+
.grid td.mono { font-family: var(--mono); }
|
|
391
|
+
tr.muted td, .vrow.muted > span, .row.muted .tag { opacity: 0.55; }
|
|
392
|
+
.row.muted .tag .name::after { content: " ·muted"; color: var(--text-faint); font-family: var(--font); font-size: 10px; }
|
|
393
|
+
button.ib.small { height: 22px; padding: 0 6px; }
|
|
394
|
+
.note-box { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--warn-bg); border-bottom: 1px solid var(--border); }
|
|
395
|
+
.note-box.muted { background: var(--bg-inset); }
|
|
396
|
+
.note-box .glyph { color: var(--warn); }
|
|
397
|
+
.note-input { flex: 1; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; font: inherit; color: inherit; }
|
|
398
|
+
.note-input:hover, .note-input:focus { border-color: var(--border-strong); background: var(--bg); outline: none; }
|
|
399
|
+
|
|
400
|
+
/* ---------- compact layout (side panel, narrow windows) ---------- */
|
|
401
|
+
.compact .toolbar { flex-wrap: wrap; gap: 3px; }
|
|
402
|
+
.compact .toolbar input[type="search"] { min-width: 120px; flex-basis: 100%; max-width: none; order: -1; margin-bottom: 3px; }
|
|
403
|
+
.compact .toolbar .spacer { flex: 1; }
|
|
404
|
+
.compact .toolbar .status { padding: 0 2px; }
|
|
405
|
+
.compact .toolbar button.ib .label, .compact .toolbar label.check .label { display: none; }
|
|
406
|
+
.compact .toolbar .sep { display: none; }
|
|
407
|
+
.compact .toolbar .status .status-text { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
|
|
408
|
+
.compact .tab-chip { max-width: 140px; }
|
|
409
|
+
.compact .summary { gap: 10px; padding: 4px 8px; }
|
|
410
|
+
.compact .summary .stat .mono { max-width: 140px; }
|
|
411
|
+
.compact .main { flex-direction: column; }
|
|
412
|
+
.compact .left { width: auto !important; min-width: 0; height: 42%; flex: none; border-bottom: 1px solid var(--border); }
|
|
413
|
+
.compact .resizer { display: none; }
|
|
414
|
+
.compact .drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 100%); z-index: 5; }
|
|
415
|
+
.compact .main { position: relative; }
|
|
416
|
+
.compact .stream-list { height: 110px; }
|
|
417
|
+
.compact .details-header { padding: 6px 10px; }
|
|
418
|
+
.compact .section { padding: 8px 10px; }
|
package/panel/panel.html
ADDED