[Improvement] add active color for Badge、CouponList、ContactCard (#419)

This commit is contained in:
neverland 2017-12-12 20:05:36 +08:00 committed by GitHub
parent 1fd157e9f4
commit c455301129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 3 deletions

View File

@ -5,13 +5,18 @@
overflow: hidden;
font-size: 14px;
line-height: 1.4;
user-select: none;
color: $gray-darker;
word-break: break-all;
box-sizing: border-box;
padding: 20px 12px 20px 9px;
color: $gray-darker;
background-color: $background-color;
word-break: break-all;
border-left: 3px solid transparent;
&:active {
background-color: $active-color;
}
&:not(:last-child)::after {
border-bottom-width: 1px;
}
@ -24,11 +29,15 @@
font-weight: bold;
color: $text-color;
border-color: $red;
background-color: $white;
&::after {
border-right-width: 1px;
}
&,
&:active {
background-color: $white;
}
}
&__info {

View File

@ -4,6 +4,10 @@
position: relative;
background-color: $white;
&:active {
background-color: $active-color;
}
&--add {
line-height: 40px;

View File

@ -229,5 +229,11 @@
background-image: linear-gradient(45deg, #a4a9b2, #b7bcc3);
}
}
&:active {
.van-coupon-item__body {
background-color: $active-color;
}
}
}
}