Files
vibedit/web/style.css
Sean MTS 396a676146 Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 02:28:47 +00:00

339 lines
19 KiB
CSS

:root {
--bg: #0e1014;
--panel: #161920;
--panel2: #1d2129;
--panel3: #252a34;
--line: #2b313c;
--line2: #3a4250;
--text: #e7e9ee;
--dim: #98a1b1;
--dim2: #6b7383;
--accent: #4c8dff;
--accent-h: #6aa1ff;
--mark: #ffb547;
--ok: #3ccf91;
--warn: #ffb547;
--danger: #ff5d5d;
--radius: 8px;
--mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", ui-monospace, monospace;
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
background: var(--bg);
color: var(--text);
font: 14px/1.4 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
display: flex;
flex-direction: column;
overflow: hidden;
user-select: none;
}
input, select, textarea, button { font: inherit; color: inherit; }
.hidden { display: none !important; }
.grow { flex: 1; }
.dim { color: var(--dim); }
.small { font-size: 12px; }
kbd {
font: 11px var(--mono);
padding: 1px 5px;
border: 1px solid var(--line2);
border-bottom-width: 2px;
border-radius: 4px;
color: var(--dim);
background: rgba(255,255,255,.03);
}
.btn kbd { margin-left: 2px; border-color: rgba(255,255,255,.18); color: inherit; opacity: .7; }
/* buttons */
.btn {
display: inline-flex; align-items: center; gap: 6px;
height: 32px; padding: 0 12px;
background: var(--panel3); border: 1px solid var(--line2); border-radius: 6px;
cursor: pointer; white-space: nowrap;
transition: background .12s, border-color .12s;
}
.btn:hover { background: #2d3340; border-color: #4a5364; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel3); border-color: var(--line2); }
.btn.primary { background: #2a4a85; border-color: #3a62ad; }
.btn.primary:hover { background: #335aa0; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.accent:hover { background: var(--accent-h); }
.btn.danger { background: #5a2226; border-color: #8a3036; }
.btn.danger:hover { background: #6c282d; }
.ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 6px; color: var(--dim); cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: var(--panel3); color: var(--text); }
/* top bar */
.topbar {
display: flex; align-items: center; gap: 14px;
height: 52px; padding: 0 12px;
background: var(--panel); border-bottom: 1px solid var(--line);
flex: none;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: .2px; margin-right: 6px; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.logo svg { width: 15px; height: 15px; color: #fff; margin-left: 2px; }
.tb-group { display: flex; gap: 4px; align-items: center; }
.tb-group + .tb-group { padding-left: 12px; border-left: 1px solid var(--line); }
.job-pill {
height: 30px; padding: 0 12px; border-radius: 15px; cursor: pointer;
border: 1px solid #3a62ad; background: #1c2b48; color: #cfe0ff; font-size: 13px;
background-image: linear-gradient(90deg, #2a4a85 var(--p, 0%), transparent var(--p, 0%));
}
.banner { background: #4a2a12; color: #ffd9b0; padding: 10px 16px; border-bottom: 1px solid #6b3d1b; flex: none; user-select: text; }
.banner code { background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 4px; }
.banner a { color: #ffc27a; }
/* layout */
.layout {
flex: 1; min-height: 0;
display: grid;
grid-template-columns: 290px minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr) 232px;
gap: 8px; padding: 8px;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-height: 0; display: flex; flex-direction: column; }
.panel-head {
display: flex; align-items: center; gap: 8px;
height: 40px; padding: 0 12px; flex: none;
border-bottom: 1px solid var(--line);
font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #c5cad4;
}
.panel-head .small, .panel-head .seg { text-transform: none; letter-spacing: 0; font-weight: 400; }
.count { background: var(--panel3); color: var(--dim); border-radius: 10px; padding: 0 7px; font-size: 12px; letter-spacing: 0; }
.count:empty { display: none; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--dim); }
.empty p { margin: 4px 0; max-width: 560px; }
.empty b { color: var(--text); }
.big-ic { width: 44px; height: 44px; fill: none; stroke: var(--dim2); stroke-width: 1.5; margin-bottom: 8px; }
/* sources */
.sources { grid-row: 1; grid-column: 1; }
.source-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.source-list:empty { display: none; }
.src {
display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 10px;
padding: 7px; border-radius: 7px; cursor: pointer; border: 1px solid transparent;
position: relative;
}
.src:hover { background: var(--panel2); }
.src.cur { background: #1c2740; border-color: #2f4a7d; }
.src-thumb { width: 96px; height: 54px; border-radius: 5px; background: #000 center/cover no-repeat; position: relative; overflow: hidden; }
.src-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.src-thumb::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.src-thumb .audio-only { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 22px; }
.src-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.src-meta { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-actions { display: flex; gap: 4px; margin-top: 3px; align-items: center; }
.chip-btn {
font-size: 11.5px; height: 22px; padding: 0 7px; border-radius: 5px;
border: 1px solid var(--line2); background: var(--panel3); color: var(--dim); cursor: pointer;
display: inline-flex; align-items: center; gap: 4px;
}
.chip-btn:hover { color: var(--text); border-color: #4a5364; }
.chip-btn .ic { width: 13px; height: 13px; }
.src-x { position: absolute; top: 5px; right: 5px; opacity: 0; }
.src:hover .src-x, .src.cur .src-x { opacity: 1; }
.src-status { font-size: 11px; color: var(--dim2); }
/* viewer */
.viewer { grid-row: 1; grid-column: 2; overflow: hidden; }
.screen { flex: 1; min-height: 120px; position: relative; background: #000; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.screen video, .screen .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen-empty, .screen-msg {
position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
color: var(--dim); text-align: center; padding: 20px; pointer-events: none;
}
.screen-msg { inset: auto 12px 12px auto; padding: 8px 12px; background: rgba(10,12,16,.85); border: 1px solid var(--line2); border-radius: 6px; font-size: 13px; color: var(--text); pointer-events: auto; max-width: 70%; text-align: left; }
.screen-msg.center { inset: 0; margin: auto; height: fit-content; width: fit-content; }
.transport { display: flex; align-items: center; gap: 12px; padding: 8px 12px 4px; flex: none; }
.tc-box { display: flex; align-items: baseline; gap: 6px; min-width: 250px; }
.tc { font: 15px var(--mono); letter-spacing: .3px; }
#tcCur { font-size: 18px; color: #fff; }
.tc-sep { color: var(--dim2); }
.tc-frame { font: 12px var(--mono); }
.editable { cursor: text; border-radius: 4px; padding: 1px 4px; margin: -1px -4px; }
.editable:hover { background: var(--panel3); }
.tc-input { font: inherit; width: 9.5em; background: #0b0d11; border: 1px solid var(--accent); border-radius: 4px; color: #fff; padding: 0 4px; outline: none; }
.tp-buttons { flex: 1; display: flex; justify-content: center; gap: 2px; }
.tbtn {
width: 36px; height: 34px; border-radius: 6px; border: 0; background: transparent; color: #cdd2db;
display: grid; place-items: center; cursor: pointer;
}
.tbtn:hover { background: var(--panel3); color: #fff; }
.tbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbtn.play { width: 46px; height: 38px; background: var(--panel3); border: 1px solid var(--line2); margin: 0 6px; }
.tbtn.play svg { width: 22px; height: 22px; }
.tp-right { display: flex; align-items: center; gap: 4px; min-width: 250px; justify-content: flex-end; }
#volume { width: 90px; accent-color: var(--accent); }
.timeline-row { display: flex; gap: 8px; padding: 4px 12px; flex: none; align-items: stretch; }
.timeline { flex: 1; position: relative; height: 74px; }
#tlCanvas { width: 100%; height: 100%; display: block; border-radius: 6px; cursor: pointer; }
.tl-hover {
position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%);
background: #0b0d11; border: 1px solid var(--line2); border-radius: 6px; padding: 4px;
pointer-events: none; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px;
box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.tl-hover img { display: block; height: 72px; min-width: 40px; border-radius: 3px; background: #000; }
.tl-hover img:not([src]) { display: none; }
.tl-hover span { font: 12px var(--mono); }
.zoom { display: flex; flex-direction: column; gap: 3px; }
.zbtn { width: 38px; flex: 1; border-radius: 5px; border: 1px solid var(--line2); background: var(--panel3); cursor: pointer; font-size: 15px; line-height: 1; color: var(--dim); }
.zbtn.fit { font-size: 11px; }
.zbtn:hover { color: var(--text); }
.marks { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px; flex: none; flex-wrap: wrap; }
.mark-btn .ic { color: var(--mark); }
.mark-val { display: flex; flex-direction: column; line-height: 1.15; min-width: 88px; }
.mark-val label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim2); }
.mark-val .tc { font-size: 14px; }
.mark-hint { margin: -4px 12px 10px; display: flex; flex-direction: column; gap: 6px; flex: none; }
.hint-row { padding: 6px 10px; border-radius: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint-row.warn { background: #3a2a10; border: 1px solid #6b4a17; color: #ffd9a0; }
.hint-row.edit { background: #1c2740; border: 1px solid #2f4a7d; color: #cfe0ff; }
.hint-row .ic { width: 15px; height: 15px; }
.hint-row .chip-btn { color: inherit; background: rgba(255,255,255,.06); }
/* clips */
.clips { grid-row: 2; grid-column: 1 / span 2; }
.seg { display: inline-flex; background: var(--panel3); border: 1px solid var(--line2); border-radius: 7px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 5px; cursor: pointer; color: var(--dim); font-size: 13px; }
.seg button.on { background: var(--accent); color: #fff; }
.clip-list { flex: 1; display: flex; gap: 10px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; align-items: flex-start; }
.clip-list:empty { display: none; }
.empty.row { flex-direction: row; }
.clip {
flex: none; width: 178px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line);
display: flex; flex-direction: column; overflow: hidden; cursor: pointer; position: relative;
border-top: 3px solid var(--c);
}
.clip:hover { border-color: var(--line2); border-top-color: var(--c); }
.clip.sel { border-color: var(--accent); border-top-color: var(--c); box-shadow: 0 0 0 1px var(--accent); }
.clip.dragging { opacity: .4; }
.clip.drop-before::before, .clip.drop-after::after {
content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--accent); border-radius: 2px;
}
.clip.drop-before::before { left: 0; }
.clip.drop-after::after { right: 0; }
.clip-thumb { height: 80px; background: #000; position: relative; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-thumb .audio-only { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 26px; }
.clip-num { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.75); border-radius: 4px; padding: 0 6px; font: 600 12px var(--mono); }
.clip-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.75); border-radius: 4px; padding: 0 6px; font: 12px var(--mono); }
.clip-warn { position: absolute; right: 6px; top: 6px; background: rgba(58,42,16,.92); color: var(--warn); border-radius: 4px; padding: 1px 4px; display: flex; }
.clip-warn .ic { width: 14px; height: 14px; }
.clip-body { padding: 6px 8px 2px; min-width: 0; }
.clip-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-range { font: 11.5px var(--mono); color: var(--dim); white-space: nowrap; }
.clip-actions { display: flex; justify-content: space-between; padding: 2px 4px 4px; opacity: .55; }
.clip:hover .clip-actions, .clip.sel .clip-actions { opacity: 1; }
.clip-actions button { background: none; border: 0; color: var(--dim); padding: 4px; border-radius: 5px; cursor: pointer; display: grid; }
.clip-actions button:hover { background: var(--panel3); color: var(--text); }
.clip-actions button.del:hover { color: var(--danger); }
.clip-actions .ic { width: 15px; height: 15px; }
/* dialogs */
.dlg {
background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 12px;
padding: 0; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.dlg[open] { display: flex; flex-direction: column; }
.dlg.small { width: min(460px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(5,6,9,.65); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.dlg-head h2 { margin: 0; font-size: 18px; }
.dlg-body { padding: 8px 18px 12px; overflow-y: auto; user-select: text; }
.dlg-body p { white-space: pre-line; }
.dlg-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.field { margin: 12px 0; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); margin-bottom: 6px; font-weight: 600; }
.label .dim { text-transform: none; letter-spacing: 0; font-weight: 400; }
.row { display: flex; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dlg input[type=text], .dlg select {
height: 34px; background: #0f1217; border: 1px solid var(--line2); border-radius: 6px; padding: 0 9px; outline: none; min-width: 0;
}
.dlg input[type=text]:focus, .dlg select:focus { border-color: var(--accent); }
.dlg select { width: 100%; }
.row input[type=text] { flex: 1; }
.row select { width: auto; }
.radios { display: flex; gap: 18px; flex-wrap: wrap; }
.radios label, .rcard { cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rcard { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel2); }
.rcard:has(input:checked) { border-color: var(--accent); background: #18233a; }
.rcard input { margin-top: 3px; }
.rcard b { display: block; margin-bottom: 2px; }
.rcard small { color: var(--dim); font-size: 12.5px; line-height: 1.35; display: block; }
.q-row input { flex: 1; accent-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 5px; }
.summary { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: #cfd5df; }
.notice { border-radius: 8px; padding: 9px 12px; margin: 12px 0; white-space: pre-line; font-size: 13px; }
.notice.warn { background: #3a2a10; border: 1px solid #6b4a17; color: #ffd9a0; }
.notice.error { background: #3a1416; border: 1px solid #7a2a2f; color: #ffc2c2; font-family: var(--mono); font-size: 12px; max-height: 220px; overflow: auto; }
.notice.ok { background: #10301f; border: 1px solid #1f6a43; color: #b8f0d2; }
.notice.ok .paths { font: 12px var(--mono); margin: 6px 0; word-break: break-all; }
.progress { margin: 14px 0 4px; }
.bar { height: 10px; background: var(--panel3); border-radius: 5px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #7fb0ff); transition: width .25s; }
.pinfo { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; }
/* file browser */
.dlg.files { width: min(760px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px)); }
.fb-bar { display: flex; gap: 6px; padding: 6px 18px 10px; }
.fb-bar select { width: auto !important; }
.fb-bar input { flex: 1; }
.fb-list { list-style: none; margin: 0 18px; padding: 4px; flex: 1; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #0f1217; min-height: 0; }
.fb-list li { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 5px; cursor: pointer; }
.fb-list li:hover { background: var(--panel2); }
.fb-list li.sel { background: #22375e; }
.fb-list li .ic { color: var(--dim); }
.fb-list li.dir .ic { color: #e2b45b; }
.fb-list .fb-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-list .fb-size { color: var(--dim2); font-size: 12px; font-family: var(--mono); }
.fb-list .fb-empty { color: var(--dim); justify-content: center; cursor: default; padding: 30px; }
.fb-save { display: flex; gap: 10px; align-items: center; padding: 10px 18px 0; }
.fb-save input { flex: 1; }
/* help */
.help ol.steps { padding-left: 20px; margin-top: 4px; }
.help ol.steps li { margin: 6px 0; }
.keys { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.keys td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.keys td:nth-child(odd) { white-space: nowrap; }
/* toasts */
.toasts { position: fixed; right: 16px; top: 62px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 100; pointer-events: none; }
.toast {
background: #232834; border: 1px solid var(--line2); border-radius: 8px; padding: 9px 14px; max-width: min(520px, calc(100vw - 32px));
box-shadow: 0 8px 24px rgba(0,0,0,.5); pointer-events: auto; white-space: pre-line; animation: tin .18s ease-out;
}
.toast.error { border-color: #8a3036; background: #3a1a1d; }
.toast.ok { border-color: #1f6a43; background: #12301f; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.offline { position: fixed; inset: 0; background: rgba(5,6,9,.85); display: grid; place-items: center; z-index: 200; }
.offline-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 24px 28px; max-width: 460px; text-align: center; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #333a47; border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 980px) {
.layout { grid-template-columns: 1fr; grid-template-rows: 160px minmax(0, 1fr) 232px; }
.sources { grid-row: 1; grid-column: 1; }
.viewer { grid-row: 2; grid-column: 1; }
.clips { grid-row: 3; grid-column: 1; }
.tc-box, .tp-right { min-width: 0; }
}