1f3b04cde5
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 3s
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Check push changed paths (push) Successful in 7s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Validate - Style (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Validate - Security (pull_request) Has been skipped
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (push) Successful in 1m41s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 40s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m57s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 3m6s
CI/CD Pipeline / Validate - Style (push) Successful in 3m23s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m16s
CI/CD Pipeline / Build Staging API Image (push) Successful in 3m4s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 3m13s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 4m53s
CI/CD Pipeline / Validate - Security (push) Successful in 5m28s
AI Code Review / AI Code Review (pull_request) Successful in 6m51s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 10m12s
CI/CD Pipeline / PR Build Worker Image (pull_request) Failing after 10m12s
CI/CD Pipeline / CI Gate (pull_request) Failing after 2s
CI/CD Pipeline / Unit Tests (push) Successful in 10m26s
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Has been skipped
CI/CD Pipeline / CI Gate (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 16m35s
CI/CD Pipeline / Retag skipped Staging API Image (push) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (push) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 43s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m40s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 2m54s
CI/CD Pipeline / Canary Release to Production (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 4m1s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
564 lines
8.8 KiB
CSS
564 lines
8.8 KiB
CSS
/**
|
|
* 共享封面编辑器样式(智能剪辑 generate + AI数字人 ai-avatar 共用)
|
|
* #2033:从 generate.css 抽取 xx-ce-* / xx-cover-template-* / xx-cover-modal-* 规则
|
|
*/
|
|
|
|
.xx-cover-modal-toolbar {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.xx-cover-template-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px;
|
|
}
|
|
|
|
.xx-cover-template-card {
|
|
border: 2px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.xx-cover-template-card:hover {
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.xx-cover-template-card.selected {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
|
|
}
|
|
|
|
.xx-cover-template-thumb {
|
|
aspect-ratio: 9/16;
|
|
background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 32px;
|
|
color: #ccc;
|
|
position: relative;
|
|
}
|
|
|
|
.xx-cover-template-info {
|
|
padding: 8px;
|
|
}
|
|
|
|
.xx-cover-template-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.xx-cover-template-badge {
|
|
font-size: 11px;
|
|
color: #7c3aed;
|
|
background: rgba(124, 58, 237, 0.1);
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.xx-cover-template-date {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.xx-cover-template-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.xx-ce-header {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.xx-ce-name-input {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--border-color, #e5e7eb);
|
|
border-radius: var(--radius-sm, 6px);
|
|
font-size: 14px;
|
|
margin-bottom: 12px;
|
|
outline: none;
|
|
}
|
|
|
|
.xx-ce-name-input:focus {
|
|
border-color: #7c3aed;
|
|
}
|
|
|
|
.xx-ce-header-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.xx-ce-layout {
|
|
display: flex;
|
|
gap: 20px;
|
|
min-height: 500px;
|
|
}
|
|
|
|
.xx-ce-left {
|
|
width: 300px;
|
|
flex-shrink: 0;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.xx-ce-right {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #f5f5f5;
|
|
border-radius: 8px;
|
|
min-height: 480px;
|
|
}
|
|
|
|
.xx-ce-section {
|
|
border: 1px solid var(--border-color, #e5e7eb);
|
|
border-radius: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.xx-ce-section-header {
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: #f0f4ff;
|
|
user-select: none;
|
|
}
|
|
|
|
.xx-ce-section-header:hover {
|
|
background: #e8edf8;
|
|
}
|
|
|
|
.xx-ce-section-body {
|
|
padding: 12px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary, #666);
|
|
}
|
|
|
|
.xx-ce-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.xx-ce-status-text {
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.xx-ce-row {
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.xx-ce-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #374151;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.xx-ce-hint {
|
|
font-size: 11px;
|
|
color: #9ca3af;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.xx-ce-sub-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.xx-ce-switch-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.xx-ce-switch-item {
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
}
|
|
|
|
.xx-ce-switch-item:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.xx-ce-color-picker {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.xx-ce-color-picker input[type="color"] {
|
|
width: 32px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background: none;
|
|
}
|
|
|
|
.xx-ce-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
|
|
padding: 1px;
|
|
}
|
|
|
|
.xx-ce-color-picker input[type="color"]::-webkit-color-swatch {
|
|
border: none;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.xx-ce-color-hex {
|
|
width: 70px;
|
|
padding: 2px 6px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.xx-ce-position {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.xx-ce-position .ant-input-number {
|
|
flex: 1;
|
|
}
|
|
|
|
.xx-ce-radio-group {
|
|
display: flex;
|
|
gap: 0;
|
|
}
|
|
|
|
.xx-ce-radio-btn {
|
|
padding: 4px 14px;
|
|
font-size: 12px;
|
|
border: 1px solid #d1d5db;
|
|
background: #fff;
|
|
color: #374151;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.xx-ce-radio-btn:first-child {
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
|
|
.xx-ce-radio-btn:last-child {
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
.xx-ce-radio-btn + .xx-ce-radio-btn {
|
|
border-left: none;
|
|
}
|
|
|
|
.xx-ce-radio-btn.active {
|
|
background: #7c3aed;
|
|
color: #fff;
|
|
border-color: #7c3aed;
|
|
}
|
|
|
|
.xx-ce-radio-btn.active + .xx-ce-radio-btn {
|
|
border-left: 1px solid #d1d5db;
|
|
}
|
|
|
|
.xx-ce-font-dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
margin-right: 6px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.xx-ce-font-dot--preset {
|
|
background: #10b981;
|
|
}
|
|
|
|
.xx-ce-font-dot--system {
|
|
background: #3b82f6;
|
|
}
|
|
|
|
.xx-ce-shadow-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.xx-ce-add-shadow-btn {
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
background: #7c3aed;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.xx-ce-add-shadow-btn:hover {
|
|
background: #6d28d9;
|
|
}
|
|
|
|
.xx-ce-preset-shadow-btn {
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
background: #fff;
|
|
color: #374151;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.xx-ce-text-bg-section {
|
|
margin-top: 8px;
|
|
padding: 8px;
|
|
background: #fafafa;
|
|
border-radius: 4px;
|
|
border: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.xx-ce-readonly-text {
|
|
padding: 6px 10px;
|
|
background: #eff6ff;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
color: #1e40af;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.xx-ce-file-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.xx-ce-file-name {
|
|
flex: 1;
|
|
padding: 4px 8px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
background: #f9fafb;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.xx-ce-file-btn {
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
background: #fff;
|
|
color: #374151;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.xx-ce-file-btn:hover {
|
|
border-color: #7c3aed;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.xx-ce-canvas-wrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.xx-ce-canvas {
|
|
width: 225px;
|
|
height: 400px;
|
|
background: #ddd;
|
|
position: relative;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.xx-ce-anchor-dot {
|
|
position: absolute;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: #ef4444;
|
|
border-radius: 50%;
|
|
z-index: 5;
|
|
}
|
|
|
|
.xx-ce-el-portrait {
|
|
position: absolute;
|
|
background: #a8d4f0;
|
|
border: 2px solid #333;
|
|
z-index: 2;
|
|
}
|
|
|
|
.xx-ce-handle {
|
|
position: absolute;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: #3b82f6;
|
|
border: 1px solid #fff;
|
|
z-index: 10;
|
|
}
|
|
|
|
.xx-ce-handle--0 {
|
|
top: -4px;
|
|
left: -4px;
|
|
}
|
|
|
|
.xx-ce-handle--1 {
|
|
top: -4px;
|
|
left: 50%;
|
|
margin-left: -4px;
|
|
}
|
|
|
|
.xx-ce-handle--2 {
|
|
top: -4px;
|
|
right: -4px;
|
|
}
|
|
|
|
.xx-ce-handle--3 {
|
|
top: 50%;
|
|
right: -4px;
|
|
margin-top: -4px;
|
|
}
|
|
|
|
.xx-ce-handle--4 {
|
|
bottom: -4px;
|
|
right: -4px;
|
|
}
|
|
|
|
.xx-ce-handle--5 {
|
|
bottom: -4px;
|
|
left: 50%;
|
|
margin-left: -4px;
|
|
}
|
|
|
|
.xx-ce-handle--6 {
|
|
bottom: -4px;
|
|
left: -4px;
|
|
}
|
|
|
|
.xx-ce-handle--7 {
|
|
top: 50%;
|
|
left: -4px;
|
|
margin-top: -4px;
|
|
}
|
|
|
|
.xx-ce-el-bg {
|
|
position: absolute;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
z-index: 1;
|
|
}
|
|
|
|
.xx-ce-el-mask {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.xx-ce-text-bg {
|
|
position: absolute;
|
|
z-index: -1;
|
|
}
|
|
|
|
.xx-cover-template-check {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 22px;
|
|
height: 22px;
|
|
background: #7c3aed;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
z-index: 2;
|
|
box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
|
|
}
|
|
|
|
.xx-cover-template-thumb {
|
|
position: relative;
|
|
}
|
|
|
|
.xx-ce-preview-tip {
|
|
text-align: center;
|
|
margin-top: 12px;
|
|
font-size: 12px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.xx-ce-canvas {
|
|
background: #1a1a2e;
|
|
}
|
|
|
|
.xx-ce-section-body .ant-slider {
|
|
margin: 4px 0 8px;
|
|
}
|
|
|
|
.xx-ce-section-body .ant-slider-rail {
|
|
background: #e5e7eb;
|
|
}
|
|
|
|
.xx-ce-section-body .ant-slider-track {
|
|
background: #3b82f6;
|
|
}
|
|
|
|
.xx-ce-section-body .ant-slider-handle::after {
|
|
box-shadow: 0 0 0 2px #3b82f6;
|
|
}
|
|
|
|
.xx-ce-section-body .ant-slider-mark-text {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.xx-ce-font-select-dropdown .ant-select-item-option-content {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.xx-ce-canvas > div {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Text panel wrapper */
|
|
.xx-ce-text-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Canvas base gradient layer (behind all elements) */
|
|
.xx-ce-canvas-base {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
|
|
}
|