mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 02:16:12 +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;
|
overflow: hidden;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
user-select: none;
|
||||||
|
color: $gray-darker;
|
||||||
|
word-break: break-all;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 20px 12px 20px 9px;
|
padding: 20px 12px 20px 9px;
|
||||||
color: $gray-darker;
|
|
||||||
background-color: $background-color;
|
background-color: $background-color;
|
||||||
word-break: break-all;
|
|
||||||
border-left: 3px solid transparent;
|
border-left: 3px solid transparent;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: $active-color;
|
||||||
|
}
|
||||||
|
|
||||||
&:not(:last-child)::after {
|
&:not(:last-child)::after {
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
}
|
}
|
||||||
@ -24,11 +29,15 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
border-color: $red;
|
border-color: $red;
|
||||||
background-color: $white;
|
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
border-right-width: 1px;
|
border-right-width: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&,
|
||||||
|
&:active {
|
||||||
|
background-color: $white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__info {
|
&__info {
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: $active-color;
|
||||||
|
}
|
||||||
|
|
||||||
&--add {
|
&--add {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
|
||||||
|
@ -229,5 +229,11 @@
|
|||||||
background-image: linear-gradient(45deg, #a4a9b2, #b7bcc3);
|
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