Token-protected Bun.serve server (bun run align [--host] [--port] [--url-host] [--root]) with the layout-A page: recording and warped-MIDI lanes on one zoomable timeline, draggable anchors (recording end / MIDI end), stretch tempo labels with warnings, fit-flagged windows, Web Audio playback with mix choice, auto-align, save, reset, undo. API per the task brief; transcode/peaks cache under reference/<id>/. Adds bun run align auto <id>, writeSmf (tests), encodeWav, recordingOnsets/fitFromOnsets, fitSummary and stretch tempo helpers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
43 lines
2.8 KiB
CSS
43 lines
2.8 KiB
CSS
:root {
|
|
--rec: #5b8def; --midi: #e2873b; --anchor: #2bb673; --warn: #d9534f; --ink: #222; --muted: #777;
|
|
--bg: #fafafa; --panel: #fff; --line: #ddd;
|
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg);
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; padding: 12px 16px 24px; }
|
|
h1 { font-size: 16px; margin: 0; font-weight: 600; }
|
|
.bar, .row, .fitbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.bar { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
|
|
.grow { flex: 1; }
|
|
.muted { color: var(--muted); font-size: 13px; }
|
|
.picker { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
|
|
select { font: inherit; font-size: 14px; padding: 3px 6px; color: var(--ink); max-width: 40ch; }
|
|
.savestate { font-size: 13px; padding: 2px 8px; border-radius: 10px; }
|
|
.savestate.dirty { background: #fff3e0; color: #b45309; }
|
|
.savestate.clean { color: #2f7d4f; }
|
|
.fitbar { margin: 8px 0 6px; font-size: 13px; min-height: 20px; }
|
|
.fit.bad { color: var(--warn); }
|
|
.fit.stale { opacity: .55; }
|
|
.wrap { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; user-select: none; }
|
|
canvas { display: block; width: 100%; touch-action: none; }
|
|
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.75); font-size: 14px; color: #333; text-align: center; padding: 20px; }
|
|
.overlay[hidden] { display: none; }
|
|
.controls { margin-top: 10px; }
|
|
button { font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid #c8c8c8; background: #fff; border-radius: 5px; cursor: pointer; color: var(--ink); }
|
|
button:hover:not(:disabled) { background: #f1f1f1; }
|
|
button:disabled { opacity: .45; cursor: default; }
|
|
button.primary { background: var(--anchor); border-color: #22975f; color: #fff; }
|
|
button.primary:hover:not(:disabled) { background: #26a467; }
|
|
button.quiet { color: #a33; }
|
|
button:focus-visible { outline: 2px solid var(--rec); outline-offset: 1px; }
|
|
.mix { display: inline-flex; align-items: center; border: 1px solid #c8c8c8; border-radius: 5px; overflow: hidden; background: #fff; }
|
|
.mixlabel { font-size: 13px; padding: 0 6px 0 8px; color: var(--muted); }
|
|
.mix button { border: 0; border-left: 1px solid #e3e3e3; border-radius: 0; }
|
|
.mix button.on { background: #2b2b2b; color: #fff; }
|
|
.status { min-height: 18px; font-size: 13px; margin: 8px 0 0; color: #444; }
|
|
.status.error { color: var(--warn); }
|
|
.help { margin-top: 10px; font-size: 13px; color: #555; max-width: 110ch; }
|
|
.help summary { cursor: pointer; color: var(--muted); }
|
|
.help li { margin: 4px 0; }
|
|
kbd { font: 11px ui-monospace, monospace; border: 1px solid #ccc; border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; background: #fff; }
|