mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
87 lines
1.5 KiB
Plaintext
87 lines
1.5 KiB
Plaintext
@import "../common/_var";
|
|
@import "../common/_mixins";
|
|
|
|
.van-actionsheet {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.van-actionsheet__mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 10;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: none;
|
|
}
|
|
|
|
.van-actionsheet__container {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: $background-color;
|
|
transform: translate3d(0, 50%, 0);
|
|
transform-origin: center;
|
|
transition: all 0.2s ease;
|
|
z-index: 11;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.van-actionsheet__button {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.van-actionsheet__footer .van-actionsheet__button {
|
|
background: #fff;
|
|
}
|
|
|
|
.van-actionsheet__button-content {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
}
|
|
|
|
.van-actionsheet__subname {
|
|
color: $gray-dark;
|
|
}
|
|
|
|
.van-actionsheet__subname,
|
|
.van-actionsheet__name {
|
|
height: 45px;
|
|
line-height: 45px;
|
|
}
|
|
|
|
|
|
.van-actionsheet__button.van-button:last-child {
|
|
&::after {
|
|
border-bottom-width: 0;
|
|
}
|
|
}
|
|
|
|
.van-actionsheet__subname {
|
|
margin-left: 2px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.van-actionsheet__footer {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* button-loading 状态 */
|
|
.van-actionsheet__button--loading .van-actionsheet__subname {
|
|
color: transparent;
|
|
}
|
|
|
|
/* van-actionsheet 展示出来的样式 */
|
|
.van-actionsheet--show .van-actionsheet__container {
|
|
opacity: 1;
|
|
transform: translate3d(0, 0, 0);
|
|
visibility: visible;
|
|
}
|
|
.van-actionsheet--show .van-actionsheet__mask {
|
|
display: block;
|
|
}
|