@tokenroll/llmdoc 3.4.0 → 3.5.2

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.
@@ -0,0 +1,343 @@
1
+ :root {
2
+ --bg: #f4f5f7;
3
+ --panel: #ffffff;
4
+ --border: #e5e8ec;
5
+ --border-strong: #d6dade;
6
+ --text: #171c26;
7
+ --muted: #667085;
8
+ --faint: #98a2b3;
9
+ --accent: #4c5fd5;
10
+ --accent-soft: #eef0fc;
11
+ --fresh: #aab2bd;
12
+ --impacted: #e8890c;
13
+ --dirty: #d6453d;
14
+ --review: #c9a227;
15
+ --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
16
+ --radius: 12px;
17
+ }
18
+
19
+ * { box-sizing: border-box; }
20
+ html, body { height: 100%; }
21
+ body {
22
+ margin: 0;
23
+ color: var(--text);
24
+ background: var(--bg);
25
+ font: 13px/1.6 -apple-system, "SF Pro Text", "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
26
+ display: flex;
27
+ flex-direction: column;
28
+ overflow: hidden;
29
+ -webkit-font-smoothing: antialiased;
30
+ }
31
+ button, input { font: inherit; }
32
+ button { color: inherit; }
33
+ button:focus-visible, input:focus-visible, #graph:focus-visible {
34
+ outline: 2px solid var(--accent);
35
+ outline-offset: 2px;
36
+ }
37
+ .sr-only {
38
+ position: absolute;
39
+ width: 1px;
40
+ height: 1px;
41
+ padding: 0;
42
+ margin: -1px;
43
+ overflow: hidden;
44
+ clip: rect(0, 0, 0, 0);
45
+ white-space: nowrap;
46
+ border: 0;
47
+ }
48
+
49
+ .app-header {
50
+ display: flex;
51
+ align-items: center;
52
+ gap: 10px;
53
+ padding: 10px 18px;
54
+ background: var(--panel);
55
+ border-bottom: 1px solid var(--border);
56
+ flex-wrap: wrap;
57
+ z-index: 5;
58
+ }
59
+ .app-header h1 { font-size: 14.5px; margin: 0 8px 0 0; font-weight: 700; letter-spacing: -.01em; }
60
+ .app-header h1 .repo { color: var(--muted); font-weight: 450; }
61
+ .health-strip { display: contents; }
62
+ .chip {
63
+ padding: 3px 10px;
64
+ border-radius: 999px;
65
+ border: 1px solid var(--border);
66
+ background: #fafbfc;
67
+ font-size: 11.5px;
68
+ color: var(--muted);
69
+ white-space: nowrap;
70
+ }
71
+ .chip.ok { color: #147a3d; border-color: #bfe4cb; background: #f0faf3; }
72
+ .chip.bad { color: var(--dirty); border-color: #f0c7c4; background: #fdf2f1; }
73
+ .chip.warn { color: #a86105; border-color: #f0dcb4; background: #fdf8ec; }
74
+ .chip.button { cursor: pointer; user-select: none; }
75
+ .chip.button:hover { border-color: var(--border-strong); color: var(--text); }
76
+ .toggle {
77
+ display: flex;
78
+ border: 1px solid var(--border);
79
+ border-radius: 9px;
80
+ overflow: hidden;
81
+ margin-left: auto;
82
+ }
83
+ .toggle button {
84
+ border: 0;
85
+ background: var(--panel);
86
+ color: var(--muted);
87
+ font-size: 12px;
88
+ padding: 5px 14px;
89
+ cursor: pointer;
90
+ }
91
+ .toggle button.on { background: var(--accent); color: #fff; font-weight: 600; }
92
+ .toggle button:not(.on):hover { background: var(--accent-soft); color: var(--accent); }
93
+ .load-error {
94
+ padding: 8px 18px;
95
+ color: #a42620;
96
+ background: #fdf2f1;
97
+ border-bottom: 1px solid #f0c7c4;
98
+ }
99
+
100
+ main {
101
+ flex: 1;
102
+ display: grid;
103
+ grid-template-columns: minmax(224px, 272px) minmax(320px, 1fr) minmax(320px, 408px);
104
+ min-height: 0;
105
+ }
106
+
107
+ #sidebar {
108
+ background: var(--panel);
109
+ border-right: 1px solid var(--border);
110
+ overflow-y: auto;
111
+ padding: 12px;
112
+ }
113
+ .search-box { position: relative; display: block; }
114
+ .search-box input {
115
+ width: 100%;
116
+ padding: 7px 34px 7px 11px;
117
+ border: 1px solid var(--border);
118
+ border-radius: 9px;
119
+ font-size: 12.5px;
120
+ margin-bottom: 8px;
121
+ outline: none;
122
+ background: #fafbfc;
123
+ }
124
+ .search-box input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(76, 95, 213, .12); }
125
+ .search-box kbd {
126
+ position: absolute;
127
+ right: 9px;
128
+ top: 7px;
129
+ min-width: 19px;
130
+ text-align: center;
131
+ color: var(--faint);
132
+ border: 1px solid var(--border);
133
+ border-radius: 5px;
134
+ background: var(--panel);
135
+ line-height: 19px;
136
+ font: 10px ui-monospace, "SF Mono", Menlo, monospace;
137
+ }
138
+ .group-label {
139
+ width: 100%;
140
+ border: 0;
141
+ background: transparent;
142
+ padding: 0;
143
+ font-size: 10.5px;
144
+ text-transform: uppercase;
145
+ letter-spacing: .07em;
146
+ color: var(--faint);
147
+ margin: 14px 6px 5px;
148
+ display: flex;
149
+ align-items: center;
150
+ gap: 7px;
151
+ font-weight: 600;
152
+ cursor: default;
153
+ text-align: left;
154
+ }
155
+ button.group-label { cursor: pointer; }
156
+ .group-label:hover { color: var(--muted); }
157
+ .swatch { width: 10px; height: 10px; border-radius: 3.5px; display: inline-block; flex: none; }
158
+ .doc-item {
159
+ width: 100%;
160
+ border: 0;
161
+ background: transparent;
162
+ display: flex;
163
+ align-items: center;
164
+ gap: 8px;
165
+ padding: 5.5px 9px;
166
+ border-radius: 8px;
167
+ cursor: pointer;
168
+ transition: background .1s;
169
+ text-align: left;
170
+ }
171
+ .doc-item:hover { background: #f2f4f7; }
172
+ .doc-item.active { background: var(--accent-soft); }
173
+ .doc-item.active .name { color: var(--accent); font-weight: 600; }
174
+ .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
175
+ .doc-item .dot { box-shadow: 0 0 0 2.5px color-mix(in srgb, currentColor 18%, transparent); }
176
+ .doc-item .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
177
+ .doc-item .kind { margin-left: auto; font-size: 10px; color: var(--faint); flex: none; }
178
+ .empty-list { padding: 24px 8px; color: var(--faint); text-align: center; }
179
+
180
+ #graph-wrap {
181
+ position: relative;
182
+ min-width: 0;
183
+ background: radial-gradient(circle at 1px 1px, #dfe3e8 1px, transparent 0) 0 0 / 26px 26px;
184
+ overflow: hidden;
185
+ }
186
+ #graph { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
187
+ #graph.dragging { cursor: grabbing; }
188
+ #legend, #graph-hint, #graph-toolbar {
189
+ position: absolute;
190
+ background: color-mix(in srgb, var(--panel) 92%, transparent);
191
+ backdrop-filter: blur(6px);
192
+ border: 1px solid var(--border);
193
+ border-radius: 10px;
194
+ box-shadow: var(--shadow);
195
+ }
196
+ #legend {
197
+ left: 14px;
198
+ bottom: 14px;
199
+ padding: 8px 14px;
200
+ font-size: 11px;
201
+ color: var(--muted);
202
+ display: flex;
203
+ flex-wrap: wrap;
204
+ gap: 7px 15px;
205
+ }
206
+ #legend i { display: inline-block; width: 18px; border-top: 2px solid #9aa4b2; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
207
+ #legend i.related { border-top-style: dashed; }
208
+ #legend i.link { border-top-width: 1px; border-top-color: #c8cfd8; }
209
+ #graph-hint { top: 14px; left: 14px; font-size: 11.5px; color: var(--muted); padding: 6px 12px; }
210
+ #graph-toolbar { top: 14px; right: 14px; display: flex; overflow: hidden; }
211
+ #graph-toolbar button {
212
+ min-width: 33px;
213
+ height: 31px;
214
+ padding: 0 9px;
215
+ border: 0;
216
+ border-right: 1px solid var(--border);
217
+ background: transparent;
218
+ color: var(--muted);
219
+ cursor: pointer;
220
+ }
221
+ #graph-toolbar button:last-child { border-right: 0; }
222
+ #graph-toolbar button:hover { background: var(--accent-soft); color: var(--accent); }
223
+ #graph-empty {
224
+ position: absolute;
225
+ inset: 50% auto auto 50%;
226
+ transform: translate(-50%, -50%);
227
+ color: var(--faint);
228
+ }
229
+ .edge-path { fill: none; transition: opacity .15s; }
230
+ .node { transition: opacity .15s; outline: none; }
231
+ .node circle { cursor: pointer; transition: filter .12s, stroke-width .12s; }
232
+ .node:hover circle, .node:focus-visible circle { filter: brightness(1.06) saturate(1.1); stroke-width: 4px; }
233
+ .node text { fill: var(--text); pointer-events: none; }
234
+ .node .sub { fill: var(--muted); }
235
+ .node.dim, .edge-path.dim { opacity: .1; }
236
+
237
+ #detail { position: relative; background: var(--panel); border-left: 1px solid var(--border); overflow-y: auto; }
238
+ #detail .inner { padding: 18px 20px 32px; }
239
+ #detail-close {
240
+ display: none;
241
+ position: sticky;
242
+ top: 8px;
243
+ float: right;
244
+ margin: 8px 8px -40px 0;
245
+ z-index: 2;
246
+ width: 30px;
247
+ height: 30px;
248
+ border: 1px solid var(--border);
249
+ border-radius: 8px;
250
+ background: var(--panel);
251
+ cursor: pointer;
252
+ }
253
+ #detail .placeholder { color: var(--faint); margin-top: 48px; text-align: center; font-size: 12.5px; }
254
+ #detail h2 { font-size: 15px; margin: 0 0 3px; overflow-wrap: anywhere; letter-spacing: -.01em; }
255
+ #detail .desc { color: var(--muted); font-size: 12.5px; }
256
+ #detail .meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
257
+ .rel-block { font-size: 12.5px; margin: 3px 0; }
258
+ .rel-link { border: 0; padding: 0; background: transparent; color: var(--accent); cursor: pointer; text-decoration: none; }
259
+ .rel-link:hover { text-decoration: underline; }
260
+ .code-path {
261
+ font-family: ui-monospace, "SF Mono", Menlo, monospace;
262
+ font-size: 11px;
263
+ background: #f6f7f9;
264
+ border: 1px solid var(--border);
265
+ border-radius: 6px;
266
+ padding: 2px 7px;
267
+ overflow-wrap: anywhere;
268
+ }
269
+ .coderef {
270
+ font-family: ui-monospace, Menlo, monospace;
271
+ font-size: 11px;
272
+ color: #6d3fc0;
273
+ background: #f6f1fd;
274
+ border: 1px solid #e4d6f8;
275
+ border-radius: 6px;
276
+ padding: 1px 7px;
277
+ }
278
+ #doc-body { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; font-size: 13.5px; overflow-wrap: anywhere; }
279
+ #doc-body h1 { font-size: 17px; }
280
+ #doc-body h2 { font-size: 14.5px; margin-top: 22px; }
281
+ #doc-body h3 { font-size: 13.5px; }
282
+ #doc-body pre { background: #f6f7f9; border: 1px solid var(--border); padding: 11px 13px; border-radius: 9px; overflow-x: auto; font-size: 12px; }
283
+ #doc-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; background: #f3f4f6; padding: 1px 5px; border-radius: 5px; }
284
+ #doc-body pre code { background: none; padding: 0; }
285
+ #doc-body table { width: 100%; border-collapse: collapse; font-size: 12.5px; display: block; overflow-x: auto; }
286
+ #doc-body td, #doc-body th { border: 1px solid var(--border); padding: 5px 9px; }
287
+ #doc-body a { color: var(--accent); }
288
+ #doc-body img { max-width: 100%; height: auto; border-radius: 8px; }
289
+ #doc-body blockquote { margin: 0; padding: 2px 14px; border-left: 3px solid var(--border-strong); color: var(--muted); }
290
+ .topic-doc-card {
291
+ width: 100%;
292
+ border: 1px solid var(--border);
293
+ border-radius: 10px;
294
+ padding: 10px 13px;
295
+ margin: 8px 0;
296
+ background: var(--panel);
297
+ cursor: pointer;
298
+ transition: border-color .12s, box-shadow .12s;
299
+ text-align: left;
300
+ }
301
+ .topic-doc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
302
+ .topic-doc-card .title { font-weight: 600; font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
303
+ .topic-doc-card .kind { margin-left: auto; color: var(--faint); font-size: 10px; font-weight: 500; }
304
+ .topic-doc-card .description { color: var(--muted); font-size: 12px; margin-top: 3px; }
305
+
306
+ @media (max-width: 1100px) {
307
+ main { grid-template-columns: 236px minmax(300px, 1fr) 340px; }
308
+ .health-strip { display: none; }
309
+ }
310
+
311
+ @media (max-width: 820px) {
312
+ main { grid-template-columns: 220px minmax(0, 1fr); }
313
+ #detail {
314
+ position: fixed;
315
+ z-index: 10;
316
+ top: 0;
317
+ right: 0;
318
+ bottom: 0;
319
+ width: min(440px, calc(100vw - 40px));
320
+ border-left: 1px solid var(--border);
321
+ box-shadow: -12px 0 30px rgba(16, 24, 40, .13);
322
+ transform: translateX(105%);
323
+ visibility: hidden;
324
+ transition: transform .18s ease;
325
+ }
326
+ #detail.open { transform: translateX(0); visibility: visible; }
327
+ #detail-close { display: block; }
328
+ }
329
+
330
+ @media (max-width: 600px) {
331
+ .app-header { padding: 9px 12px; }
332
+ .app-header .chip.button { margin-left: auto; }
333
+ .toggle { order: 3; width: 100%; margin-left: 0; }
334
+ .toggle button { flex: 1; }
335
+ main { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 30%) 1fr; }
336
+ #sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
337
+ #graph-hint { max-width: calc(100% - 112px); }
338
+ #legend { right: 14px; }
339
+ }
340
+
341
+ @media (prefers-reduced-motion: reduce) {
342
+ *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
343
+ }