Yao 31e9bb83e8
[new feature] Actionsheet: 新增行动按钮组件 (#97)
* actionsheet init

* actionsheet process

* action sheet 功能补齐

* 增加 actionsheet readme

* 增加示例入口

* 增加标题配置
2018-01-01 16:41:30 +08:00

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;
}