You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
3.4 KiB
160 lines
3.4 KiB
.mescroll-uni-warp{ |
|
height: 100%; |
|
} |
|
.mescroll-uni-content{ |
|
height: 100%; |
|
} |
|
.mescroll-uni { |
|
position: relative; |
|
width: 100%; |
|
height: 100%; |
|
min-height: 200rpx; |
|
overflow-y: auto; |
|
box-sizing: border-box; /* 避免设置padding出现双滚动条的问题 */ |
|
} |
|
|
|
/* 定位的方式固定高度 */ |
|
.mescroll-uni-fixed{ |
|
z-index: 1; |
|
position: fixed; |
|
top: 0; |
|
left: 0; |
|
right: 0; |
|
bottom: 0; |
|
width: auto; /* 使right生效 */ |
|
height: auto; /* 使bottom生效 */ |
|
} |
|
|
|
/* 适配 iPhoneX */ |
|
@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) { |
|
.mescroll-safearea { |
|
padding-bottom: constant(safe-area-inset-bottom); |
|
padding-bottom: env(safe-area-inset-bottom); |
|
} |
|
} |
|
|
|
/* 下拉刷新区域 */ |
|
.mescroll-downwarp { |
|
position: absolute; |
|
top: -100%; |
|
left: 0; |
|
width: 100%; |
|
height: 100%; |
|
text-align: center; |
|
} |
|
|
|
/* 下拉刷新--内容区,定位于区域底部 */ |
|
.mescroll-downwarp .downwarp-content { |
|
position: absolute; |
|
left: 0; |
|
bottom: 0; |
|
width: 100%; |
|
min-height: 60rpx; |
|
padding: 20rpx 0; |
|
text-align: center; |
|
} |
|
|
|
/* 下拉刷新--提示文本 */ |
|
.mescroll-downwarp .downwarp-tip { |
|
display: inline-block; |
|
font-size: 28rpx; |
|
vertical-align: middle; |
|
margin-left: 16rpx; |
|
/* color: gray; 已在style设置color,此处删去*/ |
|
} |
|
|
|
/* 下拉刷新--旋转进度条 */ |
|
.mescroll-downwarp .downwarp-progress { |
|
display: inline-block; |
|
width: 32rpx; |
|
height: 32rpx; |
|
border-radius: 50%; |
|
border: 2rpx solid gray; |
|
border-bottom-color: transparent !important; /*已在style设置border-color,此处需加 !important*/ |
|
vertical-align: middle; |
|
} |
|
|
|
/* 旋转动画 */ |
|
.mescroll-downwarp .mescroll-rotate { |
|
-webkit-animation: mescrollDownRotate 0.6s linear infinite; |
|
animation: mescrollDownRotate 0.6s linear infinite; |
|
} |
|
@-webkit-keyframes mescrollDownRotate { |
|
0% { |
|
-webkit-transform: rotate(0deg); |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
-webkit-transform: rotate(360deg); |
|
transform: rotate(360deg); |
|
} |
|
} |
|
@keyframes mescrollDownRotate { |
|
0% { |
|
-webkit-transform: rotate(0deg); |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
-webkit-transform: rotate(360deg); |
|
transform: rotate(360deg); |
|
} |
|
} |
|
|
|
/* 上拉加载区域 */ |
|
.mescroll-upwarp { |
|
box-sizing: border-box; |
|
min-height: 110rpx; |
|
padding: 30rpx 0; |
|
text-align: center; |
|
clear: both; |
|
} |
|
|
|
/*提示文本 */ |
|
.mescroll-upwarp .upwarp-tip, |
|
.mescroll-upwarp .upwarp-nodata { |
|
display: inline-block; |
|
font-size: 28rpx; |
|
vertical-align: middle; |
|
/* color: gray; 已在style设置color,此处删去*/ |
|
} |
|
.mescroll-upwarp .upwarp-tip { |
|
margin-left: 16rpx; |
|
} |
|
|
|
/*旋转进度条 */ |
|
.mescroll-upwarp .upwarp-progress { |
|
display: inline-block; |
|
width: 32rpx; |
|
height: 32rpx; |
|
border-radius: 50%; |
|
border: 2rpx solid gray; |
|
border-bottom-color: transparent !important; /*已在style设置border-color,此处需加 !important*/ |
|
vertical-align: middle; |
|
} |
|
|
|
/* 旋转动画 */ |
|
.mescroll-upwarp .mescroll-rotate { |
|
-webkit-animation: mescrollUpRotate 0.6s linear infinite; |
|
animation: mescrollUpRotate 0.6s linear infinite; |
|
} |
|
@-webkit-keyframes mescrollUpRotate { |
|
0% { |
|
-webkit-transform: rotate(0deg); |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
-webkit-transform: rotate(360deg); |
|
transform: rotate(360deg); |
|
} |
|
} |
|
@keyframes mescrollUpRotate { |
|
0% { |
|
-webkit-transform: rotate(0deg); |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
-webkit-transform: rotate(360deg); |
|
transform: rotate(360deg); |
|
} |
|
} |
|
|
|
|