antd-mobile
Version:
基于 React 的移动设计规范实现
73 lines (72 loc) • 1.29 kB
CSS
.hairline-remove-right-bottom {
border-bottom: 0;
}
.hairline-remove-right-bottom:after {
display: none;
}
.hairline-remove-right-bottom-bak:after {
display: none;
}
.hairline-remove-left-top:before {
display: none;
}
.am-swipe {
overflow: hidden;
position: relative;
}
.am-swipe-content {
position: relative;
z-index: 10;
}
.am-swipe-cover {
position: absolute;
z-index: 11;
background: transparent;
height: 100%;
top: 0;
display: none;
}
.am-swipe .am-swipe-content,
.am-swipe .am-swipe-actions {
transition: all 250ms;
}
.am-swipe-actions {
position: absolute;
top: 0;
bottom: 0;
right: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
overflow: hidden;
white-space: nowrap;
transition: all 250ms;
}
.am-swipe-actions-left {
left: 0;
width: 0;
}
.am-swipe-actions-right {
right: 0;
width: 0;
}
.am-swipe-btn {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
position: relative;
overflow: hidden;
z-index: 99;
}
.am-swipe-btn-text {
padding: 0 10px;
}