8c715474f4
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 4s
CI/CD Pipeline / Validate - Style (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 / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker 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 / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 16s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 19s
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 19s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m49s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 3m53s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Successful in 33s
AI Code Review / AI Code Review (pull_request) Successful in 6m43s
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 / CI Gate (pull_request) Successful in 2s
PR Automation / Auto Merge on CI Green + Approved (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 / Build Staging Web Image (push) Successful in 41s
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 / Build Staging Worker Image (push) Successful in 36s
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 / Frontend Unit Tests (push) Successful in 3m55s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 8m8s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m38s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m48s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 4m45s
CI/CD Pipeline / Validate - Style (push) Successful in 27m21s
CI/CD Pipeline / Integration Tests (push) Successful in 26m59s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 31m35s
CI/CD Pipeline / Unit Tests (push) Failing after 35m54s
CI/CD Pipeline / Validate - Security (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
445 lines
8.8 KiB
CSS
445 lines
8.8 KiB
CSS
/* ============================================================
|
|
TitleStylePanel 标题样式面板 — 独立共用样式(#1809 ⑦)
|
|
|
|
从 generate.css 抽取的标题样式区块,供「智能剪辑」与「AI数字人」
|
|
两个页面共用。AI数字人页面不引入 generate.css,直接由
|
|
TitleStylePanel.tsx import 本文件,保证 24 个 T 预设格子的网格布局、
|
|
配色描边、选中态与智能剪辑页面完全一致。
|
|
|
|
注意:本文件规则与 generate.css 中同名规则一一对应、取值相同;
|
|
智能剪辑页面两处同时存在时同优先级同值,不改变其原有呈现。
|
|
============================================================ */
|
|
|
|
/* ── 区块容器 ── */
|
|
.xx-title-style-section {
|
|
margin-top: 22px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-light);
|
|
}
|
|
|
|
.xx-section-subtitle {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0 0 16px;
|
|
}
|
|
|
|
.xx-title-style-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 14px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.xx-half-field {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.xx-field-label-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.xx-field-label-row label {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.xx-field-value {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* ── 共用表单字段(位置/字体下拉) ── */
|
|
.xx-title-style-section .xx-form-field {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.xx-title-style-section .xx-form-field:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.xx-title-style-section .xx-form-field label {
|
|
display: block;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.xx-title-style-section .xx-form-field select,
|
|
.xx-title-style-section .xx-form-field input {
|
|
width: 100%;
|
|
height: 44px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-primary);
|
|
padding: 0 14px;
|
|
font-size: 14px;
|
|
outline: 0;
|
|
transition: 0.15s ease;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.xx-title-style-section .xx-form-field select:focus,
|
|
.xx-title-style-section .xx-form-field input:focus {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
|
|
}
|
|
|
|
/* ── 字号滑块 ── */
|
|
.xx-slider {
|
|
width: 100%;
|
|
height: 6px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: var(--border-color);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.xx-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--primary-color);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
|
|
}
|
|
|
|
.xx-slider::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--primary-color);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
|
|
}
|
|
|
|
/* ── 标题预设卡片网格(24 个 T 格子) ── */
|
|
.xx-title-presets-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 52px);
|
|
gap: 1px;
|
|
}
|
|
|
|
.xx-title-preset-card {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
padding: 0;
|
|
background: #404040;
|
|
border: 2px solid transparent;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.xx-title-preset-card:hover {
|
|
border-color: #666;
|
|
background: #4d4d4d;
|
|
}
|
|
|
|
.xx-title-preset-card.active {
|
|
border-color: #409eff;
|
|
background: #4d4d4d;
|
|
}
|
|
|
|
.xx-title-preset-preview-text {
|
|
font-size: 32px;
|
|
line-height: 1;
|
|
user-select: none;
|
|
}
|
|
|
|
/* ── 样式按钮组(加粗/斜体/描边/阴影) ── */
|
|
.xx-style-btns {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.xx-style-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-primary);
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
color: var(--text-secondary);
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.xx-style-btn:hover {
|
|
border-color: var(--primary-300);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.xx-style-btn.active {
|
|
background: var(--primary-color);
|
|
border-color: var(--primary-color);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ============================================================
|
|
#2001 爆款标题样式面板升级 — 新增样式(ts- 前缀)
|
|
============================================================ */
|
|
|
|
.ts-panel {
|
|
position: relative;
|
|
}
|
|
|
|
/* 预览 */
|
|
.ts-preview-wrap {
|
|
margin-bottom: 14px;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 10px;
|
|
background: #0f172a;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* 表单字段 */
|
|
.ts-form-field {
|
|
margin-bottom: 12px;
|
|
}
|
|
.ts-form-field label {
|
|
display: block;
|
|
font-weight: 600;
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-primary, #1f2937);
|
|
}
|
|
.ts-field-label-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 6px;
|
|
}
|
|
.ts-field-value {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--primary-color, #7c3aed);
|
|
}
|
|
.ts-row-2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
.ts-half {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.ts-select {
|
|
width: 100%;
|
|
height: 34px;
|
|
border: 1px solid var(--border-color, #e5e7eb);
|
|
border-radius: 6px;
|
|
background: var(--bg-primary, #fff);
|
|
padding: 0 10px;
|
|
font-size: 13px;
|
|
outline: 0;
|
|
color: var(--text-primary, #1f2937);
|
|
}
|
|
.ts-select:focus {
|
|
border-color: var(--primary-color, #7c3aed);
|
|
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
|
|
}
|
|
.ts-input {
|
|
width: 100%;
|
|
height: 34px;
|
|
border: 1px solid var(--border-color, #e5e7eb);
|
|
border-radius: 6px;
|
|
padding: 0 10px;
|
|
font-size: 13px;
|
|
outline: 0;
|
|
}
|
|
|
|
.ts-slider {
|
|
width: 100%;
|
|
height: 4px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: #e5e7eb;
|
|
border-radius: 2px;
|
|
outline: none;
|
|
}
|
|
.ts-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #7c3aed;
|
|
cursor: pointer;
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
.ts-slider::-moz-range-thumb {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #7c3aed;
|
|
cursor: pointer;
|
|
border: 2px solid #fff;
|
|
}
|
|
|
|
/* 样式按钮 B/I/S/☁ */
|
|
.ts-style-btns {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
.ts-style-btn {
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 6px;
|
|
border: 1px solid #e5e7eb;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: 0.15s;
|
|
color: #374151;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.ts-style-btn:hover {
|
|
border-color: #7c3aed;
|
|
color: #7c3aed;
|
|
}
|
|
.ts-style-btn.active {
|
|
background: #faf5ff;
|
|
color: #6d28d9;
|
|
border-color: #7c3aed;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* 色板 */
|
|
.ts-color-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
.ts-color-swatch {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 0 0 1px #e5e7eb;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
transition: 0.15s;
|
|
}
|
|
.ts-color-swatch:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
.ts-color-swatch.active {
|
|
box-shadow: 0 0 0 2px #7c3aed;
|
|
transform: scale(1.1);
|
|
}
|
|
.ts-color-custom {
|
|
background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50%/8px 8px;
|
|
color: #666;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
.ts-color-native {
|
|
width: 0;
|
|
height: 0;
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* 预设网格 10个 - 5列 */
|
|
.ts-presets-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 6px;
|
|
}
|
|
.ts-preset-card {
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
transition: 0.15s;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.ts-preset-card:hover {
|
|
border-color: #7c3aed;
|
|
}
|
|
.ts-preset-card.active {
|
|
border-color: #7c3aed;
|
|
background: #faf5ff;
|
|
box-shadow: 0 0 0 1px #7c3aed;
|
|
}
|
|
.ts-preset-preview {
|
|
height: 34px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
border-radius: 4px;
|
|
background: #0f172a;
|
|
}
|
|
.ts-preset-preview canvas {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
.ts-preset-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
font-size: 10px;
|
|
color: #4b5563;
|
|
justify-content: center;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 0 2px 2px;
|
|
}
|
|
.ts-preset-emoji {
|
|
font-size: 11px;
|
|
}
|
|
.ts-preset-label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ts-toggle-row label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
margin-bottom: 10px;
|
|
}
|
|
.ts-toggle-row input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
accent-color: #7c3aed;
|
|
}
|
|
|
|
/* Tabs 紧凑样式 */
|
|
.xx-title-style-section .ant-tabs-nav {
|
|
margin-bottom: 10px;
|
|
}
|
|
.xx-title-style-section .ant-tabs-tab {
|
|
font-size: 12px !important;
|
|
padding: 6px 8px !important;
|
|
}
|