refactor: remove local SCSS variables from 9 pages
Replace with global uni.scss tokens: $font → $font-family-body $primary → $uv-primary $text-* → $uv-main-color/$uv-content-color/$uv-tips-color/$uv-placeholder-color $divider → $uv-border-color $card-radius → $radius-lg $accent → $uv-primary Kept $bar-height: 120rpx as component-specific local var. Removed dead $primary-dark: #e89a2a from card-bind.vue (never used). Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+12
-19
@@ -240,19 +240,12 @@ function getBindList(): FaqItem[] {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
$font: 'SourceHanSerifCN', '思源宋体', -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
|
||||
$primary: #3c9cff;
|
||||
$text-main: #111111;
|
||||
$text-label: #222222;
|
||||
$text-body: #333333;
|
||||
$text-hint: #666666;
|
||||
$divider: #eeeeee;
|
||||
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background: #f7f8fa;
|
||||
padding: 48rpx 24rpx 0;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
}
|
||||
|
||||
/* ===== 分类区块 ===== */
|
||||
@@ -261,17 +254,17 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.category-title {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: $text-main;
|
||||
color: $uv-main-color;
|
||||
display: block;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.category-divider {
|
||||
height: 1rpx;
|
||||
background: $divider;
|
||||
background: $uv-border-color;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
@@ -306,18 +299,18 @@ $divider: #eeeeee;
|
||||
flex-shrink: 0;
|
||||
margin-right: 16rpx;
|
||||
margin-top: 4rpx;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 24rpx;
|
||||
font-weight: 700;
|
||||
color: $primary;
|
||||
color: $uv-primary;
|
||||
}
|
||||
|
||||
.faq-question {
|
||||
flex: 1;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: $text-label;
|
||||
color: $uv-main-color;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -351,18 +344,18 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.faq-text {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: $text-body;
|
||||
color: $uv-content-color;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.faq-highlight {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: $primary;
|
||||
color: $uv-primary;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user