fix: 优化客户端溯源页暗色适配
This commit is contained in:
@@ -749,6 +749,15 @@ watch(
|
||||
box-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
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;
|
||||
@@ -933,7 +942,7 @@ watch(
|
||||
max-width: 420px;
|
||||
height: 240px;
|
||||
border-radius: 14px;
|
||||
background: #e7ecf3;
|
||||
background: var(--trace-thumb-bg);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
/* 非当前张略缩小并降低不透明度,突出居中张 */
|
||||
@@ -1006,7 +1015,7 @@ watch(
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: #cfd8e3;
|
||||
background: var(--trace-dot-bg);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
width 0.25s ease,
|
||||
@@ -1022,7 +1031,7 @@ watch(
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: 12px;
|
||||
color: #6b7785;
|
||||
color: var(--muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.carousel-count-ico {
|
||||
@@ -1061,7 +1070,7 @@ watch(
|
||||
.field {
|
||||
display: flex;
|
||||
font-size: 14px;
|
||||
border-bottom: 1px dashed #eef1f5;
|
||||
border-bottom: 1px dashed var(--trace-divider);
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
.field-label {
|
||||
@@ -1079,7 +1088,7 @@ watch(
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
background: #e7ecf3;
|
||||
background: var(--trace-thumb-bg);
|
||||
}
|
||||
.field-link {
|
||||
color: var(--brand-2);
|
||||
@@ -1094,7 +1103,7 @@ watch(
|
||||
position: relative;
|
||||
}
|
||||
.tl-item:not(:last-child) .tl-body {
|
||||
border-left: 2px solid #e7ecf3;
|
||||
border-left: 2px solid var(--trace-line);
|
||||
margin-left: 5px;
|
||||
padding-left: 18px;
|
||||
padding-bottom: 18px;
|
||||
@@ -1107,7 +1116,7 @@ watch(
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #2e5496;
|
||||
background: var(--trace-accent);
|
||||
margin-top: 4px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
@@ -1122,15 +1131,15 @@ watch(
|
||||
}
|
||||
.tl-desc {
|
||||
font-size: 13px;
|
||||
color: #374151;
|
||||
color: var(--trace-desc);
|
||||
}
|
||||
.tl-toggle {
|
||||
margin-top: 8px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid #d0d7e2;
|
||||
background: #f4f7fc;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--trace-control-bg);
|
||||
color: var(--brand-2);
|
||||
border-radius: 999px;
|
||||
padding: 4px 12px;
|
||||
@@ -1163,7 +1172,7 @@ watch(
|
||||
height: 92px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background: #e7ecf3;
|
||||
background: var(--trace-thumb-bg);
|
||||
}
|
||||
.tl-media-thumb img,
|
||||
.tl-media-thumb video {
|
||||
@@ -1281,7 +1290,7 @@ watch(
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: #cfd8e3;
|
||||
background: var(--trace-dot-bg);
|
||||
cursor: pointer;
|
||||
}
|
||||
.cert-dots .dot.active {
|
||||
@@ -1295,7 +1304,7 @@ watch(
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px dashed #eef1f5;
|
||||
border-bottom: 1px dashed var(--trace-divider);
|
||||
}
|
||||
.chain-k {
|
||||
width: 78px;
|
||||
@@ -1425,6 +1434,15 @@ watch(
|
||||
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);
|
||||
@@ -1445,6 +1463,15 @@ watch(
|
||||
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;
|
||||
}
|
||||
@@ -1458,6 +1485,15 @@ watch(
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user