mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-04 00:10:47 +08:00
Some checks failed
Motion standalone checks / Template library policy (push) Has been cancelled
Motion standalone checks / Maintainability report (push) Has been cancelled
Motion standalone checks / Source checks (push) Has been cancelled
Motion standalone checks / Studio regression (1/2) (push) Has been cancelled
Motion standalone checks / Studio regression (2/2) (push) Has been cancelled
Motion standalone checks / Cloud backend, security scan & container checks (push) Has been cancelled
Motion standalone checks / standalone (push) Has been cancelled
Release default cloud test environment / checks (push) Has been cancelled
Release default cloud test environment / images (push) Has been cancelled
Release default cloud test environment / Publish tested image digests for Argo CD (push) Has been cancelled
Motion release controls / controls (push) Has been cancelled
Publish hosted template catalog / publish (push) Has been cancelled
DSH integration / Optional DSH plugin (push) Has been cancelled
* feat(studio,cloud): redesign editor opening gate with filmstrip readiness and remove cold-open lint contention Replace the card-based asset-loading modal with a seamless solid editor-scoped opening gate that coordinates project files, preview first frame, full composition assets, and initial visible timeline filmstrips with a working 4s escape hatch and 12s auto-release ceiling. Preserve post-entry non-blocking progress bar, live buffering status, retryable failure toast and transport pill, sidebar file-tree error recovery, and thumbnail retry/refresh actions. Cache /api/projects/:id/lint responses by project file+metadata fingerprint with single-flight dedupe and strong content ETags, defer background lint/GSAP AST parses via whenEditorInteractive, and restrict initial offscreen SnapDOM capture to gated timeline clips until the opening cover lifts. * fix(studio): hold non-gated client captures out of thumbnail scheduler slots during opening gate Add openingGateActive hold and preemption on ThumbnailScheduler (keyed by request.gatePriority) synced with usePlayerStore.editorInputLocked so deferred sidebar captures never occupy client-capture concurrency slots before gated timeline clips mount. Upgrade queued non-gated entries when a gated timeline clip leases the same capture key, and add unit regressions covering both queued hold and active preemption. --------- Co-authored-by: 罗高 <luogao@users.noreply.github.com>
205 lines
6.2 KiB
CSS
205 lines
6.2 KiB
CSS
/* Editor-only Studio presentation (loaded lazily with the Motion project editor). */
|
|
@import "./studio/editor-workspace.css";
|
|
@import "./studio/audio-assets.css";
|
|
@import "./studio/media-quick-actions.css";
|
|
@import "./studio/propertyPanelControls.css";
|
|
|
|
/* Shared placement feedback: crisp target geometry and a readable live readout. */
|
|
.motion-placement-outline {
|
|
border: 2px solid var(--motion-accent);
|
|
border-radius: var(--motion-radius-sm);
|
|
background: var(--motion-accent-soft);
|
|
}
|
|
.motion-placement-label {
|
|
position: absolute;
|
|
z-index: 65;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--motion-space-8);
|
|
padding: var(--motion-space-4) var(--motion-space-8);
|
|
border: 1px solid var(--motion-border);
|
|
border-radius: var(--motion-radius-sm);
|
|
background: var(--motion-raised);
|
|
color: var(--motion-strong);
|
|
box-shadow: var(--motion-shadow-sm);
|
|
font-size: var(--motion-text-xs);
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
}
|
|
.motion-placement-label strong { font-family: var(--motion-font-mono); font-weight: var(--motion-weight-medium); font-variant-numeric: tabular-nums; }
|
|
.motion-placement-label[data-snapped] { border-color: var(--motion-accent); }
|
|
|
|
/* Seamless solid full-cover entry gate matching MotionLoading (no modal card or progress text). */
|
|
.motion-editor-cover {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 120;
|
|
display: grid;
|
|
place-items: center;
|
|
align-content: center;
|
|
padding: var(--motion-space-24);
|
|
background: var(--motion-bg);
|
|
color: var(--motion-text);
|
|
user-select: none;
|
|
opacity: 1;
|
|
transition: opacity var(--motion-duration-normal) var(--motion-ease-out);
|
|
}
|
|
.motion-editor-cover[data-visible="false"] {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
.motion-editor-cover-inner {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--motion-space-16);
|
|
text-align: center;
|
|
}
|
|
.motion-editor-cover-mark {
|
|
display: block;
|
|
width: var(--motion-space-40);
|
|
height: var(--motion-space-40);
|
|
background: var(--motion-accent);
|
|
-webkit-mask: url('./brand/loading-mark.svg') center / contain no-repeat;
|
|
mask: url('./brand/loading-mark.svg') center / contain no-repeat;
|
|
animation: motion-preview-mark-breathe var(--motion-duration-loading) var(--motion-ease-standard) infinite alternate;
|
|
}
|
|
.motion-editor-cover-label {
|
|
margin: 0;
|
|
color: var(--motion-muted);
|
|
font: var(--motion-text-sm)/var(--motion-leading-body) var(--motion-font-sans);
|
|
}
|
|
.motion-editor-cover-escape {
|
|
position: absolute;
|
|
top: calc(100% + var(--motion-space-16));
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
animation: motion-preview-loading-enter var(--motion-duration-normal) var(--motion-ease-out) both;
|
|
}
|
|
|
|
/* Non-blocking editor asset progress hairline (bundled into hashed studio CSS). */
|
|
.motion-editor-asset-bar {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
z-index: 60;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
background: var(--motion-accent-soft);
|
|
opacity: 0;
|
|
transition: opacity var(--motion-duration-normal) var(--motion-ease-out);
|
|
}
|
|
.motion-editor-asset-bar[data-visible="true"] {
|
|
opacity: 1;
|
|
}
|
|
.motion-editor-asset-bar-fill {
|
|
height: 100%;
|
|
width: 100%;
|
|
background: var(--motion-accent);
|
|
transform-origin: left center;
|
|
transition: transform var(--motion-duration-normal) var(--motion-ease-out);
|
|
}
|
|
.motion-editor-asset-bar-fill[data-indeterminate="true"] {
|
|
width: 42%;
|
|
background: linear-gradient(90deg, transparent 0%, var(--motion-accent) 50%, transparent 100%);
|
|
animation: motion-asset-bar-sweep var(--motion-duration-loading) var(--motion-ease-standard) infinite;
|
|
}
|
|
@keyframes motion-asset-bar-sweep {
|
|
0% { transform: translateX(-110%); }
|
|
100% { transform: translateX(340%); }
|
|
}
|
|
|
|
/* Frameless preview-stage breathing brand mark (also bundled so deploy cache never drops it). */
|
|
.motion-preview-loading {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 30;
|
|
display: grid;
|
|
place-items: center;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
opacity: 0;
|
|
animation: motion-preview-loading-enter var(--motion-duration-fast) var(--motion-ease-out) 60ms forwards;
|
|
}
|
|
.motion-preview-loading-mark {
|
|
display: block;
|
|
width: var(--motion-space-40);
|
|
height: var(--motion-space-40);
|
|
background: var(--motion-accent);
|
|
-webkit-mask: url('./brand/loading-mark.svg') center / contain no-repeat;
|
|
mask: url('./brand/loading-mark.svg') center / contain no-repeat;
|
|
animation: motion-preview-mark-breathe var(--motion-duration-loading) var(--motion-ease-standard) infinite alternate;
|
|
}
|
|
@keyframes motion-preview-loading-enter {
|
|
to { opacity: 1; }
|
|
}
|
|
@keyframes motion-preview-mark-breathe {
|
|
from { opacity: 0.92; transform: scale(1); }
|
|
to { opacity: 0.42; transform: scale(0.92); }
|
|
}
|
|
|
|
/* Compact transport status indicators: media buffering hint & persistent asset-retry pill. */
|
|
.motion-player-buffering {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--motion-space-4);
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
color: var(--motion-muted);
|
|
font: var(--motion-weight-medium) var(--motion-text-xs)/1 var(--motion-font-sans);
|
|
}
|
|
.motion-player-asset-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--motion-space-4);
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
padding: var(--motion-space-2) var(--motion-space-8);
|
|
border-radius: var(--motion-radius-full);
|
|
background: var(--motion-warning-soft);
|
|
color: var(--motion-warning);
|
|
font: var(--motion-weight-medium) var(--motion-text-xs)/1.3 var(--motion-font-sans);
|
|
cursor: pointer;
|
|
transition: opacity var(--motion-duration-fast) var(--motion-ease-out);
|
|
}
|
|
.motion-player-asset-pill:hover:not(:disabled) {
|
|
opacity: 0.88;
|
|
}
|
|
.motion-player-asset-pill:disabled {
|
|
cursor: default;
|
|
opacity: 0.65;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.motion-editor-cover,
|
|
.motion-editor-asset-bar,
|
|
.motion-editor-asset-bar-fill {
|
|
transition: none;
|
|
}
|
|
.motion-editor-cover-mark {
|
|
opacity: 0.9;
|
|
animation: none;
|
|
}
|
|
.motion-editor-cover-escape {
|
|
animation: none;
|
|
}
|
|
.motion-editor-asset-bar-fill[data-indeterminate="true"] {
|
|
width: 100%;
|
|
opacity: 0.55;
|
|
animation: none;
|
|
}
|
|
.motion-preview-loading {
|
|
opacity: 1;
|
|
animation: none;
|
|
}
|
|
.motion-preview-loading-mark {
|
|
opacity: 0.85;
|
|
animation: none;
|
|
}
|
|
}
|