102 lines
2.6 KiB
CSS
102 lines
2.6 KiB
CSS
/*
|
|
* 任务日志内容 / 视频预览弹窗(ContentModal)内部样式。
|
|
* 原型“消耗明细 → 绘图与视频 → 点击预览视频”未定义弹框,按“未定义项”规则:
|
|
* Ant Design Modal 默认结构(标题栏、右上关闭、页脚按钮、遮罩)+ 全局 token;无装饰、阴影与动画。
|
|
* 颜色只引用 UiThemeProvider TokenBridge 注入 body 的 --ui-* 变量(由 Ant token 生成),
|
|
* Portal 内同样可继承,浅色 / 深色 / 自定义主题色自动联动。选择器以 :where() 降低优先级,不用 !important。
|
|
*/
|
|
:where(.task-video-modal) .task-video-stage {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
overflow: hidden;
|
|
border: 1px solid var(--ui-color-border-light);
|
|
border-radius: var(--ui-border-radius-medium);
|
|
background: var(--ui-color-fill-0);
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-player {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-loading {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* 空态 / 播放失败态:与播放区同为 16:9 占位,内容居中 */
|
|
:where(.task-video-modal) .task-video-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
width: 100%;
|
|
min-height: 0;
|
|
aspect-ratio: 16 / 9;
|
|
padding: 24px;
|
|
border: 1px dashed var(--ui-color-border);
|
|
border-radius: var(--ui-border-radius-medium);
|
|
background: var(--ui-color-fill-0);
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-state .ant-empty {
|
|
margin: 0;
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-reasons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
color: var(--ui-color-text-1);
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-reasons p {
|
|
margin: 0 0 4px;
|
|
color: var(--ui-color-text);
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-url {
|
|
display: block;
|
|
max-width: 100%;
|
|
padding: 8px 12px;
|
|
border-radius: var(--ui-border-radius-small);
|
|
background: var(--ui-color-fill-1);
|
|
font-family: var(--ui-font-family-mono);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
:where(.task-video-modal) .task-video-footer .ant-btn {
|
|
height: var(--task-video-button-height);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
:where(.task-video-modal) .task-video-state {
|
|
aspect-ratio: auto;
|
|
min-height: 220px;
|
|
padding: 16px;
|
|
}
|
|
}
|