Timed recording (15/30/60/90s, auto-stop in the output) with 9:16 1080x1920 as the default format; countdown on the record button. New /api/recordings (list) + /recordings static + delete endpoint; the Out tab lists recorded reels with a download link (save to the phone, share to Instagram) and delete. recStop returns name/url and recSaved carries them so a just-recorded reel is one tap away. Transcode lightened for the Pi (ultrafast, 3 threads, nice -10): no hardware H.264 encoder on the Pi 5, and a full-core encode can brown the box out. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
147 lines
8.9 KiB
CSS
147 lines
8.9 KiB
CSS
:root { --bg:#0b0b14; --panel:#15151f; --line:rgba(255,255,255,.10); --accent:#7aa2ff; --txt:#e8e8f0; }
|
|
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
|
html, body { margin: 0; height: 100%; }
|
|
body {
|
|
background: var(--bg); color: var(--txt);
|
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
|
|
display: flex; flex-direction: column;
|
|
padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
#bar {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 12px 14px; border-bottom: 1px solid var(--line);
|
|
font-size: 15px; position: sticky; top: 0; background: var(--bg); z-index: 5;
|
|
}
|
|
#bar #now { margin-left: auto; opacity: .7; font-size: 12px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
#conn { font-size: 10px; padding: 2px 7px; border-radius: 10px; }
|
|
#conn.on { background: rgba(110,231,160,.18); color: #8ef0b0; }
|
|
#conn.off { background: rgba(255,138,138,.18); color: #ff9a9a; }
|
|
|
|
main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px 90px; }
|
|
.panel.hidden { display: none; }
|
|
|
|
.lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; opacity: .6; margin: 16px 0 7px; }
|
|
.hint, .empty { font-size: 12px; opacity: .55; margin: 8px 2px; line-height: 1.4; }
|
|
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
|
|
.row > * { flex: 1; }
|
|
.chk { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 13px; }
|
|
|
|
button, select, input, textarea {
|
|
font: inherit; color: var(--txt); background: var(--panel);
|
|
border: 1px solid var(--line); border-radius: 11px; padding: 12px;
|
|
}
|
|
button { cursor: pointer; }
|
|
button:active { filter: brightness(1.3); }
|
|
button.wide { width: 100%; margin-top: 10px; font-size: 15px; }
|
|
#audio-src { width: 100%; }
|
|
button.danger { border-color: rgba(255,120,120,.5); color: #ffb3b3; background: rgba(255,80,80,.10); }
|
|
#auto-vj.vj-on { background: #2e7d32; border-color: #4caf50; color: #fff; }
|
|
.av-fams { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
|
|
.av-fams.hidden { display: none; }
|
|
.av-fam { font-size: 11px; padding: 6px 10px; border-radius: 9px; opacity: .7; }
|
|
.av-fam.on { border-color: #4caf50; background: rgba(76,175,80,.18); color: #d9ffd9; opacity: 1; }
|
|
button.danger.armed { background: #c0392b; color: #fff; border-color: #c0392b; animation: pulse 1s infinite; }
|
|
@keyframes pulse { 50% { filter: brightness(1.35); } }
|
|
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; padding: 0; height: 34px; border: none; }
|
|
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.14); }
|
|
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); margin-top: -9px; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
|
|
input[type=color] { padding: 2px; width: 46px; height: 38px; flex: 0 0 auto; }
|
|
textarea { width: 100%; min-height: 90px; resize: vertical; }
|
|
|
|
.list { display: flex; flex-direction: column; gap: 6px; }
|
|
.item {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 13px 12px; background: var(--panel);
|
|
border: 1px solid var(--line); border-radius: 11px; font-size: 14px;
|
|
}
|
|
.item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.item button { flex: 0 0 auto; padding: 7px 12px; border-radius: 9px; }
|
|
.item.active { border-color: var(--accent); background: rgba(110,150,255,.18); }
|
|
#fx-list { max-height: 52vh; overflow-y: auto; }
|
|
#lib { max-height: 40vh; overflow-y: auto; }
|
|
|
|
.qcard { display: flex; flex-direction: column; gap: 0; }
|
|
.qcard.active > .item { border-color: var(--accent); background: rgba(110,150,255,.18); }
|
|
.qdetail { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-top: none; border-radius: 0 0 11px 11px; padding: 10px; margin-top: -6px; }
|
|
.qtimes { display: flex; gap: 10px; font-size: 10px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
|
|
.qtimes .tt-el { color: #9be6a0; } .qtimes .tt-rem { color: #ffb3b3; margin-left: auto; }
|
|
.qdetail .wave { display: block; width: 100%; height: 46px; background: rgba(0,0,0,.3); border-radius: 6px; touch-action: none; cursor: pointer; }
|
|
.qtrim { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; flex-wrap: wrap; }
|
|
.qtrim .lblg { color: #9be6a0; } .qtrim .lblr { color: #ffb3b3; }
|
|
.qtrim b { font-variant-numeric: tabular-nums; }
|
|
.qtrim button { padding: 6px 9px; }
|
|
.qtrim .rst { margin-left: auto; }
|
|
.qgap { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; opacity: .85; }
|
|
.qgap input { width: 56px; text-align: center; padding: 6px 4px; }
|
|
|
|
/* ---- Scene editor (timed elements) ---- */
|
|
.lbl .mini { float: right; font-size: 11px; padding: 4px 9px; border-radius: 8px; text-transform: none; letter-spacing: 0; opacity: 1; }
|
|
.scbadge { font-style: normal; opacity: .85; margin-left: 2px; }
|
|
.scene { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; }
|
|
.sc-title { font-size: 11px; opacity: .8; margin-bottom: 7px; }
|
|
.sc-title small { display: block; opacity: .6; font-size: 10px; }
|
|
.sc-empty { font-size: 11px; opacity: .55; padding: 6px 0; }
|
|
.cue { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 9px; padding: 7px; margin-bottom: 7px; }
|
|
.cue-effect { border-left: 3px solid #8cb6ff; }
|
|
.cue-text { border-left: 3px solid #ffd479; }
|
|
.cue-image { border-left: 3px solid #9be6a0; }
|
|
.cue-head { display: flex; align-items: center; gap: 5px; font-size: 11px; flex-wrap: wrap; }
|
|
.cue-head > span:first-child { flex: 1; min-width: 70px; }
|
|
.cue-head .cue-at { opacity: .5; }
|
|
.cue-head .cue-time { width: 52px; text-align: center; padding: 5px 3px; }
|
|
.cue-head .cue-dur { width: 46px; text-align: center; padding: 5px 3px; }
|
|
.cue-head .cue-del { padding: 5px 9px; }
|
|
.cue-body { margin-top: 7px; display: flex; flex-direction: column; gap: 6px; }
|
|
.cue-body input.cue-text { width: 100%; }
|
|
.cue-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
.cue-row > select { flex: 1; min-width: 0; }
|
|
.cue-row > span { font-size: 11px; opacity: .7; }
|
|
.cue-row input[type=range] { flex: 1; }
|
|
.cue-eff-name, .cue-name { font-size: 11px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cue-row .chk { display: flex; align-items: center; gap: 3px; font-size: 11px; flex: 0 0 auto; }
|
|
.cue-row .chk input { width: auto; }
|
|
.sc-foot { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
.sc-foot button { flex: 1; padding: 9px 6px; font-size: 14px; }
|
|
.sc-foot .sc-clear { flex: 0 0 auto; }
|
|
|
|
.nowbar { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
|
|
.nowbar.hidden { display: none; }
|
|
.np-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
|
|
.np-top #np-name { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.nowbar .row { margin: 8px 0 0; }
|
|
.nowbar .row button { font-size: 18px; }
|
|
|
|
.pad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
|
|
.pad {
|
|
aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
gap: 4px; font-size: 22px; border-radius: 14px; text-align: center; overflow: hidden;
|
|
}
|
|
.pad small { font-size: 10px; opacity: .7; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
|
|
.pad.set { background: rgba(110,150,255,.14); border-color: rgba(120,150,255,.4); }
|
|
.pad.active { background: rgba(110,231,160,.22); border-color: #6ee7a0; }
|
|
.pad.assign { outline: 2px dashed var(--accent); }
|
|
|
|
.meters { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
|
|
.meter { display: flex; align-items: center; gap: 8px; font-size: 10px; }
|
|
.meter span { width: 38px; opacity: .6; }
|
|
.meter i { display: block; height: 10px; width: 0; border-radius: 5px; background: linear-gradient(90deg,#5ad1ff,#7aa2ff,#ff7ad1); transition: width .08s linear; flex: 1; }
|
|
.band.b { color: #8fd0ff; } .band.m { color: #b6ff9b; } .band.t { color: #ffd27a; }
|
|
|
|
#rec.recording { background: rgba(255,80,80,.25); border-color: #ff6a6a; }
|
|
|
|
#tabs {
|
|
position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
|
|
display: flex; background: #0e0e18; border-top: 1px solid var(--line);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
#tabs button {
|
|
flex: 1; background: none; border: none; border-radius: 0;
|
|
display: flex; flex-direction: column; align-items: center; gap: 2px;
|
|
font-size: 19px; padding: 9px 0 10px; opacity: .5;
|
|
}
|
|
#tabs button small { font-size: 9px; }
|
|
#tabs button.active { opacity: 1; color: var(--accent); }
|
|
.item a.dl { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(76,175,80,.15); border-color: #4caf50; text-decoration: none; color: #d9ffd9; }
|
|
#rec-status a { color: #8cf5a0; }
|