mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
* actionsheet init * actionsheet process * action sheet 功能补齐 * 增加 actionsheet readme * 增加示例入口 * 增加标题配置
72 lines
1.2 KiB
Plaintext
72 lines
1.2 KiB
Plaintext
@import "../common/_var";
|
|
@import "../common/_mixins";
|
|
|
|
.zan-actionsheet {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.zan-actionsheet__mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 10;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: none;
|
|
}
|
|
|
|
.zan-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;
|
|
}
|
|
|
|
.zan-actionsheet__btn.zan-btn {
|
|
height: 50px;
|
|
line-height: 50px;
|
|
margin-bottom: 0;
|
|
|
|
&::after {
|
|
border-width: 0;
|
|
border-bottom-width: 1px;
|
|
}
|
|
}
|
|
|
|
.zan-actionsheet__btn.zan-btn:last-child {
|
|
&::after {
|
|
border-bottom-width: 0;
|
|
}
|
|
}
|
|
|
|
.zan-actionsheet__subname {
|
|
margin-left: 2px;
|
|
font-size: 12px;
|
|
color: $gray-darker;
|
|
}
|
|
|
|
.zan-actionsheet__footer {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* btn-loading 状态 */
|
|
.zan-actionsheet__btn.zan-btn--loading .zan-actionsheet__subname {
|
|
color: transparent;
|
|
}
|
|
|
|
/* zan-actionsheet 展示出来的样式 */
|
|
.zan-actionsheet--show .zan-actionsheet__container {
|
|
opacity: 1;
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
.zan-actionsheet--show .zan-actionsheet__mask {
|
|
display: block;
|
|
}
|