Files
monkey-ai-web/src/pages/ExperienceCenter/components/AICreation/Video/VideoWorkspace.css
T

322 lines
6.5 KiB
CSS

.video-workspace {
display: flex;
flex-direction: column;
height: 100%;
/* 内容边距与用户中心一致(GLOBAL_UI_BASELINE 4.4),底部取一半与图片生成页统一;页头与首块间距由 .uc-page-header 的 18px 提供 */
padding: var(--uc-page-pad-top) var(--uc-page-pad-x)
calc(var(--uc-page-pad-bottom) / 2);
overflow: auto;
}
.video-workspace > .exp-page-header {
flex: none;
}
.video-panel-heading {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.video-workspace-capabilities {
--vw-capability-line: color-mix(
in srgb,
var(--brand-accent) 26%,
var(--border-subtle)
);
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.video-workspace-capabilities li {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border: 1px solid var(--vw-capability-line);
border-radius: 999px;
background: var(--brand-selection-bg);
color: var(--brand-selection-text);
font-size: 12px;
font-weight: 600;
line-height: 18px;
}
.video-workspace-capabilities svg {
flex: none;
}
.video-preview-empty-icon {
display: grid;
flex: none;
place-items: center;
width: 46px;
height: 46px;
color: var(--brand-selection-text);
background: var(--brand-selection-bg);
border-radius: 10px;
}
.video-workspace-body {
display: flex;
flex: 1;
flex-direction: column;
gap: 16px;
height: 100%;
min-height: 0;
min-width: 0;
}
.video-workspace-grid {
display: grid;
flex: 1;
grid-template-columns: clamp(312px, 26%, 420px) minmax(0, 1fr);
gap: 16px;
min-height: 310px;
}
.video-workspace-composer {
display: flex;
align-items: flex-start;
min-width: 0;
min-height: 0;
}
.video-panel-header {
display: flex;
flex: none;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 57px;
padding: 10px 16px;
border-bottom: 1px solid var(--border-subtle);
}
.video-panel-header:last-child {
border-bottom: 0;
}
.video-panel-heading {
gap: 8px;
color: var(--brand-accent);
}
.video-panel-heading h2 {
margin: 0;
color: var(--text-primary);
font-size: 15px;
font-weight: 600;
line-height: 22px;
}
.video-queue {
/* 表格配色与密钥管理列表(key-management.css 的 --km-*)同值 */
--vq-head-bg: #f8f9fc;
--vq-head-text: #687589;
--vq-row-split: #f0f0f0;
--vq-text: rgba(0, 0, 0, 0.88);
position: relative;
flex: none;
min-width: 0;
}
html.dark .video-queue {
--vq-head-bg: var(--ui-color-fill-0);
--vq-head-text: var(--text-secondary);
--vq-row-split: var(--border-subtle);
--vq-text: var(--uc-heading);
}
.video-queue-panel {
background: var(--surface-card);
border: 1px solid var(--border-subtle);
border-radius: 12px;
}
/* 宽屏:队列占位只保留折叠条高度(52px 按钮 + 2px 边框),展开内容以浮层自底向上覆盖,
不推挤上方的参数 / 预览区;窄屏整页滚动,保持文档流内展开 */
@media (min-width: 1025px) {
.video-queue {
height: 54px;
}
.video-queue-panel {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 20;
}
.video-queue[data-expanded='true'] .video-queue-panel {
box-shadow: 0 -12px 32px
color-mix(in srgb, var(--text-primary) 14%, transparent);
}
.video-queue[data-expanded='true'] .video-queue-table {
max-height: clamp(160px, 40dvh, 400px);
}
}
.video-queue-heading {
margin: 0;
}
.video-queue-toggle {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
min-height: 52px;
padding: 8px 16px;
border: 0;
border-radius: 11px;
background: transparent;
color: var(--text-primary);
text-align: start;
font: inherit;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
.video-queue-toggle > svg:first-child {
color: var(--brand-accent);
}
.video-queue-toggle:hover {
background: var(--surface-bg-base);
}
.video-queue-toggle:focus-visible {
outline: 2px solid var(--brand-accent);
outline-offset: -3px;
}
.video-queue-toggle[aria-expanded='true'] {
border-end-start-radius: 0;
border-end-end-radius: 0;
}
.video-queue-count {
min-width: 23px;
padding: 2px 6px;
border-radius: 6px;
background: var(--surface-bg-base);
color: var(--text-secondary);
text-align: center;
font-size: 12px;
font-variant-numeric: tabular-nums;
}
.video-queue-chevron {
margin-inline-start: auto;
color: var(--text-secondary);
}
.video-queue-toggle[aria-expanded='true'] .video-queue-chevron {
transform: rotate(180deg);
}
.video-queue-content {
border-top: 1px solid var(--border-subtle);
}
.video-queue-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 16px;
padding: 10px 16px;
border-bottom: 1px solid var(--border-subtle);
}
.video-queue-table {
min-width: 0;
max-height: clamp(120px, 24dvh, 260px);
overflow: auto;
/* 预留滚动条位置:行数变化或下拉展开时不因滚动条出现 / 消失而横向抖动 */
scrollbar-gutter: stable;
}
/* 表格样式与交互对齐密钥管理列表:middle 尺寸、表头 46px 常规字重、行分隔线、文字链接操作 */
.video-queue-grid .ant-table-thead > tr > th {
--center-table-head-bg: var(--vq-head-bg);
height: 46px;
padding-block: 0;
border-bottom-color: var(--vq-row-split);
background: var(--vq-head-bg);
color: var(--vq-head-text);
font-weight: 400;
}
.video-queue-grid .ant-table-thead > tr > th::before {
display: none;
}
.video-queue-grid .ant-table-tbody > tr > td {
border-bottom-color: var(--vq-row-split);
color: var(--vq-text);
}
.video-queue-grid .ant-tag {
margin-inline-end: 0;
}
/* 状态:仅文字 + 边框,单元格内水平垂直居中 */
.video-queue-grid .video-queue-status.ant-tag {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
vertical-align: middle;
}
.video-queue-actions {
display: flex;
align-items: center;
gap: 6px;
}
.video-queue-actions .video-queue-link.ant-btn {
height: auto;
padding: 0;
}
/* 分页器在表格滚动区之外,位置固定,不随表格内容滚动或跳动 */
.video-queue-pagination {
display: flex;
justify-content: flex-end;
padding: 12px 16px;
border-top: 1px solid var(--vq-row-split);
}
@media (max-width: 767px) {
.video-workspace-capabilities {
flex-basis: 100%;
}
}
@media (max-width: 1024px) {
.video-workspace-body {
flex: none;
height: auto;
}
.video-workspace-grid {
grid-template-columns: minmax(0, 1fr);
min-height: 0;
}
.video-queue-table {
max-height: 320px;
}
}