fix: 收敛客户端暗色主题变量
This commit is contained in:
@@ -8,6 +8,20 @@
|
||||
--text: #1f2937;
|
||||
--muted: #6b7280;
|
||||
--shell-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
|
||||
--card-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
|
||||
--topbar-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 252, 0.96));
|
||||
--topbar-text: #17324d;
|
||||
--topbar-border: rgba(46, 84, 150, 0.12);
|
||||
--topbar-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
--toolbar-hover-bg: rgba(46, 84, 150, 0.08);
|
||||
--trace-divider: #eef1f5;
|
||||
--trace-line: #e7ecf3;
|
||||
--trace-desc: #374151;
|
||||
--trace-control-bg: #f4f7fc;
|
||||
--trace-thumb-bg: #e7ecf3;
|
||||
--trace-dot-bg: #cfd8e3;
|
||||
--trace-accent: #2e5496;
|
||||
--anti-bg: linear-gradient(135deg, #0f7b63, #138a72);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
@@ -21,6 +35,20 @@
|
||||
--text: #e5e7eb;
|
||||
--muted: #94a3b8;
|
||||
--shell-shadow: 0 0 24px rgba(0, 0, 0, 0.24);
|
||||
--card-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
|
||||
--topbar-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
|
||||
--topbar-text: #e5e7eb;
|
||||
--topbar-border: rgba(148, 163, 184, 0.18);
|
||||
--topbar-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
|
||||
--toolbar-hover-bg: rgba(148, 163, 184, 0.14);
|
||||
--trace-divider: rgba(148, 163, 184, 0.28);
|
||||
--trace-line: rgba(96, 165, 250, 0.52);
|
||||
--trace-desc: #cbd5e1;
|
||||
--trace-control-bg: rgba(15, 23, 42, 0.72);
|
||||
--trace-thumb-bg: #1e293b;
|
||||
--trace-dot-bg: rgba(148, 163, 184, 0.42);
|
||||
--trace-accent: #60a5fa;
|
||||
--anti-bg: linear-gradient(135deg, #0f766e, #0d9488);
|
||||
}
|
||||
}
|
||||
:root[data-theme='light'] {
|
||||
@@ -34,6 +62,20 @@
|
||||
--text: #1f2937;
|
||||
--muted: #6b7280;
|
||||
--shell-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
|
||||
--card-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
|
||||
--topbar-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 252, 0.96));
|
||||
--topbar-text: #17324d;
|
||||
--topbar-border: rgba(46, 84, 150, 0.12);
|
||||
--topbar-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
--toolbar-hover-bg: rgba(46, 84, 150, 0.08);
|
||||
--trace-divider: #eef1f5;
|
||||
--trace-line: #e7ecf3;
|
||||
--trace-desc: #374151;
|
||||
--trace-control-bg: #f4f7fc;
|
||||
--trace-thumb-bg: #e7ecf3;
|
||||
--trace-dot-bg: #cfd8e3;
|
||||
--trace-accent: #2e5496;
|
||||
--anti-bg: linear-gradient(135deg, #0f7b63, #138a72);
|
||||
}
|
||||
:root[data-theme='dark'] {
|
||||
color-scheme: dark;
|
||||
@@ -46,6 +88,20 @@
|
||||
--text: #e5e7eb;
|
||||
--muted: #94a3b8;
|
||||
--shell-shadow: 0 0 24px rgba(0, 0, 0, 0.24);
|
||||
--card-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
|
||||
--topbar-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
|
||||
--topbar-text: #e5e7eb;
|
||||
--topbar-border: rgba(148, 163, 184, 0.18);
|
||||
--topbar-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
|
||||
--toolbar-hover-bg: rgba(148, 163, 184, 0.14);
|
||||
--trace-divider: rgba(148, 163, 184, 0.28);
|
||||
--trace-line: rgba(96, 165, 250, 0.52);
|
||||
--trace-desc: #cbd5e1;
|
||||
--trace-control-bg: rgba(15, 23, 42, 0.72);
|
||||
--trace-thumb-bg: #1e293b;
|
||||
--trace-dot-bg: rgba(148, 163, 184, 0.42);
|
||||
--trace-accent: #60a5fa;
|
||||
--anti-bg: linear-gradient(135deg, #0f766e, #0d9488);
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
@@ -75,7 +131,7 @@ body,
|
||||
border-radius: 14px;
|
||||
margin: 12px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
|
||||
box-shadow: var(--card-shadow);
|
||||
}
|
||||
.section-title {
|
||||
font-size: 16px;
|
||||
|
||||
@@ -743,21 +743,12 @@ watch(
|
||||
gap: 8px;
|
||||
height: 48px;
|
||||
padding: 0 14px;
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 252, 0.96));
|
||||
color: #17324d;
|
||||
border-bottom: 1px solid rgba(46, 84, 150, 0.12);
|
||||
box-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
background: var(--topbar-bg);
|
||||
color: var(--topbar-text);
|
||||
border-bottom: 1px solid var(--topbar-border);
|
||||
box-shadow: var(--topbar-shadow);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
.app-shell {
|
||||
--trace-divider: #eef1f5;
|
||||
--trace-line: #e7ecf3;
|
||||
--trace-desc: #374151;
|
||||
--trace-control-bg: #f4f7fc;
|
||||
--trace-thumb-bg: #e7ecf3;
|
||||
--trace-dot-bg: #cfd8e3;
|
||||
--trace-accent: #2e5496;
|
||||
}
|
||||
.topbar-name {
|
||||
flex: 1;
|
||||
font-weight: 600;
|
||||
@@ -770,7 +761,7 @@ watch(
|
||||
border-radius: 7px;
|
||||
object-fit: cover;
|
||||
background: var(--soft-bg);
|
||||
border: 1px solid rgba(46, 84, 150, 0.12);
|
||||
border: 1px solid var(--topbar-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.lang-wrap {
|
||||
@@ -784,14 +775,14 @@ watch(
|
||||
height: 34px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: #17324d;
|
||||
color: var(--topbar-text);
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.lang:active,
|
||||
.lang:hover {
|
||||
background: rgba(46, 84, 150, 0.08);
|
||||
background: var(--toolbar-hover-bg);
|
||||
}
|
||||
.lang-menu {
|
||||
position: absolute;
|
||||
@@ -882,7 +873,7 @@ watch(
|
||||
margin: 12px;
|
||||
padding: 16px;
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(135deg, #0f7b63, #138a72);
|
||||
background: var(--anti-bg);
|
||||
color: #fff;
|
||||
}
|
||||
.anti-badge {
|
||||
@@ -965,7 +956,7 @@ watch(
|
||||
height: 56px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background: rgba(15, 123, 99, 0.42);
|
||||
background: rgba(13, 148, 136, 0.5);
|
||||
color: #fff;
|
||||
font-size: 26px;
|
||||
line-height: 1;
|
||||
@@ -988,7 +979,7 @@ watch(
|
||||
right: 14px;
|
||||
}
|
||||
.carousel-nav:active {
|
||||
background: rgba(15, 123, 99, 0.7);
|
||||
background: rgba(13, 148, 136, 0.78);
|
||||
}
|
||||
/* 触摸设备(手机)隐藏箭头,仅靠滑动切换;箭头只在 PC 显示 */
|
||||
@media (hover: none) {
|
||||
@@ -1433,72 +1424,4 @@ watch(
|
||||
.anti-modal-leave-to .anti-modal {
|
||||
transform: translateY(8px) scale(0.98);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.app-shell {
|
||||
--trace-divider: rgba(148, 163, 184, 0.28);
|
||||
--trace-line: rgba(96, 165, 250, 0.52);
|
||||
--trace-desc: #cbd5e1;
|
||||
--trace-control-bg: rgba(15, 23, 42, 0.72);
|
||||
--trace-thumb-bg: #1e293b;
|
||||
--trace-dot-bg: rgba(148, 163, 184, 0.42);
|
||||
--trace-accent: #60a5fa;
|
||||
}
|
||||
.topbar {
|
||||
background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
|
||||
color: var(--text);
|
||||
border-bottom-color: rgba(148, 163, 184, 0.18);
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.lang {
|
||||
color: var(--text);
|
||||
}
|
||||
.lang:active,
|
||||
.lang:hover {
|
||||
background: rgba(148, 163, 184, 0.14);
|
||||
}
|
||||
}
|
||||
:global(html[data-theme='light']) .topbar {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 252, 0.96));
|
||||
color: #17324d;
|
||||
border-bottom-color: rgba(46, 84, 150, 0.12);
|
||||
box-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
}
|
||||
:global(html[data-theme='light']) .app-shell {
|
||||
--trace-divider: #eef1f5;
|
||||
--trace-line: #e7ecf3;
|
||||
--trace-desc: #374151;
|
||||
--trace-control-bg: #f4f7fc;
|
||||
--trace-thumb-bg: #e7ecf3;
|
||||
--trace-dot-bg: #cfd8e3;
|
||||
--trace-accent: #2e5496;
|
||||
}
|
||||
:global(html[data-theme='light']) .lang {
|
||||
color: #17324d;
|
||||
}
|
||||
:global(html[data-theme='light']) .lang:active,
|
||||
:global(html[data-theme='light']) .lang:hover {
|
||||
background: rgba(46, 84, 150, 0.08);
|
||||
}
|
||||
:global(html[data-theme='dark']) .topbar {
|
||||
background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
|
||||
color: var(--text);
|
||||
border-bottom-color: rgba(148, 163, 184, 0.18);
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
:global(html[data-theme='dark']) .app-shell {
|
||||
--trace-divider: rgba(148, 163, 184, 0.28);
|
||||
--trace-line: rgba(96, 165, 250, 0.52);
|
||||
--trace-desc: #cbd5e1;
|
||||
--trace-control-bg: rgba(15, 23, 42, 0.72);
|
||||
--trace-thumb-bg: #1e293b;
|
||||
--trace-dot-bg: rgba(148, 163, 184, 0.42);
|
||||
--trace-accent: #60a5fa;
|
||||
}
|
||||
:global(html[data-theme='dark']) .lang {
|
||||
color: var(--text);
|
||||
}
|
||||
:global(html[data-theme='dark']) .lang:active,
|
||||
:global(html[data-theme='dark']) .lang:hover {
|
||||
background: rgba(148, 163, 184, 0.14);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user