Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
239 lines (212 loc) · 11.6 KB
/
Copy pathstyle.css
File metadata and controls
239 lines (212 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/* =========================================================================
mpegcd — design system
A precision instrument for MPEG-standardisation video work. The content is
inherently monospace (MD5, pix_fmt, geometry, ratios), so the design commits
to the vernacular: JetBrains Mono for all data, IBM Plex Sans for prose.
Color means truth: cyan = in flight, green = lossless-proven, red = failed.
========================================================================= */
:root {
/* base — deep near-black for low-light video work (OLED) */
--bg: #0b0e13;
--panel: #12161d;
--panel-2: #181e27; /* raised surface (drop zones, controls) */
--well: #080a0e; /* inset well (the bar track, inputs) */
/* ink */
--fg: #e8edf3;
--fg-dim: #aab4c0; /* secondary prose */
--muted: #7d8896; /* tertiary labels */
--border: #242c38;
--border-2: #333e4d; /* stronger border (hover, focus) */
/* one accent — cyan: the video-signal / scan vernacular, not generic blue */
--accent: #4cc9f0;
--accent-2: #38a8d6; /* accent pressed/edge */
--accent-ink:#04222e; /* text on solid accent */
/* semantic — reserved for truth only */
--ok: #3fd06a; /* lossless verified */
--ok-ink: #04220e;
--bad: #f4645b; /* failed / not lossless */
--warn: #d29922;
/* type */
--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
/* radii — a deliberate scale, not one value everywhere */
--r-card: 8px;
--r-ctl: 6px;
--r-pill: 999px;
/* spacing */
--gut: 24px;
/* icon masks (glyphs drawn in CSS, not emoji) */
--mask-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 10.6L3.4 7.8l-1 1 3.8 3.8 7-7-1-1z'/%3E%3C/svg%3E");
--mask-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8m0-8l-8 8' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
--mask-dl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v8.2m0 0L5 6.9M8 9.7l3-2.9M2.5 11v1.7c0 .6.4 1 1 1h9c.6 0 1-.4 1-1V11' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--fg);
font: 15px/1.55 var(--sans);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/* data always wears the mono face */
code, .mono, .status, .brand, .kind, .job-name, .job-state, .meta, .dl { font-family: var(--mono); }
:where(a, button, input, label, .drop):focus-visible {
outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctl);
}
/* ---- header ---- */
header {
display: flex; align-items: center; justify-content: space-between; gap: 16px;
max-width: 880px; margin: 0 auto; padding: 20px var(--gut) 0;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: .3px; }
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px;
border-radius: 2px; background: var(--accent); vertical-align: 2px; }
.status { font-size: 11.5px; color: var(--muted); text-align: right; }
.status::before { content: "●"; font-size: 8px; margin-right: 7px; vertical-align: 1px; }
.status.ok, .status.ok::before { color: var(--ok); }
.status.err, .status.err::before { color: var(--bad); }
/* ---- page ---- */
main { max-width: 880px; margin: 0 auto; padding: 8px var(--gut) 24px; }
.hero { padding: 36px 0 24px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(24px, 4.2vw, 34px); font-weight: 600; letter-spacing: -.4px; line-height: 1.15; }
.hero p { margin: 0; max-width: 62ch; color: var(--fg-dim); font-size: 15px; }
.hero b { color: var(--fg); font-weight: 600; }
.hero code, footer code, .chip code {
font-size: .86em; background: var(--well); border: 1px solid var(--border);
border-radius: 4px; padding: 1px 5px; color: var(--fg);
}
/* ---- the one drop zone ---- */
.drop {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
min-height: 210px; padding: 28px 20px; text-align: center; cursor: pointer;
background: linear-gradient(180deg, var(--panel-2), var(--panel));
border: 1.5px dashed var(--border-2); border-radius: 12px; color: var(--fg-dim);
transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.drop:hover, .drop.drag {
border-color: var(--accent); color: var(--fg);
box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.drop.drag { background: color-mix(in srgb, var(--accent) 7%, var(--panel-2)); }
.drop input { display: none; }
.drop-ic { width: 38px; height: 38px; color: var(--muted); transition: color .15s, transform .15s; }
.drop:hover .drop-ic, .drop.drag .drop-ic { color: var(--accent); transform: translateY(-2px); }
.drop-title { font-size: 17px; font-weight: 500; color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { font-size: 12.5px; color: var(--muted); padding: 4px 10px;
border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--well); }
.chip code { background: none; border: 0; padding: 0; color: var(--fg-dim); }
.sample { margin: 14px 2px 0; font-size: 13px; color: var(--muted); max-width: 78ch; }
button.link {
display: inline; padding: 0; border: 0; background: none; color: var(--accent);
font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline;
text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
button.link:hover { background: none; text-decoration-color: var(--accent); }
button.link:disabled { opacity: .7; }
/* ---- queue ---- */
.queue { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.queue:empty { display: none; }
.job {
background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card);
padding: 12px 14px 13px; transition: border-color .25s;
}
.job.running { border-color: var(--accent-2); }
.job.done { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.job.error { border-color: color-mix(in srgb, var(--bad) 55%, var(--border)); }
.job-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.kind {
flex: 0 0 auto; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, transparent);
border-radius: 4px; padding: 2px 6px;
}
.job-name { flex: 1; min-width: 0; font-size: 13px; color: var(--fg);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-state { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); max-width: 45%;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job.done .job-state { color: var(--ok); }
.job.error .job-state { color: var(--bad); }
.track { height: 3px; margin: 10px 0 9px; background: var(--well); border-radius: 2px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); transition: width .18s linear, background .3s; }
.job.done .fill { background: var(--ok); }
.job.error .fill { background: var(--bad); }
.meta { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 11.5px; color: var(--muted); }
.meta b { color: var(--fg); font-weight: 500; }
.meta em { font-style: normal; color: var(--ok); }
.meta .ok { color: var(--ok); }
.meta .bad { color: var(--bad); }
.meta .ok::before, .meta .bad::before {
content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px;
background: currentColor; -webkit-mask: var(--mask-check) no-repeat center / contain; mask: var(--mask-check) no-repeat center / contain;
}
.meta .bad::before { -webkit-mask-image: var(--mask-x); mask-image: var(--mask-x); }
.meta .dim { color: var(--muted); font-style: italic; }
.err { color: var(--bad); font-size: 11.5px; margin-top: 8px; word-break: break-word; font-family: var(--mono); }
.err:empty { display: none; }
.dl:empty { display: none; }
.dl { margin-top: 10px; }
.job-main > :first-child { margin-top: 0; }
.dl a {
display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
color: var(--accent); text-decoration: none; font-size: 12px; font-weight: 500;
border: 1px solid var(--border-2); border-radius: var(--r-ctl); padding: 7px 12px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
transition: border-color .15s, background .15s;
}
.dl a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.dl a::before {
content: ""; width: 13px; height: 13px; flex: 0 0 auto; background: currentColor;
-webkit-mask: var(--mask-dl) no-repeat center / contain; mask: var(--mask-dl) no-repeat center / contain;
}
/* card body: first-frame thumbnail + facts */
.job-body { display: flex; gap: 14px; align-items: flex-start; }
.job-main { flex: 1; min-width: 0; }
.thumb { flex: 0 0 auto; width: 112px; height: auto; border: 1px solid var(--border-2); border-radius: 4px; background: var(--well); }
.thumb[hidden] { display: none; }
.meta .warn { color: var(--warn); }
@media (max-width: 520px) { .thumb { width: 72px; } }
/* geometry editor on a card */
.geo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.geo[hidden] { display: none; }
.geo label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.geo input, .geo select {
background: var(--well); color: var(--fg); border: 1px solid var(--border-2); border-radius: var(--r-ctl);
padding: 7px 8px; font: 12.5px var(--mono);
}
.geo input { width: 84px; }
.geo input:focus, .geo select:focus { outline: none; border-color: var(--accent); }
.meta button.link { font-size: 11.5px; font-family: var(--mono); }
/* ---- buttons ---- */
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.actions[hidden] { display: none; }
button, a.btn {
display: inline-flex; align-items: center; gap: 7px;
background: var(--panel-2); color: var(--fg);
border: 1px solid var(--border-2); border-radius: var(--r-ctl);
padding: 9px 15px; font: 500 13.5px/1 var(--sans); cursor: pointer;
transition: border-color .15s, background .15s, transform .06s;
}
a.btn { text-decoration: none; }
a.btn[hidden] { display: none; }
button:hover, a.btn:hover { border-color: var(--accent); background: #1c232e; }
button:active { transform: translateY(1px); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button .ic, a.btn .ic { width: 15px; height: 15px; flex: 0 0 auto; }
/* ---- footer ---- */
footer { max-width: 880px; margin: 8px auto 0; padding: 18px var(--gut) 34px; color: var(--muted);
font-size: 12.5px; border-top: 1px solid var(--border); line-height: 1.6; }
footer p { margin: 0; }
footer strong { color: var(--fg-dim); font-weight: 600; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .001ms !important; } }
@media (max-width: 520px) {
:root { --gut: 16px; }
.hero { padding-top: 24px; }
.job-head { flex-wrap: wrap; }
.job-state { max-width: 100%; }
}