mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
50 lines
1002 B
Plaintext
50 lines
1002 B
Plaintext
@import '../style/var';
|
|
|
|
.van-collapse-item {
|
|
&__title {
|
|
.van-cell__right-icon::before {
|
|
transform: rotate(90deg);
|
|
transition: @collapse-item-transition-duration;
|
|
}
|
|
|
|
&::after {
|
|
visibility: hidden;
|
|
}
|
|
|
|
&--expanded {
|
|
.van-cell__right-icon::before {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
&::after {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
&--disabled {
|
|
&,
|
|
& .van-cell__right-icon {
|
|
color: @collapse-item-title-disabled-color;
|
|
}
|
|
|
|
&:active {
|
|
background-color: @white;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__wrapper {
|
|
overflow: hidden;
|
|
will-change: height;
|
|
transition: height @collapse-item-transition-duration ease-in-out;
|
|
}
|
|
|
|
&__content {
|
|
color: @collapse-item-content-text-color;
|
|
padding: @collapse-item-content-padding;
|
|
font-size: @collapse-item-content-font-size;
|
|
line-height: @collapse-item-content-line-height;
|
|
background-color: @collapse-item-content-background-color;
|
|
}
|
|
}
|