-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
552 lines (521 loc) · 17.9 KB
/
Copy pathstyles.css
File metadata and controls
552 lines (521 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
/* ── Design tokens (lifted from base.html) ── */
:root {
--bg: #0f1115;
--panel: #161922;
--line: #232838;
--fg: #e6e8ef;
--muted: #8b93a7;
--accent: #6ea8fe;
--accent-soft: #1e2a44;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
background: var(--bg);
color: var(--fg);
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "SF Mono", monospace;
height: 100%;
}
body { font-size: 14px; display: flex; flex-direction: column; overflow: hidden; }
#root { display: flex; flex-direction: column; height: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ── Layout ── */
header {
border-bottom: 1px solid var(--line);
padding: 6px 12px;
display: flex;
align-items: center;
gap: 16px;
flex: 0 0 auto;
}
header .brand { font-weight: 600; }
header nav a { margin-right: 12px; }
main {
padding: 8px 12px;
flex: 1 1 auto;
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
}
.layout {
display: grid;
grid-template-columns: 220px minmax(0, 1fr);
grid-template-rows: 1fr;
gap: 10px;
flex: 1 1 auto;
min-height: 0;
}
.layout.sidebar-collapsed { grid-template-columns: 32px minmax(0, 1fr); }
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 6px;
overflow: auto;
min-height: 0;
min-width: 0;
}
.detail { padding: 10px 12px; }
.detail h2 { margin-top: 0; margin-bottom: 0; }
/* ── Entry list (sidebar) ── */
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list li {
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
}
.entry-list li > a:first-child {
flex: 1;
display: block;
padding: 10px 12px;
color: var(--fg);
min-width: 0;
}
.entry-list li > a:first-child:hover { background: var(--accent-soft); }
.entry-list a { color: var(--fg); }
.entry-list .hash { font-family: ui-monospace, monospace; color: var(--muted); font-size: 12px; }
.entry-list .prompt { display: block; margin-top: 2px; }
.entry-list .alias { font-weight: 600; color: var(--fg); display: block; }
.entry-list .vchip {
background: var(--accent-soft);
color: var(--accent);
padding: 1px 6px;
border-radius: 10px;
font-size: 11px;
font-weight: 500;
margin-left: 4px;
}
.entry-main {
display: flex;
align-items: baseline;
gap: 8px;
}
.entry-name {
display: flex;
align-items: baseline;
min-width: 0;
flex: 1 1 auto;
}
/* Alias text truncates; the version chip stays pinned and visible. */
.entry-list .alias {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.entry-list .vchip { flex-shrink: 0; }
.entry-list .meta-inline {
color: var(--muted);
font-size: 11px;
white-space: nowrap;
flex-shrink: 0;
}
/* Compact view: tighter rows, single line per entry (prompt on hover only). */
.entry-list.compact li > a:first-child { padding: 6px 12px; }
.entry-list li.current { background: var(--accent-soft); border-left: 3px solid var(--accent); }
.entry-list li.current a { color: var(--fg); }
.entry-list li.current .alias { color: var(--accent); }
.entry-list .diff-link {
font-size: 11px;
color: var(--muted);
text-decoration: none;
padding: 1px 7px;
border: 1px solid var(--line);
border-radius: 10px;
margin-right: 8px;
white-space: nowrap;
flex-shrink: 0;
}
.entry-list .diff-link:hover { color: var(--accent); border-color: var(--accent); }
.section-header {
color: var(--muted);
text-transform: uppercase;
font-size: 10px;
letter-spacing: 0.08em;
padding: 10px 12px 4px;
border-top: 1px solid var(--line);
}
.section-header:first-child { border-top: 0; }
/* ── Sidebar chrome (toolbar / collapse) ── */
.sidebar-toolbar {
position: sticky;
top: 0;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 8px;
background: var(--panel);
border-bottom: 1px solid var(--line);
}
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.view-toggle button {
background: transparent;
color: var(--muted);
border: 0;
padding: 3px 8px;
font-size: 11px;
cursor: pointer;
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button:hover { color: var(--fg); }
.view-toggle button.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-toggle {
background: transparent;
color: var(--muted);
border: 1px solid var(--line);
border-radius: 6px;
width: 22px;
height: 22px;
line-height: 1;
font-size: 14px;
cursor: pointer;
flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--fg); border-color: var(--accent); }
.sidebar-rail { display: flex; justify-content: center; padding: 6px 4px; }
/* ── Entry detail ── */
.entry-header {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 4px;
}
.entry-header h2 { margin: 0 8px 0 0; }
.entry-detail { display: flex; flex-direction: column; box-sizing: border-box; min-height: 0; }
.prompt-row { display: flex; align-items: center; gap: 12px; margin: 2px 0 6px; }
.prompt-row .prompt-text { flex: 1 1 auto; min-width: 0; }
.metadata-section { margin-bottom: 12px; }
.metadata-section h3:first-child { margin-top: 0; }
/* ── Entry detail tabs (data / code) ── */
.detail-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px 0 10px; }
.detail-tab {
background: transparent;
border: 1px solid transparent;
border-bottom: none;
color: var(--muted);
border-radius: 4px 4px 0 0;
padding: 5px 14px;
font-size: 12px;
font-family: inherit;
cursor: pointer;
margin-bottom: -1px;
}
.detail-tab:hover { color: var(--fg); }
.detail-tab.active {
color: var(--fg);
border-color: var(--line);
border-bottom: 1px solid var(--panel);
background: var(--panel);
}
.tab-panel[hidden] { display: none; }
/* ── Typography helpers ── */
.meta { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
pre.code {
background: #0a0c12;
border: 1px solid var(--line);
border-radius: 4px;
padding: 10px;
overflow: auto;
font-family: ui-monospace, monospace;
font-size: 12px;
}
table.data-table { border-collapse: collapse; width: 100%; font-size: 12px; }
table.data-table th, table.data-table td {
border-bottom: 1px solid var(--line);
padding: 4px 8px;
text-align: left;
}
table.data-table th { background: #0a0c12; position: sticky; top: 0; }
/* ── Pills & chips ── */
.pill {
display: inline-block;
padding: 2px 6px;
border: 1px solid var(--line);
border-radius: 10px;
color: var(--muted);
font-size: 11px;
margin-right: 6px;
}
/* ── Project switcher ── */
.project-switcher { display: inline-flex; align-items: center; gap: 4px; margin-right: 18px; }
.project-switcher select {
background: var(--bg, #0a0c12);
color: var(--fg);
border: 1px solid var(--line);
border-radius: 4px;
padding: 2px 6px;
font-family: inherit;
font-size: 12px;
}
.project-switcher select:focus { outline: 1px solid var(--accent); }
#new-project-btn {
background: transparent;
border: 1px solid var(--line);
color: var(--muted);
border-radius: 4px;
padding: 2px 8px;
font-size: 11px;
cursor: pointer;
font-family: inherit;
}
#new-project-btn:hover { color: var(--fg); border-color: var(--accent); }
/* ── Error banner ── */
.error-banner {
background: #2a1b1b;
border: 1px solid #5a3a3a;
color: #ffb4b4;
padding: 10px 12px;
border-radius: 4px;
margin: 0 0 12px;
position: relative;
flex: 0 0 auto;
}
.error-banner ul { margin: 6px 0 0 0; padding-left: 20px; max-height: 6em; overflow: auto; }
.error-banner code { color: #ffd1d1; }
.error-banner .dismiss {
position: absolute;
top: 4px;
right: 8px;
background: transparent;
border: 0;
color: #ffb4b4;
font-size: 16px;
cursor: pointer;
padding: 2px 6px;
line-height: 1;
}
.error-banner .dismiss:hover { color: #fff; }
.error-banner .clear-errors {
background: transparent;
border: 1px solid #5a3a3a;
color: #ffb4b4;
border-radius: 4px;
font-size: 11px;
padding: 1px 8px;
cursor: pointer;
font-family: inherit;
}
.error-banner .clear-errors:hover { color: #fff; border-color: #ffb4b4; }
.error-banner.collapsed ul { display: none; }
.error-banner.hidden { display: none; }
/* ── New-entry notice (#27) ──
Floats over the top of the UI so a new expression announces itself without
shifting layout or stealing the view; click to navigate, × to dismiss. */
.new-entry-notice {
position: fixed;
top: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 50;
display: inline-flex;
align-items: center;
gap: 2px;
background: var(--accent-soft);
border: 1px solid var(--accent);
border-radius: 14px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.new-entry-notice .view {
background: transparent;
border: 0;
color: var(--fg);
font-family: inherit;
font-size: 12px;
padding: 5px 6px 5px 12px;
cursor: pointer;
}
.new-entry-notice .view:hover { color: var(--accent); }
.new-entry-notice .dismiss {
background: transparent;
border: 0;
color: var(--muted);
font-size: 15px;
line-height: 1;
cursor: pointer;
padding: 4px 10px 4px 4px;
}
.new-entry-notice .dismiss:hover { color: var(--fg); }
/* ── Empty state ── */
.empty-state { max-width: 520px; margin: 60px auto; padding: 16px; }
.empty-state h2 { margin-top: 0; }
.empty-state form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.empty-state input[type=text] {
background: #0a0c12;
color: var(--fg);
border: 1px solid var(--line);
border-radius: 4px;
padding: 8px;
font-family: inherit;
font-size: 14px;
}
.empty-state button {
background: var(--accent);
color: white;
border: 0;
border-radius: 4px;
padding: 8px 16px;
font-family: inherit;
cursor: pointer;
}
.empty-state button:hover { opacity: 0.9; }
/* ── SSE status ── */
.live { color: var(--accent); }
/* ── DAG ── */
.dag { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px; overflow: auto; }
.dag .node-box { fill: var(--panel); stroke: var(--line); }
.dag .node-box.named { stroke: var(--accent); }
.dag .node-box.root { stroke: var(--accent); fill: var(--accent-soft); }
.dag .node-label { fill: var(--fg); font-family: ui-monospace, monospace; font-size: 11px; }
.dag .node-sublabel { fill: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.dag .edge { stroke: var(--muted); stroke-width: 1.5; fill: none; opacity: 0.7; }
.dag-empty { color: var(--muted); padding: 12px; }
/* ── Notebook ── */
.nb-cell {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 6px;
padding: 8px 12px;
margin: 8px 16px;
overflow: hidden;
}
.nb-cell .nb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.nb-cell .nb-drag { cursor: grab; color: var(--muted); user-select: none; font-size: 14px; padding: 0 4px; }
.nb-cell .nb-drag:active { cursor: grabbing; }
.nb-cell.dragging { opacity: 0.4; }
.nb-cell.drag-over { box-shadow: 0 0 0 2px var(--accent); }
.nb-cell .nb-head .alias { font-weight: 600; }
.nb-cell .nb-head .nb-actions { margin-left: auto; display: flex; gap: 6px; }
.nb-cell .nb-head button {
background: transparent;
border: 1px solid var(--line);
color: var(--muted);
border-radius: 4px;
padding: 2px 8px;
font-size: 11px;
cursor: pointer;
font-family: inherit;
}
.nb-cell .nb-head button:hover { color: var(--fg); border-color: var(--accent); }
.nb-cell .nb-markdown { color: var(--muted); margin: 2px 0 6px; }
.nb-cell .nb-markdown > :first-child { margin-top: 0; }
.nb-cell .nb-markdown > :last-child { margin-bottom: 0; }
.nb-cell .nb-markdown h1, .nb-cell .nb-markdown h2, .nb-cell .nb-markdown h3,
.nb-cell .nb-markdown h4, .nb-cell .nb-markdown h5, .nb-cell .nb-markdown h6 {
margin: 4px 0 2px; font-size: 13px; color: var(--fg); font-weight: 600;
}
.nb-cell .nb-markdown p { margin: 2px 0; }
.nb-cell .nb-markdown ul, .nb-cell .nb-markdown ol { margin: 2px 0; padding-left: 20px; }
.nb-cell .nb-markdown-edit {
width: 100%;
min-height: 60px;
background: #0a0c12;
color: var(--fg);
border: 1px solid var(--line);
border-radius: 4px;
padding: 6px 8px;
font-family: ui-monospace, monospace;
font-size: 12px;
}
.nb-cell .nb-preview { overflow: auto; max-height: 240px; }
.nb-cell .nb-meta { color: var(--muted); font-size: 11px; margin-top: 6px; }
.nb-empty { color: var(--muted); padding: 16px; }
/* ── Charts ── */
.chart-panel {
background: #fff;
border-radius: 4px;
padding: 8px;
min-height: 200px;
display: block;
width: 100%;
}
.nb-chart { margin: 4px 0 8px; min-height: 180px; }
/* ── Buckaroo embed ── */
.buckaroo-embed {
background: #181d1f;
border: 1px solid var(--line);
border-radius: 4px;
width: 100%;
height: 60vh;
min-height: 240px;
}
.buckaroo-embed.nb-buckaroo { height: auto; }
/* ── Buttons ── */
.edit-code-btn {
background: transparent;
border: 1px solid var(--line);
color: var(--muted);
border-radius: 4px;
padding: 3px 10px;
font-size: 11px;
cursor: pointer;
font-family: inherit;
}
.edit-code-btn:hover { color: var(--fg); border-color: var(--accent); }
/* ── Forensic history ── */
.forensic-history {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 4px;
padding: 8px 12px;
margin-top: 12px;
}
.forensic-history ol { margin: 4px 0 0 0; padding-left: 20px; }
.forensic-history .current { color: var(--accent); font-weight: 500; }
/* ── Cache page ── */
.cache-pane { padding: 4px 2px; }
.cache-summary { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.cache-summary strong { font-size: 15px; }
.cache-summary .cache-note { flex-basis: 100%; }
table.cache-table { table-layout: auto; }
table.cache-table td, table.cache-table th { vertical-align: middle; white-space: nowrap; }
table.cache-table th.num, table.cache-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.cache-table td.size { font-weight: 600; }
table.cache-table td.created { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; }
table.cache-table .alias-name { font-weight: 600; }
table.cache-table .vchip { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 10px; font-size: 11px; margin-left: 4px; }
table.cache-table .current-tag { color: var(--accent); font-size: 11px; margin-left: 6px; }
table.cache-table .hash { font-family: ui-monospace, monospace; color: var(--muted); font-size: 12px; }
table.cache-table td.prompt { color: var(--muted); max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
table.cache-table .muted { color: var(--muted); }
.del-btn { background: transparent; border: 1px solid #5a3a3a; color: #ff9b9b; border-radius: 4px; padding: 2px 10px; font-size: 11px; cursor: pointer; font-family: inherit; }
.del-btn:hover { background: #2a1b1b; color: #ffb4b4; border-color: #7a4a4a; }
.del-btn:disabled { opacity: 0.5; cursor: default; }
/* catalog customizations page */
.cust-section { margin-bottom: 22px; }
.cust-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 2px; }
.cust-section-head strong { font-size: 14px; }
.cust-section .cache-note { display: block; margin-bottom: 8px; }
.cust-item { border: 1px solid var(--border); border-radius: 5px; margin-bottom: 6px; background: var(--panel, transparent); }
.cust-item > summary { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; cursor: pointer; list-style: none; }
.cust-item > summary::-webkit-details-marker { display: none; }
.cust-item > summary::before { content: "▸"; color: var(--muted); font-size: 11px; }
.cust-item[open] > summary::before { content: "▾"; }
.cust-item .cust-name { font-weight: 600; font-family: ui-monospace, monospace; }
.cust-item .cust-name.muted { color: var(--muted); font-weight: 400; text-decoration: line-through; }
.cust-item .cust-path { margin-left: auto; font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.cust-item .cust-flag { color: var(--muted); border: 1px solid var(--border); padding: 0 6px; border-radius: 10px; font-size: 11px; }
.cust-item > pre.code { margin: 0; border-top: 1px solid var(--border); border-radius: 0 0 5px 5px; }
/* projects management page */
.projects-page { max-width: 600px; margin: 32px auto; padding: 16px; }
.projects-page h2 { margin-top: 0; margin-bottom: 16px; }
.project-list { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.project-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.project-list li:last-child { border-bottom: 0; }
.project-list li.active-project { background: var(--accent-soft); }
.project-list input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.project-list input[type=checkbox]:disabled { cursor: default; }
.project-list .proj-name { flex: 1; font-family: ui-monospace, monospace; }
.project-list .active-badge { color: var(--accent); font-size: 11px; border: 1px solid var(--accent); border-radius: 10px; padding: 1px 7px; }
.projects-actions { display: flex; align-items: center; gap: 10px; }
.projects-actions .meta { margin-bottom: 0; }
.projects-actions .meta.err { color: #ffb4b4; }
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 6px 12px; font-family: inherit; font-size: 12px; cursor: pointer; }
.ghost-btn:hover:not(:disabled) { color: var(--fg); border-color: var(--accent); }
.ghost-btn:disabled { opacity: 0.5; cursor: default; }
.danger-btn { background: #5a1e1e; color: #ffb4b4; border: 1px solid #7a3a3a; border-radius: 4px; padding: 6px 16px; font-family: inherit; font-size: 13px; cursor: pointer; }
.danger-btn:hover:not(:disabled) { background: #7a2525; }
.danger-btn:disabled { opacity: 0.4; cursor: default; }