的撒法
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-11-24 12:55:28 +08:00
parent 29fe7c606a
commit 789d56842c
4 changed files with 187 additions and 1664 deletions

View File

@@ -7,6 +7,30 @@
.template {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
/* 隐藏加载时的闪烁 */
[v-cloak] {
display: none;
}
/* 页面标题优化 */
.template > h1 {
font-size: 28px;
font-weight: 700;
color: #1e293b;
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 2px solid #e2e8f0;
display: flex;
align-items: center;
gap: 12px;
}
.template > h1::before {
content: '🎨';
font-size: 32px;
}
/* 卡片优化 - 增加层次感和呼吸感 */
@@ -16,17 +40,33 @@
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease;
overflow: hidden;
background: white;
}
.theme-card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
}
/* 卡片标题优化 */
.theme-card .t-card__title {
font-size: 18px;
font-weight: 600;
color: #1e293b;
padding: 20px 24px;
border-bottom: 2px solid #f1f5f9;
background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.theme-card .t-card__body {
padding: 24px;
}
/* 表单网格 - 优化间距和布局 */
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 24px;
padding: 4px 0;
}
@@ -34,7 +74,7 @@
.form-item {
display: flex;
flex-direction: column;
min-height: 70px;
min-height: 76px;
}
.form-item--full {
@@ -44,9 +84,9 @@
/* 标签样式优化 - 更清晰的视觉层次 */
.form-item label {
font-size: 14px;
font-weight: 500;
font-weight: 600;
color: #374151;
margin-bottom: 8px;
margin-bottom: 10px;
display: flex;
align-items: center;
line-height: 1.5;
@@ -55,11 +95,11 @@
.form-item label::before {
content: '';
width: 3px;
height: 14px;
background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
height: 16px;
background: linear-gradient(180deg, #38BDF8 0%, #6366F1 100%);
border-radius: 2px;
margin-right: 8px;
opacity: 0.6;
margin-right: 10px;
opacity: 0.8;
}
/* Switch 开关优化 - 解决"新窗口打开"文字过长问题 */
@@ -67,10 +107,10 @@
flex-direction: row;
align-items: center;
justify-content: space-between;
min-height: 48px;
padding: 12px 16px;
min-height: 52px;
padding: 14px 18px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-radius: 8px;
border-radius: 10px;
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
}
@@ -78,82 +118,86 @@
.form-item--switch:hover {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
border-color: #cbd5e1;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.form-item--switch label {
margin-bottom: 0;
font-size: 13px;
font-size: 14px;
flex: 1;
}
.form-item--switch label::before {
display: none;
}
/* Switch 标签图标优化 */
.switch-label {
display: flex;
align-items: center;
gap: 6px;
color: #64748b;
font-size: 13px;
font-weight: 500;
}
.form-item--switch label::before {
background: linear-gradient(180deg, #38BDF8 0%, #6366F1 100%);
height: 14px;
width: 3px;
}
/* Switch 标签图标优化 */
.switch-label-icon {
width: 16px;
height: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
width: 18px;
height: 18px;
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
border-radius: 4px;
color: white;
font-size: 10px;
font-weight: 600;
font-size: 11px;
font-weight: 700;
margin-right: 6px;
}
/* 提示文本优化 */
.theme-tip {
margin: 0 0 16px;
padding: 12px 16px;
margin: 0 0 20px;
padding: 14px 18px;
background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
border-left: 3px solid #3b82f6;
border-radius: 6px;
border-left: 4px solid #38BDF8;
border-radius: 8px;
color: #475569;
font-size: 13px;
line-height: 1.6;
line-height: 1.7;
}
.theme-tip code {
padding: 2px 6px;
background: rgba(59, 130, 246, 0.1);
border-radius: 3px;
color: #3b82f6;
font-family: 'JetBrains Mono', Consolas, monospace;
padding: 3px 8px;
background: rgba(56, 189, 248, 0.12);
border-radius: 4px;
color: #38BDF8;
font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
font-size: 12px;
font-weight: 500;
}
/* JSON 编辑器优化 */
.theme-textarea textarea {
font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
font-size: 13px;
line-height: 1.6;
background: #1e293b;
line-height: 1.7;
background: #0f172a;
color: #e2e8f0;
border-radius: 8px;
padding: 16px !important;
border-radius: 10px;
padding: 18px !important;
border: 1px solid #1e293b;
}
.theme-textarea textarea:focus {
background: #1e293b;
border-color: #38BDF8;
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
/* 轮播/配置项卡片优化 - 更有层次感 */
.banner-item,
.config-item {
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
border-radius: 12px;
padding: 24px;
margin-bottom: 24px;
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
@@ -167,7 +211,7 @@
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
background: linear-gradient(90deg, #38BDF8 0%, #6366F1 50%, #8B5CF6 100%);
opacity: 0;
transition: opacity 0.3s ease;
}
@@ -175,8 +219,8 @@
.banner-item:hover,
.config-item:hover {
border-color: #cbd5e1;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
transform: translateY(-3px);
}
.banner-item:hover::before,
@@ -190,48 +234,48 @@
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 12px;
margin-bottom: 24px;
padding-bottom: 14px;
border-bottom: 2px solid #f1f5f9;
}
.banner-item__header h4,
.config-item__header h4 {
margin: 0;
font-size: 16px;
font-weight: 600;
font-size: 17px;
font-weight: 700;
color: #1e293b;
display: flex;
align-items: center;
gap: 8px;
gap: 10px;
}
.banner-item__header h4::before,
.config-item__header h4::before {
content: '●';
color: #3b82f6;
font-size: 12px;
color: #38BDF8;
font-size: 14px;
}
/* 子标题优化 */
.sub-title {
margin: 24px 0 12px;
padding-left: 12px;
font-size: 15px;
font-weight: 600;
margin: 32px 0 16px;
padding-left: 14px;
font-size: 16px;
font-weight: 700;
color: #475569;
border-left: 3px solid #3b82f6;
border-left: 4px solid #38BDF8;
display: flex;
align-items: center;
}
/* 空状态优化 - 更友好的视觉引导 */
.empty-tip {
padding: 32px 24px;
padding: 40px 24px;
border: 2px dashed #cbd5e1;
border-radius: 10px;
border-radius: 12px;
color: #64748b;
margin-bottom: 20px;
margin-bottom: 24px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
text-align: center;
font-size: 14px;
@@ -243,9 +287,9 @@
.empty-tip::before {
content: '📋';
display: block;
font-size: 32px;
font-size: 36px;
margin-bottom: 12px;
opacity: 0.6;
opacity: 0.7;
}
.empty-tip:hover {
@@ -257,7 +301,7 @@
.upload-row {
display: flex;
align-items: center;
gap: 8px;
gap: 10px;
}
.upload-row .t-input {
@@ -266,7 +310,7 @@
.upload-row .t-button {
flex-shrink: 0;
min-width: 80px;
min-width: 90px;
}
/* 底部操作栏优化 */
@@ -275,12 +319,12 @@
justify-content: flex-end;
align-items: center;
gap: 12px;
margin-top: 32px;
padding: 20px 24px;
margin-top: 40px;
padding: 24px;
background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
border-radius: 12px;
border: 1px solid #e2e8f0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
position: sticky;
bottom: 20px;
z-index: 100;
@@ -288,24 +332,26 @@
/* 按钮增强 */
.action-bar .t-button {
min-width: 120px;
font-weight: 500;
min-width: 130px;
font-weight: 600;
transition: all 0.3s ease;
padding: 10px 24px;
}
.action-bar .t-button--primary {
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
border: none;
}
.action-bar .t-button--primary:hover {
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
transform: translateY(-2px);
}
/* 间距工具类优化 */
.mt-10 {
margin-top: 16px;
margin-top: 20px;
}
.ml-10 {
@@ -313,29 +359,41 @@
}
.mb-10 {
margin-bottom: 16px;
margin-bottom: 20px;
}
/* Tab 标签页优化 */
.t-tabs__nav {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border-radius: 10px 10px 0 0;
padding: 8px;
border-radius: 12px 12px 0 0;
padding: 10px;
margin-bottom: 24px;
}
.t-tab {
font-weight: 500;
font-weight: 600;
font-size: 15px;
transition: all 0.3s ease;
padding: 10px 20px;
border-radius: 8px;
}
.t-tab:hover {
background: rgba(56, 189, 248, 0.08);
}
.t-tab.t-is-active {
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%) !important;
color: white !important;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}
/* 响应式优化 */
@media (max-width: 768px) {
.template {
padding: 12px;
}
.form-grid {
grid-template-columns: 1fr;
gap: 16px;
@@ -343,12 +401,14 @@
.banner-item,
.config-item {
padding: 16px;
padding: 18px;
}
.action-bar {
flex-direction: column;
gap: 8px;
gap: 10px;
position: relative;
bottom: 0;
}
.action-bar .t-button {
@@ -364,36 +424,37 @@
/* 滚动条美化 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 4px;
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
border-radius: 4px;
background: linear-gradient(180deg, #38BDF8 0%, #6366F1 100%);
border-radius: 5px;
transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
background: linear-gradient(180deg, #0EA5E9 0%, #4F46E5 100%);
}
/* 输入框聚焦优化 */
.t-input:focus-within,
.t-textarea:focus-within {
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
border-color: #38BDF8;
}
/* 加载状态优化 */
.t-button--loading {
opacity: 0.7;
opacity: 0.6;
cursor: not-allowed;
pointer-events: none;
}
/* 删除按钮优化 */
@@ -403,7 +464,7 @@
.t-button--danger:hover {
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
/* 成功状态提示 */
@@ -411,25 +472,44 @@
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
padding: 6px 14px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
border-radius: 16px;
font-size: 12px;
font-weight: 500;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
/* 表单验证提示 */
.form-error {
color: #ef4444;
font-size: 12px;
margin-top: 4px;
font-size: 13px;
margin-top: 6px;
display: flex;
align-items: center;
gap: 4px;
gap: 6px;
font-weight: 500;
}
.form-error::before {
content: '⚠';
font-size: 14px;
font-size: 15px;
}
/* 动画效果 */
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.banner-item,
.config-item {
animation: slideIn 0.3s ease;
}