mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Improvement] add active color for Badge、CouponList、ContactCard (#419)
This commit is contained in:
parent
1fd157e9f4
commit
c455301129
@ -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 {
|
||||
|
@ -4,6 +4,10 @@
|
||||
position: relative;
|
||||
background-color: $white;
|
||||
|
||||
&:active {
|
||||
background-color: $active-color;
|
||||
}
|
||||
|
||||
&--add {
|
||||
line-height: 40px;
|
||||
|
||||
|
@ -229,5 +229,11 @@
|
||||
background-image: linear-gradient(45deg, #a4a9b2, #b7bcc3);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
.van-coupon-item__body {
|
||||
background-color: $active-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user