Repository navigation
Expand file tree
/
Copy pathimport.css
More file actions
132 lines (120 loc) · 7.35 KB
/
Copy pathimport.css
File metadata and controls
132 lines (120 loc) · 7.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
:root {
color-scheme: light;
--ink: #172B4D;
--ink-soft: #44546F;
--ink-faint: #626F86;
--surface: #FFFFFF;
--sunken: #F7F8F9;
--line: #DCDFE4;
--accent: #0C66E4;
--accent-ink: #FFFFFF;
--accent-soft: #E9F2FF;
--ok: #1F845A;
--ok-soft: #DCFFF1;
--warn: #A54800;
--warn-soft: #FFF7D6;
--err: #C9372C;
--err-soft: #FFECEB;
--radius: 8px;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
color-scheme: dark;
--ink: #DEE4EA; --ink-soft: #B6C2CF; --ink-faint: #8C9BAB;
--surface: #22272B; --sunken: #1D2125; --line: #38414A;
--accent: #579DFF; --accent-ink: #1D2125; --accent-soft: #092957;
--ok: #4BCE97; --ok-soft: #164B35;
--warn: #F5CD47; --warn-soft: #533F04;
--err: #F87168; --err-soft: #5D1F1A;
}
}
:root[data-theme="dark"] {
color-scheme: dark;
--ink: #DEE4EA; --ink-soft: #B6C2CF; --ink-faint: #8C9BAB;
--surface: #22272B; --sunken: #1D2125; --line: #38414A;
--accent: #579DFF; --accent-ink: #1D2125; --accent-soft: #092957;
--ok: #4BCE97; --ok-soft: #164B35;
--warn: #F5CD47; --warn-soft: #533F04;
--err: #F87168; --err-soft: #5D1F1A;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); color: var(--ink); }
body { font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif; }
#app { padding: 20px 24px 32px; max-width: 980px; margin: 0 auto; }
.screen[hidden] { display: none; }
h1 { font-size: 20px; line-height: 1.25; font-weight: 650; margin: 0 0 4px; letter-spacing: -0.01em; }
.lead { color: var(--ink-soft); margin: 0 0 16px; max-width: 70ch; }
code { font-size: 12px; background: var(--sunken); padding: 1px 4px; border-radius: 4px; }
.btn { font: inherit; font-weight: 600; border-radius: 6px; padding: 8px 14px; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn.ghost:hover { background: var(--sunken); }
.btn:focus-visible, select:focus-visible, input:focus-visible, .drop:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.msg { padding: 8px 12px; border-radius: 6px; margin: 12px 0 0; }
.msg.error { background: var(--err-soft); color: var(--err); }
/* Upload */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 220px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--sunken); cursor: pointer; text-align: center; padding: 24px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-title { font-size: 16px; font-weight: 600; }
.drop-sub { color: var(--ink-faint); }
/* Map */
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.map-head h1 { overflow-wrap: anywhere; }
.map-table { border-top: 1px solid var(--line); }
.map-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(220px, 1.3fr) minmax(140px, 1.3fr); gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.map-row--head { font-size: 12px; font-weight: 600; color: var(--ink-faint); padding: 8px 0; }
.col-name { font-weight: 600; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.samples { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.sample { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--sunken); color: var(--ink-soft); border: 1px solid var(--line); }
.sample.empty { font-style: italic; color: var(--ink-faint); border-style: dashed; }
.map-row select { width: 100%; }
.badge { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
select, input[type="text"], input[type="time"] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; }
select.mapped { border-color: var(--accent); }
.options { margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius); }
.options summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 20px; padding: 4px 14px 16px; }
.opt { display: flex; flex-direction: column; gap: 4px; }
.opt > span { font-weight: 600; font-size: 13px; }
.opt small, .check small { color: var(--ink-faint); font-size: 12px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: start; }
.check input { margin-top: 3px; }
.check small { grid-column: 2; }
[data-show][hidden] { display: none; }
/* Check panel */
.check-panel { margin: 16px 0 0; }
.summary-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.summary-line b { font-size: 16px; }
.issues { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); max-height: 180px; overflow: auto; }
.issues li { padding: 6px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 8px; font-size: 13px; }
.issues li:last-child { border-bottom: 0; }
.issues .row-ref { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.issues li.err .row-ref { color: var(--err); font-weight: 600; }
.issues li.warn .row-ref { color: var(--warn); font-weight: 600; }
.preview { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; }
.pcard { flex: 0 0 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; box-shadow: 0 1px 0 var(--line); font-size: 13px; }
.pcard .plist { font-size: 11px; color: var(--ink-faint); margin-bottom: 4px; }
.pcard .plabels { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
.pcard .plabel { font-size: 11px; padding: 0 6px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); }
.pcard .pname { font-weight: 500; overflow-wrap: anywhere; }
.pcard .pmeta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--ink-faint); }
.actions { position: sticky; bottom: 0; background: var(--surface); display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px 0 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.hint { color: var(--ink-faint); margin-right: auto; }
/* Run */
.progress { height: 8px; background: var(--sunken); border-radius: 4px; overflow: hidden; margin: 12px 0; }
#progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.log { margin: 0; padding: 0 0 0 20px; max-height: 420px; overflow: auto; font-size: 13px; }
.log li { padding: 2px 0; }
.log li.err { color: var(--err); }
.log li.warn { color: var(--warn); }
@media (max-width: 640px) {
#app { padding: 16px 14px 24px; }
.map-row { grid-template-columns: 1fr; gap: 6px; }
.map-row--head { display: none; }
.map-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { #progress-bar { transition: none; } }