feat(scripts): #1811 样式适配新UI(卡片hover/标签/meta/筛选栏)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 4s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 4s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 1m1s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 32s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m42s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 1m25s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m51s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 3m24s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 3m8s
AI Code Review / AI Code Review (pull_request) Successful in 6m43s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 7m21s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Failing after 2s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 5m47s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 28h56m3s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 29h1m17s
CI/CD Pipeline / PR Build Worker Image (pull_request) Failing after 29h1m47s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 29h2m27s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 29h1m5s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 29h1m10s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 29h1m10s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 29h1m10s
CI/CD Pipeline / PR Build API Image (pull_request) Failing after 29h1m18s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 29h2m52s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 29h2m53s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 29h2m53s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 28h55m27s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 28h55m27s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 28h55m27s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 29h0m39s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 29h0m39s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 29h2m57s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 28h55m26s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 29h1m50s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 4s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 4s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 1m1s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 32s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m42s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 1m25s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m51s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 3m24s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 3m8s
AI Code Review / AI Code Review (pull_request) Successful in 6m43s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 7m21s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Failing after 2s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 5m47s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 28h56m3s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 29h1m17s
CI/CD Pipeline / PR Build Worker Image (pull_request) Failing after 29h1m47s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 29h2m27s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 29h1m5s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 29h1m10s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 29h1m10s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 29h1m10s
CI/CD Pipeline / PR Build API Image (pull_request) Failing after 29h1m18s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 29h2m52s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 29h2m53s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 29h2m53s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 28h55m27s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 28h55m27s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 28h55m27s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 29h0m39s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 29h0m39s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 29h2m57s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 28h55m26s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 29h1m50s
This commit is contained in:
@@ -1,137 +1,168 @@
|
||||
/**
|
||||
* 文案库页面 - V21 设计系统样式
|
||||
* 单列卡片列表,风格对齐标题库(xx-titles-page)
|
||||
* 文案库页面样式(#1811 v2)
|
||||
* 风格对齐标题库,新增卡片 hover 阴影、标签/meta 行、筛选栏样式
|
||||
*/
|
||||
@import "../../styles/global.css";
|
||||
|
||||
/* ============================================================
|
||||
页面容器
|
||||
============================================================ */
|
||||
.xx-scripts-page {
|
||||
min-height: 100%;
|
||||
padding: var(--space-xl);
|
||||
padding: 24px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.xx-scripts-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-lg);
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
顶部筛选栏
|
||||
============================================================ */
|
||||
/* ── 筛选栏 ── */
|
||||
.xx-scripts-filters {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-md);
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
padding: 12px 16px;
|
||||
background: var(--bg-card, #fff);
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-color, #f0f0f0);
|
||||
}
|
||||
|
||||
.xx-scripts-filters-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.xx-scripts-filters-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
列表
|
||||
============================================================ */
|
||||
/* ── 列表 ── */
|
||||
.xx-scripts-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.xx-scripts-loading {
|
||||
text-align: center;
|
||||
color: var(--text-secondary);
|
||||
padding: var(--space-xl);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
文案卡片(对齐标题卡片风格,单列)
|
||||
============================================================ */
|
||||
.xx-script-card {
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--bg-primary);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-md);
|
||||
transition: var(--transition-all);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
transition:
|
||||
box-shadow 0.2s,
|
||||
transform 0.2s;
|
||||
}
|
||||
|
||||
.xx-script-card:hover {
|
||||
border-color: var(--primary-color);
|
||||
background: var(--bg-secondary);
|
||||
box-shadow: var(--shadow-sm);
|
||||
box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.xx-script-card .ant-card-body {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.xx-script-card-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-md);
|
||||
gap: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.xx-script-title {
|
||||
font-size: var(--font-size-base);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--text-primary);
|
||||
line-height: 1.5;
|
||||
word-break: break-word;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.xx-script-actions {
|
||||
.xx-script-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xxs);
|
||||
flex-shrink: 0;
|
||||
opacity: 0;
|
||||
transition: var(--transition-opacity, opacity 0.2s);
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.xx-script-card:hover .xx-script-actions {
|
||||
opacity: 1;
|
||||
.xx-script-title {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary, #1f1f1f);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.xx-script-actions {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.xx-script-actions .ant-btn {
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.xx-script-preview {
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary, #666);
|
||||
line-height: 1.6;
|
||||
word-break: break-word;
|
||||
margin-bottom: 8px;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.xx-script-title-text {
|
||||
font-size: 12px;
|
||||
color: var(--text-tertiary, #999);
|
||||
margin-bottom: 6px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.xx-script-label {
|
||||
color: var(--text-tertiary, #999);
|
||||
}
|
||||
|
||||
.xx-script-tags {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.xx-script-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
font-size: var(--font-size-xs, 12px);
|
||||
color: var(--text-tertiary);
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
color: var(--text-tertiary, #999);
|
||||
}
|
||||
.xx-script-meta-sep {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
弹窗表单
|
||||
============================================================ */
|
||||
.xx-script-form {
|
||||
/* ── 分页 ── */
|
||||
.xx-scripts-pagination {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
justify-content: center;
|
||||
padding: 16px 0;
|
||||
}
|
||||
|
||||
.xx-script-form textarea.ant-input {
|
||||
resize: vertical;
|
||||
.xx-scripts-loading {
|
||||
padding: 48px;
|
||||
text-align: center;
|
||||
color: var(--text-tertiary, #999);
|
||||
}
|
||||
|
||||
/* ── 弹窗表单 ── */
|
||||
.xx-script-form .ant-form-item {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* ── 响应式 ── */
|
||||
@media (max-width: 768px) {
|
||||
.xx-scripts-page {
|
||||
padding: 16px 12px;
|
||||
}
|
||||
.xx-scripts-list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.xx-scripts-filters {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
.xx-scripts-filters-left {
|
||||
width: 100%;
|
||||
}
|
||||
.xx-scripts-filters-left .ant-input,
|
||||
.xx-scripts-filters-left .ant-select {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user