[improvement] optimize active color (#1437)

This commit is contained in:
neverland 2019-03-21 15:08:59 +08:00 committed by GitHub
parent ca3b9e6510
commit 5984383dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 10 deletions

View File

@ -1 +1,4 @@
/* pages/stepper/index.wxss */ /* pages/stepper/index.wxss */
page {
background-color: #fff;
}

View File

@ -32,11 +32,5 @@ Page({
title: `点击标签 ${event.detail.index + 1}`, title: `点击标签 ${event.detail.index + 1}`,
icon: 'none' icon: 'none'
}); });
},
onPageScroll(event) {
this.setData({
scrollTop: event.scrollTop
});
} }
}); });

View File

@ -15,7 +15,7 @@
// Default colors // Default colors
@text-color: #333; @text-color: #333;
@border-color: #eee; @border-color: #eee;
@active-color: #e8e8e8; @active-color: #f2f3f5;
@background-color: #f8f8f8; @background-color: #f8f8f8;
@background-color-light: #fafafa; @background-color-light: #fafafa;
@ -113,7 +113,8 @@
@search-background-color: #f7f8fA; @search-background-color: #f7f8fA;
// Stepper // Stepper
@stepper-background-color: #f2f3f5; @stepper-active-color: #e8e8e8;
@stepper-background-color: @active-color;
@stepper-button-disabled-color: #f7f8fa; @stepper-button-disabled-color: #f7f8fa;
@stepper-input-disabled-color: @active-color;
@stepper-border-radius: 4px; @stepper-border-radius: 4px;
@stepper-input-disabled-color: #f2f3f5;

View File

@ -39,7 +39,7 @@
} }
&--hover { &--hover {
background-color: @active-color; background-color: @stepper-active-color;
} }
&--disabled { &--disabled {