6bf5a88cbc
- 侧栏:结构、样式与收起交互对齐用户中心,去掉标题块与装饰 - 页头:云端大脑 / 图片生成 / 视频生成统一用户中心页头规格,去掉标题图标,页底与 /console/analytics 统一 - 云端大脑:专家广场 / 我的任务改为线型页签(对齐数据看板),页头操作右置 - 图片生成:参数栏固定、右侧整列局部滚动;工具栏单行,筛选固定宽度省略并悬停提示,清除筛选前置;两行卡片按可视高度拉伸并与左栏底边对齐;空状态居中;对比勾选框缩小居中 - 视频生成:任务队列浮层覆盖展开,表格对齐密钥管理列表,分页移出滚动区修复抖动,任务 ID 完整展示,状态去图标居中 - 三页底部内边距减半统一 验证:ESLint / Prettier / git diff --check 通过,单测 875 项通过;本地 Playwright 浅深主题 × 1920×951 / 1920×1080 / 393×851 布局与交互、6 套主题色兼容回归通过(图片 / 视频任务为模拟数据)
440 lines
7.9 KiB
CSS
440 lines
7.9 KiB
CSS
/*
|
|
* 体验中心图像生成表单中 schema 驱动的新增区块(WP A2-3)。
|
|
* 配色全部从主题 token 派生(frontend-design skill 铁律一),禁止裸色值。
|
|
*/
|
|
.image-generation-form {
|
|
--igf-ink: var(--text-primary);
|
|
--igf-muted: var(--text-secondary);
|
|
--igf-line: var(--border-subtle);
|
|
--igf-surface: var(--surface-card);
|
|
--igf-accent: var(--brand-accent);
|
|
--igf-fill: color-mix(in srgb, var(--text-primary) 4%, var(--surface-card));
|
|
--igf-danger: var(--ui-color-danger);
|
|
--igf-warning: var(--ui-color-warning);
|
|
--igf-ring: var(--brand-accent);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
border: 1px solid var(--igf-line);
|
|
border-radius: 12px;
|
|
background: var(--igf-surface);
|
|
color: var(--igf-ink);
|
|
}
|
|
|
|
.igf-form-scroll {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
padding: 14px 16px 16px;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.igf-form-scroll[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.igf-header {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 62px;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--igf-line);
|
|
}
|
|
|
|
.igf-header-copy {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.igf-header-actions {
|
|
display: flex;
|
|
flex: none;
|
|
gap: 6px;
|
|
}
|
|
|
|
.igf-title {
|
|
/* 卡片区块标题:与右侧“生成历史”同级(18 / 26px / 650),页面级标题在 ExperiencePageHeader */
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 650;
|
|
line-height: 26px;
|
|
}
|
|
|
|
.igf-description {
|
|
display: block;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
color: var(--igf-muted);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.igf-section + .igf-section {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.igf-field-heading {
|
|
margin: 0 0 8px;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.igf-configuration,
|
|
.igf-parameters {
|
|
padding: 12px;
|
|
border: 1px solid var(--igf-line);
|
|
border-radius: 10px;
|
|
background: var(--igf-fill);
|
|
}
|
|
|
|
.igf-mode-field {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.igf-mode-group.cp-option-group {
|
|
display: flex;
|
|
width: 100%;
|
|
gap: 3px;
|
|
background: var(--igf-surface);
|
|
}
|
|
|
|
.igf-mode-group .cp-option {
|
|
flex: 1 1 auto;
|
|
padding-inline: 6px;
|
|
}
|
|
|
|
.igf-mode-group .cp-option.is-selected {
|
|
border-color: var(--igf-accent);
|
|
background: var(--brand-selection-bg);
|
|
color: var(--brand-selection-text);
|
|
}
|
|
|
|
.igf-editor {
|
|
border: 1px solid var(--igf-line);
|
|
border-radius: 10px;
|
|
background: var(--igf-fill);
|
|
}
|
|
|
|
.igf-editor:focus-within {
|
|
border-color: var(--igf-accent);
|
|
}
|
|
|
|
.igf-editor textarea.ant-input {
|
|
min-height: 78px;
|
|
padding: 9px 10px;
|
|
resize: vertical;
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.igf-editor-toolbar,
|
|
.igf-editor-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.igf-editor-toolbar {
|
|
justify-content: space-between;
|
|
padding: 4px 6px;
|
|
border-top: 1px solid var(--igf-line);
|
|
}
|
|
|
|
.igf-editor-actions .ant-btn {
|
|
padding-inline: 7px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.igf-shortcut {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
padding: 1px 5px;
|
|
border: 1px solid var(--igf-line);
|
|
border-radius: 5px;
|
|
color: var(--igf-muted);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.igf-history-item {
|
|
display: block;
|
|
overflow: hidden;
|
|
max-width: min(280px, 70vw);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.igf-templates {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.igf-templates .ant-btn {
|
|
flex: 1 1 27%;
|
|
min-height: 28px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.igf-templates-label {
|
|
flex-basis: 100%;
|
|
color: var(--igf-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.igf-generate .igf-submit.ant-btn {
|
|
height: 42px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Keep disabled generation actions grounded in the same surface and border token. */
|
|
.image-generation-form .igf-generate .ant-btn:disabled,
|
|
.image-generation-form .igf-generate .ant-btn[disabled] {
|
|
border: 1px solid var(--igf-line);
|
|
background: var(--igf-fill);
|
|
box-shadow: none;
|
|
color: var(--igf-muted);
|
|
cursor: not-allowed;
|
|
opacity: 1;
|
|
}
|
|
|
|
.image-generation-form .igf-generate .ant-btn:disabled:hover,
|
|
.image-generation-form .igf-generate .ant-btn[disabled]:hover {
|
|
border-color: var(--igf-line);
|
|
background: var(--igf-fill);
|
|
box-shadow: none;
|
|
color: var(--igf-muted);
|
|
}
|
|
|
|
.image-generation-form button:focus-visible,
|
|
.image-generation-form [role='button']:focus-visible {
|
|
outline: 2px solid var(--igf-ring);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* 历史卡片拖入时的整卡高亮 */
|
|
.image-generation-form.is-drop-active {
|
|
outline: 2px dashed
|
|
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
|
|
outline-offset: -6px;
|
|
}
|
|
|
|
.igf-muted {
|
|
color: var(--igf-muted);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.igf-note {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.igf-hint {
|
|
flex-basis: 100%;
|
|
color: var(--igf-muted);
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.igf-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.igf-state-title {
|
|
color: var(--igf-ink);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.igf-state.is-error .igf-state-title {
|
|
color: var(--igf-danger);
|
|
}
|
|
|
|
.igf-model-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.igf-model-name,
|
|
.igf-model-id {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.igf-model-id {
|
|
color: var(--igf-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.igf-model-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px 16px;
|
|
margin-top: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
background: var(--igf-fill);
|
|
color: var(--igf-muted);
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.igf-model-meta strong {
|
|
color: var(--igf-ink);
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.igf-model-desc {
|
|
flex-basis: 100%;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.igf-mode-option {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.igf-slots {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.igf-slots .cp-slot {
|
|
width: 100%;
|
|
height: auto;
|
|
aspect-ratio: 1;
|
|
border-radius: 9px;
|
|
}
|
|
|
|
.igf-reference-hint {
|
|
margin: 6px 0 0;
|
|
}
|
|
|
|
.igf-size .cp-option-group--ratio {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 78px), 1fr));
|
|
}
|
|
|
|
.igf-size .cp-option-group--ratio .cp-option {
|
|
gap: 3px;
|
|
min-width: 0;
|
|
padding: 6px 4px;
|
|
}
|
|
|
|
.igf-size .cp-option-group--ratio .cp-option-label {
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.igf-size-dims {
|
|
color: var(--igf-muted);
|
|
font-size: 10px;
|
|
line-height: 14px;
|
|
}
|
|
|
|
.igf-size-custom {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.igf-size-custom .ant-input-number {
|
|
flex: 1 1 110px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.igf-size-x {
|
|
color: var(--igf-muted);
|
|
}
|
|
|
|
.igf-dock-params {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.igf-advanced-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-height: 34px;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--igf-line);
|
|
border-radius: 8px;
|
|
color: var(--igf-muted);
|
|
font-size: 13px;
|
|
text-align: start;
|
|
}
|
|
|
|
.igf-advanced-trigger span {
|
|
flex: 1;
|
|
}
|
|
|
|
.igf-advanced-trigger:hover,
|
|
.igf-advanced-trigger[aria-expanded='true'] {
|
|
border-color: var(--igf-accent);
|
|
background: var(--brand-selection-bg);
|
|
color: var(--brand-selection-text);
|
|
}
|
|
|
|
.igf-advanced-content {
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.igf-generate {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.igf-generate-wrap {
|
|
flex: 0 0 auto;
|
|
padding: 12px 16px max(12px, env(safe-area-inset-bottom));
|
|
border-top: 1px solid var(--igf-line);
|
|
background: var(--igf-surface);
|
|
}
|
|
|
|
.igf-collapsed-summary {
|
|
overflow: hidden;
|
|
margin: 0 0 8px;
|
|
color: var(--igf-muted);
|
|
font-size: 12px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.igf-quote {
|
|
min-height: 18px;
|
|
color: var(--igf-muted);
|
|
font-size: 12px;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 18px;
|
|
text-align: center;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.igf-quote.is-warning {
|
|
color: var(--igf-warning);
|
|
}
|