/*
* mescroll -- 精致的下拉刷新和上拉加载js框架 ( a great JS framework for pull-refresh and pull-up-loading )
* version 1.1.6
* 2017-08-27
* https://github.com/mescroll/mescroll.git
* http://www.mescroll.com
* author: wenju < mescroll@qq.com > 文举
*
* ----- mescroll的html结构解析 ----
*
*
*/
/*下拉刷新和上拉加载的滑动区域*/
.mescroll {
margin-top:1px;
width: 100%;
height: 100%;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
/*启用硬件加速:动画渲染流畅,解决IOS下拉刷新因隐藏进度条致使的闪屏问题,在下拉刷新和上拉加载触发时启用,结束后移除,避免滥用导致其他兼容性问题*/
.mescroll-hardware{
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
/*下拉刷新区域*/
.mescroll-downwarp{
position: relative;
width: 100%;
height: 0;
overflow: hidden;
text-align: center;
}
/*下拉刷新--高度重置的过渡动画*/
.mescroll-downwarp-reset{
-webkit-transition: height 300ms;
transition: height 300ms;
}
/*下拉刷新--内容区,定位于区域底部*/
.mescroll-downwarp .downwarp-content{
position: absolute;
left: 0;
bottom: 0;
width: 100%;
min-height: 30px;
padding: 10px 0;
}
/*上拉加载区域*/
.mescroll-upwarp {
min-height: 30px;
padding: 15px 0;
text-align: center;
visibility: hidden;/*代替display: none,列表快速滑动到底部能及时显示上拉加载的区域*/
}
/*下拉刷新,上拉加载--提示文本*/
.mescroll-downwarp .downwarp-tip,
.mescroll-upwarp .upwarp-tip,
.mescroll-upwarp .upwarp-nodata {
display: inline-block;
font-size: 12px;
color: gray;
vertical-align: middle;
}
/*下拉刷新,上拉加载--旋转进度条*/
.mescroll-downwarp .downwarp-progress,
.mescroll-upwarp .upwarp-progress {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 50%;
border: 1px solid gray;
margin-right: 8px;
border-bottom-color: transparent;
vertical-align: middle;
}
/*旋转动画*/
.mescroll-rotate{
-webkit-animation: mescrollRotate 0.6s linear infinite;
animation: mescrollRotate 0.6s linear infinite;
}
@-webkit-keyframes mescrollRotate {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes mescrollRotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/*无任何数据的空布局*/
.mescroll-empty {
width: 100%;
padding-top: 20px;
text-align: center;
}
.mescroll-empty .empty-icon {
width: 45%;
}
.mescroll-empty .empty-tip {
margin-top: 6px;
font-size: 14px;
color: gray;
}
.mescroll-empty .empty-btn {
max-width: 50%;
margin: 20px auto;
padding: 10px;
border: 1px solid #65AADD;
border-radius: 6px;
background-color: white;
color: #65AADD;
}
.mescroll-empty .empty-btn:active {
opacity: .75;
}
/*回到顶部的按钮*/
.mescroll-totop {
z-index: 9990;
position: fixed;
right: 10px;
bottom: 30px;
width: 36px;
height: 36px;
border-radius: 50%;
opacity: 0;
}
/*显示动画--淡入*/
.mescroll-fade-in{
-webkit-animation: mescrollFadeIn .5s linear forwards;
animation: mescrollFadeIn .5s linear forwards;
}
@-webkit-keyframes mescrollFadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes mescrollFadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
/*隐藏动画--淡出*/
.mescroll-fade-out{
pointer-events: none;
-webkit-animation: mescrollFadeOut .5s linear forwards;
animation: mescrollFadeOut .5s linear forwards;
}
@-webkit-keyframes mescrollFadeOut {
0% { opacity: 1; }
100% { opacity: 0; }
}
@keyframes mescrollFadeOut {
0% { opacity: 1; }
100% { opacity: 0; }
}
/*滚动条轨道背景(默认在PC端设置)*/
.mescroll-bar::-webkit-scrollbar-track{
background-color: transparent;
}
/*滚动条轨道宽度 (默认在PC端设置)*/
.mescroll-bar::-webkit-scrollbar{
width: 6px;
}
/*滚动条游标 (默认在PC端设置)*/
.mescroll-bar::-webkit-scrollbar-thumb{
border-radius: 6px;
background-color: #ccc;
}
/*滚动条游标鼠标经过的颜色变化 (默认在PC端设置)*/
.mescroll-bar::-webkit-scrollbar-thumb:hover{
background-color: #aaa;
}
/**{
margin: 0;
padding: 0;
-webkit-touch-callout:none;
-webkit-user-select:none;
-webkit-tap-highlight-color:transparent;
}
body{background-color: white}
ul{list-style-type: none}
a {text-decoration: none;color: #18B4FE;}
/*模拟的标题*/
.header{
z-index: 9990;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 44px;
line-height: 44px;
text-align: center;
border-bottom: 1px solid #eee;
background-color: white;
}
.header .btn-left{
position: absolute;
top: 0;
left: 0;
padding:12px;
line-height: 22px;
}
.header .btn-right{
position: absolute;
top: 0;
right: 0;
padding: 0 12px;
}
/*说明*/
.notice{
padding: 20px;
border-bottom: 1px solid #eee;
font-size: 14px;
line-height: 24px;
text-align: center;
color:#555;
}
.btn-change{
display: inline-block;
margin-top: 14px;
font-size: 14px;
padding: 3px 15px;
text-align: center;
border: 1px solid #FF6990;
border-radius: 20px;
color: #FF6990;
}
.btn-change:active{
opacity: .5;
}
/*列表*/
.mescroll{
/*position: fixed;
top: 44px;
bottom: 0;
height: 800px;*/
}
/*展示上拉加载的数据列表*/
.data-list li{
position: relative;
padding: 10px 8px 10px 120px;
border-bottom: 1px solid #eee;
}
.data-list a { text-decoration:none}
.data-list .pd-img{
position: absolute;
left: 18px;
top: 18px;
width: 80px;
height: 80px;
}
.data-list .pd-name{
font-size: 16px;
line-height: 20px;
height: 40px;
overflow: hidden;
}
.data-list .pd-price{
margin-top: 8px;
color: red;
}
.data-list .pd-sold{
font-size: 12px;
margin-top: 8px;
color: gray;
}*/