refactor: migrate additional hardcoded colors to design tokens

This commit is contained in:
jacobxu666
2026-06-26 11:11:27 +08:00
parent 26b89e8132
commit d92875c86d
4 changed files with 23 additions and 23 deletions
+9 -9
View File
@@ -263,8 +263,8 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
}
.empty-icon-stripe { height: 8rpx; background: rgba(255,255,255,0.6); border-radius: 4rpx; width: 100%; }
.empty-icon-stripe.short { width: 60%; }
.empty-text { font-size: $font-size-lg; font-weight: $font-weight-bold; color: #111111; margin-bottom: 12rpx; }
.empty-desc { font-size: $font-size-sm; color: #666666; margin-bottom: 40rpx; }
.empty-text { font-size: $font-size-lg; font-weight: $font-weight-bold; color: $uv-main-color; margin-bottom: 12rpx; }
.empty-desc { font-size: $font-size-sm; color: $uv-tips-color; margin-bottom: 40rpx; }
.empty-btn {
background: $uv-primary; border-radius: 44rpx; padding: 20rpx 80rpx;
min-height: 88rpx; display: flex; align-items: center; justify-content: center;
@@ -278,7 +278,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
transition: opacity 150ms;
}
.empty-btn-secondary:active { opacity: 0.7; }
.empty-btn-secondary-text { font-size: $font-size-base; color: #333333; }
.empty-btn-secondary-text { font-size: $font-size-base; color: $uv-content-color; }
/* === 卡面展示区域 === */
.card-swiper-wrap { margin: 20rpx 20rpx 20rpx; overflow: visible; }
@@ -339,16 +339,16 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
transform: rotate(45deg); border-radius: 2rpx;
}
.holder-main { flex: 1; }
.holder-name { font-size: $font-size-lg; font-weight: $font-weight-medium; color: #111111; display: block; }
.holder-name { font-size: $font-size-lg; font-weight: $font-weight-medium; color: $uv-main-color; display: block; }
.holder-tag {
display: inline-block; font-size: 22rpx; color: #00b42a;
background: #f0fff4; padding: 2rpx 12rpx; border-radius: 6rpx; margin-top: 6rpx;
}
.holder-details { display: flex; flex-direction: column; gap: 14rpx; }
.detail-row { display: flex; justify-content: space-between; align-items: center; }
.detail-label { font-size: $font-size-sm; color: #666666; }
.detail-label { font-size: $font-size-sm; color: $uv-tips-color; }
.detail-value-wrap { display: flex; align-items: center; gap: 12rpx; }
.detail-value { font-size: $font-size-sm; color: #333333; }
.detail-value { font-size: $font-size-sm; color: $uv-content-color; }
.copy-btn {
font-size: 22rpx; color: $uv-primary;
padding: 4rpx 16rpx; border: 1rpx solid $uv-primary;
@@ -364,7 +364,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
box-shadow: 0 4rpx 20rpx rgba(15, 23, 42, 0.06);
}
.qrcode-title {
font-size: $font-size-lg; font-weight: $font-weight-medium; color: #111111;
font-size: $font-size-lg; font-weight: $font-weight-medium; color: $uv-main-color;
display: block; margin-bottom: 20rpx; align-self: flex-start;
}
.qrcode-box {
@@ -386,7 +386,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
top: 2rpx; left: 50%; transform: translateX(-50%);
border-radius: 1rpx;
}
.countdown-text { font-size: $font-size-sm; color: #666666; }
.countdown-text { font-size: $font-size-sm; color: $uv-tips-color; }
/* === 功能入口 === */
.feature-panel {
@@ -406,5 +406,5 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
width: 88rpx; height: 88rpx;
margin-bottom: 10rpx;
}
.feature-label { font-size: $font-size-sm; color: #333333; }
.feature-label { font-size: $font-size-sm; color: $uv-content-color; }
</style>