forked from visiongeist/pull-to-refresh-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pull-to-refresh.css
executable file
·71 lines (58 loc) · 1.18 KB
/
pull-to-refresh.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.scrollable {
overflow-y: auto;
height: 100%;
-webkit-overflow-scrolling: touch;
position: relative;
}
.scrollable .wrap {
min-height: 100%;
padding-bottom: 1px;
background: #f5f5f5;
-webkit-transform: translateZ(0);
}
.pull-to-refresh {
line-height: 40px;
height: 40px;
width: 100%;
position: absolute;
left: 0;
top: -40px;
font-size: 0.85em;
z-index: -1;
}
.pull-to-refresh >.message {
height: 40px;
width: 100%;
overflow-y: auto;
position: relative;
}
.pull-to-refresh >.message >i.arrow,
.pull-to-refresh >.message >i.spinner {
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
background-size: 100% 100%;
display: inline-block;
margin-left: 10px;
background-position: center center;
}
.pull-to-refresh >.message >i.arrow {
width: 20px;
height: 40px;
background-image: url('img/arrow.png');
}
.pull-to-refresh >.message >i.spinner {
width: 16px;
height: 16px;
background-image: url('img/spinner.gif');
}
.pull-to-refresh >.message >span.pull,
.pull-to-refresh >.message >span.release,
.pull-to-refresh >.message >span.loading {
text-align: center;
display: block;
height: 40px;
width: 100%;
position: absolute;
top: 0;
left: 0;
}