- Script pane: PDF tab beside annotations; "Add script annotation" arms highlight mode on the draft, ✓/✕ to confirm/cancel, auto-scrolls to the active annotation's highlights during playback. Adds Project.script. - Realtime: Django Channels websocket per project broadcasts attributed scene deltas after each save; peers merge them in (keeping local drafts). - Logout link in the editor project-bar. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
335 lines
16 KiB
CSS
335 lines
16 KiB
CSS
/* tl — app styles. Dynamic geometry (positions/sizes derived from zoom/frames
|
|
or the resizable panes) stays inline in the views; everything static is here. */
|
|
|
|
html, body, #app { height: 100%; margin: 0; }
|
|
body { overflow: hidden; }
|
|
|
|
.app {
|
|
height: 100vh;
|
|
height: 100dvh; /* avoids mobile URL-bar jump where supported */
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
font-family: sans-serif;
|
|
background: #0c0c0c;
|
|
color: #ddd;
|
|
}
|
|
|
|
/* --- top region: video | annotation ------------------------------------ */
|
|
/* sizes are relative (vh / %), set via CSS vars from the app; px mins below */
|
|
.top { display: flex; min-height: 140px; height: var(--top-h, 46vh); }
|
|
|
|
.video-pane {
|
|
position: relative;
|
|
flex-shrink: 0; width: var(--video-w, 50%); min-width: 200px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: #000; overflow: hidden;
|
|
}
|
|
.video-pane video { max-width: 100%; max-height: 100%; display: block; background: #000; }
|
|
|
|
.frame-readout {
|
|
position: absolute; bottom: 6px; right: 8px; z-index: 4;
|
|
display: flex; gap: 8px; align-items: center;
|
|
font-family: monospace; font-size: 11px; color: #cfe3f5;
|
|
background: rgba(0,0,0,0.6); padding: 2px 7px; border-radius: 4px;
|
|
pointer-events: none; /* don't block video controls… */
|
|
}
|
|
.frame-readout .fr-clip { pointer-events: auto; } /* …except the clip chip */
|
|
.fr-clip.clickable { cursor: copy; color: #9ed7b0; }
|
|
.fr-clip.clickable:hover { color: #c7efd4; }
|
|
|
|
.annot-pane { flex: 1; min-width: 200px; display: flex; }
|
|
|
|
/* --- draggable dividers ------------------------------------------------- */
|
|
/* touch-action:none so a drag doesn't scroll the page on touch devices */
|
|
.divider-v { flex-shrink: 0; width: 7px; cursor: col-resize; background: #222; touch-action: none; }
|
|
.divider-h { flex-shrink: 0; height: 7px; cursor: row-resize; background: #222; touch-action: none; }
|
|
.divider-v:hover, .divider-h:hover, .divider-v:active, .divider-h:active { background: #3a6ea5; }
|
|
|
|
/* --- commentary --------------------------------------------------------- */
|
|
.commentary {
|
|
position: relative; flex: 1; overflow-y: auto;
|
|
background: #111; padding: 8px 12px; box-sizing: border-box;
|
|
}
|
|
.ann {
|
|
position: relative;
|
|
padding: 8px 10px; margin-bottom: 8px; border-radius: 4px;
|
|
border: 1px solid transparent; background: #161616;
|
|
}
|
|
.ann.active { border-color: #3a6ea5; background: #152333; }
|
|
.ann-head { display: flex; align-items: center; justify-content: space-between;
|
|
gap: 8px; margin-bottom: 4px; }
|
|
.ann-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
|
|
color: #7aa6d6; }
|
|
.ann-empty { color: #666; font-size: 12px; }
|
|
|
|
.jump-btn {
|
|
flex-shrink: 0; background: #1c2a38; color: #cfe3f5;
|
|
border: 1px solid #3a6ea5; border-radius: 4px;
|
|
padding: 1px 7px; cursor: pointer; font-size: 10px; white-space: nowrap;
|
|
}
|
|
/* popover of jump targets for an annotation with discontinuous marks */
|
|
.jump-pop {
|
|
position: absolute; right: 0; top: 100%; z-index: 20; margin-top: 2px;
|
|
min-width: 150px; max-height: 180px; overflow-y: auto;
|
|
background: #1b1b1b; border: 1px solid #3a6ea5; border-radius: 4px;
|
|
box-shadow: 0 4px 14px rgba(0,0,0,0.5); padding: 4px;
|
|
}
|
|
.jump-pop button {
|
|
display: block; width: 100%; text-align: left; background: none;
|
|
color: #cde; border: none; border-radius: 3px; padding: 4px 6px;
|
|
cursor: pointer; font-size: 11px; white-space: nowrap;
|
|
}
|
|
.jump-pop button:hover { background: #2a4a6a; }
|
|
|
|
/* --- commentary head + actions ----------------------------------------- */
|
|
.commentary-head { margin-bottom: 8px; }
|
|
.add-btn {
|
|
width: 100%; background: #1c2a38; color: #cfe3f5;
|
|
border: 1px solid #3a6ea5; border-radius: 4px;
|
|
padding: 6px 8px; cursor: pointer; font-size: 12px;
|
|
}
|
|
.add-btn:hover { background: #24384e; }
|
|
.ann-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
|
|
.edit-btn {
|
|
background: none; color: #7aa6d6; border: 1px solid transparent;
|
|
border-radius: 4px; padding: 1px 6px; cursor: pointer; font-size: 11px;
|
|
}
|
|
.edit-btn:hover { color: #cfe3f5; border-color: #3a6ea5; }
|
|
.del-btn {
|
|
background: none; color: #a66; border: 1px solid transparent;
|
|
border-radius: 4px; padding: 1px 6px; cursor: pointer; font-size: 11px;
|
|
}
|
|
.del-btn:hover { color: #e66; border-color: #a44; }
|
|
|
|
.clip.clickable { cursor: copy; outline: 1px solid #5ab07a; }
|
|
|
|
.expand-btn {
|
|
background: none; color: #7aa6d6; border: 1px solid transparent;
|
|
border-radius: 4px; padding: 1px 6px; cursor: pointer; font-size: 11px;
|
|
}
|
|
.expand-btn:hover { color: #cfe3f5; border-color: #3a6ea5; }
|
|
.expand-btn.has-children { color: #cfe3f5; border-color: #3a6ea5; background: #16263a; }
|
|
.nest-badge {
|
|
margin-left: 3px; font-size: 9px; line-height: 1; vertical-align: top;
|
|
background: #3a6ea5; color: #fff; border-radius: 8px; padding: 1px 4px;
|
|
}
|
|
|
|
/* --- authoring form (fills the annotation pane) ------------------------- */
|
|
.form {
|
|
flex: 1; min-width: 0; overflow-y: auto;
|
|
background: #111; border: 1px solid #333; box-sizing: border-box;
|
|
padding: 10px 12px;
|
|
display: flex; flex-direction: column; gap: 10px;
|
|
}
|
|
.form-head { font-size: 13px; font-weight: 600; color: #cfe3f5; }
|
|
.form-row { display: flex; gap: 8px; align-items: center; }
|
|
.form-name { flex: 1; }
|
|
.form input[type=text], .form-name, .form-content {
|
|
background: #0e0e0e; color: #ddd; border: 1px solid #333;
|
|
border-radius: 4px; padding: 6px 8px; font-size: 13px;
|
|
}
|
|
.form-color { width: 40px; height: 32px; padding: 0; border: 1px solid #333;
|
|
border-radius: 4px; background: #0e0e0e; cursor: pointer; }
|
|
.form-content { width: 100%; min-height: 70px; resize: vertical; box-sizing: border-box;
|
|
font-family: inherit; }
|
|
.form-marks-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
|
|
color: #7aa6d6; margin-top: 4px; }
|
|
|
|
.mark-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
.mark-arrow { color: #666; }
|
|
.row-x, .add-mark {
|
|
background: #1c1c1c; color: #aaa; border: 1px solid #333; border-radius: 4px;
|
|
padding: 3px 8px; cursor: pointer; font-size: 12px;
|
|
}
|
|
.row-x:hover { color: #e66; border-color: #a44; }
|
|
.add-mark { align-self: flex-start; color: #cfe3f5; border-color: #3a6ea5; }
|
|
|
|
/* the point a clip-click will fill — make it obvious where focus is */
|
|
.pt-input.active .pt-text, .pt-chip.active {
|
|
outline: 2px solid #5ab07a; outline-offset: 0;
|
|
}
|
|
|
|
/* point editor + autocomplete */
|
|
.pt-input { position: relative; flex: 1 1 130px; display: inline-block; }
|
|
.pt-text {
|
|
width: 100%; box-sizing: border-box;
|
|
background: #0e0e0e; color: #ddd; border: 1px solid #333;
|
|
border-radius: 4px; padding: 6px 8px; font-size: 13px;
|
|
}
|
|
.pt-dropdown {
|
|
position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
|
|
margin: 2px 0 0; padding: 4px; list-style: none;
|
|
max-height: 220px; overflow-y: auto;
|
|
background: #1b1b1b; border: 1px solid #3a6ea5; border-radius: 4px;
|
|
box-shadow: 0 6px 18px rgba(0,0,0,0.5);
|
|
}
|
|
.pt-dropdown li { padding: 4px 6px; border-radius: 3px; font-size: 12px;
|
|
color: #cde; cursor: pointer; white-space: nowrap;
|
|
overflow: hidden; text-overflow: ellipsis; }
|
|
.pt-dropdown li.hi { background: #2a4a6a; }
|
|
|
|
.pt-chip { flex: 1; display: flex; align-items: center; gap: 4px;
|
|
background: #233; border: 1px solid #3a6ea5; border-radius: 4px;
|
|
padding: 2px 4px; }
|
|
.pt-chip-name { font-size: 12px; color: #cfe3f5; white-space: nowrap;
|
|
overflow: hidden; text-overflow: ellipsis; flex: 1; }
|
|
.pt-frame { width: 56px; background: #0e0e0e; color: #ddd; border: 1px solid #333;
|
|
border-radius: 3px; padding: 2px 4px; font-size: 12px; }
|
|
.pt-dur { color: #889; font-size: 11px; white-space: nowrap; }
|
|
.pt-x { background: none; border: none; color: #a99; cursor: pointer; font-size: 14px; }
|
|
.pt-x:hover { color: #e66; }
|
|
|
|
.form-hint { font-size: 11px; color: #777; }
|
|
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
|
|
.save, .cancel { border-radius: 4px; padding: 6px 14px; cursor: pointer; font-size: 13px; }
|
|
.save { background: #2a4a6a; color: #fff; border: 1px solid #3a6ea5; }
|
|
.cancel { background: #1c1c1c; color: #aaa; border: 1px solid #333; }
|
|
|
|
/* --- markdown (tl.md output is wrapped in .md) -------------------------- */
|
|
.md h1 { font-size: 16px; margin: 0 0 6px; line-height: 1.25; }
|
|
.md h2 { font-size: 14px; margin: 0 0 6px; line-height: 1.25; }
|
|
.md h3 { font-size: 13px; margin: 0 0 6px; line-height: 1.25; }
|
|
.md h4, .md h5, .md h6 { font-size: 12px; margin: 0 0 6px; }
|
|
.md p { margin: 0 0 8px; }
|
|
.md ul { margin: 0 0 8px 18px; padding: 0; }
|
|
.md code { background: #222; padding: 0 3px; border-radius: 3px; font-size: 12px; }
|
|
|
|
/* --- timeline region ---------------------------------------------------- */
|
|
.timeline-pane { flex: 1; display: flex; flex-direction: column; min-height: 150px; }
|
|
|
|
/* --- breadcrumb bar (only present when expanded into a nested timeline) -- */
|
|
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
|
|
padding: 5px 8px; background: #0c0c0c; border-bottom: 1px solid #222;
|
|
flex-shrink: 0; font-size: 12px; }
|
|
.back-btn { background: #1c2a38; color: #cfe3f5; border: 1px solid #3a6ea5;
|
|
border-radius: 4px; padding: 2px 10px; cursor: pointer; font-size: 12px;
|
|
margin-right: 4px; }
|
|
.back-btn:hover { background: #24384e; }
|
|
.crumb-item { display: inline-flex; align-items: center; gap: 6px; }
|
|
.crumb-sep { color: #555; }
|
|
.crumb { background: none; border: none; color: #7aa6d6; cursor: pointer;
|
|
font-size: 12px; padding: 2px 2px; }
|
|
.crumb:hover { color: #cfe3f5; text-decoration: underline; }
|
|
.crumb.current { color: #cfe3f5; cursor: default; text-decoration: none; }
|
|
|
|
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
|
|
padding: 6px 8px; background: #0c0c0c; border-bottom: 1px solid #222;
|
|
flex-shrink: 0; }
|
|
.slider { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9ab; }
|
|
.slider input { width: 150px; touch-action: none; }
|
|
.transport { display: flex; align-items: center; gap: 4px; }
|
|
.play-btn, .step-btn {
|
|
background: #1c2a38; color: #cfe3f5; border: 1px solid #3a6ea5;
|
|
border-radius: 4px; cursor: pointer; line-height: 1.4;
|
|
}
|
|
.play-btn { padding: 2px 12px; font-size: 14px; }
|
|
.step-btn { padding: 2px 7px; font-size: 11px; letter-spacing: -1px; }
|
|
.play-btn:hover, .step-btn:hover { background: #24384e; }
|
|
|
|
.timeline-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; }
|
|
.timeline { display: flex; align-items: flex-start; background: #111; }
|
|
|
|
.gutter { flex-shrink: 0; width: 150px; user-select: none; }
|
|
.gutter-label {
|
|
box-sizing: border-box;
|
|
border-bottom: 1px solid #2a2a2a; border-right: 1px solid #2a2a2a;
|
|
padding: 0 6px; font-size: 10px; color: #9ab; background: #141414;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.hscroll { overflow-x: auto; flex: 1; }
|
|
/* overflow:hidden crops clips that fall outside the (possibly windowed) view */
|
|
.content { position: relative; cursor: ew-resize; overflow: hidden; }
|
|
|
|
/* height transitions so cropped-out tracks animate away and the survivors
|
|
slide up to fill the gap ("tracks leave / get rearranged") */
|
|
.track-row { position: relative; background: #1c1c1c; border-bottom: 1px solid #2a2a2a;
|
|
overflow: hidden; transition: height .3s ease, opacity .3s ease; }
|
|
.track-row.collapsed { opacity: 0; border-bottom: none; }
|
|
.gutter-label { transition: height .3s ease, opacity .3s ease; }
|
|
.gutter-label.collapsed { opacity: 0; border-bottom: none; padding: 0; }
|
|
.clip {
|
|
position: absolute; top: 1px; box-sizing: border-box; overflow: hidden;
|
|
background: #244966; border: 1px solid #16324f; border-radius: 2px;
|
|
font-size: 10px; color: #cfe3f5; white-space: nowrap;
|
|
}
|
|
.clip-thumb {
|
|
position: absolute; top: 0; bottom: 0;
|
|
background-size: cover; background-position: center;
|
|
opacity: .82;
|
|
}
|
|
.clip-name {
|
|
position: relative; z-index: 1; height: 100%; box-sizing: border-box;
|
|
padding: 0 4px; overflow: hidden; text-overflow: ellipsis;
|
|
text-shadow: 0 1px 2px #000, 0 0 4px #000;
|
|
background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12));
|
|
}
|
|
|
|
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #e33;
|
|
z-index: 10; pointer-events: none; }
|
|
.playhead-handle { position: absolute; top: 0; left: -5px; width: 12px; height: 10px;
|
|
background: #e33; border-radius: 2px; }
|
|
|
|
/* --- annotation lane ---------------------------------------------------- */
|
|
.ann-lane-row { position: relative; height: 18px; }
|
|
.ann-bar { position: absolute; top: 2px; height: 14px; border-radius: 2px; }
|
|
.ann-bar-label { position: absolute; top: 1px; font-size: 9px; line-height: 16px;
|
|
color: #eee; white-space: nowrap; pointer-events: none;
|
|
text-shadow: 0 1px 2px #000; }
|
|
|
|
/* --- mobile: stack the top region vertically (video over annotation) ---- */
|
|
@media (max-width: 720px) {
|
|
.top { flex-direction: column; }
|
|
.divider-v { display: none; } /* width-split is meaningless when stacked */
|
|
.video-pane { width: 100%; min-width: 0; flex: 1 1 0; min-height: 110px; }
|
|
.annot-pane { width: 100%; min-width: 0; flex: 1 1 0; min-height: 110px; }
|
|
.divider-h { height: 14px; } /* bigger touch target (top vs timeline) */
|
|
.slider input { width: 120px; }
|
|
}
|
|
|
|
/* --- landing pages (project list / create) ----------------------------- */
|
|
.home { min-height: 100vh; box-sizing: border-box; max-width: 680px; margin: 0 auto;
|
|
padding: 32px 20px; color: #ddd; font-family: sans-serif; background: #0c0c0c; }
|
|
.home-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
|
|
.home-head h1 { font-size: 22px; margin: 0; color: #cfe3f5; letter-spacing: 1px; }
|
|
.home a { color: #7aa6d6; text-decoration: none; }
|
|
.home a:hover { text-decoration: underline; }
|
|
.muted { color: #888; font-size: 12px; }
|
|
.home .add-btn { display: inline-block; width: auto; margin-bottom: 12px; }
|
|
.project-list { list-style: none; padding: 0; margin: 12px 0; }
|
|
.project-list li { padding: 10px 12px; border: 1px solid #2a2a2a; border-radius: 6px;
|
|
margin-bottom: 8px; background: #161616; }
|
|
.project-list li a { font-size: 15px; color: #cfe3f5; }
|
|
.home .form { background: transparent; border: none; padding: 0; }
|
|
.file-row { display: block; margin: 12px 0; color: #cfe3f5; font-size: 13px; }
|
|
.err { color: #e66; font-size: 12px; margin: 8px 0; }
|
|
|
|
/* editor: project bar above the timeline */
|
|
.project-bar { display: flex; gap: 10px; align-items: center; padding: 4px 8px;
|
|
background: #111; border-bottom: 1px solid #222; font-size: 12px; }
|
|
.project-bar .project-name { color: #cfe3f5; font-weight: 600; }
|
|
.project-bar .logout-link { margin-left: auto; color: #8aa; text-decoration: none; }
|
|
.project-bar .logout-link:hover { color: #cfe3f5; text-decoration: underline; }
|
|
|
|
/* --- annotation / script pane tabs ------------------------------------- */
|
|
.pane-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
.pane-tabs { display: flex; gap: 2px; background: #111; border-bottom: 1px solid #222; }
|
|
.pane-tabs button { flex: 1; background: none; color: #889; border: none; padding: 7px 10px;
|
|
cursor: pointer; font-size: 12px; border-bottom: 2px solid transparent; }
|
|
.pane-tabs button:hover { color: #cfe3f5; }
|
|
.pane-tabs button.active { color: #cfe3f5; border-bottom-color: #3a6ea5; background: #152333; }
|
|
.pane-body { flex: 1; min-height: 0; display: flex; }
|
|
|
|
/* --- script pane (pdf) ------------------------------------------------- */
|
|
.script-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #111; }
|
|
.script-hint { padding: 6px 10px; font-size: 11px; color: #8aa; border-bottom: 1px solid #222; }
|
|
.script-pages { flex: 1; overflow: auto; padding: 12px; background: #1a1a1a;
|
|
display: flex; flex-direction: column; align-items: center; gap: 12px; }
|
|
.pdf-page { position: relative; box-shadow: 0 2px 10px rgba(0,0,0,.5); background: #fff; }
|
|
.pdf-page.armed { cursor: crosshair; }
|
|
.pdf-page canvas { display: block; }
|
|
.script-hl { position: absolute; border-radius: 2px; cursor: pointer; }
|
|
.script-hl.drafting { background: rgba(90,176,122,.25); border: 1.5px dashed #5ab07a; pointer-events: none; }
|
|
.script-empty { color: #888; font-size: 12px; padding: 20px; }
|
|
.script-badge { margin-left: 6px; color: #7aa6d6; font-size: 11px; }
|
|
.ann.selected { box-shadow: inset 3px 0 0 #5ab07a; }
|