antd-mobile-alita
Version:
基于 React 的移动设计规范实现
30 lines (24 loc) • 484 B
text/less
@import '../../style/themes/default';
@pull-to-refresh: am-pull-to-refresh;
.@{pull-to-refresh} {
&-content {
&-wrapper {
overflow: hidden;
}
transform-origin: left top 0;
}
&-transition {
transition: transform 0.3s;
}
&-indicator {
color: grey;
text-align: center;
height: 25 * @hd;
}
&-down .@{pull-to-refresh}-indicator {
margin-top: -25 * @hd;
}
&-up .@{pull-to-refresh}-indicator {
margin-bottom: -25 * @hd;
}
}