@tienne/gestalt 0.150.0 → 0.151.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/dist/package.json +1 -1
- package/dist/plugin/.codex-plugin/plugin.json +1 -1
- package/dist/plugin/skills/architecture/SKILL.md +103 -16
- package/dist/plugin/skills/architecture/references/domain-flow.md +1 -1
- package/dist/plugin/skills/architecture/references/merge-analyses.md +4 -3
- package/dist/plugin/skills/architecture/references/rerun.md +5 -5
- package/dist/schemas/architecture-ir.schema.json +18 -1
- package/dist/src/architecture/commit-policy.d.ts +31 -0
- package/dist/src/architecture/commit-policy.d.ts.map +1 -0
- package/dist/src/architecture/commit-policy.js +95 -0
- package/dist/src/architecture/commit-policy.js.map +1 -0
- package/dist/src/architecture/csp.d.ts +14 -0
- package/dist/src/architecture/csp.d.ts.map +1 -0
- package/dist/src/architecture/csp.js +56 -0
- package/dist/src/architecture/csp.js.map +1 -0
- package/dist/src/architecture/delta-renderer.d.ts.map +1 -1
- package/dist/src/architecture/delta-renderer.js +12 -9
- package/dist/src/architecture/delta-renderer.js.map +1 -1
- package/dist/src/architecture/delta.d.ts +2 -1
- package/dist/src/architecture/delta.d.ts.map +1 -1
- package/dist/src/architecture/delta.js +4 -2
- package/dist/src/architecture/delta.js.map +1 -1
- package/dist/src/architecture/did-you-mean.d.ts +14 -0
- package/dist/src/architecture/did-you-mean.d.ts.map +1 -0
- package/dist/src/architecture/did-you-mean.js +63 -0
- package/dist/src/architecture/did-you-mean.js.map +1 -0
- package/dist/src/architecture/drilldown.d.ts +53 -1
- package/dist/src/architecture/drilldown.d.ts.map +1 -1
- package/dist/src/architecture/drilldown.js +441 -32
- package/dist/src/architecture/drilldown.js.map +1 -1
- package/dist/src/architecture/endpoint-match.d.ts +33 -2
- package/dist/src/architecture/endpoint-match.d.ts.map +1 -1
- package/dist/src/architecture/endpoint-match.js +295 -42
- package/dist/src/architecture/endpoint-match.js.map +1 -1
- package/dist/src/architecture/git-facts.d.ts +54 -0
- package/dist/src/architecture/git-facts.d.ts.map +1 -0
- package/dist/src/architecture/git-facts.js +225 -0
- package/dist/src/architecture/git-facts.js.map +1 -0
- package/dist/src/architecture/html-client.d.ts +9 -0
- package/dist/src/architecture/html-client.d.ts.map +1 -1
- package/dist/src/architecture/html-client.js +397 -40
- package/dist/src/architecture/html-client.js.map +1 -1
- package/dist/src/architecture/html-renderer.d.ts +2 -0
- package/dist/src/architecture/html-renderer.d.ts.map +1 -1
- package/dist/src/architecture/html-renderer.js +230 -24
- package/dist/src/architecture/html-renderer.js.map +1 -1
- package/dist/src/architecture/html-theme.d.ts +17 -10
- package/dist/src/architecture/html-theme.d.ts.map +1 -1
- package/dist/src/architecture/html-theme.js +271 -137
- package/dist/src/architecture/html-theme.js.map +1 -1
- package/dist/src/architecture/index.d.ts +3 -0
- package/dist/src/architecture/index.d.ts.map +1 -1
- package/dist/src/architecture/index.js +3 -0
- package/dist/src/architecture/index.js.map +1 -1
- package/dist/src/architecture/ir-schema.d.ts +296 -264
- package/dist/src/architecture/ir-schema.d.ts.map +1 -1
- package/dist/src/architecture/ir-schema.js +75 -0
- package/dist/src/architecture/ir-schema.js.map +1 -1
- package/dist/src/architecture/layout-tuning.d.ts +49 -0
- package/dist/src/architecture/layout-tuning.d.ts.map +1 -0
- package/dist/src/architecture/layout-tuning.js +51 -0
- package/dist/src/architecture/layout-tuning.js.map +1 -0
- package/dist/src/architecture/layout.d.ts +35 -3
- package/dist/src/architecture/layout.d.ts.map +1 -1
- package/dist/src/architecture/layout.js +75 -15
- package/dist/src/architecture/layout.js.map +1 -1
- package/dist/src/architecture/live-ask.d.ts +35 -0
- package/dist/src/architecture/live-ask.d.ts.map +1 -0
- package/dist/src/architecture/live-ask.js +69 -0
- package/dist/src/architecture/live-ask.js.map +1 -0
- package/dist/src/architecture/live-client.d.ts +17 -0
- package/dist/src/architecture/live-client.d.ts.map +1 -0
- package/dist/src/architecture/live-client.js +272 -0
- package/dist/src/architecture/live-client.js.map +1 -0
- package/dist/src/architecture/live-port.d.ts +17 -0
- package/dist/src/architecture/live-port.d.ts.map +1 -0
- package/dist/src/architecture/live-port.js +23 -0
- package/dist/src/architecture/live-port.js.map +1 -0
- package/dist/src/architecture/live-server.d.ts +79 -0
- package/dist/src/architecture/live-server.d.ts.map +1 -0
- package/dist/src/architecture/live-server.js +409 -0
- package/dist/src/architecture/live-server.js.map +1 -0
- package/dist/src/architecture/live-session.d.ts +13 -0
- package/dist/src/architecture/live-session.d.ts.map +1 -0
- package/dist/src/architecture/live-session.js +48 -0
- package/dist/src/architecture/live-session.js.map +1 -0
- package/dist/src/architecture/merge.d.ts +17 -0
- package/dist/src/architecture/merge.d.ts.map +1 -1
- package/dist/src/architecture/merge.js +27 -3
- package/dist/src/architecture/merge.js.map +1 -1
- package/dist/src/architecture/packs/generic.d.ts +2 -2
- package/dist/src/architecture/packs/generic.js +2 -2
- package/dist/src/architecture/packs/generic.js.map +1 -1
- package/dist/src/architecture/packs/index.d.ts +2 -2
- package/dist/src/architecture/repo-visibility.d.ts +32 -0
- package/dist/src/architecture/repo-visibility.d.ts.map +1 -0
- package/dist/src/architecture/repo-visibility.js +93 -0
- package/dist/src/architecture/repo-visibility.js.map +1 -0
- package/dist/src/architecture/secret-mask.d.ts +61 -0
- package/dist/src/architecture/secret-mask.d.ts.map +1 -0
- package/dist/src/architecture/secret-mask.js +618 -0
- package/dist/src/architecture/secret-mask.js.map +1 -0
- package/dist/src/architecture/store.d.ts +88 -6
- package/dist/src/architecture/store.d.ts.map +1 -1
- package/dist/src/architecture/store.js +419 -50
- package/dist/src/architecture/store.js.map +1 -1
- package/dist/src/architecture/types.d.ts +8 -0
- package/dist/src/architecture/types.d.ts.map +1 -1
- package/dist/src/architecture/types.js.map +1 -1
- package/dist/src/architecture/validator.d.ts +75 -3
- package/dist/src/architecture/validator.d.ts.map +1 -1
- package/dist/src/architecture/validator.js +318 -45
- package/dist/src/architecture/validator.js.map +1 -1
- package/dist/src/digest/blocks.d.ts +14 -14
- package/dist/src/digest/diagram-schema.d.ts +2 -2
- package/dist/src/digest/lens-schema.d.ts +38 -38
- package/dist/src/digest/lens-source.d.ts +2 -2
- package/dist/src/digest/lens-widget-schema.d.ts +58 -58
- package/dist/src/digest/lint-lens-context.d.ts +8 -8
- package/dist/src/digest/prd-guide.d.ts +1 -1
- package/dist/src/digest/prd-schema.d.ts +18 -18
- package/dist/src/digest/schema.d.ts +1046 -1046
- package/dist/src/digest/session-request.d.ts +2 -2
- package/dist/src/lens/attach.d.ts +42 -42
- package/dist/src/mcp/schemas.d.ts +16 -8
- package/dist/src/mcp/schemas.d.ts.map +1 -1
- package/dist/src/mcp/schemas.js +11 -2
- package/dist/src/mcp/schemas.js.map +1 -1
- package/dist/src/mcp/tools/architecture-passthrough.d.ts +18 -0
- package/dist/src/mcp/tools/architecture-passthrough.d.ts.map +1 -1
- package/dist/src/mcp/tools/architecture-passthrough.js +244 -33
- package/dist/src/mcp/tools/architecture-passthrough.js.map +1 -1
- package/dist/src/research/schema.d.ts +395 -395
- package/dist/src/research/source-schema.d.ts +5 -5
- package/dist/src/research/target.d.ts +37 -37
- package/package.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.mcp.json +1 -1
- package/plugin/mcp.json +1 -1
- package/plugin/skills/architecture/SKILL.md +103 -16
- package/plugin/skills/architecture/references/domain-flow.md +1 -1
- package/plugin/skills/architecture/references/merge-analyses.md +4 -3
- package/plugin/skills/architecture/references/rerun.md +5 -5
- package/schemas/architecture-ir.schema.json +18 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LEGACY_PACK_IDS, vocabularyOf } from './packs/index.js';
|
|
2
|
+
import { CARD_DESC_MAX_LINES, CARD_PAD_Y, CARD_TEXT_LEFT, CARD_TEXT_RIGHT, SIDE_PANEL_SHEET_MAX, SIDE_PANEL_W, } from './layout-tuning.js';
|
|
2
3
|
// 색과 아이콘은 팩의 nodeKinds와 displayKinds에 있다. 아이콘은 24 격자 선 그림이다.
|
|
3
4
|
// 이모지는 플랫폼마다 모양이 달라서 path로 직접 그린다.
|
|
4
5
|
// 페이지에는 IR이 쓰는 팩 것만 싣는다. 팩을 더해도 그 팩을 안 쓰는 그림의 바이트가 그대로다
|
|
@@ -118,7 +119,7 @@ export function iconUse(id, cls = '') {
|
|
|
118
119
|
return `<svg${c} viewBox="0 0 24 24" aria-hidden="true" focusable="false"><use href="#${id}"/></svg>`;
|
|
119
120
|
}
|
|
120
121
|
// 제품 브릭 색. 흰 글자를 올리므로 두 테마 다 같은 진한 색을 쓴다. 제품이 이보다 많으면 처음 색부터 다시 돈다
|
|
121
|
-
const PRODUCT_PALETTE = [
|
|
122
|
+
export const PRODUCT_PALETTE = [
|
|
122
123
|
'#0f766e',
|
|
123
124
|
'#c2410c',
|
|
124
125
|
'#be185d',
|
|
@@ -152,21 +153,20 @@ function brandRules(theme) {
|
|
|
152
153
|
}
|
|
153
154
|
const LIGHT_TOKENS = `
|
|
154
155
|
color-scheme: light;
|
|
155
|
-
--bg: #
|
|
156
|
+
--bg: #f3f3f1;
|
|
156
157
|
--surface: #ffffff;
|
|
157
|
-
--surface-2: #
|
|
158
|
-
--border: #
|
|
159
|
-
--border-strong: #
|
|
160
|
-
--text: #
|
|
161
|
-
--
|
|
162
|
-
--accent:
|
|
163
|
-
--accent-soft: rgba(37, 99, 235, 0.14);
|
|
158
|
+
--surface-2: #ebebe8;
|
|
159
|
+
--border: #e2e2de;
|
|
160
|
+
--border-strong: #cbcbc6;
|
|
161
|
+
--text: #161616;
|
|
162
|
+
--accent: #161616;
|
|
163
|
+
--accent-soft: rgba(22, 22, 22, 0.08);
|
|
164
164
|
--on-accent: #ffffff;
|
|
165
|
-
--edge: #
|
|
166
|
-
--edge-alpha: 0.
|
|
167
|
-
--edge-strong: #
|
|
168
|
-
--lane: rgba(
|
|
169
|
-
--lane-line: rgba(
|
|
165
|
+
--edge: #8a8a8a;
|
|
166
|
+
--edge-alpha: 0.5;
|
|
167
|
+
--edge-strong: #2a2a2a;
|
|
168
|
+
--lane: rgba(0, 0, 0, 0.025);
|
|
169
|
+
--lane-line: rgba(0, 0, 0, 0.07);
|
|
170
170
|
--warn: #b45309;
|
|
171
171
|
--warn-soft: #fef3c7;
|
|
172
172
|
--ok: #15803d;
|
|
@@ -174,33 +174,37 @@ const LIGHT_TOKENS = `
|
|
|
174
174
|
--live: #0369a1;
|
|
175
175
|
--live-soft: #e0f2fe;
|
|
176
176
|
--x-account: #c026d3;
|
|
177
|
-
--frame: rgba(
|
|
178
|
-
--frame-line: #
|
|
177
|
+
--frame: rgba(0, 0, 0, 0.02);
|
|
178
|
+
--frame-line: #595959;
|
|
179
179
|
--loads: #0369a1;
|
|
180
180
|
--hit: #f59e0b;
|
|
181
|
-
--
|
|
182
|
-
--
|
|
183
|
-
--
|
|
184
|
-
--
|
|
185
|
-
--
|
|
181
|
+
--text-2: #3f3f3f;
|
|
182
|
+
--text-3: #595959;
|
|
183
|
+
--text-4: #8c8c8c;
|
|
184
|
+
--grid-dot: #dadad5;
|
|
185
|
+
--card: #ffffff;
|
|
186
|
+
--card-edge: rgba(0, 0, 0, 0.1);
|
|
187
|
+
--card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
188
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
189
|
+
--shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);
|
|
190
|
+
--shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
|
|
186
191
|
`;
|
|
187
192
|
const DARK_TOKENS = `
|
|
188
193
|
color-scheme: dark;
|
|
189
|
-
--bg: #
|
|
190
|
-
--surface: #
|
|
191
|
-
--surface-2: #
|
|
192
|
-
--border: #
|
|
193
|
-
--border-strong: #
|
|
194
|
-
--text: #
|
|
195
|
-
--
|
|
196
|
-
--accent:
|
|
197
|
-
--accent
|
|
198
|
-
--
|
|
199
|
-
--edge: #8d96a8;
|
|
194
|
+
--bg: #0f0f0f;
|
|
195
|
+
--surface: #191919;
|
|
196
|
+
--surface-2: #222222;
|
|
197
|
+
--border: #2a2a2a;
|
|
198
|
+
--border-strong: #3d3d3d;
|
|
199
|
+
--text: #ececec;
|
|
200
|
+
--accent: #ececec;
|
|
201
|
+
--accent-soft: rgba(236, 236, 236, 0.1);
|
|
202
|
+
--on-accent: #0f0f0f;
|
|
203
|
+
--edge: #808080;
|
|
200
204
|
--edge-alpha: 0.5;
|
|
201
|
-
--edge-strong: #
|
|
202
|
-
--lane: rgba(
|
|
203
|
-
--lane-line: rgba(
|
|
205
|
+
--edge-strong: #e0e0e0;
|
|
206
|
+
--lane: rgba(255, 255, 255, 0.02);
|
|
207
|
+
--lane-line: rgba(255, 255, 255, 0.06);
|
|
204
208
|
--warn: #fbbf24;
|
|
205
209
|
--warn-soft: rgba(251, 191, 36, 0.14);
|
|
206
210
|
--ok: #4ade80;
|
|
@@ -208,12 +212,17 @@ const DARK_TOKENS = `
|
|
|
208
212
|
--live: #38bdf8;
|
|
209
213
|
--live-soft: rgba(56, 189, 248, 0.14);
|
|
210
214
|
--x-account: #e879f9;
|
|
211
|
-
--frame: rgba(
|
|
212
|
-
--frame-line: #
|
|
215
|
+
--frame: rgba(255, 255, 255, 0.02);
|
|
216
|
+
--frame-line: #999999;
|
|
213
217
|
--loads: #7dd3fc;
|
|
214
218
|
--hit: #fbbf24;
|
|
215
|
-
--
|
|
216
|
-
--
|
|
219
|
+
--text-2: #b4b4b4;
|
|
220
|
+
--text-3: #999999;
|
|
221
|
+
--text-4: #5c5c5c;
|
|
222
|
+
--grid-dot: #262626;
|
|
223
|
+
--card: #1c1c1c;
|
|
224
|
+
--card-edge: rgba(255, 255, 255, 0.08);
|
|
225
|
+
--card-shadow: 0 0 0 transparent;
|
|
217
226
|
--shadow: none;
|
|
218
227
|
--shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.4);
|
|
219
228
|
--shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.55);
|
|
@@ -234,10 +243,10 @@ button { font: inherit; color: inherit; }
|
|
|
234
243
|
background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20;
|
|
235
244
|
}
|
|
236
245
|
.bar h1 { margin: 0; font-size: 14px; font-weight: 650; white-space: nowrap; }
|
|
237
|
-
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; font-size: 13px; color: var(--
|
|
246
|
+
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; font-size: 13px; color: var(--text-3); }
|
|
238
247
|
.crumbs::before { content: ''; width: 1px; height: 16px; background: var(--border); margin: 0 8px 0 4px; flex: none; }
|
|
239
248
|
.crumbs[hidden] { display: none; }
|
|
240
|
-
.crumbs button { border: 0; background: none; padding: 4px 6px; border-radius: 6px; cursor: pointer; color: var(--
|
|
249
|
+
.crumbs button { border: 0; background: none; padding: 4px 6px; border-radius: 6px; cursor: pointer; color: var(--text-3); white-space: nowrap; }
|
|
241
250
|
.crumbs button:hover { background: var(--surface-2); color: var(--text); }
|
|
242
251
|
.crumbs .sep { opacity: 0.6; padding: 0 1px; }
|
|
243
252
|
.crumbs .here { color: var(--text); font-weight: 600; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
@@ -254,47 +263,67 @@ button { font: inherit; color: inherit; }
|
|
|
254
263
|
.btn[hidden] { display: none; }
|
|
255
264
|
.search {
|
|
256
265
|
display: flex; align-items: center; gap: 6px; height: 32px; width: 240px; padding: 0 10px;
|
|
257
|
-
border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--
|
|
266
|
+
border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text-3);
|
|
258
267
|
}
|
|
259
268
|
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
260
269
|
.search svg { width: 15px; height: 15px; flex: none; }
|
|
261
270
|
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
|
|
262
271
|
.search input::-webkit-search-cancel-button { display: none; }
|
|
263
272
|
.search .count { font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
273
|
+
.search-list {
|
|
274
|
+
position: fixed; z-index: 30; margin: 0; padding: 4px; list-style: none; max-height: min(360px, 60vh); overflow-y: auto;
|
|
275
|
+
border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-pop);
|
|
276
|
+
}
|
|
277
|
+
.search-list[hidden] { display: none; }
|
|
278
|
+
.search-list li { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
|
|
279
|
+
.search-list li[aria-selected="true"], .search-list li:hover { background: var(--accent-soft); }
|
|
280
|
+
.search-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
|
|
281
|
+
.search-list .lv { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--text-3); }
|
|
282
|
+
.search-list .empty { cursor: default; font-size: 12px; color: var(--text-3); }
|
|
264
283
|
.btn {
|
|
265
284
|
height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; flex: none;
|
|
266
285
|
border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; cursor: pointer; white-space: nowrap;
|
|
267
286
|
}
|
|
268
287
|
.btn:hover { background: var(--surface-2); }
|
|
269
|
-
.btn svg { width: 16px; height: 16px; color: var(--
|
|
288
|
+
.btn svg { width: 16px; height: 16px; color: var(--text-3); }
|
|
270
289
|
.btn.icon { width: 32px; padding: 0; justify-content: center; }
|
|
271
290
|
.btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--border-strong); }
|
|
272
291
|
.btn .n {
|
|
273
292
|
min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
|
|
274
|
-
font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--
|
|
293
|
+
font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text-3);
|
|
275
294
|
}
|
|
276
295
|
.btn .n.warn { background: var(--warn-soft); color: var(--warn); }
|
|
277
296
|
.seg { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); flex: none; }
|
|
278
297
|
.seg .btn { border: 0; height: 30px; }
|
|
279
|
-
.env-picker .btn { padding: 0 9px; color: var(--
|
|
298
|
+
.env-picker .btn { padding: 0 9px; color: var(--text-3); font-variant-numeric: tabular-nums; }
|
|
280
299
|
.env-picker .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
|
|
281
300
|
.env-off { display: none !important; }
|
|
282
|
-
.zoom-level { min-width: 44px; text-align: center; font-size: 12px; color: var(--
|
|
301
|
+
.zoom-level { min-width: 44px; text-align: center; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
|
|
283
302
|
#theme-btn .sun { display: none; }
|
|
284
303
|
#theme-btn[data-mode="dark"] .sun { display: block; }
|
|
285
304
|
#theme-btn[data-mode="dark"] .moon { display: none; }
|
|
286
305
|
#theme-btn[data-mode="light"] .moon { display: block; }
|
|
287
306
|
#theme-btn[data-mode="light"] .sun { display: none; }
|
|
288
|
-
.meta { display: flex; gap: 10px; padding-left: 4px; font-size: 11px; color: var(--
|
|
307
|
+
.meta { display: flex; gap: 10px; padding-left: 4px; font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
289
308
|
.main { position: relative; flex: 1; min-height: 0; overflow: hidden; }
|
|
290
309
|
.stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
|
|
310
|
+
/* 그림 칸. 위에 단계 머리가 서고 남은 높이를 stage가 채운다. 개요를 열면 오른쪽 옆 칸만큼 좁아진다 */
|
|
311
|
+
.canvas-col { position: absolute; inset: 0; display: flex; flex-direction: column; min-width: 0; }
|
|
312
|
+
.canvas-col > .stage { position: relative; inset: auto; flex: 1; min-height: 0; }
|
|
313
|
+
.main:has(> .overview[open]) > .canvas-col { right: ${SIDE_PANEL_W}px; }
|
|
314
|
+
.main:has(> #seq-bar:not([hidden])) > .canvas-col { right: 0; }
|
|
291
315
|
.stage.panning { cursor: grabbing; }
|
|
316
|
+
/* 점 격자는 화면에 고정한다. 그림과 함께 움직이려면 확대와 이동마다 배경 위치를 다시 써야 해서 고정으로 둔다 */
|
|
317
|
+
.stage { background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.25px); background-size: 24px 24px; }
|
|
318
|
+
@media print { .stage { background-image: none; } }
|
|
292
319
|
.viewport { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
|
|
293
320
|
.viewport.glide { transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
|
|
321
|
+
@media (prefers-reduced-motion: reduce) { .viewport.glide { transition: none; } }
|
|
294
322
|
.level { position: relative; }
|
|
295
323
|
.level[hidden] { display: none; }
|
|
296
324
|
.links { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
|
|
297
|
-
|
|
325
|
+
/* 레인은 면과 테두리 없이 자리만 잡는다. 칸 구분은 제목 위 괄호선이 맡는다. 바깥 맥락 레인도 같고 바깥 카드는 알약 꼴로 갈린다 */
|
|
326
|
+
.lane { fill: none; stroke: none; }
|
|
298
327
|
.frame { fill: var(--frame); stroke: var(--frame-line); stroke-width: 1.25; stroke-opacity: 0.6; }
|
|
299
328
|
.band-line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 4; }
|
|
300
329
|
.band-title {
|
|
@@ -303,36 +332,34 @@ button { font: inherit; color: inherit; }
|
|
|
303
332
|
}
|
|
304
333
|
.band-title .sw { width: 10px; height: 10px; border-radius: 2px; background: var(--p); }
|
|
305
334
|
.lane-title {
|
|
306
|
-
position: absolute; display: flex; align-items: center; gap: 8px; padding:
|
|
307
|
-
font-size:
|
|
335
|
+
position: absolute; display: flex; align-items: center; gap: 8px; padding: 4px 14px 0; height: 24px;
|
|
336
|
+
font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden;
|
|
337
|
+
border-top: 1px solid var(--lane-line);
|
|
308
338
|
}
|
|
339
|
+
.lane-title::before, .lane-title::after { content: ''; position: absolute; top: 0; width: 1px; height: 6px; background: var(--lane-line); }
|
|
340
|
+
.lane-title::before { left: 0; }
|
|
341
|
+
.lane-title::after { right: 0; }
|
|
309
342
|
.lane-title[data-lane-id] { cursor: pointer; border-radius: 4px; }
|
|
310
343
|
.lane-title[data-lane-id]:hover { color: var(--accent); }
|
|
311
344
|
.lane-title .n {
|
|
312
345
|
min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
|
|
313
|
-
font-size: 11px; font-weight: 600; color: var(--
|
|
346
|
+
font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums;
|
|
314
347
|
}
|
|
315
348
|
.node {
|
|
316
|
-
--brick:
|
|
317
|
-
--brick-edge:
|
|
318
|
-
--thick:
|
|
349
|
+
--brick: var(--card);
|
|
350
|
+
--brick-edge: var(--card-edge);
|
|
351
|
+
--thick: var(--card-shadow);
|
|
319
352
|
position: absolute; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-content: center;
|
|
320
|
-
padding: 0 20px 0
|
|
321
|
-
background: var(--
|
|
353
|
+
padding: 0 20px 0 12px; cursor: pointer;
|
|
354
|
+
background: var(--card); border: 1px solid var(--card-edge); border-radius: 10px; box-shadow: var(--thick);
|
|
322
355
|
transition: box-shadow 0.15s, border-color 0.15s, opacity 0.15s;
|
|
323
356
|
}
|
|
324
|
-
|
|
325
|
-
.
|
|
326
|
-
content: ''; position: absolute; left: 12px; top: -6px; width: 14px; height: 5px; border-radius: 3px 3px 0 0;
|
|
327
|
-
background: var(--brick-edge); box-shadow: 20px 0 var(--brick-edge), 40px 0 var(--brick-edge), 60px 0 var(--brick-edge);
|
|
328
|
-
}
|
|
329
|
-
/* 같이 쓰는 카드는 돌기 자리에 제품 브릭을 꽂는다 */
|
|
330
|
-
.node.shared::before { display: none; }
|
|
357
|
+
.node.outside { border-style: dashed; border-color: var(--border-strong); }
|
|
358
|
+
.lane-title .more { font-size: 11px; font-weight: 600; color: var(--text-3); }
|
|
331
359
|
.pbricks { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 1px); display: flex; gap: 2px; }
|
|
332
360
|
.pb {
|
|
333
361
|
flex: none; height: 17px; padding: 0 6px; border-radius: 3px 3px 0 0;
|
|
334
362
|
font: 700 10.5px/17px var(--font); color: #fff; background: var(--p); white-space: nowrap;
|
|
335
|
-
box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--p) 70%, #000);
|
|
336
363
|
}
|
|
337
364
|
.pb.more {
|
|
338
365
|
border: 1px solid var(--border-strong); border-bottom: 0; line-height: 15px; cursor: pointer;
|
|
@@ -343,18 +370,18 @@ button { font: inherit; color: inherit; }
|
|
|
343
370
|
/* +N 드롭다운. 캔버스는 확대와 스크롤 상자 안이라 그 안에 두면 잘린다. 화면 기준으로 띄운다 */
|
|
344
371
|
.pmenu {
|
|
345
372
|
position: fixed; z-index: 40; min-width: 168px; padding: 6px;
|
|
346
|
-
background: var(--surface); border: 1px solid var(--border-strong); border-radius:
|
|
373
|
+
background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-pop);
|
|
347
374
|
}
|
|
348
375
|
.pmenu[hidden] { display: none; }
|
|
349
|
-
.pmenu h3 { margin: 2px 6px 6px; font-size: 11px; font-weight: 600; color: var(--
|
|
376
|
+
.pmenu h3 { margin: 2px 6px 6px; font-size: 11px; font-weight: 600; color: var(--text-3); }
|
|
350
377
|
.pmenu ul { margin: 0; padding: 0; list-style: none; }
|
|
351
378
|
.pmenu li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 13px; font-weight: 600; color: var(--text); }
|
|
352
379
|
.pmenu .pb { height: 15px; padding: 0 5px; font-size: 10px; line-height: 15px; }
|
|
353
|
-
.pmenu small { margin-left: auto; font-weight: 500; color: var(--
|
|
380
|
+
.pmenu small { margin-left: auto; font-weight: 500; color: var(--text-3); }
|
|
354
381
|
.node:hover { box-shadow: var(--thick), var(--shadow-hover); }
|
|
355
382
|
.node:focus { outline: none; }
|
|
356
383
|
.node:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
357
|
-
.node.is-focus { border-color: var(--
|
|
384
|
+
.node.is-focus { border-color: var(--accent); }
|
|
358
385
|
.node.focus-root:not(.selected) { border-color: var(--accent); box-shadow: var(--thick), 0 0 0 3px var(--accent-soft); }
|
|
359
386
|
.node.selected { border-color: var(--accent); box-shadow: var(--thick), 0 0 0 4px var(--accent-soft), var(--shadow-hover); }
|
|
360
387
|
.node.anchor:not(.selected) { outline: 2px dashed var(--accent); outline-offset: 3px; }
|
|
@@ -363,7 +390,7 @@ button { font: inherit; color: inherit; }
|
|
|
363
390
|
.kc {
|
|
364
391
|
grid-row: 1; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px 0 4px; border-radius: 5px; align-self: center;
|
|
365
392
|
font-size: 10.5px; font-weight: 650; line-height: 1; white-space: nowrap;
|
|
366
|
-
color: color-mix(in srgb, var(--kind)
|
|
393
|
+
color: color-mix(in srgb, var(--kind) 64%, var(--text)); background: color-mix(in srgb, var(--kind) 13%, transparent);
|
|
367
394
|
}
|
|
368
395
|
.kc svg { width: 12px; height: 12px; flex: none; color: var(--kind); }
|
|
369
396
|
.kc svg.brand, .pf svg.brand { color: var(--brand); }
|
|
@@ -376,7 +403,7 @@ button { font: inherit; color: inherit; }
|
|
|
376
403
|
.nm .t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
377
404
|
.tc {
|
|
378
405
|
grid-row: 2; grid-column: 1 / -1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
379
|
-
font: 11px/16px var(--mono); color: var(--
|
|
406
|
+
font: 11px/16px var(--mono); color: var(--text-3);
|
|
380
407
|
}
|
|
381
408
|
.guess {
|
|
382
409
|
flex: none; margin-left: 6px; padding: 0 5px; border-radius: 8px; font-size: 10px; font-weight: 600; line-height: 16px;
|
|
@@ -385,17 +412,15 @@ button { font: inherit; color: inherit; }
|
|
|
385
412
|
.flow-badge {
|
|
386
413
|
flex: none; display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; border-radius: 8px;
|
|
387
414
|
font-size: 10.5px; font-weight: 700; line-height: 16px; color: var(--on-accent);
|
|
388
|
-
background: var(--accent);
|
|
415
|
+
background: var(--accent);
|
|
389
416
|
}
|
|
390
417
|
.flow-badge svg { width: 12px; height: 12px; flex: none; }
|
|
391
|
-
.flow-badge:hover { background: color-mix(in srgb, var(--accent)
|
|
392
|
-
|
|
393
|
-
.node .guess { color: var(--bg); background: var(--warn); }
|
|
394
|
-
.go { position: absolute; right: 8px; bottom: 4px; font-size: 14px; line-height: 1; color: var(--muted); }
|
|
418
|
+
.flow-badge:hover { background: color-mix(in srgb, var(--accent) 80%, var(--bg)); }
|
|
419
|
+
.go { position: absolute; right: 8px; bottom: 4px; font-size: 14px; line-height: 1; color: var(--text-3); }
|
|
395
420
|
.pf {
|
|
396
421
|
flex: none; display: inline-flex; align-items: center; gap: 3px; height: 16px; margin-left: 4px; padding: 0 4px;
|
|
397
|
-
border: 1px solid color-mix(in srgb, var(--
|
|
398
|
-
font-size: 10px; font-weight: 650; line-height: 1; color: var(--
|
|
422
|
+
border: 1px solid color-mix(in srgb, var(--text-3) 45%, transparent); border-radius: 4px;
|
|
423
|
+
font-size: 10px; font-weight: 650; line-height: 1; color: var(--text-3);
|
|
399
424
|
}
|
|
400
425
|
.pf svg { width: 11px; height: 11px; flex: none; }
|
|
401
426
|
.tc.dom { font-family: var(--font); color: var(--text); }
|
|
@@ -403,7 +428,7 @@ button { font: inherit; color: inherit; }
|
|
|
403
428
|
/* 설명 줄은 행을 정하지 않는다. 둘째 줄이 있으면 셋째 줄, 없으면 둘째 줄로 자동 배치된다 */
|
|
404
429
|
.ds {
|
|
405
430
|
grid-column: 1 / -1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
406
|
-
font:
|
|
431
|
+
font: 12px/17px var(--font); color: var(--text-2);
|
|
407
432
|
}
|
|
408
433
|
.l2 .pf:first-child { margin-left: 0; }
|
|
409
434
|
/* 도메인 흐름. 행위자 줄은 번갈아 옅게 칠해 줄 경계를 읽히게 하고, 옆 흐름은 정상 흐름과 색으로 가른다 */
|
|
@@ -415,7 +440,7 @@ button { font: inherit; color: inherit; }
|
|
|
415
440
|
font: 600 12px/1 var(--mono); color: var(--text); pointer-events: none; box-sizing: border-box;
|
|
416
441
|
}
|
|
417
442
|
.fstage span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
418
|
-
.fstage.side { font-family: inherit; color: var(--
|
|
443
|
+
.fstage.side { font-family: inherit; color: var(--text-3); border-style: dashed; }
|
|
419
444
|
.fstage.named { font-family: inherit; }
|
|
420
445
|
.fstage-line { stroke: var(--lane-line); stroke-width: 1; stroke-dasharray: 4 4; }
|
|
421
446
|
.fstage-line.side { stroke-width: 1.5; stroke-dasharray: none; }
|
|
@@ -424,7 +449,7 @@ button { font: inherit; color: inherit; }
|
|
|
424
449
|
font-size: 13px; font-weight: 700; line-height: 18px; color: var(--text); pointer-events: none;
|
|
425
450
|
}
|
|
426
451
|
.flane-title span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: keep-all; }
|
|
427
|
-
.flane-title svg { width: 15px; height: 15px; flex: none; margin-top: 1.5px; color: var(--
|
|
452
|
+
.flane-title svg { width: 15px; height: 15px; flex: none; margin-top: 1.5px; color: var(--text-3); }
|
|
428
453
|
.flow-step { --kind: var(--accent); padding: 0 12px 0 12px; }
|
|
429
454
|
.flow-step.p-side { --kind: var(--warn); }
|
|
430
455
|
.flow-step.doc-only { border-style: dashed; }
|
|
@@ -433,11 +458,11 @@ button { font: inherit; color: inherit; }
|
|
|
433
458
|
.flow-step .l2 { gap: 6px; }
|
|
434
459
|
.flow-step .st {
|
|
435
460
|
min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
436
|
-
font: 10.5px/16px var(--mono); padding: 0 5px; border-radius: 4px; color: var(--
|
|
461
|
+
font: 10.5px/16px var(--mono); padding: 0 5px; border-radius: 4px; color: var(--text-3); background: var(--lane);
|
|
437
462
|
}
|
|
438
463
|
.flow-step .st.named { font-family: inherit; font-weight: 600; }
|
|
439
464
|
.flow-step .refs, .flow-step .qb {
|
|
440
|
-
flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 650; color: var(--
|
|
465
|
+
flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 650; color: var(--text-3);
|
|
441
466
|
}
|
|
442
467
|
.flow-step .qb { color: var(--warn); }
|
|
443
468
|
.flow-step .end {
|
|
@@ -452,7 +477,7 @@ button { font: inherit; color: inherit; }
|
|
|
452
477
|
.link.flow-t.p-side .edge { stroke: var(--warn); }
|
|
453
478
|
.link.flow-t.p-side .tip { fill: var(--warn); }
|
|
454
479
|
.link.flow-t .t-label {
|
|
455
|
-
font-size: 11px; font-weight: 600; text-anchor: middle; fill: var(--
|
|
480
|
+
font-size: 11px; font-weight: 600; text-anchor: middle; fill: var(--text-3);
|
|
456
481
|
paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round;
|
|
457
482
|
}
|
|
458
483
|
.link.flow-t .t-who { fill: var(--text); font-weight: 700; }
|
|
@@ -463,7 +488,7 @@ button { font: inherit; color: inherit; }
|
|
|
463
488
|
font: inherit; font-size: 12px; color: var(--text); background: var(--surface); border: 1px solid var(--border);
|
|
464
489
|
}
|
|
465
490
|
.dr-body .refs-list button:hover { border-color: var(--accent); }
|
|
466
|
-
.dr-body .refs-list button svg { width: 12px; height: 12px; flex: none; color: var(--kind, var(--
|
|
491
|
+
.dr-body .refs-list button svg { width: 12px; height: 12px; flex: none; color: var(--kind, var(--text-3)); }
|
|
467
492
|
.flow-list { margin: 8px 0 0; padding: 0; list-style: none; }
|
|
468
493
|
.flow-list button {
|
|
469
494
|
display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; text-align: left; cursor: pointer;
|
|
@@ -473,8 +498,9 @@ button { font: inherit; color: inherit; }
|
|
|
473
498
|
.link.x-account .edge { stroke: var(--x-account); stroke-opacity: 0.85; }
|
|
474
499
|
.link.x-account .tip { fill: var(--x-account); fill-opacity: 0.85; }
|
|
475
500
|
.link.e-contains .edge { stroke-opacity: 0.35; }
|
|
476
|
-
|
|
477
|
-
.link.e-loads .
|
|
501
|
+
/* 로드 선은 많이 겹쳐 기본은 회색 점선으로 물리고 고르거나 올렸을 때만 하늘색을 띄운다 */
|
|
502
|
+
.link.e-loads .edge { stroke: var(--edge); stroke-opacity: 0.4; }
|
|
503
|
+
.link.e-loads .tip { fill: var(--edge); fill-opacity: 0.5; }
|
|
478
504
|
/* 근거가 확인된 로드 선은 점선으로 요청 흐름과 구분한다. 근거가 약한 선은 기존 파선이 그대로 이긴다 */
|
|
479
505
|
.link.e-loads .edge:not([stroke-dasharray]) { stroke-dasharray: 1 6; stroke-width: 2.5; }
|
|
480
506
|
.link .edge { fill: none; stroke: var(--edge); stroke-opacity: var(--edge-alpha); stroke-linecap: round; transition: stroke 0.15s, stroke-opacity 0.15s; }
|
|
@@ -484,6 +510,10 @@ button { font: inherit; color: inherit; }
|
|
|
484
510
|
.link:focus { outline: none; }
|
|
485
511
|
.link.lit .edge, .link:hover .edge { stroke: var(--edge-strong); stroke-opacity: 0.9; }
|
|
486
512
|
.link.lit .tip, .link:hover .tip { fill: var(--edge-strong); fill-opacity: 1; }
|
|
513
|
+
.link.e-loads.lit .edge, .link.e-loads:hover .edge { stroke: var(--loads); stroke-opacity: 0.95; }
|
|
514
|
+
.link.e-loads.lit .tip, .link.e-loads:hover .tip { fill: var(--loads); fill-opacity: 1; }
|
|
515
|
+
.link.x-account.lit .edge, .link.x-account:hover .edge { stroke: var(--x-account); stroke-opacity: 1; }
|
|
516
|
+
.link.x-account.lit .tip, .link.x-account:hover .tip { fill: var(--x-account); fill-opacity: 1; }
|
|
487
517
|
.link:focus-visible .edge { stroke: var(--accent); stroke-opacity: 1; }
|
|
488
518
|
.pill { opacity: 0; transition: opacity 0.15s; }
|
|
489
519
|
.link.lit .pill, .link:hover .pill, .link:focus-visible .pill { opacity: 1; }
|
|
@@ -492,14 +522,48 @@ button { font: inherit; color: inherit; }
|
|
|
492
522
|
.level .node, .level .link { transition: opacity 0.15s, box-shadow 0.15s, border-color 0.15s; }
|
|
493
523
|
.dimmed .node:not(.lit), .dimmed .link:not(.lit) { opacity: 0.15; }
|
|
494
524
|
.searching .node:not(.hit) { opacity: 0.35; }
|
|
495
|
-
.empty-state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--
|
|
525
|
+
.empty-state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--text-3); }
|
|
496
526
|
.hint {
|
|
497
527
|
position: absolute; left: 16px; bottom: 16px; z-index: 5; max-width: min(560px, calc(100% - 32px));
|
|
498
528
|
display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 8px 8px 12px;
|
|
499
|
-
font-size: 12px; color: var(--
|
|
529
|
+
font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
|
|
500
530
|
}
|
|
501
531
|
.hint[hidden] { display: none; }
|
|
502
|
-
.
|
|
532
|
+
.overview {
|
|
533
|
+
position: absolute; top: 12px; right: 16px; z-index: 5; width: max-content; max-width: min(320px, calc(100% - 32px));
|
|
534
|
+
font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
|
|
535
|
+
}
|
|
536
|
+
.overview > summary { padding: 6px 12px; font-weight: 650; color: var(--text); cursor: pointer; list-style: none; }
|
|
537
|
+
.overview > summary::-webkit-details-marker { display: none; }
|
|
538
|
+
.overview > summary::after { content: '▾'; margin-left: 6px; color: var(--text-3); }
|
|
539
|
+
.overview[open] > summary::after { content: '▴'; }
|
|
540
|
+
.ov-body { max-height: min(50vh, 360px); overflow-y: auto; padding: 0 12px 10px; }
|
|
541
|
+
.ov-sum { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--text); }
|
|
542
|
+
.ov-note { margin: 0 0 8px; line-height: 1.5; }
|
|
543
|
+
.ov-h { margin: 8px 0 4px; font-size: 11px; font-weight: 650; color: var(--text-3); }
|
|
544
|
+
.ov-stats { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; }
|
|
545
|
+
.ov-stats dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
546
|
+
.ov-stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
|
|
547
|
+
/* 넓은 화면에서 연 개요는 그림 오른쪽 옆 칸이다. 닫으면 오른쪽 위 작은 단추로 돌아간다 */
|
|
548
|
+
.overview[open] {
|
|
549
|
+
top: 0; right: 0; bottom: 0; width: ${SIDE_PANEL_W}px; max-width: none; overflow: hidden;
|
|
550
|
+
border-width: 0 0 0 1px; border-radius: 0; box-shadow: none;
|
|
551
|
+
}
|
|
552
|
+
.overview[open] > .ov-body { max-height: calc(100% - 34px); }
|
|
553
|
+
.ov-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
|
|
554
|
+
.ov-tile { min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
|
|
555
|
+
.ov-tile b { display: block; font-size: 18px; font-weight: 700; line-height: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
|
|
556
|
+
.ov-tile span { display: block; font-size: 11px; line-height: 16px; color: var(--text-3); }
|
|
557
|
+
.ov-lanes { margin: 0; padding: 0; list-style: none; }
|
|
558
|
+
.ov-lanes a {
|
|
559
|
+
display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px;
|
|
560
|
+
color: var(--text-2); text-decoration: none;
|
|
561
|
+
}
|
|
562
|
+
.ov-lanes a span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
563
|
+
.ov-lanes a b { margin-left: auto; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
|
|
564
|
+
.ov-lanes a:hover { color: var(--text); background: var(--surface-2); }
|
|
565
|
+
.ov-lanes a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
566
|
+
.hint button { flex: none; border: 0; background: none; width: 20px; height: 20px; padding: 2px; border-radius: 5px; cursor: pointer; color: var(--text-3); }
|
|
503
567
|
.hint button:hover { background: var(--surface-2); }
|
|
504
568
|
.hint svg { width: 16px; height: 16px; display: block; }
|
|
505
569
|
.drawer {
|
|
@@ -518,10 +582,10 @@ button { font: inherit; color: inherit; }
|
|
|
518
582
|
.chip svg { width: 12px; height: 12px; }
|
|
519
583
|
.chip.flow { --kind: var(--accent); }
|
|
520
584
|
.chip.flow.side { --kind: var(--warn); }
|
|
521
|
-
.repo { font: 11px var(--mono); color: var(--
|
|
585
|
+
.repo { font: 11px var(--mono); color: var(--text-3); word-break: break-all; }
|
|
522
586
|
.dr-head h2 { margin: 0; font-size: 17px; line-height: 1.4; word-break: break-word; outline: none; }
|
|
523
587
|
.dr-head h2 .guess { vertical-align: 2px; }
|
|
524
|
-
.tech { margin-top: 2px; font: 12px/1.5 var(--mono); color: var(--
|
|
588
|
+
.tech { margin-top: 2px; font: 12px/1.5 var(--mono); color: var(--text-3); word-break: break-all; }
|
|
525
589
|
.guess-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; color: var(--warn); background: var(--warn-soft); }
|
|
526
590
|
.dr-body { flex: 1; overflow-y: auto; padding: 16px 20px 28px; }
|
|
527
591
|
.actions { display: flex; gap: 8px; margin-bottom: 16px; }
|
|
@@ -532,7 +596,7 @@ button { font: inherit; color: inherit; }
|
|
|
532
596
|
.actions .focus { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
|
|
533
597
|
.actions .focus:hover { background: var(--surface-2); }
|
|
534
598
|
.desc { margin: 0 0 18px; line-height: 1.6; word-break: break-word; }
|
|
535
|
-
.dr-body h3, .pop h3 { margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--
|
|
599
|
+
.dr-body h3, .pop h3 { margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--text-3); }
|
|
536
600
|
.evidence { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
537
601
|
.evidence li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
|
|
538
602
|
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin: 0 6px 4px 0; border-radius: 10px; font-size: 11px; font-weight: 600; vertical-align: middle; }
|
|
@@ -542,19 +606,19 @@ button { font: inherit; color: inherit; }
|
|
|
542
606
|
.cmd { display: block; margin-top: 4px; font: 12px/1.5 var(--mono); word-break: break-all; color: var(--text); }
|
|
543
607
|
.facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
|
544
608
|
.facts li { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
|
|
545
|
-
.facts .env { flex: none; min-width: 44px; font-weight: 650; color: var(--
|
|
609
|
+
.facts .env { flex: none; min-width: 44px; font-weight: 650; color: var(--text-3); }
|
|
546
610
|
.facts .val { min-width: 0; word-break: break-all; }
|
|
547
611
|
.evidence.plat { margin-bottom: 18px; }
|
|
548
612
|
.evidence .evidence { margin-top: 8px; }
|
|
549
613
|
.loc { display: block; font: 12px/1.5 var(--mono); word-break: break-all; }
|
|
550
|
-
a.loc { color: var(--accent); text-decoration:
|
|
551
|
-
a.loc:hover { text-decoration:
|
|
552
|
-
.ev-meta { margin-top: 4px; font-size: 11px; color: var(--
|
|
614
|
+
a.loc { color: var(--accent); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
|
|
615
|
+
a.loc:hover { text-decoration-color: currentColor; }
|
|
616
|
+
.ev-meta { margin-top: 4px; font-size: 11px; color: var(--text-3); }
|
|
553
617
|
.evidence pre {
|
|
554
618
|
margin: 8px 0 0; padding: 8px 10px; max-height: 220px; overflow: auto; border-radius: 6px;
|
|
555
619
|
font: 11.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; background: var(--surface-2);
|
|
556
620
|
}
|
|
557
|
-
.empty { margin: 0; color: var(--
|
|
621
|
+
.empty { margin: 0; color: var(--text-3); }
|
|
558
622
|
.pop {
|
|
559
623
|
position: fixed; z-index: 40; width: 360px; max-width: calc(100vw - 16px); max-height: min(70vh, 560px); overflow-x: hidden; overflow-y: auto;
|
|
560
624
|
padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop);
|
|
@@ -571,7 +635,7 @@ a.loc:hover { text-decoration: underline; }
|
|
|
571
635
|
.swatch svg { width: 14px; height: 14px; }
|
|
572
636
|
.legend-kinds { grid-template-columns: 1fr !important; }
|
|
573
637
|
.legend-kinds .kc { flex: none; }
|
|
574
|
-
.pop .foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.6; color: var(--
|
|
638
|
+
.pop .foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.6; color: var(--text-3); }
|
|
575
639
|
.q-list { gap: 2px !important; }
|
|
576
640
|
.q-list li { display: block; }
|
|
577
641
|
.q {
|
|
@@ -580,7 +644,7 @@ a.loc:hover { text-decoration: underline; }
|
|
|
580
644
|
.q:hover:not(:disabled) { background: var(--surface-2); }
|
|
581
645
|
.q:disabled { cursor: default; }
|
|
582
646
|
.q-subj { display: block; font-size: 12px; font-weight: 600; color: var(--accent); word-break: break-all; }
|
|
583
|
-
.q:disabled .q-subj { color: var(--
|
|
647
|
+
.q:disabled .q-subj { color: var(--text-4); }
|
|
584
648
|
.qlist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
|
585
649
|
.q-text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
586
650
|
.sheet {
|
|
@@ -591,7 +655,7 @@ a.loc:hover { text-decoration: underline; }
|
|
|
591
655
|
.sheet summary { padding: 10px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
|
|
592
656
|
.sheet .scroll { overflow: auto; padding: 0 14px 12px; }
|
|
593
657
|
.sheet table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
|
594
|
-
.sheet th { position: sticky; top: 0; background: var(--surface); color: var(--
|
|
658
|
+
.sheet th { position: sticky; top: 0; background: var(--surface); color: var(--text-3); font-weight: 600; text-align: left; }
|
|
595
659
|
.sheet th, .sheet td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
|
|
596
660
|
.sheet td .loc { font-size: 11px; }
|
|
597
661
|
.sheet th:first-child, .sheet td:first-child { white-space: nowrap; }
|
|
@@ -613,7 +677,76 @@ a.loc:hover { text-decoration: underline; }
|
|
|
613
677
|
.drawer { width: 100%; }
|
|
614
678
|
.hint { display: none; }
|
|
615
679
|
}
|
|
680
|
+
/* 좁은 화면의 개요는 아래에서 올라오는 시트다. 기본은 닫혀 있고 열어도 그림 폭을 줄이지 않는다 */
|
|
681
|
+
@media (max-width: ${SIDE_PANEL_SHEET_MAX}px) {
|
|
682
|
+
.overview[open] {
|
|
683
|
+
top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 60%;
|
|
684
|
+
border-width: 1px 0 0; border-radius: 12px 12px 0 0; box-shadow: var(--shadow-pop);
|
|
685
|
+
}
|
|
686
|
+
.overview[open] > .ov-body { max-height: calc(60vh - 40px); }
|
|
687
|
+
.main:has(> .overview[open]) > .canvas-col { right: 0; }
|
|
688
|
+
}
|
|
616
689
|
`;
|
|
690
|
+
/**
|
|
691
|
+
* 드릴다운 그림에만 붙이는 스타일. 큰 카드(lg), 바깥 알약(out-pill), 접힌 root의 덩어리 카드, 단계 머리다.
|
|
692
|
+
* 바깥 알약을 .pill로 두면 hover 때만 보이는 선 개수 알약 규칙(opacity 0)에 걸려 안 보인다
|
|
693
|
+
* 평면 그림은 작은 카드 그대로라 이 블록을 안 싣는다
|
|
694
|
+
*/
|
|
695
|
+
export const DRILL_CSS = `.node.lg { align-content: start; padding: ${CARD_PAD_Y}px ${CARD_TEXT_RIGHT}px ${CARD_PAD_Y}px ${CARD_TEXT_LEFT}px; }
|
|
696
|
+
.node.lg .nm { font-size: 15px; line-height: 22px; }
|
|
697
|
+
.node.lg .ds {
|
|
698
|
+
white-space: normal; display: -webkit-box; -webkit-line-clamp: ${CARD_DESC_MAX_LINES}; -webkit-box-orient: vertical;
|
|
699
|
+
font: 13px/19px var(--font); word-break: keep-all; overflow-wrap: anywhere;
|
|
700
|
+
}
|
|
701
|
+
.chips-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; height: 20px; margin-top: 4px; overflow: hidden; }
|
|
702
|
+
.chips-row .guess, .chips-row .flow-badge { margin-left: 0; }
|
|
703
|
+
.cr-n {
|
|
704
|
+
flex: none; padding: 0 6px; border-radius: 8px; font-size: 11px; font-weight: 600; line-height: 18px;
|
|
705
|
+
color: var(--text-2); background: var(--surface-2); font-variant-numeric: tabular-nums;
|
|
706
|
+
}
|
|
707
|
+
.node.out-pill { align-content: center; padding: 0 28px 0 10px; border-radius: 999px; }
|
|
708
|
+
.node.out-pill .ext { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 1; color: var(--text-3); }
|
|
709
|
+
.chunk {
|
|
710
|
+
position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 12px 30px 12px 14px;
|
|
711
|
+
color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--card-edge); border-radius: 12px;
|
|
712
|
+
box-shadow: var(--card-shadow); transition: box-shadow 0.15s, border-color 0.15s;
|
|
713
|
+
}
|
|
714
|
+
.chunk:hover { border-color: var(--accent); box-shadow: var(--card-shadow), var(--shadow-hover); }
|
|
715
|
+
.chunk:focus { outline: none; }
|
|
716
|
+
.chunk:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
717
|
+
.ch-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
718
|
+
/* 원 안 숫자는 flex 가운데 정렬을 기본으로 둔다. 디센더 자리 때문에 숫자가 1px 남짓 뜨므로
|
|
719
|
+
글자 상자를 대문자 높이로 자를 수 있는 브라우저에서는 잘라서 남는 높이를 위아래로 나눈다 */
|
|
720
|
+
.ch-head .ord {
|
|
721
|
+
flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
|
|
722
|
+
line-height: 1;
|
|
723
|
+
font-size: 12px; font-weight: 700; color: var(--on-accent); background: var(--accent); font-variant-numeric: tabular-nums;
|
|
724
|
+
}
|
|
725
|
+
@supports (text-box: trim-both cap alphabetic) {
|
|
726
|
+
.ch-head .ord { display: inline-block; padding: calc((22px - 1cap) / 2) 6px; text-align: center; line-height: 1cap; text-box: trim-both cap alphabetic; }
|
|
727
|
+
}
|
|
728
|
+
.ch-head .t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; line-height: 22px; }
|
|
729
|
+
.chunk .ds {
|
|
730
|
+
white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
|
|
731
|
+
font: 13px/19px var(--font); word-break: keep-all; overflow-wrap: anywhere;
|
|
732
|
+
}
|
|
733
|
+
.chunk .chips-row { margin-top: auto; }
|
|
734
|
+
.chunk .go { right: 12px; bottom: 12px; }
|
|
735
|
+
@media (prefers-reduced-motion: reduce) { .chunk { transition: none; } }
|
|
736
|
+
.level-head { flex: none; max-width: 760px; padding: 14px 20px 6px; }
|
|
737
|
+
.main:has(> .overview:not([open])) .level-head { padding-right: 96px; }
|
|
738
|
+
.lh-kind { display: block; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--text-3); }
|
|
739
|
+
.lh-title { margin: 2px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 24px; font-weight: 700; line-height: 30px; color: var(--text); }
|
|
740
|
+
.lh-sum {
|
|
741
|
+
margin: 4px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
|
|
742
|
+
font-size: 13px; line-height: 19px; color: var(--text-2);
|
|
743
|
+
}
|
|
744
|
+
.lh-sum[hidden] { display: none; }
|
|
745
|
+
@media (max-width: ${SIDE_PANEL_SHEET_MAX}px) {
|
|
746
|
+
.level-head { padding: 10px 12px 4px; }
|
|
747
|
+
.lh-title { font-size: 20px; line-height: 26px; }
|
|
748
|
+
.lh-sum { -webkit-line-clamp: 2; }
|
|
749
|
+
}`;
|
|
617
750
|
/**
|
|
618
751
|
* 흐름에 갈림길이나 누른 것, 조건이 있거나 행위자가 한 명일 때만 붙이는 스타일. 공용 CSS에 넣으면 예전 흐름 그림의 바이트가 바뀐다.
|
|
619
752
|
* 마름모는 카드 상자를 그대로 쓰고 테두리와 그림자를 끈 뒤 polygon으로 그린다. .node 상태 규칙은 테두리와 box-shadow라 polygon에 안 먹어 stroke로 옮긴다
|
|
@@ -626,14 +759,14 @@ export const FLOW_BRANCH_CSS = `.node.flow-step.decision {
|
|
|
626
759
|
.flow-step.decision .dshape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
627
760
|
.flow-step.decision .dshape polygon {
|
|
628
761
|
fill: var(--brick); stroke: var(--brick-edge); stroke-width: 1.5; stroke-linejoin: round;
|
|
629
|
-
filter: drop-shadow(
|
|
762
|
+
filter: drop-shadow(var(--card-shadow)); transition: stroke 0.15s, stroke-width 0.15s;
|
|
630
763
|
}
|
|
631
764
|
.flow-step.decision .nm, .flow-step.decision .l2 { position: relative; }
|
|
632
765
|
.flow-step.decision .nm .t { font-size: 12px; line-height: 15px; }
|
|
633
766
|
.flow-step.decision .l2 { position: absolute; top: -2px; right: -2px; }
|
|
634
767
|
.flow-step.decision.doc-only .dshape polygon { stroke-dasharray: 5 4; }
|
|
635
768
|
.flow-step.decision:hover .dshape polygon { stroke-width: 2; }
|
|
636
|
-
.flow-step.decision.is-focus .dshape polygon { stroke: var(--
|
|
769
|
+
.flow-step.decision.is-focus .dshape polygon { stroke: var(--accent); }
|
|
637
770
|
.flow-step.decision.focus-root:not(.selected) .dshape polygon { stroke: var(--accent); stroke-width: 2.5; }
|
|
638
771
|
.flow-step.decision.selected .dshape polygon { stroke: var(--accent); stroke-width: 3; }
|
|
639
772
|
.flow-step.decision.hit .dshape polygon { stroke: var(--hit); stroke-width: 3; }
|
|
@@ -644,7 +777,7 @@ export const FLOW_BRANCH_CSS = `.node.flow-step.decision {
|
|
|
644
777
|
border-radius: 999px; background: var(--lane); border: 1px solid var(--lane-line); box-sizing: border-box;
|
|
645
778
|
font-size: 12px; font-weight: 700; line-height: 1; color: var(--text); pointer-events: none; white-space: nowrap;
|
|
646
779
|
}
|
|
647
|
-
.flane-actor svg { width: 14px; height: 14px; flex: none; color: var(--
|
|
780
|
+
.flane-actor svg { width: 14px; height: 14px; flex: none; color: var(--text-3); }
|
|
648
781
|
.swatch-decision {
|
|
649
782
|
display: inline-block; width: 13px; height: 13px; margin: 0 16px 0 8px; vertical-align: middle;
|
|
650
783
|
border: 1.5px solid var(--border-strong); transform: rotate(45deg);
|
|
@@ -664,12 +797,12 @@ export const LIFECYCLE_CSS = `:root { --lc-fail: #dc2626; }
|
|
|
664
797
|
.lc-band.lc-recovery rect { stroke: var(--warn); stroke-opacity: 0.35; stroke-dasharray: 6 4; }
|
|
665
798
|
.lc-band.lc-terminal rect { stroke: var(--border-strong); }
|
|
666
799
|
.lc-band-t { font-size: 12.5px; font-weight: 700; fill: var(--text); }
|
|
667
|
-
.lc-band-n { font-weight: 400; fill: var(--
|
|
668
|
-
.node.lc-state.o-done, .node.lc-state.o-cancel, .node.lc-state.o-fail, .node.lc-state.o-end { border: 3px double var(--
|
|
800
|
+
.lc-band-n { font-weight: 400; fill: var(--text-3); }
|
|
801
|
+
.node.lc-state.o-done, .node.lc-state.o-cancel, .node.lc-state.o-fail, .node.lc-state.o-end { border: 3px double color-mix(in srgb, var(--kind) 55%, var(--card)); }
|
|
669
802
|
.node.lc-state.o-done { --kind: var(--ok); }
|
|
670
|
-
.node.lc-state.o-cancel { --kind: var(--
|
|
803
|
+
.node.lc-state.o-cancel { --kind: var(--text-3); }
|
|
671
804
|
.node.lc-state.o-fail { --kind: var(--lc-fail); }
|
|
672
|
-
.lc-state .lc-steps { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--
|
|
805
|
+
.lc-state .lc-steps { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--text-3); }
|
|
673
806
|
.lc-state .lc-out { background: var(--kind); color: var(--on-accent); }
|
|
674
807
|
.lc-state.o-end .lc-out { background: var(--text); color: var(--surface); }
|
|
675
808
|
.link.flow-t .t-label.at-start { text-anchor: start; }
|
|
@@ -686,10 +819,10 @@ export const BLUEPRINT_CSS = `.bp-row rect { fill: var(--surface); stroke: var(-
|
|
|
686
819
|
.bp-line.bp-visibility { stroke: var(--text); stroke-opacity: 0.6; stroke-width: 2; }
|
|
687
820
|
.bp-vis-t, .bp-vis-n { paint-order: stroke; stroke: var(--bg); stroke-width: 8px; stroke-linejoin: round; }
|
|
688
821
|
.bp-vis-t { font-size: 12px; font-weight: 700; fill: var(--text); }
|
|
689
|
-
.bp-vis-n { font-size: 11px; fill: var(--
|
|
822
|
+
.bp-vis-n { font-size: 11px; fill: var(--text-3); }
|
|
690
823
|
.bp-row-t { position: absolute; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
|
|
691
824
|
.bp-row-t b { font-size: 12.5px; font-weight: 700; line-height: 18px; color: var(--text); }
|
|
692
|
-
.bp-row-t span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--
|
|
825
|
+
.bp-row-t span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--text-3); }
|
|
693
826
|
.bp-stage {
|
|
694
827
|
position: absolute; display: flex; align-items: center; gap: 8px; padding: 0 12px; box-sizing: border-box; pointer-events: none;
|
|
695
828
|
border: 1px solid var(--lane-line); border-radius: 10px; background: var(--lane);
|
|
@@ -699,7 +832,7 @@ export const BLUEPRINT_CSS = `.bp-row rect { fill: var(--surface); stroke: var(-
|
|
|
699
832
|
font-size: 11px; font-weight: 700; color: var(--surface); background: var(--text);
|
|
700
833
|
}
|
|
701
834
|
.bp-stage-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 700; color: var(--text); }
|
|
702
|
-
.bp-empty { position: absolute; height: 28px; font-size: 14px; line-height: 28px; text-align: center; color: var(--
|
|
835
|
+
.bp-empty { position: absolute; height: 28px; font-size: 14px; line-height: 28px; text-align: center; color: var(--text-3); }
|
|
703
836
|
.bp-more {
|
|
704
837
|
position: absolute; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 20px;
|
|
705
838
|
color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
|
|
@@ -707,7 +840,7 @@ export const BLUEPRINT_CSS = `.bp-row rect { fill: var(--surface); stroke: var(-
|
|
|
707
840
|
.node.bp-card { padding-right: 10px; }
|
|
708
841
|
.node.bp-card.doc-only { border-style: dashed; }
|
|
709
842
|
.bp-card.flow-step .nm .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
710
|
-
.bp-card .bp-who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--
|
|
843
|
+
.bp-card .bp-who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--text-3); }
|
|
711
844
|
`;
|
|
712
845
|
/** 라벨 단 묶음 테두리가 있을 때만 붙이는 스타일. 공용 CSS에 넣으면 group 없는 그림의 바이트가 바뀐다. 테두리 선 색을 그대로 써서 다크와 라이트 둘 다 읽힌다 */
|
|
713
846
|
export const FRAME_LABEL_CSS = `.frame-label { fill: var(--frame-line); font-size: 11px; font-weight: 700; }`;
|
|
@@ -734,8 +867,8 @@ export const ER_CSS = `.node.er-table { display: block; padding: 0; overflow: hi
|
|
|
734
867
|
color: var(--text); border: 1px solid var(--border-strong); background: var(--surface);
|
|
735
868
|
}
|
|
736
869
|
.er-b.unconfirmed { border-style: dashed; color: var(--warn); }
|
|
737
|
-
.er-ty { margin-left: auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 11px/24px var(--mono); color: var(--
|
|
738
|
-
.er-fold { font-size: 11px; color: var(--
|
|
870
|
+
.er-ty { margin-left: auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 11px/24px var(--mono); color: var(--text-3); }
|
|
871
|
+
.er-fold { font-size: 11px; color: var(--text-3); }
|
|
739
872
|
.link.er-fk .edge { stroke-opacity: 0.8; }
|
|
740
873
|
.link.er-fk .tip { fill-opacity: 0.85; }
|
|
741
874
|
.er-od {
|
|
@@ -750,7 +883,7 @@ export const ER_CSS = `.node.er-table { display: block; padding: 0; overflow: hi
|
|
|
750
883
|
export const INFRA_CSS = `.group { position: absolute; box-sizing: border-box; border-radius: 12px; }
|
|
751
884
|
.group > .g-label {
|
|
752
885
|
position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px;
|
|
753
|
-
font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--
|
|
886
|
+
font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--text-3); white-space: nowrap;
|
|
754
887
|
}
|
|
755
888
|
.g-label img, .g-label svg { width: 14px; height: 14px; flex: none; }
|
|
756
889
|
.group > .g-label.node {
|
|
@@ -805,7 +938,7 @@ export const INFRA_CSS = `.group { position: absolute; box-sizing: border-box; b
|
|
|
805
938
|
}
|
|
806
939
|
.node.inode .role {
|
|
807
940
|
display: block; margin-top: 2px; font: 10px/14px var(--mono); letter-spacing: 0.04em;
|
|
808
|
-
color: var(--
|
|
941
|
+
color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
809
942
|
}
|
|
810
943
|
.node.inode .name span, .node.inode .role span {
|
|
811
944
|
padding: 0 3px; border-radius: 3px; background: color-mix(in srgb, var(--bg) 78%, transparent);
|
|
@@ -815,10 +948,10 @@ export const INFRA_CSS = `.group { position: absolute; box-sizing: border-box; b
|
|
|
815
948
|
.infra-level .link .edge.dash { stroke-dasharray: 4 5; }
|
|
816
949
|
.infra-level .link.lit .edge, .infra-level .link:hover .edge { stroke: var(--accent); }
|
|
817
950
|
.infra-level .el {
|
|
818
|
-
font: 10.5px var(--mono); letter-spacing: 0.04em; fill: var(--
|
|
951
|
+
font: 10.5px var(--mono); letter-spacing: 0.04em; fill: var(--text-3); pointer-events: none;
|
|
819
952
|
paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round;
|
|
820
953
|
}
|
|
821
|
-
.infra-credit { position: absolute; margin: 0; font: 10px/1.4 var(--mono); color: var(--
|
|
954
|
+
.infra-credit { position: absolute; margin: 0; font: 10px/1.4 var(--mono); color: var(--text-4); }
|
|
822
955
|
@media (prefers-color-scheme: dark) {
|
|
823
956
|
:root:not([data-theme="light"]) .g-label img { background: #fff; border-radius: 3px; }
|
|
824
957
|
}
|
|
@@ -826,7 +959,7 @@ export const INFRA_CSS = `.group { position: absolute; box-sizing: border-box; b
|
|
|
826
959
|
/** 지도 위 카드 줄. 질문별 그림이나 인프라 레벨이 있을 때만 싣는다 */
|
|
827
960
|
export const VIEW_STRIP_CSS = `.view-strip { position: absolute; }
|
|
828
961
|
.view-strip h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text); }
|
|
829
|
-
.view-strip h3 .n { margin-left: 4px; color: var(--
|
|
962
|
+
.view-strip h3 .n { margin-left: 4px; color: var(--text-3); font-weight: 600; }
|
|
830
963
|
.view-strip .vs-row { position: relative; height: 92px; }
|
|
831
964
|
.view-card {
|
|
832
965
|
position: absolute; top: 0; box-sizing: border-box; height: 92px; padding: 10px 12px;
|
|
@@ -836,15 +969,15 @@ export const VIEW_STRIP_CSS = `.view-strip { position: absolute; }
|
|
|
836
969
|
}
|
|
837
970
|
.view-card:hover, .view-card:focus-visible { border-color: var(--accent); }
|
|
838
971
|
.view-card .vc-shape { font-size: 11px; font-weight: 700; color: var(--accent); }
|
|
839
|
-
.view-card .vc-q { font-size: 12px; color: var(--
|
|
840
|
-
.view-card .vc-n { margin-top: auto; font-size: 11.5px; color: var(--
|
|
972
|
+
.view-card .vc-q { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
973
|
+
.view-card .vc-n { margin-top: auto; font-size: 11.5px; color: var(--text-3); }`;
|
|
841
974
|
/** 질문별 그림이 있을 때만 붙이는 스타일. 공용 CSS에 넣으면 투영 없는 그림의 바이트가 바뀐다 */
|
|
842
|
-
export const VIEW_CSS = `.view-q { position: absolute; top: 18px; margin: 0; font-size: 13px; color: var(--
|
|
975
|
+
export const VIEW_CSS = `.view-q { position: absolute; top: 18px; margin: 0; font-size: 13px; color: var(--text-2); }
|
|
843
976
|
.lifeline { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 5; }
|
|
844
977
|
.seq-block rect { fill: var(--lane); stroke: var(--border-strong); stroke-width: 1; }
|
|
845
978
|
.seq-block .b-tab { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
|
|
846
979
|
.seq-block .b-kind { font-size: 11px; font-weight: 700; fill: var(--text); }
|
|
847
|
-
.seq-block .b-label { font-size: 11px; fill: var(--
|
|
980
|
+
.seq-block .b-label { font-size: 11px; fill: var(--text-3); }
|
|
848
981
|
.seq-block .b-branch { stroke: var(--border-strong); stroke-dasharray: 5 4; }
|
|
849
982
|
.link.seq-m { cursor: pointer; }
|
|
850
983
|
.link.seq-m .tip.open { fill: none; stroke: var(--edge); stroke-width: 1.6; }
|
|
@@ -853,14 +986,14 @@ export const VIEW_CSS = `.view-q { position: absolute; top: 18px; margin: 0; fon
|
|
|
853
986
|
font-size: 11.5px; font-weight: 600; fill: var(--text);
|
|
854
987
|
paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round;
|
|
855
988
|
}
|
|
856
|
-
.link.seq-m .m-n { fill: var(--
|
|
989
|
+
.link.seq-m .m-n { fill: var(--text-3); }
|
|
857
990
|
.view-list a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; }
|
|
858
991
|
.view-list a:hover { background: var(--lane); }
|
|
859
|
-
.view-list a span { display: block; margin-top: 2px; font-size: 12px; color: var(--
|
|
992
|
+
.view-list a span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
|
|
860
993
|
.cmp-col rect { fill: var(--lane); stroke: var(--border); stroke-width: 1; }
|
|
861
994
|
.cmp-col.cmp-both rect { stroke: var(--border-strong); stroke-width: 1.5; }
|
|
862
995
|
.cmp-head { font-size: 12.5px; font-weight: 700; fill: var(--text); }
|
|
863
|
-
.cmp-n, .cmp-empty { font-size: 12px; font-weight: 400; fill: var(--
|
|
996
|
+
.cmp-n, .cmp-empty { font-size: 12px; font-weight: 400; fill: var(--text-3); }
|
|
864
997
|
.seq-sticky { position: absolute; left: 0; background: var(--bg); }
|
|
865
998
|
.seq-sticky.stuck { box-shadow: 0 1px 0 var(--border-strong); }
|
|
866
999
|
.viewport.glide .seq-sticky, .viewport.glide .view-level .node {
|
|
@@ -868,20 +1001,21 @@ export const VIEW_CSS = `.view-q { position: absolute; top: 18px; margin: 0; fon
|
|
|
868
1001
|
}
|
|
869
1002
|
${VIEW_STRIP_CSS}`;
|
|
870
1003
|
/** 순서도가 있는 그림에만 붙이는 스타일. 보기 전환 단추, 단계별 카드, 따라가기 지도와 단계 목록 */
|
|
871
|
-
export const SEQ_VIEW_CSS =
|
|
1004
|
+
export const SEQ_VIEW_CSS = `#seq-bar:not([hidden]) ~ .overview { display: none; }
|
|
1005
|
+
.seq-bar {
|
|
872
1006
|
position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 12; box-sizing: border-box;
|
|
873
1007
|
display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: calc(100% - 32px); padding: 6px;
|
|
874
1008
|
background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
|
|
875
1009
|
}
|
|
876
1010
|
.seq-bar[hidden], .seq-cap[hidden], .seq-steps[hidden], .seq-steps .ss-list[hidden], .sw-b[hidden] { display: none; }
|
|
877
1011
|
.seq-modes { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
|
|
878
|
-
.seq-modes .btn { height: 30px; border: 0; border-radius: 0; color: var(--
|
|
1012
|
+
.seq-modes .btn { height: 30px; border: 0; border-radius: 0; color: var(--text-3); }
|
|
879
1013
|
.seq-modes .btn + .btn { border-left: 1px solid var(--border); }
|
|
880
1014
|
.seq-modes .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
|
|
881
1015
|
.seq-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
|
|
882
1016
|
.sw-say { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
|
|
883
|
-
.sw-n { color: var(--
|
|
884
|
-
.sw-p { color: var(--
|
|
1017
|
+
.sw-n { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1018
|
+
.sw-p { color: var(--text-3); white-space: nowrap; }
|
|
885
1019
|
.sw-t { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--text); }
|
|
886
1020
|
.sw-b { padding: 1px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; color: var(--warn); background: var(--warn-soft); }
|
|
887
1021
|
.sw-ctl { display: inline-flex; gap: 4px; flex: none; }
|
|
@@ -896,11 +1030,11 @@ export const SEQ_VIEW_CSS = `.seq-bar {
|
|
|
896
1030
|
.seq-steps h4 { margin: 0; padding: 10px 12px 4px; font-size: 12px; font-weight: 700; color: var(--text); }
|
|
897
1031
|
.seq-steps button {
|
|
898
1032
|
display: block; width: 100%; padding: 4px 12px; border: 0; background: none; text-align: left; cursor: pointer;
|
|
899
|
-
font-size: 13px; line-height: 1.45; color: var(--
|
|
1033
|
+
font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere;
|
|
900
1034
|
}
|
|
901
1035
|
.seq-steps button:hover { background: var(--surface-2); color: var(--text); }
|
|
902
1036
|
.seq-steps button[aria-current] { background: var(--warn-soft); color: var(--text); font-weight: 600; }
|
|
903
|
-
.w-band { font-size: 12px; font-weight: 700; fill: var(--
|
|
1037
|
+
.w-band { font-size: 12px; font-weight: 700; fill: var(--text-3); }
|
|
904
1038
|
.w-edge { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
|
|
905
1039
|
.w-step { display: none; fill: none; stroke: var(--hit); stroke-width: 3; stroke-dasharray: 8 5; animation: seq-run 0.8s linear infinite; }
|
|
906
1040
|
.w-step.on { display: inline; }
|
|
@@ -912,14 +1046,14 @@ export const SEQ_VIEW_CSS = `.seq-bar {
|
|
|
912
1046
|
background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow);
|
|
913
1047
|
}
|
|
914
1048
|
.seq-phase h3 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
915
|
-
.seq-phase .sp-meta { margin: 2px 0 8px; font-size: 12px; line-height: 16px; color: var(--
|
|
1049
|
+
.seq-phase .sp-meta { margin: 2px 0 8px; font-size: 12px; line-height: 16px; color: var(--text-3); }
|
|
916
1050
|
.seq-phase .sp-seq { display: block; overflow: visible; }
|
|
917
1051
|
.sp-life { stroke: var(--border-strong); stroke-dasharray: 3 3; }
|
|
918
1052
|
.sp-head rect { fill: var(--surface); stroke: var(--kind, var(--border-strong)); stroke-width: 1.5; }
|
|
919
1053
|
.sp-head text { font-size: 11.5px; font-weight: 600; fill: var(--text); }
|
|
920
1054
|
.seq-phase .seq-block .b-kind, .seq-phase .seq-block .b-label { font-size: 10px; }
|
|
921
1055
|
.seq-phase .link.seq-m .m-label { font-size: 11px; font-weight: 500; }
|
|
922
|
-
.sp-arrow { position: absolute; width: 36px; text-align: center; font-size: 22px; line-height: 28px; color: var(--
|
|
1056
|
+
.sp-arrow { position: absolute; width: 36px; text-align: center; font-size: 22px; line-height: 28px; color: var(--text-4); }
|
|
923
1057
|
@media (max-width: 860px) {
|
|
924
1058
|
.seq-steps { top: auto; left: 16px; width: auto; height: 30vh; }
|
|
925
1059
|
.sw-t { max-width: 200px; }
|
|
@@ -931,7 +1065,7 @@ export const SEQ_VIEW_CSS = `.seq-bar {
|
|
|
931
1065
|
/** 화면 캡처가 하나라도 있는 IR에만 싣는다 */
|
|
932
1066
|
export const CAPTURE_CSS = `.capture { margin: 8px 0; }
|
|
933
1067
|
.capture img { display: block; max-width: 100%; height: auto; margin: 0 0 4px; border: 1px solid var(--border); border-radius: 6px; }
|
|
934
|
-
.capture figcaption { font-size: 12px; color: var(--
|
|
1068
|
+
.capture figcaption { font-size: 12px; color: var(--text-3); }
|
|
935
1069
|
.flow-thumb { position: absolute; box-sizing: border-box; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); cursor: pointer; }
|
|
936
1070
|
.flow-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top center; pointer-events: none; }
|
|
937
1071
|
.flow-thumb:hover { border-color: var(--accent); }`;
|
|
@@ -941,7 +1075,7 @@ export const DOC_CSS = `.doc-badge {
|
|
|
941
1075
|
}
|
|
942
1076
|
.doc-badge.broken { background: var(--text); }
|
|
943
1077
|
.doc-badge.cover { color: var(--accent); background: var(--accent-soft); }
|
|
944
|
-
.doc-badge.none { color: var(--
|
|
1078
|
+
.doc-badge.none { color: var(--text-3); background: var(--lane); }
|
|
945
1079
|
.doc-badge.stale { background: var(--warn); }
|
|
946
1080
|
.badge.doc-gap, .badge.doc-unverified { color: var(--warn); background: var(--warn-soft); }
|
|
947
1081
|
.doc-mix { display: flex; height: 10px; margin: 4px 0 8px; border-radius: 5px; overflow: hidden; background: var(--lane); }
|
|
@@ -950,10 +1084,10 @@ export const DOC_CSS = `.doc-badge {
|
|
|
950
1084
|
.doc-mix .mix-1 { background: var(--ok); }
|
|
951
1085
|
.doc-mix .mix-2 { background: var(--warn); }
|
|
952
1086
|
.doc-mix .mix-3 { background: var(--live); }
|
|
953
|
-
.doc-mix .mix-4 { background: var(--
|
|
1087
|
+
.doc-mix .mix-4 { background: var(--text-3); }
|
|
954
1088
|
.doc-mix .mix-5 { background: var(--border-strong); }
|
|
955
1089
|
.doc-thumb { display: block; max-width: 100%; margin: 8px 0; border: 1px solid var(--border); border-radius: 6px; }
|
|
956
|
-
.doc-routes .loc { font-size: 12px; color: var(--
|
|
1090
|
+
.doc-routes .loc { font-size: 12px; color: var(--text-3); }`;
|
|
957
1091
|
const ROOT_TOKENS = `:root {${LIGHT_TOKENS} --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;\n --mono: ui-monospace, SFMono-Regular, Menlo, monospace;\n}`;
|
|
958
1092
|
/** 색과 글꼴 토큰만. 구조도 레이아웃 CSS 없이 테마만 빌려 쓰는 정적 페이지(구조 변경 그림)용이다 */
|
|
959
1093
|
export function renderTokenCss() {
|