@kgdiff/viewer 0.4.0 → 0.5.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/context.d.ts +42 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +87 -0
- package/dist/context.js.map +1 -0
- package/dist/controller.d.ts +26 -185
- package/dist/controller.d.ts.map +1 -1
- package/dist/controller.js +45 -1155
- package/dist/controller.js.map +1 -1
- package/dist/element.d.ts +6 -3
- package/dist/element.d.ts.map +1 -1
- package/dist/element.js +49 -229
- package/dist/element.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pipeline.d.ts.map +1 -1
- package/dist/pipeline.js +3 -2
- package/dist/pipeline.js.map +1 -1
- package/dist/root.d.ts +54 -0
- package/dist/root.d.ts.map +1 -0
- package/dist/root.js +265 -0
- package/dist/root.js.map +1 -0
- package/dist/schedule.d.ts +22 -0
- package/dist/schedule.d.ts.map +1 -0
- package/dist/schedule.js +41 -0
- package/dist/schedule.js.map +1 -0
- package/dist/session.d.ts +253 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +1239 -0
- package/dist/session.js.map +1 -0
- package/dist/standalone/kgdiff-viewer-compute.js +1 -1
- package/dist/standalone/kgdiff-viewer.js +4 -4
- package/dist/styles.d.ts +13 -6
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +217 -248
- package/dist/styles.js.map +1 -1
- package/dist/theme.d.ts +25 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +149 -0
- package/dist/theme.js.map +1 -0
- package/dist/ui/change-list.d.ts +18 -0
- package/dist/ui/change-list.d.ts.map +1 -0
- package/dist/ui/change-list.js +331 -0
- package/dist/ui/change-list.js.map +1 -0
- package/dist/ui/context.d.ts +19 -5
- package/dist/ui/context.d.ts.map +1 -1
- package/dist/ui/context.js.map +1 -1
- package/dist/ui/filters.d.ts +9 -0
- package/dist/ui/filters.d.ts.map +1 -0
- package/dist/ui/filters.js +68 -0
- package/dist/ui/filters.js.map +1 -0
- package/dist/ui/header.js +2 -2
- package/dist/ui/header.js.map +1 -1
- package/dist/ui/search.d.ts +13 -0
- package/dist/ui/search.d.ts.map +1 -0
- package/dist/ui/search.js +191 -0
- package/dist/ui/search.js.map +1 -0
- package/dist/ui/sidebar.d.ts +8 -16
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +15 -539
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/stage.js +1 -1
- package/dist/ui/stage.js.map +1 -1
- package/dist/ui/swatch.js +1 -1
- package/dist/ui/swatch.js.map +1 -1
- package/package.json +6 -6
- package/src/context.ts +106 -0
- package/src/controller.ts +70 -1257
- package/src/element.ts +52 -243
- package/src/index.ts +3 -1
- package/src/pipeline.ts +4 -1
- package/src/root.ts +308 -0
- package/src/schedule.ts +43 -0
- package/src/session.ts +1386 -0
- package/src/styles.ts +225 -253
- package/src/theme.ts +167 -0
- package/src/ui/change-list.ts +401 -0
- package/src/ui/context.ts +21 -5
- package/src/ui/filters.ts +79 -0
- package/src/ui/header.ts +2 -2
- package/src/ui/search.ts +220 -0
- package/src/ui/sidebar.ts +28 -668
- package/src/ui/stage.ts +1 -1
- package/src/ui/swatch.ts +1 -1
package/dist/styles.js
CHANGED
|
@@ -5,62 +5,10 @@ export const FAMILIES = [
|
|
|
5
5
|
'structure',
|
|
6
6
|
'identity',
|
|
7
7
|
];
|
|
8
|
-
/** CSS custom properties for `theme` (a `:host` rule body). */
|
|
9
|
-
export function themeVariables(theme) {
|
|
10
|
-
const dark = theme.name === 'dark';
|
|
11
|
-
const vars = {
|
|
12
|
-
'color-scheme': dark ? 'dark' : 'light',
|
|
13
|
-
'--kg-bg': theme.canvas.background,
|
|
14
|
-
'--kg-grid': theme.canvas.grid,
|
|
15
|
-
'--kg-panel': theme.surface.panel,
|
|
16
|
-
'--kg-raised': theme.surface.raised,
|
|
17
|
-
'--kg-overlay': theme.surface.overlay,
|
|
18
|
-
'--kg-border': theme.surface.border,
|
|
19
|
-
'--kg-border-strong': theme.surface.borderStrong,
|
|
20
|
-
'--kg-control-border': theme.surface.controlBorder,
|
|
21
|
-
'--kg-shadow': theme.surface.shadow,
|
|
22
|
-
'--kg-text': theme.text.primary,
|
|
23
|
-
'--kg-text-2': theme.text.secondary,
|
|
24
|
-
'--kg-text-3': theme.text.muted,
|
|
25
|
-
'--kg-accent': theme.accent.base,
|
|
26
|
-
'--kg-accent-strong': theme.accent.strong,
|
|
27
|
-
'--kg-accent-soft': theme.accent.soft,
|
|
28
|
-
'--kg-accent-text': theme.accent.text,
|
|
29
|
-
'--kg-neutral': theme.neutral.node,
|
|
30
|
-
'--kg-neutral-stroke': theme.neutral.nodeStroke,
|
|
31
|
-
'--kg-neutral-edge': theme.neutral.edge,
|
|
32
|
-
'--kg-font': theme.font.family,
|
|
33
|
-
'--kg-mono': theme.font.mono,
|
|
34
|
-
'--kg-fast': `${theme.motion.fast}ms`,
|
|
35
|
-
'--kg-base': `${theme.motion.base}ms`,
|
|
36
|
-
'--kg-slow': `${theme.motion.slow}ms`,
|
|
37
|
-
'--kg-ease': `cubic-bezier(${theme.motion.easing.join(', ')})`,
|
|
38
|
-
// Derived interaction tints (not color-coded: hover / press / inputs / scrims).
|
|
39
|
-
'--kg-hover': dark ? 'rgba(255,255,255,0.045)' : 'rgba(15,23,42,0.04)',
|
|
40
|
-
'--kg-press': dark ? 'rgba(255,255,255,0.08)' : 'rgba(15,23,42,0.07)',
|
|
41
|
-
'--kg-input': dark ? theme.surface.raised : '#F3F5F8',
|
|
42
|
-
'--kg-selected': dark ? theme.surface.raised : '#F5F7FB',
|
|
43
|
-
'--kg-scrim': dark ? 'rgba(5,7,11,0.56)' : 'rgba(15,23,42,0.18)',
|
|
44
|
-
'--kg-skeleton': dark ? 'rgba(255,255,255,0.05)' : 'rgba(15,23,42,0.05)',
|
|
45
|
-
'--kg-skeleton-hi': dark ? 'rgba(255,255,255,0.09)' : 'rgba(15,23,42,0.09)',
|
|
46
|
-
'--kg-track': dark ? 'rgba(255,255,255,0.08)' : 'rgba(15,23,42,0.08)',
|
|
47
|
-
'--kg-kbd': dark ? 'rgba(255,255,255,0.06)' : 'rgba(15,23,42,0.05)',
|
|
48
|
-
};
|
|
49
|
-
for (const f of FAMILIES) {
|
|
50
|
-
const c = theme.family[f];
|
|
51
|
-
vars[`--kg-${f}`] = c.base;
|
|
52
|
-
vars[`--kg-${f}-strong`] = c.strong;
|
|
53
|
-
vars[`--kg-${f}-soft`] = c.soft;
|
|
54
|
-
vars[`--kg-${f}-text`] = c.text;
|
|
55
|
-
}
|
|
56
|
-
return Object.entries(vars)
|
|
57
|
-
.map(([k, v]) => `${k}: ${v};`)
|
|
58
|
-
.join(' ');
|
|
59
|
-
}
|
|
60
8
|
const familyRules = [...FAMILIES, 'neutral']
|
|
61
9
|
.map((f) => f === 'neutral'
|
|
62
|
-
? `[data-family="neutral"] { --fam-base: var(--
|
|
63
|
-
: `[data-family="${f}"] { --fam-base: var(--
|
|
10
|
+
? `[data-family="neutral"] { --fam-base: var(--kgdiff-neutral); --fam-soft: var(--kgdiff-hover); --fam-text: var(--kgdiff-text-2); }`
|
|
11
|
+
: `[data-family="${f}"] { --fam-base: var(--kgdiff-${f}); --fam-soft: var(--kgdiff-${f}-soft); --fam-text: var(--kgdiff-${f}-text); }`)
|
|
64
12
|
.join('\n');
|
|
65
13
|
export const STYLES = /* css */ `
|
|
66
14
|
:host {
|
|
@@ -70,11 +18,11 @@ export const STYLES = /* css */ `
|
|
|
70
18
|
height: 100%;
|
|
71
19
|
min-height: 420px;
|
|
72
20
|
contain: content;
|
|
73
|
-
font-family: var(--
|
|
21
|
+
font-family: var(--kgdiff-font);
|
|
74
22
|
font-size: 13px;
|
|
75
23
|
line-height: 1.45;
|
|
76
|
-
color: var(--
|
|
77
|
-
background: var(--
|
|
24
|
+
color: var(--kgdiff-text);
|
|
25
|
+
background: var(--kgdiff-bg);
|
|
78
26
|
-webkit-font-smoothing: antialiased;
|
|
79
27
|
}
|
|
80
28
|
:host([hidden]) { display: none; }
|
|
@@ -89,7 +37,7 @@ button {
|
|
|
89
37
|
}
|
|
90
38
|
button:disabled { cursor: default; opacity: 0.4; }
|
|
91
39
|
:focus { outline: none; }
|
|
92
|
-
:focus-visible { outline: 2px solid var(--
|
|
40
|
+
:focus-visible { outline: 2px solid var(--kgdiff-accent); outline-offset: 2px; }
|
|
93
41
|
.icon { width: 16px; height: 16px; flex: none; display: block; }
|
|
94
42
|
.sr-only {
|
|
95
43
|
position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
@@ -98,42 +46,42 @@ button:disabled { cursor: default; opacity: 0.4; }
|
|
|
98
46
|
kbd {
|
|
99
47
|
display: inline-flex; align-items: center; justify-content: center;
|
|
100
48
|
min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
|
|
101
|
-
font: 500 11px/1 var(--
|
|
102
|
-
background: var(--
|
|
49
|
+
font: 500 11px/1 var(--kgdiff-mono); color: var(--kgdiff-text-2);
|
|
50
|
+
background: var(--kgdiff-kbd); box-shadow: inset 0 0 0 1px var(--kgdiff-border), inset 0 -1px 0 var(--kgdiff-border);
|
|
103
51
|
}
|
|
104
|
-
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--
|
|
52
|
+
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--kgdiff-border-strong) transparent; }
|
|
105
53
|
|
|
106
54
|
/* ── Root layout ─────────────────────────────────────────────────────────── */
|
|
107
55
|
.root {
|
|
108
56
|
position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
|
|
109
|
-
background: var(--
|
|
57
|
+
background: var(--kgdiff-bg);
|
|
110
58
|
}
|
|
111
59
|
.body { position: relative; flex: 1; min-height: 0; display: flex; }
|
|
112
|
-
.stage-wrap { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: var(--
|
|
60
|
+
.stage-wrap { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: var(--kgdiff-bg); container-type: inline-size; }
|
|
113
61
|
.stage { position: absolute; inset: 0; }
|
|
114
62
|
.stage canvas { outline: none; }
|
|
115
|
-
.stage canvas:focus-visible { outline: 2px solid var(--
|
|
63
|
+
.stage canvas:focus-visible { outline: 2px solid var(--kgdiff-accent); outline-offset: -2px; }
|
|
116
64
|
.chrome { position: absolute; inset: 0; pointer-events: none; }
|
|
117
65
|
.chrome > * { pointer-events: auto; }
|
|
118
66
|
|
|
119
67
|
/* ── Buttons ─────────────────────────────────────────────────────────────── */
|
|
120
68
|
.icon-btn {
|
|
121
69
|
display: inline-flex; align-items: center; justify-content: center; flex: none;
|
|
122
|
-
width: 32px; height: 32px; border-radius: 8px; color: var(--
|
|
123
|
-
transition: background var(--
|
|
70
|
+
width: 32px; height: 32px; border-radius: 8px; color: var(--kgdiff-text-2);
|
|
71
|
+
transition: background var(--kgdiff-fast) var(--kgdiff-ease), color var(--kgdiff-fast) var(--kgdiff-ease);
|
|
124
72
|
}
|
|
125
|
-
.icon-btn:hover { background: var(--
|
|
126
|
-
.icon-btn:active { background: var(--
|
|
127
|
-
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { background: var(--
|
|
73
|
+
.icon-btn:hover { background: var(--kgdiff-hover); color: var(--kgdiff-text); }
|
|
74
|
+
.icon-btn:active { background: var(--kgdiff-press); }
|
|
75
|
+
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { background: var(--kgdiff-press); color: var(--kgdiff-text); }
|
|
128
76
|
.icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; }
|
|
129
77
|
.btn {
|
|
130
78
|
display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
|
|
131
|
-
border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--
|
|
132
|
-
background: var(--
|
|
133
|
-
transition: background var(--
|
|
79
|
+
border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--kgdiff-text);
|
|
80
|
+
background: var(--kgdiff-hover); box-shadow: inset 0 0 0 1px var(--kgdiff-border);
|
|
81
|
+
transition: background var(--kgdiff-fast) var(--kgdiff-ease), box-shadow var(--kgdiff-fast) var(--kgdiff-ease);
|
|
134
82
|
}
|
|
135
|
-
.btn:hover { background: var(--
|
|
136
|
-
.link-btn { min-height: 28px; color: var(--
|
|
83
|
+
.btn:hover { background: var(--kgdiff-press); box-shadow: inset 0 0 0 1px var(--kgdiff-border-strong); }
|
|
84
|
+
.link-btn { min-height: 28px; color: var(--kgdiff-accent-text); font-weight: 500; font-size: 12px; border-radius: 4px; }
|
|
137
85
|
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
138
86
|
|
|
139
87
|
/* ── HUD: title (top-left) and actions (top-right), over the canvas ──────── */
|
|
@@ -147,36 +95,36 @@ kbd {
|
|
|
147
95
|
:host([header="compact"]) .hud-title { display: none; }
|
|
148
96
|
.hud-end { position: absolute; top: 12px; right: 12px; }
|
|
149
97
|
.hud-actions { display: flex; align-items: center; gap: 2px; padding: 4px; }
|
|
150
|
-
.brand { display: flex; align-items: center; gap: 8px; flex: none; color: var(--
|
|
98
|
+
.brand { display: flex; align-items: center; gap: 8px; flex: none; color: var(--kgdiff-text); }
|
|
151
99
|
.brand-mark { width: 20px; height: 20px; display: block; }
|
|
152
100
|
.brand-name { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
|
|
153
|
-
.header-sep { width: 1px; height: 18px; background: var(--
|
|
101
|
+
.header-sep { width: 1px; height: 18px; background: var(--kgdiff-border-strong); flex: none; }
|
|
154
102
|
.versions { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; font-size: 13px; overflow: hidden; }
|
|
155
|
-
.versions .name { font-weight: 550; color: var(--
|
|
156
|
-
.versions .arrow { color: var(--
|
|
103
|
+
.versions .name { font-weight: 550; color: var(--kgdiff-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
104
|
+
.versions .arrow { color: var(--kgdiff-text-3); flex: none; }
|
|
157
105
|
.versions .side { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
158
106
|
.tag {
|
|
159
107
|
display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; flex: none;
|
|
160
|
-
font: 500 11px/1 var(--
|
|
161
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
108
|
+
font: 500 11px/1 var(--kgdiff-mono); color: var(--kgdiff-text-2); background: var(--kgdiff-hover);
|
|
109
|
+
box-shadow: inset 0 0 0 1px var(--kgdiff-border); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
|
|
162
110
|
}
|
|
163
111
|
|
|
164
112
|
.segmented {
|
|
165
113
|
position: relative; display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 2px; flex: none;
|
|
166
|
-
border-radius: 9px; background: var(--
|
|
114
|
+
border-radius: 9px; background: var(--kgdiff-hover); box-shadow: inset 0 0 0 1px var(--kgdiff-border);
|
|
167
115
|
}
|
|
168
116
|
.segmented .thumb {
|
|
169
117
|
position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 7px;
|
|
170
|
-
background: var(--
|
|
171
|
-
transition: transform var(--
|
|
118
|
+
background: var(--kgdiff-raised); box-shadow: 0 1px 2px rgba(0,0,0,0.12), inset 0 0 0 1px var(--kgdiff-border-strong);
|
|
119
|
+
transition: transform var(--kgdiff-base) var(--kgdiff-ease), width var(--kgdiff-base) var(--kgdiff-ease);
|
|
172
120
|
}
|
|
173
121
|
.seg {
|
|
174
122
|
position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
|
|
175
|
-
border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--
|
|
176
|
-
transition: color var(--
|
|
123
|
+
border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--kgdiff-text-2); white-space: nowrap;
|
|
124
|
+
transition: color var(--kgdiff-fast) var(--kgdiff-ease);
|
|
177
125
|
}
|
|
178
|
-
.seg:hover { color: var(--
|
|
179
|
-
.seg[aria-checked="true"] { color: var(--
|
|
126
|
+
.seg:hover { color: var(--kgdiff-text); }
|
|
127
|
+
.seg[aria-checked="true"] { color: var(--kgdiff-text); }
|
|
180
128
|
.seg .icon { opacity: 0.9; }
|
|
181
129
|
|
|
182
130
|
|
|
@@ -184,7 +132,7 @@ ${familyRules}
|
|
|
184
132
|
|
|
185
133
|
/* ── Floating chrome ─────────────────────────────────────────────────────── */
|
|
186
134
|
.card {
|
|
187
|
-
background: var(--
|
|
135
|
+
background: var(--kgdiff-overlay); border-radius: 12px; box-shadow: var(--kgdiff-shadow), 0 0 0 1px var(--kgdiff-border);
|
|
188
136
|
backdrop-filter: blur(16px) saturate(140%);
|
|
189
137
|
}
|
|
190
138
|
.float { position: absolute; }
|
|
@@ -192,34 +140,34 @@ ${familyRules}
|
|
|
192
140
|
.bottom-right { bottom: 16px; right: 16px; }
|
|
193
141
|
.chip {
|
|
194
142
|
display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
|
|
195
|
-
font-size: 12px; font-weight: 600; color: var(--
|
|
143
|
+
font-size: 12px; font-weight: 600; color: var(--kgdiff-text-2); letter-spacing: 0.01em;
|
|
196
144
|
}
|
|
197
145
|
|
|
198
146
|
.map-cluster { display: flex; align-items: flex-end; gap: 8px; }
|
|
199
147
|
.zoom-bar { display: flex; flex-direction: column; padding: 2px; gap: 2px; }
|
|
200
148
|
.zoom-bar .icon-btn { width: 30px; height: 30px; }
|
|
201
|
-
.minimap-host { position: relative; width: 184px; height: 128px; border-radius: 12px; box-shadow: 0 0 0 1px var(--
|
|
202
|
-
animation: fade var(--
|
|
149
|
+
.minimap-host { position: relative; width: 184px; height: 128px; border-radius: 12px; box-shadow: 0 0 0 1px var(--kgdiff-border);
|
|
150
|
+
animation: fade var(--kgdiff-base) var(--kgdiff-ease); }
|
|
203
151
|
/* Everything is in view: the minimap has nothing to add. */
|
|
204
152
|
.minimap-host[data-hidden="true"] { display: none; }
|
|
205
153
|
.minimap-host canvas { border-radius: 12px; }
|
|
206
154
|
|
|
207
155
|
.legend { padding: 6px; min-width: 0; }
|
|
208
156
|
.legend-head { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 8px; font-size: 11px; font-weight: 600;
|
|
209
|
-
letter-spacing: 0.06em; text-transform: uppercase; color: var(--
|
|
210
|
-
.legend-head:hover { color: var(--
|
|
211
|
-
.legend-head .icon { width: 14px; height: 14px; margin-left: auto; transition: transform var(--
|
|
157
|
+
letter-spacing: 0.06em; text-transform: uppercase; color: var(--kgdiff-text-3); border-radius: 7px; width: 100%; }
|
|
158
|
+
.legend-head:hover { color: var(--kgdiff-text-2); background: var(--kgdiff-hover); }
|
|
159
|
+
.legend-head .icon { width: 14px; height: 14px; margin-left: auto; transition: transform var(--kgdiff-base) var(--kgdiff-ease); }
|
|
212
160
|
.legend[data-open="false"] .legend-head .icon { transform: rotate(180deg); }
|
|
213
161
|
.legend[data-open="false"] .legend-body { display: none; }
|
|
214
162
|
.legend[data-open="false"] { padding: 2px; }
|
|
215
163
|
.legend-body { display: grid; gap: 2px; padding: 2px 4px 4px; }
|
|
216
164
|
.legend-row { display: grid; grid-template-columns: 22px auto; align-items: center; column-gap: 8px; height: 26px; padding: 0 10px 0 4px; border-radius: 6px; cursor: default; }
|
|
217
|
-
.legend-row .name { font-size: 12px; font-weight: 550; color: var(--
|
|
165
|
+
.legend-row .name { font-size: 12px; font-weight: 550; color: var(--kgdiff-text); }
|
|
218
166
|
.swatch { width: 22px; height: 22px; display: block; }
|
|
219
167
|
.mini-legend { display: none; }
|
|
220
168
|
.stage-wrap[data-legend="mini"] .mini-legend {
|
|
221
169
|
display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; bottom: 8px; left: 12px; max-width: calc(100% - 24px);
|
|
222
|
-
font-size: 11px; line-height: 16px; color: var(--
|
|
170
|
+
font-size: 11px; line-height: 16px; color: var(--kgdiff-text-2);
|
|
223
171
|
}
|
|
224
172
|
.mini-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
|
|
225
173
|
.mini-item .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--fam-base); }
|
|
@@ -231,7 +179,7 @@ ${familyRules}
|
|
|
231
179
|
font-size: 12.5px; font-weight: 550;
|
|
232
180
|
}
|
|
233
181
|
.caption .text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
234
|
-
.caption .count { color: var(--
|
|
182
|
+
.caption .count { color: var(--kgdiff-text-3); font-weight: 500; font-variant-numeric: tabular-nums; flex: none; }
|
|
235
183
|
.caption[data-empty="true"] { display: none; }
|
|
236
184
|
|
|
237
185
|
.glyph-box {
|
|
@@ -246,24 +194,24 @@ ${familyRules}
|
|
|
246
194
|
}
|
|
247
195
|
.dock > * { pointer-events: auto; }
|
|
248
196
|
.dock-bar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px; max-width: 100%; }
|
|
249
|
-
.dock-sep { width: 1px; height: 20px; margin: 0 2px; flex: none; background: var(--
|
|
197
|
+
.dock-sep { width: 1px; height: 20px; margin: 0 2px; flex: none; background: var(--kgdiff-border-strong); }
|
|
250
198
|
.scope-btn {
|
|
251
199
|
display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; flex: none;
|
|
252
|
-
font-size: 12.5px; font-weight: 500; color: var(--
|
|
253
|
-
transition: background var(--
|
|
200
|
+
font-size: 12.5px; font-weight: 500; color: var(--kgdiff-text-2); white-space: nowrap;
|
|
201
|
+
transition: background var(--kgdiff-fast) var(--kgdiff-ease), color var(--kgdiff-fast) var(--kgdiff-ease), box-shadow var(--kgdiff-fast) var(--kgdiff-ease);
|
|
254
202
|
}
|
|
255
|
-
.scope-btn:hover { color: var(--
|
|
256
|
-
.scope-btn[aria-pressed="true"] { color: var(--
|
|
203
|
+
.scope-btn:hover { color: var(--kgdiff-text); background: var(--kgdiff-hover); }
|
|
204
|
+
.scope-btn[aria-pressed="true"] { color: var(--kgdiff-accent-text); background: var(--kgdiff-accent-soft); box-shadow: inset 0 0 0 1px var(--kgdiff-accent-soft); }
|
|
257
205
|
.scope-btn[aria-disabled="true"] { cursor: default; }
|
|
258
|
-
.context { display: inline-flex; align-items: center; gap: 8px; padding-left: 2px; flex: none; animation: reveal var(--
|
|
206
|
+
.context { display: inline-flex; align-items: center; gap: 8px; padding-left: 2px; flex: none; animation: reveal var(--kgdiff-base) var(--kgdiff-ease); }
|
|
259
207
|
@keyframes reveal { from { opacity: 0; transform: translateX(-6px); } }
|
|
260
|
-
.context .label { font-size: 12px; font-weight: 550; color: var(--
|
|
261
|
-
.context .opts { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--
|
|
262
|
-
.context .opt { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--
|
|
263
|
-
.context .opt:hover { color: var(--
|
|
264
|
-
.context .opt[aria-checked="true"] { background: var(--
|
|
265
|
-
.context .expand { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--
|
|
266
|
-
.context .expand:hover:not(:disabled) { color: var(--
|
|
208
|
+
.context .label { font-size: 12px; font-weight: 550; color: var(--kgdiff-text-3); white-space: nowrap; }
|
|
209
|
+
.context .opts { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--kgdiff-hover); }
|
|
210
|
+
.context .opt { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--kgdiff-text-2); font-variant-numeric: tabular-nums; }
|
|
211
|
+
.context .opt:hover { color: var(--kgdiff-text); }
|
|
212
|
+
.context .opt[aria-checked="true"] { background: var(--kgdiff-raised); color: var(--kgdiff-text); box-shadow: inset 0 0 0 1px var(--kgdiff-border-strong); }
|
|
213
|
+
.context .expand { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--kgdiff-text-2); box-shadow: inset 0 0 0 1px var(--kgdiff-border-strong); font-variant-numeric: tabular-nums; }
|
|
214
|
+
.context .expand:hover:not(:disabled) { color: var(--kgdiff-text); background: var(--kgdiff-hover); }
|
|
267
215
|
.context .expand .icon { width: 14px; height: 14px; }
|
|
268
216
|
/* Narrower canvases keep the dock clear of the legend and the minimap: labels give way to icons
|
|
269
217
|
(each control keeps its name as a tooltip). */
|
|
@@ -277,18 +225,18 @@ ${familyRules}
|
|
|
277
225
|
position: absolute; top: 0; bottom: 0; left: 0; width: 24px; margin-left: -12px; cursor: ew-resize; pointer-events: auto;
|
|
278
226
|
touch-action: none; display: flex; justify-content: center;
|
|
279
227
|
}
|
|
280
|
-
.swipe .divider::before { content: ''; width: 1.5px; height: 100%; background: var(--
|
|
228
|
+
.swipe .divider::before { content: ''; width: 1.5px; height: 100%; background: var(--kgdiff-accent); opacity: 0.85; box-shadow: 0 0 12px var(--kgdiff-accent-soft); }
|
|
281
229
|
.swipe .handle {
|
|
282
230
|
position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
|
|
283
|
-
display: flex; align-items: center; justify-content: center; gap: 0; color: var(--
|
|
284
|
-
background: var(--
|
|
231
|
+
display: flex; align-items: center; justify-content: center; gap: 0; color: var(--kgdiff-accent-text);
|
|
232
|
+
background: var(--kgdiff-overlay); box-shadow: var(--kgdiff-shadow), 0 0 0 1.5px var(--kgdiff-accent);
|
|
285
233
|
backdrop-filter: blur(16px);
|
|
286
|
-
transition: transform var(--
|
|
234
|
+
transition: transform var(--kgdiff-fast) var(--kgdiff-ease);
|
|
287
235
|
}
|
|
288
236
|
.swipe .handle .icon { width: 12px; height: 12px; }
|
|
289
237
|
.swipe .divider:hover .handle, .swipe .divider.dragging .handle { transform: scale(1.08); }
|
|
290
238
|
.swipe .divider:focus-visible { outline: none; }
|
|
291
|
-
.swipe .divider:focus-visible .handle { box-shadow: var(--
|
|
239
|
+
.swipe .divider:focus-visible .handle { box-shadow: var(--kgdiff-shadow), 0 0 0 2px var(--kgdiff-accent), 0 0 0 5px var(--kgdiff-accent-soft); }
|
|
292
240
|
/* Below the HUD's title and actions. */
|
|
293
241
|
.swipe .side-chip { position: absolute; top: 64px; pointer-events: none; }
|
|
294
242
|
.swipe .side-chip.before { left: 12px; }
|
|
@@ -299,18 +247,18 @@ ${familyRules}
|
|
|
299
247
|
width: min(600px, calc(100% - 464px)); min-width: min(360px, 100%);
|
|
300
248
|
display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 8px;
|
|
301
249
|
}
|
|
302
|
-
.transport .play { width: 36px; height: 36px; border-radius: 10px; color: var(--
|
|
250
|
+
.transport .play { width: 36px; height: 36px; border-radius: 10px; color: var(--kgdiff-text); }
|
|
303
251
|
.transport .play .icon { width: 18px; height: 18px; }
|
|
304
|
-
.transport .pos { flex: none; min-width: 64px; text-align: center; font-size: 12px; font-weight: 550; color: var(--
|
|
305
|
-
.transport .speed { flex: none; height: 28px; min-width: 44px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--
|
|
306
|
-
.transport .speed:hover { color: var(--
|
|
252
|
+
.transport .pos { flex: none; min-width: 64px; text-align: center; font-size: 12px; font-weight: 550; color: var(--kgdiff-text-2); font-variant-numeric: tabular-nums; }
|
|
253
|
+
.transport .speed { flex: none; height: 28px; min-width: 44px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--kgdiff-text-2); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--kgdiff-border); }
|
|
254
|
+
.transport .speed:hover { color: var(--kgdiff-text); background: var(--kgdiff-hover); }
|
|
307
255
|
.scrubber { position: relative; flex: 1; height: 36px; margin: 0 8px; cursor: pointer; touch-action: none; border-radius: 6px; }
|
|
308
|
-
.scrubber .track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--
|
|
309
|
-
.scrubber .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; background: var(--
|
|
256
|
+
.scrubber .track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--kgdiff-track); overflow: hidden; }
|
|
257
|
+
.scrubber .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; background: var(--kgdiff-accent); opacity: 0.85; }
|
|
310
258
|
.scrubber .ticks { position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; width: 100%; pointer-events: none; overflow: visible; }
|
|
311
259
|
.scrubber .knob {
|
|
312
260
|
position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
|
|
313
|
-
background: var(--
|
|
261
|
+
background: var(--kgdiff-text); box-shadow: 0 1px 4px rgba(0,0,0,0.35), 0 0 0 3px var(--kgdiff-accent-soft); pointer-events: none;
|
|
314
262
|
}
|
|
315
263
|
.scrubber:focus-visible { outline-offset: 0; }
|
|
316
264
|
.scrub-tip {
|
|
@@ -320,25 +268,25 @@ ${familyRules}
|
|
|
320
268
|
}
|
|
321
269
|
.finished {
|
|
322
270
|
display: flex; align-items: center; gap: 10px;
|
|
323
|
-
height: 36px; padding: 0 6px 0 12px; font-size: 12.5px; font-weight: 550; color: var(--
|
|
324
|
-
animation: rise var(--
|
|
271
|
+
height: 36px; padding: 0 6px 0 12px; font-size: 12.5px; font-weight: 550; color: var(--kgdiff-text);
|
|
272
|
+
animation: rise var(--kgdiff-base) var(--kgdiff-ease);
|
|
325
273
|
}
|
|
326
|
-
.finished .icon { color: var(--
|
|
274
|
+
.finished .icon { color: var(--kgdiff-accent-text); }
|
|
327
275
|
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
|
|
328
276
|
|
|
329
277
|
/* Tooltip */
|
|
330
278
|
.tooltip {
|
|
331
279
|
position: absolute; left: 0; top: 0; z-index: 4; width: max-content; max-width: 300px; padding: 10px 12px; pointer-events: none;
|
|
332
|
-
border-radius: 10px; opacity: 0; transition: opacity var(--
|
|
280
|
+
border-radius: 10px; opacity: 0; transition: opacity var(--kgdiff-fast) var(--kgdiff-ease);
|
|
333
281
|
}
|
|
334
282
|
.tooltip[data-open="true"] { opacity: 1; }
|
|
335
|
-
.tooltip .t-label { font-size: 13px; font-weight: 600; color: var(--
|
|
336
|
-
.tooltip .t-old { font-size: 12px; color: var(--
|
|
337
|
-
.tooltip .t-id { margin-top: 2px; font: 11px/1.4 var(--
|
|
283
|
+
.tooltip .t-label { font-size: 13px; font-weight: 600; color: var(--kgdiff-text); overflow-wrap: anywhere; }
|
|
284
|
+
.tooltip .t-old { font-size: 12px; color: var(--kgdiff-text-3); text-decoration: line-through; overflow-wrap: anywhere; }
|
|
285
|
+
.tooltip .t-id { margin-top: 2px; font: 11px/1.4 var(--kgdiff-mono); color: var(--kgdiff-text-3); overflow-wrap: anywhere; }
|
|
338
286
|
.tooltip .t-status { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--fam-text); }
|
|
339
287
|
.tooltip .t-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fam-base); flex: none; }
|
|
340
|
-
.tooltip .t-sum { margin-top: 4px; font-size: 12px; color: var(--
|
|
341
|
-
.tooltip .t-hint { margin-top: 6px; font-size: 11px; color: var(--
|
|
288
|
+
.tooltip .t-sum { margin-top: 4px; font-size: 12px; color: var(--kgdiff-text-2); overflow-wrap: anywhere; }
|
|
289
|
+
.tooltip .t-hint { margin-top: 6px; font-size: 11px; color: var(--kgdiff-text-3); }
|
|
342
290
|
|
|
343
291
|
/* States (loading / identical / error / empty) */
|
|
344
292
|
.state {
|
|
@@ -346,36 +294,36 @@ ${familyRules}
|
|
|
346
294
|
pointer-events: none;
|
|
347
295
|
}
|
|
348
296
|
.state > * { pointer-events: auto; }
|
|
349
|
-
.state.blocking { background: var(--
|
|
297
|
+
.state.blocking { background: var(--kgdiff-bg); }
|
|
350
298
|
.state-card { width: min(380px, 100%); padding: 24px; text-align: left; }
|
|
351
299
|
.state-card .state-icon {
|
|
352
300
|
width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
|
|
353
|
-
color: var(--
|
|
301
|
+
color: var(--kgdiff-accent-text); background: var(--kgdiff-accent-soft); margin-bottom: 16px;
|
|
354
302
|
}
|
|
355
303
|
.state-card .state-icon .icon { width: 20px; height: 20px; }
|
|
356
|
-
.state-card.error .state-icon { color: var(--
|
|
357
|
-
.state-card.ok .state-icon { color: var(--
|
|
304
|
+
.state-card.error .state-icon { color: var(--kgdiff-removed-text); background: var(--kgdiff-removed-soft); }
|
|
305
|
+
.state-card.ok .state-icon { color: var(--kgdiff-added-text); background: var(--kgdiff-added-soft); }
|
|
358
306
|
.state-card h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
|
|
359
|
-
.state-card p { margin: 6px 0 0; color: var(--
|
|
360
|
-
.state-card details { margin-top: 16px; font-size: 12px; color: var(--
|
|
361
|
-
.state-card summary { cursor: pointer; font-weight: 550; color: var(--
|
|
307
|
+
.state-card p { margin: 6px 0 0; color: var(--kgdiff-text-2); font-size: 13px; }
|
|
308
|
+
.state-card details { margin-top: 16px; font-size: 12px; color: var(--kgdiff-text-2); }
|
|
309
|
+
.state-card summary { cursor: pointer; font-weight: 550; color: var(--kgdiff-text-2); border-radius: 4px; width: max-content; }
|
|
362
310
|
.state-card pre {
|
|
363
|
-
margin: 8px 0 0; max-height: 200px; padding: 10px 12px; border-radius: 8px; background: var(--
|
|
364
|
-
font: 11.5px/1.5 var(--
|
|
365
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
311
|
+
margin: 8px 0 0; max-height: 200px; padding: 10px 12px; border-radius: 8px; background: var(--kgdiff-input);
|
|
312
|
+
font: 11.5px/1.5 var(--kgdiff-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--kgdiff-text-2);
|
|
313
|
+
box-shadow: inset 0 0 0 1px var(--kgdiff-border);
|
|
366
314
|
}
|
|
367
315
|
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
|
|
368
|
-
.steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--
|
|
369
|
-
.steps li[data-state="active"] { color: var(--
|
|
370
|
-
.steps li[data-state="done"] { color: var(--
|
|
371
|
-
.steps .mark { width: 18px; height: 18px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--
|
|
372
|
-
.steps li[data-state="done"] .mark { background: var(--
|
|
316
|
+
.steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--kgdiff-text-3); transition: color var(--kgdiff-base) var(--kgdiff-ease); }
|
|
317
|
+
.steps li[data-state="active"] { color: var(--kgdiff-text); font-weight: 550; }
|
|
318
|
+
.steps li[data-state="done"] { color: var(--kgdiff-text-2); }
|
|
319
|
+
.steps .mark { width: 18px; height: 18px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--kgdiff-border-strong); }
|
|
320
|
+
.steps li[data-state="done"] .mark { background: var(--kgdiff-accent-soft); box-shadow: none; color: var(--kgdiff-accent-text); }
|
|
373
321
|
.steps li[data-state="done"] .mark .icon { width: 12px; height: 12px; }
|
|
374
|
-
.steps li[data-state="active"] .mark { box-shadow: inset 0 0 0 1.5px var(--
|
|
322
|
+
.steps li[data-state="active"] .mark { box-shadow: inset 0 0 0 1.5px var(--kgdiff-accent-soft); border-top: 1.5px solid var(--kgdiff-accent); animation: spin 0.8s linear infinite; }
|
|
375
323
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
376
324
|
.skeleton-grid {
|
|
377
325
|
position: absolute; inset: 0;
|
|
378
|
-
background-image: radial-gradient(var(--
|
|
326
|
+
background-image: radial-gradient(var(--kgdiff-skeleton-hi) 1.2px, transparent 1.4px); background-size: 24px 24px;
|
|
379
327
|
mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
|
|
380
328
|
animation: breathe 2.4s ease-in-out infinite;
|
|
381
329
|
}
|
|
@@ -384,46 +332,46 @@ ${familyRules}
|
|
|
384
332
|
/* ── Sidebar ─────────────────────────────────────────────────────────────── */
|
|
385
333
|
.sidebar {
|
|
386
334
|
position: relative; z-index: 2; flex: none; width: 360px; display: flex; overflow: hidden;
|
|
387
|
-
background: var(--
|
|
388
|
-
transition: width var(--
|
|
335
|
+
background: var(--kgdiff-panel); border-left: 1px solid var(--kgdiff-border);
|
|
336
|
+
transition: width var(--kgdiff-base) var(--kgdiff-ease), border-color var(--kgdiff-base) var(--kgdiff-ease);
|
|
389
337
|
}
|
|
390
338
|
.sidebar[data-open="false"] { width: 0; border-left-color: transparent; }
|
|
391
339
|
.sidebar-inner { width: 360px; flex: none; display: flex; flex-direction: column; min-height: 0; }
|
|
392
340
|
.sheet-handle { display: none; }
|
|
393
|
-
.sb-head { flex: none; padding: 12px 12px 8px; display: grid; gap: 10px; border-bottom: 1px solid var(--
|
|
341
|
+
.sb-head { flex: none; padding: 12px 12px 8px; display: grid; gap: 10px; border-bottom: 1px solid var(--kgdiff-border); }
|
|
394
342
|
.sb-title { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 2px; }
|
|
395
343
|
.sb-title h2 { margin: 0; font-size: 13px; font-weight: 650; }
|
|
396
344
|
.count-badge {
|
|
397
345
|
display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 600;
|
|
398
|
-
color: var(--
|
|
346
|
+
color: var(--kgdiff-text-2); background: var(--kgdiff-hover); box-shadow: inset 0 0 0 1px var(--kgdiff-border); font-variant-numeric: tabular-nums;
|
|
399
347
|
}
|
|
400
|
-
.progress { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--
|
|
401
|
-
.progress .bar { width: 64px; height: 4px; border-radius: 2px; background: var(--
|
|
402
|
-
.progress .bar > div { height: 100%; width: 100%; transform-origin: left; background: var(--
|
|
403
|
-
.progress[data-complete="true"] { color: var(--
|
|
348
|
+
.progress { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--kgdiff-text-3); font-variant-numeric: tabular-nums; }
|
|
349
|
+
.progress .bar { width: 64px; height: 4px; border-radius: 2px; background: var(--kgdiff-track); overflow: hidden; }
|
|
350
|
+
.progress .bar > div { height: 100%; width: 100%; transform-origin: left; background: var(--kgdiff-accent); border-radius: 2px; transition: transform var(--kgdiff-base) var(--kgdiff-ease); }
|
|
351
|
+
.progress[data-complete="true"] { color: var(--kgdiff-accent-text); }
|
|
404
352
|
|
|
405
|
-
.search { position: relative; display: flex; align-items: center; height: 32px; border-radius: 8px; background: var(--
|
|
406
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
407
|
-
.search:focus-within { box-shadow: inset 0 0 0 1px var(--
|
|
408
|
-
.search > .icon { position: absolute; left: 10px; color: var(--
|
|
353
|
+
.search { position: relative; display: flex; align-items: center; height: 32px; border-radius: 8px; background: var(--kgdiff-input);
|
|
354
|
+
box-shadow: inset 0 0 0 1px var(--kgdiff-border); transition: box-shadow var(--kgdiff-fast) var(--kgdiff-ease); }
|
|
355
|
+
.search:focus-within { box-shadow: inset 0 0 0 1px var(--kgdiff-accent), 0 0 0 3px var(--kgdiff-accent-soft); }
|
|
356
|
+
.search > .icon { position: absolute; left: 10px; color: var(--kgdiff-text-3); pointer-events: none; }
|
|
409
357
|
.search input {
|
|
410
|
-
flex: 1; min-width: 0; height: 100%; padding: 0 64px 0 32px; border: 0; background: transparent; font-size: 13px; color: var(--
|
|
358
|
+
flex: 1; min-width: 0; height: 100%; padding: 0 64px 0 32px; border: 0; background: transparent; font-size: 13px; color: var(--kgdiff-text);
|
|
411
359
|
}
|
|
412
|
-
.search input::placeholder { color: var(--
|
|
360
|
+
.search input::placeholder { color: var(--kgdiff-text-3); }
|
|
413
361
|
.search input::-webkit-search-cancel-button { display: none; }
|
|
414
362
|
.search kbd { position: absolute; right: 8px; }
|
|
415
|
-
.search .clear { position: absolute; right: 2px; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--
|
|
416
|
-
.search .clear:hover { color: var(--
|
|
363
|
+
.search .clear { position: absolute; right: 2px; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--kgdiff-text-3); }
|
|
364
|
+
.search .clear:hover { color: var(--kgdiff-text); background: var(--kgdiff-hover); }
|
|
417
365
|
|
|
418
366
|
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
419
367
|
.fchip {
|
|
420
368
|
display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px 0 7px; border-radius: 14px;
|
|
421
|
-
font-size: 11.5px; font-weight: 550; color: var(--
|
|
422
|
-
transition: background var(--
|
|
369
|
+
font-size: 11.5px; font-weight: 550; color: var(--kgdiff-text-2); box-shadow: inset 0 0 0 1px var(--kgdiff-border);
|
|
370
|
+
transition: background var(--kgdiff-fast) var(--kgdiff-ease), box-shadow var(--kgdiff-fast) var(--kgdiff-ease), color var(--kgdiff-fast) var(--kgdiff-ease);
|
|
423
371
|
}
|
|
424
|
-
.fchip:hover { background: var(--
|
|
372
|
+
.fchip:hover { background: var(--kgdiff-hover); color: var(--kgdiff-text); }
|
|
425
373
|
.fchip .swatch { width: 16px; height: 16px; margin: 0 -1px; }
|
|
426
|
-
.fchip .n { color: var(--
|
|
374
|
+
.fchip .n { color: var(--kgdiff-text-3); font-variant-numeric: tabular-nums; font-weight: 500; }
|
|
427
375
|
.fchip[aria-pressed="true"] { background: var(--fam-soft); color: var(--fam-text); box-shadow: inset 0 0 0 1px var(--fam-base); }
|
|
428
376
|
.fchip[aria-pressed="true"] .n { color: var(--fam-text); opacity: 0.8; }
|
|
429
377
|
.fchip:disabled { opacity: 0.35; }
|
|
@@ -431,73 +379,73 @@ ${familyRules}
|
|
|
431
379
|
.list-wrap { position: relative; flex: 1 1 50%; min-height: 96px; display: flex; flex-direction: column; }
|
|
432
380
|
.list { position: relative; flex: 1; min-height: 0; outline: none; }
|
|
433
381
|
.list:focus-visible { outline: none; }
|
|
434
|
-
.list:focus-visible:not(:has(.row[aria-selected="true"])) { box-shadow: inset 0 0 0 2px var(--
|
|
435
|
-
.list:focus-visible .row[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--
|
|
382
|
+
.list:focus-visible:not(:has(.row[aria-selected="true"])) { box-shadow: inset 0 0 0 2px var(--kgdiff-accent); }
|
|
383
|
+
.list:focus-visible .row[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--kgdiff-accent); }
|
|
436
384
|
.list-inner { position: relative; width: 100%; }
|
|
437
385
|
.row {
|
|
438
386
|
position: absolute; left: 8px; right: 8px; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px;
|
|
439
387
|
border-radius: 8px; cursor: pointer; user-select: none; -webkit-user-select: none;
|
|
440
|
-
transition: background var(--
|
|
388
|
+
transition: background var(--kgdiff-fast) var(--kgdiff-ease), box-shadow var(--kgdiff-fast) var(--kgdiff-ease);
|
|
441
389
|
}
|
|
442
390
|
.row::before { content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--fam-base); }
|
|
443
|
-
.row:hover { background: var(--
|
|
444
|
-
.row[aria-selected="true"] { background: var(--
|
|
391
|
+
.row:hover { background: var(--kgdiff-hover); }
|
|
392
|
+
.row[aria-selected="true"] { background: var(--kgdiff-selected); box-shadow: inset 0 0 0 1px var(--kgdiff-accent), 0 1px 2px rgba(0,0,0,0.06); }
|
|
445
393
|
.row .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
|
|
446
|
-
.row .title { font-size: 13px; font-weight: 500; color: var(--
|
|
447
|
-
.row .sub { font-size: 12px; color: var(--
|
|
448
|
-
.row[data-reviewed="true"] .title { color: var(--
|
|
394
|
+
.row .title { font-size: 13px; font-weight: 500; color: var(--kgdiff-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
395
|
+
.row .sub { font-size: 12px; color: var(--kgdiff-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 17px; }
|
|
396
|
+
.row[data-reviewed="true"] .title { color: var(--kgdiff-text-2); }
|
|
449
397
|
.row[data-reviewed="true"] .glyph-box { opacity: 0.7; }
|
|
450
398
|
.rv {
|
|
451
399
|
flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
|
|
452
400
|
}
|
|
453
401
|
.rv .ring {
|
|
454
402
|
width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
|
|
455
|
-
box-shadow: inset 0 0 0 1.5px var(--
|
|
456
|
-
transition: background var(--
|
|
403
|
+
box-shadow: inset 0 0 0 1.5px var(--kgdiff-control-border); color: transparent;
|
|
404
|
+
transition: background var(--kgdiff-fast) var(--kgdiff-ease), box-shadow var(--kgdiff-fast) var(--kgdiff-ease), color var(--kgdiff-fast) var(--kgdiff-ease), transform var(--kgdiff-fast) var(--kgdiff-ease);
|
|
457
405
|
}
|
|
458
406
|
.rv .ring .icon { width: 12px; height: 12px; }
|
|
459
|
-
.rv:hover .ring { box-shadow: inset 0 0 0 1.5px var(--
|
|
460
|
-
.rv[data-pressed="true"] .ring { background: var(--
|
|
407
|
+
.rv:hover .ring { box-shadow: inset 0 0 0 1.5px var(--kgdiff-accent); color: var(--kgdiff-text-3); }
|
|
408
|
+
.rv[data-pressed="true"] .ring { background: var(--kgdiff-accent); box-shadow: none; color: var(--kgdiff-bg); }
|
|
461
409
|
.rv[data-pressed="true"]:active .ring { transform: scale(0.9); }
|
|
462
410
|
.group {
|
|
463
411
|
position: absolute; left: 0; right: 0; height: 32px; display: flex; align-items: center; gap: 8px; padding: 10px 16px 0 22px;
|
|
464
|
-
font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--
|
|
412
|
+
font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kgdiff-text-3);
|
|
465
413
|
}
|
|
466
414
|
.group .n { font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
|
|
467
415
|
.sticky {
|
|
468
|
-
position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: 32px; background: var(--
|
|
469
|
-
box-shadow: 0 1px 0 var(--
|
|
416
|
+
position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: 32px; background: var(--kgdiff-panel);
|
|
417
|
+
box-shadow: 0 1px 0 var(--kgdiff-border); pointer-events: none;
|
|
470
418
|
}
|
|
471
419
|
.sticky .group { position: static; height: 32px; padding-top: 0; }
|
|
472
420
|
.sticky[data-shadow="false"] { box-shadow: none; }
|
|
473
|
-
.list-empty { padding: 32px 24px; text-align: center; color: var(--
|
|
421
|
+
.list-empty { padding: 32px 24px; text-align: center; color: var(--kgdiff-text-3); font-size: 12.5px; display: grid; gap: 10px; justify-items: center; }
|
|
474
422
|
.skeleton-row { height: 52px; margin: 0 8px; padding: 0 14px; display: flex; align-items: center; gap: 10px; }
|
|
475
|
-
.skeleton-row .b { flex: 1; max-width: 70%; height: 10px; border-radius: 5px; background: var(--
|
|
423
|
+
.skeleton-row .b { flex: 1; max-width: 70%; height: 10px; border-radius: 5px; background: var(--kgdiff-skeleton); }
|
|
476
424
|
.skeleton-row:nth-child(even) .b { max-width: 52%; }
|
|
477
|
-
.skeleton-row .g { width: 20px; height: 20px; border-radius: 6px; background: var(--
|
|
425
|
+
.skeleton-row .g { width: 20px; height: 20px; border-radius: 6px; background: var(--kgdiff-skeleton); flex: none; }
|
|
478
426
|
.shimmer { animation: breathe 1.6s ease-in-out infinite; }
|
|
479
427
|
|
|
480
428
|
.results { padding: 4px 0 8px; }
|
|
481
|
-
.results-head { padding: 8px 16px 6px; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--
|
|
429
|
+
.results-head { padding: 8px 16px 6px; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kgdiff-text-3); }
|
|
482
430
|
.result {
|
|
483
431
|
display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 0 8px; height: 44px; padding: 0 10px; border-radius: 8px;
|
|
484
432
|
text-align: left;
|
|
485
433
|
}
|
|
486
|
-
.result:hover, .result[aria-selected="true"] { background: var(--
|
|
487
|
-
.result[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--
|
|
434
|
+
.result:hover, .result[aria-selected="true"] { background: var(--kgdiff-hover); }
|
|
435
|
+
.result[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--kgdiff-border-strong); }
|
|
488
436
|
.result .sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--fam-base); }
|
|
489
|
-
.result[data-family="neutral"] .sdot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--
|
|
437
|
+
.result[data-family="neutral"] .sdot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--kgdiff-neutral-stroke); }
|
|
490
438
|
.result .txt { flex: 1; min-width: 0; display: grid; }
|
|
491
439
|
.result .title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
492
|
-
.result .sub { font: 11px/1.4 var(--
|
|
493
|
-
.result mark { background: var(--
|
|
440
|
+
.result .sub { font: 11px/1.4 var(--kgdiff-mono); color: var(--kgdiff-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
441
|
+
.result mark { background: var(--kgdiff-accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
|
|
494
442
|
.result .status { font-size: 11.5px; color: var(--fam-text); flex: none; }
|
|
495
443
|
|
|
496
444
|
/* ── Detail panel ────────────────────────────────────────────────────────── */
|
|
497
|
-
.detail { flex: 0 1 auto; max-height: 58%; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--
|
|
445
|
+
.detail { flex: 0 1 auto; max-height: 58%; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--kgdiff-border); background: var(--kgdiff-panel); }
|
|
498
446
|
.detail[data-empty="true"] { flex: none; }
|
|
499
|
-
.detail-empty { padding: 16px; display: flex; align-items: center; gap: 12px; color: var(--
|
|
500
|
-
.detail-empty .icon { color: var(--
|
|
447
|
+
.detail-empty { padding: 16px; display: flex; align-items: center; gap: 12px; color: var(--kgdiff-text-3); font-size: 12.5px; }
|
|
448
|
+
.detail-empty .icon { color: var(--kgdiff-text-3); }
|
|
501
449
|
.detail-empty .sub { font-size: 11.5px; margin-top: 2px; }
|
|
502
450
|
.detail-scroll { flex: 1; min-height: 0; padding: 14px 16px 20px; }
|
|
503
451
|
.d-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
|
|
@@ -505,104 +453,104 @@ ${familyRules}
|
|
|
505
453
|
.fam-pill .g { font-weight: 700; }
|
|
506
454
|
.d-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
|
|
507
455
|
.d-title { margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; overflow-wrap: anywhere; }
|
|
508
|
-
.d-sub { margin-top: 4px; font-size: 12.5px; color: var(--
|
|
509
|
-
.rv-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border-radius: 7px; font-size: 12px; font-weight: 550; color: var(--
|
|
510
|
-
.rv-btn:hover { color: var(--
|
|
511
|
-
.rv-btn .ring { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--
|
|
456
|
+
.d-sub { margin-top: 4px; font-size: 12.5px; color: var(--kgdiff-text-2); overflow-wrap: anywhere; }
|
|
457
|
+
.rv-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border-radius: 7px; font-size: 12px; font-weight: 550; color: var(--kgdiff-text-2); box-shadow: inset 0 0 0 1px var(--kgdiff-border); margin-right: 4px; }
|
|
458
|
+
.rv-btn:hover { color: var(--kgdiff-text); background: var(--kgdiff-hover); }
|
|
459
|
+
.rv-btn .ring { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--kgdiff-control-border); color: transparent; }
|
|
512
460
|
.rv-btn .ring .icon { width: 11px; height: 11px; }
|
|
513
|
-
.rv-btn[aria-pressed="true"] { color: var(--
|
|
514
|
-
.rv-btn[aria-pressed="true"] .ring { background: var(--
|
|
461
|
+
.rv-btn[aria-pressed="true"] { color: var(--kgdiff-accent-text); box-shadow: inset 0 0 0 1px var(--kgdiff-accent); background: var(--kgdiff-accent-soft); }
|
|
462
|
+
.rv-btn[aria-pressed="true"] .ring { background: var(--kgdiff-accent); box-shadow: none; color: var(--kgdiff-bg); }
|
|
515
463
|
.section { margin-top: 18px; }
|
|
516
|
-
.section > h3 { margin: 0 0 8px; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--
|
|
464
|
+
.section > h3 { margin: 0 0 8px; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kgdiff-text-3); display: flex; align-items: center; gap: 6px; }
|
|
517
465
|
.section > h3 .n { font-weight: 500; letter-spacing: 0; }
|
|
518
466
|
.kv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; font-size: 12.5px; align-items: baseline; }
|
|
519
|
-
.kv dt { color: var(--
|
|
467
|
+
.kv dt { color: var(--kgdiff-text-3); }
|
|
520
468
|
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
|
|
521
|
-
.id-text { font: 12px/1.5 var(--
|
|
469
|
+
.id-text { font: 12px/1.5 var(--kgdiff-mono); color: var(--kgdiff-text); overflow-wrap: anywhere; }
|
|
522
470
|
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
523
|
-
.vchip { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--
|
|
524
|
-
.vchip.add { color: var(--
|
|
525
|
-
.vchip.del { color: var(--
|
|
471
|
+
.vchip { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--kgdiff-hover); box-shadow: inset 0 0 0 1px var(--kgdiff-border); overflow-wrap: anywhere; }
|
|
472
|
+
.vchip.add { color: var(--kgdiff-added-text); background: var(--kgdiff-added-soft); box-shadow: none; }
|
|
473
|
+
.vchip.del { color: var(--kgdiff-removed-text); background: var(--kgdiff-removed-soft); box-shadow: none; text-decoration: line-through; text-decoration-thickness: 1px; }
|
|
526
474
|
.vchip .sign { font-weight: 700; text-decoration: none; display: inline-block; }
|
|
527
475
|
.pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
|
|
528
|
-
.pair .b, .line.old { color: var(--
|
|
529
|
-
.pair .arr { color: var(--
|
|
476
|
+
.pair .b, .line.old { color: var(--kgdiff-text-2); }
|
|
477
|
+
.pair .arr { color: var(--kgdiff-text-3); }
|
|
530
478
|
.line { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 6px; align-items: baseline; }
|
|
531
|
-
.line .sign { font: 600 12px/1 var(--
|
|
532
|
-
.line.old .sign { color: var(--
|
|
533
|
-
.line.new .sign { color: var(--
|
|
534
|
-
del.hl { text-decoration: line-through; text-decoration-color: var(--
|
|
535
|
-
ins.hl { text-decoration: none; background: var(--
|
|
479
|
+
.line .sign { font: 600 12px/1 var(--kgdiff-mono); text-align: center; }
|
|
480
|
+
.line.old .sign { color: var(--kgdiff-removed-text); }
|
|
481
|
+
.line.new .sign { color: var(--kgdiff-added-text); }
|
|
482
|
+
del.hl { text-decoration: line-through; text-decoration-color: var(--kgdiff-removed); background: var(--kgdiff-removed-soft); color: var(--kgdiff-removed-text); border-radius: 3px; padding: 0 1px; }
|
|
483
|
+
ins.hl { text-decoration: none; background: var(--kgdiff-added-soft); color: var(--kgdiff-added-text); border-radius: 3px; padding: 0 1px; }
|
|
536
484
|
.attrs { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; table-layout: fixed; }
|
|
537
|
-
.attrs td { vertical-align: baseline; padding: 6px 8px 6px 0; border-top: 1px solid var(--
|
|
485
|
+
.attrs td { vertical-align: baseline; padding: 6px 8px 6px 0; border-top: 1px solid var(--kgdiff-border); overflow-wrap: anywhere; }
|
|
538
486
|
.attrs tr:first-child td { border-top: 0; padding-top: 0; }
|
|
539
487
|
.attrs td > * + * { margin-top: 4px; }
|
|
540
|
-
.attrs td.k { color: var(--
|
|
488
|
+
.attrs td.k { color: var(--kgdiff-text-2); }
|
|
541
489
|
.attrs col.k { width: 28%; }
|
|
542
490
|
.val { white-space: pre-wrap; }
|
|
543
491
|
.val.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
|
|
544
492
|
.more { margin-top: 2px; }
|
|
545
|
-
.disclosure { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; margin-top: 4px; font-size: 12px; color: var(--
|
|
546
|
-
.disclosure:hover { color: var(--
|
|
547
|
-
.disclosure .icon { width: 12px; height: 12px; transition: transform var(--
|
|
493
|
+
.disclosure { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; margin-top: 4px; font-size: 12px; color: var(--kgdiff-text-2); border-radius: 4px; }
|
|
494
|
+
.disclosure:hover { color: var(--kgdiff-text); }
|
|
495
|
+
.disclosure .icon { width: 12px; height: 12px; transition: transform var(--kgdiff-base) var(--kgdiff-ease); }
|
|
548
496
|
.disclosure[aria-expanded="true"] .icon { transform: rotate(180deg); }
|
|
549
497
|
.rels { display: grid; gap: 2px; }
|
|
550
498
|
.rel { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 8px; margin: 0 -8px; border-radius: 7px; text-align: left; font-size: 12.5px; line-height: 1.5; width: calc(100% + 16px); }
|
|
551
|
-
.rel:hover { background: var(--
|
|
552
|
-
.rel .sign { flex: none; width: 12px; font: 600 12px/1.5 var(--
|
|
499
|
+
.rel:hover { background: var(--kgdiff-hover); }
|
|
500
|
+
.rel .sign { flex: none; width: 12px; font: 600 12px/1.5 var(--kgdiff-mono); color: var(--fam-text); text-align: center; }
|
|
553
501
|
.rel .s { min-width: 0; overflow-wrap: anywhere; }
|
|
554
502
|
.rel .node { font-weight: 550; }
|
|
555
|
-
.rel .pred { color: var(--
|
|
556
|
-
.rel .was { color: var(--
|
|
557
|
-
.rel.removed .s { text-decoration: line-through; text-decoration-color: var(--
|
|
503
|
+
.rel .pred { color: var(--kgdiff-text-2); white-space: nowrap; }
|
|
504
|
+
.rel .was { color: var(--kgdiff-text-3); }
|
|
505
|
+
.rel.removed .s { text-decoration: line-through; text-decoration-color: var(--kgdiff-text-3); color: var(--kgdiff-text-2); }
|
|
558
506
|
.nodes { display: grid; gap: 2px; }
|
|
559
507
|
.node-link { display: flex; align-items: center; gap: 8px; width: calc(100% + 16px); margin: 0 -8px; padding: 5px 8px; border-radius: 7px; text-align: left; font-size: 12.5px; }
|
|
560
|
-
.node-link:hover { background: var(--
|
|
561
|
-
.node-link[aria-current="true"] { background: var(--
|
|
508
|
+
.node-link:hover { background: var(--kgdiff-hover); }
|
|
509
|
+
.node-link[aria-current="true"] { background: var(--kgdiff-hover); box-shadow: inset 0 0 0 1px var(--kgdiff-border-strong); }
|
|
562
510
|
.node-link .sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--fam-base); }
|
|
563
511
|
.node-link .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
|
|
564
|
-
.node-link .meta { flex: none; color: var(--
|
|
512
|
+
.node-link .meta { flex: none; color: var(--kgdiff-text-3); font-size: 11.5px; }
|
|
565
513
|
.comp { display: grid; gap: 6px; }
|
|
566
514
|
.comp-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
|
|
567
|
-
.comp-row .arrow { color: var(--
|
|
568
|
-
.comp-row .note { color: var(--
|
|
515
|
+
.comp-row .arrow { color: var(--kgdiff-text-3); }
|
|
516
|
+
.comp-row .note { color: var(--kgdiff-text-3); font-size: 11.5px; }
|
|
569
517
|
.bars { display: grid; gap: 6px; }
|
|
570
518
|
.bar-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 12px; }
|
|
571
|
-
.bar-row .lbl { color: var(--
|
|
572
|
-
.bar-row .track { height: 6px; border-radius: 3px; background: var(--
|
|
573
|
-
.bar-row .fill { height: 100%; border-radius: 3px; background: var(--
|
|
574
|
-
.bar-row .v { text-align: right; color: var(--
|
|
575
|
-
.note-line { font-size: 12px; color: var(--
|
|
519
|
+
.bar-row .lbl { color: var(--kgdiff-text-2); }
|
|
520
|
+
.bar-row .track { height: 6px; border-radius: 3px; background: var(--kgdiff-track); overflow: hidden; }
|
|
521
|
+
.bar-row .fill { height: 100%; border-radius: 3px; background: var(--kgdiff-identity); }
|
|
522
|
+
.bar-row .v { text-align: right; color: var(--kgdiff-text-2); font-variant-numeric: tabular-nums; }
|
|
523
|
+
.note-line { font-size: 12px; color: var(--kgdiff-text-3); margin-top: 6px; }
|
|
576
524
|
|
|
577
525
|
/* ── Popovers ────────────────────────────────────────────────────────────── */
|
|
578
526
|
.menu {
|
|
579
527
|
position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 240px; padding: 6px; border-radius: 12px;
|
|
580
|
-
animation: pop var(--
|
|
528
|
+
animation: pop var(--kgdiff-fast) var(--kgdiff-ease);
|
|
581
529
|
}
|
|
582
530
|
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
|
|
583
|
-
.menu-group + .menu-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--
|
|
584
|
-
.menu-label { padding: 6px 8px 4px; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--
|
|
585
|
-
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--
|
|
586
|
-
.menu-item:hover, .menu-item:focus-visible { background: var(--
|
|
587
|
-
.menu-item .icon { color: var(--
|
|
588
|
-
.menu-item .check { margin-left: auto; color: var(--
|
|
531
|
+
.menu-group + .menu-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--kgdiff-border); }
|
|
532
|
+
.menu-label { padding: 6px 8px 4px; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kgdiff-text-3); }
|
|
533
|
+
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--kgdiff-text); text-align: left; }
|
|
534
|
+
.menu-item:hover, .menu-item:focus-visible { background: var(--kgdiff-hover); outline: none; }
|
|
535
|
+
.menu-item .icon { color: var(--kgdiff-text-2); }
|
|
536
|
+
.menu-item .check { margin-left: auto; color: var(--kgdiff-accent-text); opacity: 0; }
|
|
589
537
|
.menu-item[aria-checked="true"] .check { opacity: 1; }
|
|
590
538
|
.menu-item .sw { display: inline-flex; gap: 2px; }
|
|
591
539
|
.menu-item .sw i { width: 6px; height: 6px; border-radius: 50%; display: block; }
|
|
592
540
|
|
|
593
541
|
.overlay-scrim {
|
|
594
542
|
position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px;
|
|
595
|
-
background: var(--
|
|
543
|
+
background: var(--kgdiff-scrim); animation: fade var(--kgdiff-fast) var(--kgdiff-ease);
|
|
596
544
|
}
|
|
597
545
|
@keyframes fade { from { opacity: 0; } }
|
|
598
|
-
.dialog { width: min(640px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 14px; animation: pop var(--
|
|
546
|
+
.dialog { width: min(640px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 14px; animation: pop var(--kgdiff-base) var(--kgdiff-ease); }
|
|
599
547
|
.dialog-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 10px 20px; }
|
|
600
548
|
.dialog-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
|
|
601
549
|
.dialog-head .icon-btn { margin-left: auto; }
|
|
602
550
|
.dialog-body { padding: 0 20px 18px; }
|
|
603
551
|
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
|
|
604
|
-
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; border-bottom: 1px solid var(--
|
|
605
|
-
.key-row .ks { display: inline-flex; align-items: center; gap: 3px; flex: none; color: var(--
|
|
552
|
+
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; border-bottom: 1px solid var(--kgdiff-border); font-size: 12.5px; color: var(--kgdiff-text-2); }
|
|
553
|
+
.key-row .ks { display: inline-flex; align-items: center; gap: 3px; flex: none; color: var(--kgdiff-text-3); font-size: 11px; }
|
|
606
554
|
|
|
607
555
|
/* ── chrome="none": the graph, its hover tooltip and the legend line only ──── */
|
|
608
556
|
.root[data-chrome="none"] .hud, .root[data-chrome="none"] .sidebar, .root[data-chrome="none"] .dock,
|
|
@@ -612,9 +560,9 @@ ins.hl { text-decoration: none; background: var(--kg-added-soft); color: var(--k
|
|
|
612
560
|
/* ── Compact (< 760 px): bottom sheet ────────────────────────────────────── */
|
|
613
561
|
.root[data-compact="true"] .body { flex-direction: column; }
|
|
614
562
|
.root[data-compact="true"] .sidebar {
|
|
615
|
-
width: auto; height: var(--sheet-h, 40%); min-height: 0; border-left: 0; border-top: 1px solid var(--
|
|
563
|
+
width: auto; height: var(--sheet-h, 40%); min-height: 0; border-left: 0; border-top: 1px solid var(--kgdiff-border);
|
|
616
564
|
border-radius: 14px 14px 0 0; margin-top: -14px; box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
|
|
617
|
-
transition: height var(--
|
|
565
|
+
transition: height var(--kgdiff-base) var(--kgdiff-ease);
|
|
618
566
|
}
|
|
619
567
|
.root[data-compact="true"] .sidebar.dragging { transition: none; }
|
|
620
568
|
.root[data-compact="true"] .sidebar[data-open="false"] { height: 0; border-top-color: transparent; box-shadow: none; }
|
|
@@ -622,7 +570,7 @@ ins.hl { text-decoration: none; background: var(--kg-added-soft); color: var(--k
|
|
|
622
570
|
.root[data-compact="true"] .sheet-handle {
|
|
623
571
|
display: flex; flex: none; justify-content: center; align-items: center; height: 28px; cursor: ns-resize; touch-action: none; border-radius: 14px 14px 0 0;
|
|
624
572
|
}
|
|
625
|
-
.root[data-compact="true"] .sheet-handle::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--
|
|
573
|
+
.root[data-compact="true"] .sheet-handle::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--kgdiff-control-border); }
|
|
626
574
|
.root[data-compact="true"] .sb-head { padding-top: 4px; }
|
|
627
575
|
.root[data-compact="true"] .versions, .root[data-compact="true"] .header-sep,
|
|
628
576
|
.root[data-compact="true"] .brand-name { display: none; }
|
|
@@ -642,4 +590,25 @@ ins.hl { text-decoration: none; background: var(--kg-added-soft); color: var(--k
|
|
|
642
590
|
.skeleton-grid, .shimmer { animation: none; }
|
|
643
591
|
}
|
|
644
592
|
`;
|
|
593
|
+
/**
|
|
594
|
+
* A stylesheet of `doc` holding `css`. A constructed sheet can only be adopted in the document
|
|
595
|
+
* it was made for, so it is made with that document's own `CSSStyleSheet` (a viewer moved into
|
|
596
|
+
* an iframe or a popup gets sheets of its new document).
|
|
597
|
+
*/
|
|
598
|
+
export function sheetFor(doc, css) {
|
|
599
|
+
const Sheet = doc.defaultView?.CSSStyleSheet;
|
|
600
|
+
const sheet = new (Sheet ?? CSSStyleSheet)();
|
|
601
|
+
sheet.replaceSync(css);
|
|
602
|
+
return sheet;
|
|
603
|
+
}
|
|
604
|
+
const shared = new WeakMap();
|
|
605
|
+
/** `STYLES` as a stylesheet of `doc`, parsed once per document. */
|
|
606
|
+
export function stylesheet(doc) {
|
|
607
|
+
let sheet = shared.get(doc);
|
|
608
|
+
if (!sheet) {
|
|
609
|
+
sheet = sheetFor(doc, STYLES);
|
|
610
|
+
shared.set(doc, sheet);
|
|
611
|
+
}
|
|
612
|
+
return sheet;
|
|
613
|
+
}
|
|
645
614
|
//# sourceMappingURL=styles.js.map
|