mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
Clicking anywhere on a shot row (its number, title or summary line), or pressing Enter or Space on its title, now selects the shot and loads it, which is what the row's LOAD button did; the LOAD button is gone. In its place, up and down arrows swap the shot with its neighbour through SceneDirector.moveShot, which saves the project and publishes shot-moved. The arrows are disabled at the ends and while the scene plays, and neither they nor DEL load the shot.
583 lines
14 KiB
CSS
583 lines
14 KiB
CSS
/* ── Scene Director Panel ───────────────────── */
|
|
#scene-panel {
|
|
--panel-expanded-width: 360px;
|
|
/* Secondary text in Authoring: dimmer than labels, but legible on the globe. */
|
|
--scene-quiet: rgba(232, 234, 237, 0.62);
|
|
position: fixed;
|
|
top: calc(var(--left-stack-top) + (var(--left-stack-gap) * 2));
|
|
left: var(--left-stack-x);
|
|
right: auto;
|
|
bottom: auto;
|
|
z-index: 100;
|
|
width: var(--panel-expanded-width);
|
|
max-height: calc(100vh - 24px);
|
|
}
|
|
|
|
#left-panel-stack > #data-panel,
|
|
#left-panel-stack > #cctv-panel,
|
|
#left-panel-stack > #global-context-panel,
|
|
#left-panel-stack > #utilities-panel,
|
|
#left-panel-stack > #scene-panel {
|
|
position: relative;
|
|
top: auto;
|
|
right: auto;
|
|
bottom: auto;
|
|
left: auto;
|
|
z-index: auto;
|
|
max-height: none;
|
|
flex: 0 0 auto;
|
|
min-height: 0;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
#left-panel-stack > #data-panel {
|
|
order: 1;
|
|
}
|
|
|
|
#left-panel-stack > #cctv-panel {
|
|
order: 2;
|
|
}
|
|
|
|
#left-panel-stack > #utilities-panel {
|
|
order: 3;
|
|
}
|
|
|
|
#left-panel-stack > #scene-panel {
|
|
order: 4;
|
|
}
|
|
|
|
/*
|
|
* Runtime focus mode: the layout engine applies this only when the expanded
|
|
* panel's measured natural height plus sibling labels cannot fit inside the
|
|
* live HUD/attribution-safe corridor.
|
|
*/
|
|
#left-panel-stack.layout-focus > [data-panel-id].collapsed {
|
|
display: none;
|
|
}
|
|
|
|
#left-panel-stack > #data-panel:not(.collapsed),
|
|
#left-panel-stack > #cctv-panel:not(.collapsed),
|
|
#left-panel-stack > #utilities-panel:not(.collapsed),
|
|
#left-panel-stack > #scene-panel:not(.collapsed) {
|
|
box-sizing: border-box;
|
|
flex: 0 1 var(--left-panel-allocated-height, auto);
|
|
height: var(--left-panel-allocated-height, auto);
|
|
max-height: var(--left-panel-allocated-height, 100%);
|
|
}
|
|
|
|
/*
|
|
* When an expanded panel and its collapsed siblings fit together, preserve
|
|
* the canonical control order and center their combined stack at 50vh.
|
|
*/
|
|
#left-panel-stack.layout-tail
|
|
> :is(#data-panel, #cctv-panel, #utilities-panel, #scene-panel):not(
|
|
.collapsed
|
|
) {
|
|
box-sizing: border-box;
|
|
flex: 0 0 var(--left-panel-allocated-height);
|
|
height: var(--left-panel-allocated-height);
|
|
max-height: var(--left-panel-allocated-height);
|
|
}
|
|
|
|
#left-panel-stack > #data-panel:not(.collapsed) .data-panel-inner,
|
|
#left-panel-stack > #cctv-panel:not(.collapsed) .cctv-panel-inner,
|
|
#left-panel-stack > #utilities-panel:not(.collapsed) .utilities-panel-inner,
|
|
#left-panel-stack > #scene-panel:not(.collapsed) .scene-panel-inner {
|
|
height: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
#left-panel-stack > #data-panel:not(.collapsed) .data-panel-inner {
|
|
overflow: hidden;
|
|
}
|
|
|
|
#left-panel-stack > #cctv-panel:not(.collapsed) .cctv-panel-inner,
|
|
#left-panel-stack > #utilities-panel:not(.collapsed) .utilities-panel-inner,
|
|
#left-panel-stack > #scene-panel:not(.collapsed) .scene-panel-inner {
|
|
overflow-y: auto;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
#left-panel-stack > [data-panel-id]:not(.collapsed) .panel-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
background: transparent;
|
|
}
|
|
|
|
#left-panel-stack > [data-panel-id]:not(.collapsed) .panel-divider {
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgb(0 212 255 / 28%),
|
|
rgba(0, 212, 255, 0.18) 58%,
|
|
transparent
|
|
);
|
|
box-shadow: 0 0 7px rgba(0, 212, 255, 0.22);
|
|
}
|
|
|
|
#right-context-rail [data-panel-id]:not(.collapsed) .panel-divider {
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgb(0 212 255 / 28%),
|
|
rgba(0, 212, 255, 0.18) 58%,
|
|
transparent
|
|
);
|
|
box-shadow: 0 0 7px rgba(0, 212, 255, 0.22);
|
|
}
|
|
|
|
#scene-panel .panel-glow {
|
|
position: absolute;
|
|
inset: -18px;
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
rgba(0, 212, 255, 0.16) 0%,
|
|
transparent 65%
|
|
);
|
|
filter: blur(16px);
|
|
opacity: 0.25;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.scene-panel-inner {
|
|
position: relative;
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--panel-radius);
|
|
padding: 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: calc(100vh - 24px);
|
|
backdrop-filter: blur(24px) saturate(1.4);
|
|
-webkit-backdrop-filter: blur(24px) saturate(1.4);
|
|
box-shadow:
|
|
0 8px 32px rgba(0, 0, 0, 0.5),
|
|
0 0 0 1px rgba(255, 255, 255, 0.03) inset,
|
|
0 1px 0 rgba(255, 255, 255, 0.06) inset;
|
|
}
|
|
|
|
.scene-controls {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* The scene's name takes its own row; NEW SCENE / DELETE share the next. */
|
|
#scene-select {
|
|
flex: 1 1 100%;
|
|
min-width: 0;
|
|
min-height: 32px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
html:not([lang='en']) #scene-select {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
/* A translated action longer than its button wraps inside the button instead
|
|
of running past it. English keeps its one-line buttons. */
|
|
html:not([lang='en']) #scene-panel .scene-controls .scene-btn {
|
|
white-space: normal;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.scene-btn {
|
|
flex: 1;
|
|
min-width: 72px;
|
|
}
|
|
|
|
#scene-panel .scene-btn {
|
|
font-size: 10px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
/* Authoring's steps: SCENE, SHOTS, PREVIEW, SAVE & SHARE. */
|
|
.scene-step-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 10px 0 6px;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
letter-spacing: 1.6px;
|
|
color: var(--scene-quiet);
|
|
}
|
|
|
|
.scene-step-heading::after {
|
|
content: '';
|
|
flex: 1;
|
|
height: 1px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.panel-header + .scene-step-heading {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* One primary action per step: CAPTURE SHOT and PLAY. The panel id keeps
|
|
this above Cyber's shared button surface. */
|
|
#scene-panel .scene-btn-primary:not(:disabled) {
|
|
color: var(--accent);
|
|
border-color: color-mix(in srgb, var(--accent) 55%, transparent);
|
|
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
|
}
|
|
|
|
/* The file row is housekeeping; it stays quieter than the steps above. */
|
|
#scene-panel .scene-file-controls .scene-btn {
|
|
font-size: 9px;
|
|
/* Room for one long translated word (IMPORTIEREN, ІМПОРТУВАТИ) per line. */
|
|
padding: 8px 4px;
|
|
letter-spacing: 0.6px;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Keep the shared hover on the restyled actions. */
|
|
#scene-panel .scene-btn-primary:hover:not(:disabled),
|
|
#scene-panel .scene-file-controls .scene-btn:hover:not(:disabled) {
|
|
color: var(--accent);
|
|
border-color: var(--accent);
|
|
background: color-mix(in srgb, var(--accent) 16%, transparent);
|
|
}
|
|
|
|
/* Stories tags: small toggle chips that wrap; a pressed chip takes the
|
|
accent. */
|
|
#scene-panel .scene-tag-chips {
|
|
gap: 4px;
|
|
}
|
|
|
|
#scene-panel .scene-tag-chip {
|
|
flex: 0 0 auto;
|
|
padding: 3px 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.16);
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
color: var(--scene-quiet);
|
|
font-size: 10px;
|
|
line-height: 1.3;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#scene-panel .scene-tag-chip.active {
|
|
color: var(--accent);
|
|
border-color: color-mix(in srgb, var(--accent) 55%, transparent);
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
}
|
|
|
|
#scene-panel .scene-tag-chip:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
|
|
/* The Stories card thumbnail, CAPTURE THUMBNAIL and SAVE TO STORIES share a
|
|
row; the preview keeps the card's 16:9. */
|
|
#scene-panel .scene-story-controls {
|
|
align-items: center;
|
|
}
|
|
|
|
/* Two buttons beside the preview: a label that does not fit (REMOVE FROM
|
|
STORIES) wraps inside its button, in English too. */
|
|
#scene-panel .scene-story-controls .scene-btn {
|
|
align-self: stretch;
|
|
padding: 8px 6px;
|
|
white-space: normal;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.scene-thumb-preview {
|
|
flex: 0 0 64px;
|
|
width: 64px;
|
|
height: 36px;
|
|
border-radius: 3px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.scene-thumb-empty {
|
|
border: 1px dashed rgba(255, 255, 255, 0.18);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.scene-shot-hint {
|
|
margin: 0 0 8px;
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
color: var(--scene-quiet);
|
|
}
|
|
|
|
#scene-panel:not(.has-shots) .scene-shot-hint {
|
|
display: none;
|
|
}
|
|
|
|
#scene-start-btn,
|
|
#scene-stop-btn,
|
|
#scene-next-btn {
|
|
flex: 1 1 0;
|
|
}
|
|
|
|
.scene-shot-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
max-height: 260px;
|
|
/* Two shot rows stay visible; the panel scrolls when space is short. */
|
|
min-height: 128px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 4px 2px 6px;
|
|
margin-bottom: 4px;
|
|
counter-reset: scene-shot;
|
|
}
|
|
|
|
.scene-shot-empty {
|
|
border: 1px dashed rgba(255, 255, 255, 0.14);
|
|
border-radius: 8px;
|
|
padding: 16px 12px;
|
|
text-align: center;
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
letter-spacing: 0.3px;
|
|
line-height: 1.5;
|
|
color: var(--scene-quiet);
|
|
}
|
|
|
|
.scene-shot-row {
|
|
cursor: pointer;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 9px;
|
|
padding: 8px 10px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
counter-increment: scene-shot;
|
|
transition:
|
|
border-color var(--transition-fast),
|
|
background var(--transition-fast);
|
|
}
|
|
|
|
.scene-shot-row.active {
|
|
border-color: var(--accent);
|
|
background: rgba(0, 212, 255, 0.08);
|
|
}
|
|
|
|
.scene-shot-top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.scene-shot-label {
|
|
min-width: 0;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
letter-spacing: 0.4px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* While renaming, the label holds only the editor at full width. */
|
|
.scene-shot-label:has(.scene-shot-rename) {
|
|
overflow: visible;
|
|
white-space: normal;
|
|
}
|
|
|
|
.scene-shot-label:has(.scene-shot-rename)::before {
|
|
content: none;
|
|
}
|
|
|
|
/* Shots are numbered 01, 02… in playback order. */
|
|
.scene-shot-label::before {
|
|
content: counter(scene-shot, decimal-leading-zero);
|
|
margin-right: 8px;
|
|
font-size: 10px;
|
|
color: var(--scene-quiet);
|
|
}
|
|
|
|
.scene-shot-label:focus-visible {
|
|
outline: 1px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.scene-shot-row.active .scene-shot-label::before {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.scene-shot-rename {
|
|
width: 100%;
|
|
min-width: 0;
|
|
box-sizing: border-box;
|
|
font: inherit;
|
|
color: var(--text-primary);
|
|
background: var(--bg-panel, #101820);
|
|
border: 1px solid var(--accent, #00d4ff);
|
|
}
|
|
|
|
.scene-shot-meta {
|
|
margin-top: 5px;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
letter-spacing: 0.4px;
|
|
color: var(--scene-quiet);
|
|
}
|
|
|
|
.scene-shot-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Up and down: the glyph as tall as DEL's word. */
|
|
.scene-shot-move {
|
|
padding: 3px 4px;
|
|
}
|
|
|
|
.scene-shot-move .ui-icon {
|
|
display: block;
|
|
line-height: 1;
|
|
}
|
|
|
|
.scene-progress {
|
|
margin-top: 8px;
|
|
width: 100%;
|
|
height: 14px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
#scene-progress-fill {
|
|
width: 0%;
|
|
height: 100%;
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgba(0, 212, 255, 0.2),
|
|
rgba(0, 212, 255, 0.75)
|
|
);
|
|
color: #d5f7ff;
|
|
font-family: var(--font-mono);
|
|
font-size: 8px;
|
|
letter-spacing: 1px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding-right: 6px;
|
|
transition: width 100ms linear;
|
|
text-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
|
|
}
|
|
|
|
#scene-status {
|
|
margin-top: 8px;
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
letter-spacing: 0.4px;
|
|
line-height: 1.4;
|
|
color: var(--scene-quiet);
|
|
}
|
|
|
|
#scene-runtime {
|
|
position: fixed;
|
|
top: 34px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 105;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition:
|
|
opacity 180ms ease,
|
|
visibility 180ms ease;
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
letter-spacing: 2px;
|
|
color: #bff4ff;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
border: 1px solid rgba(0, 212, 255, 0.36);
|
|
border-radius: 999px;
|
|
padding: 6px 14px;
|
|
text-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
|
|
pointer-events: none;
|
|
}
|
|
|
|
#scene-runtime.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
#control-panel.collapsed .button-grid,
|
|
#data-panel.collapsed .data-toggle-list,
|
|
#data-panel.collapsed .data-library-footer,
|
|
#global-context-panel.collapsed #radio-panel,
|
|
#global-context-panel.collapsed #military-awareness-panel,
|
|
#global-context-panel.collapsed .global-context-actions,
|
|
#global-context-panel.collapsed .global-context-modes,
|
|
#global-context-panel.collapsed .context-mode-view,
|
|
#global-context-panel.collapsed
|
|
> .global-context-panel-inner
|
|
> .context-mode-standby,
|
|
#radio-panel.collapsed .radio-panel-inner > :not(.panel-header),
|
|
#cctv-panel.collapsed .cctv-controls,
|
|
#cctv-panel.collapsed .cctv-calibration-block,
|
|
#cctv-panel.collapsed .cctv-frame-wrap,
|
|
#cctv-panel.collapsed #cctv-source-badge,
|
|
#cctv-panel.collapsed #cctv-meta,
|
|
#cctv-panel.collapsed .cctv-summary-label,
|
|
#cctv-panel.collapsed #cctv-summary,
|
|
#scene-panel.collapsed .scene-controls,
|
|
#scene-panel.collapsed .scene-step-heading,
|
|
#scene-panel.collapsed .scene-shot-hint,
|
|
#scene-panel.collapsed .scene-shot-list,
|
|
#scene-panel.collapsed .scene-progress,
|
|
#scene-panel.collapsed #scene-status,
|
|
#utilities-panel.collapsed .utilities-list,
|
|
#utilities-panel.collapsed .utilities-tools,
|
|
#param-slider-panel.collapsed #param-sliders,
|
|
#location-bar.collapsed .poi-row-container,
|
|
#location-bar.collapsed .location-bar-divider,
|
|
#location-bar.collapsed .location-city-row,
|
|
#location-bar.collapsed .location-search-error {
|
|
display: none !important;
|
|
}
|
|
|
|
#data-panel.collapsed,
|
|
#cctv-panel.collapsed,
|
|
#utilities-panel.collapsed,
|
|
#scene-panel.collapsed {
|
|
width: var(--left-collapsed-width);
|
|
}
|
|
|
|
#global-context-panel #radio-panel.collapsed {
|
|
width: 100%;
|
|
}
|
|
|
|
#control-panel.collapsed .panel-inner,
|
|
#data-panel.collapsed .data-panel-inner,
|
|
#cctv-panel.collapsed .cctv-panel-inner,
|
|
#radio-panel.collapsed .radio-panel-inner,
|
|
#scene-panel.collapsed .scene-panel-inner,
|
|
#utilities-panel.collapsed .utilities-panel-inner,
|
|
#param-slider-panel.collapsed,
|
|
#location-bar.collapsed .location-inner {
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
#control-panel.collapsed .panel-header,
|
|
#data-panel.collapsed .panel-header,
|
|
#cctv-panel.collapsed .panel-header,
|
|
#radio-panel.collapsed .panel-header,
|
|
#global-context-panel.collapsed .panel-header,
|
|
#scene-panel.collapsed .panel-header,
|
|
#utilities-panel.collapsed .panel-header,
|
|
#param-slider-panel.collapsed .param-panel-header {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.director-sharing-dialog::backdrop {
|
|
background: rgba(0, 8, 14, 0.65);
|
|
}
|