forked from BoxFactura/pulltorefresh.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.js
50 lines (44 loc) · 844 Bytes
/
styles.js
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
export default `
.__PREFIX__ptr {
box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.12);
pointer-events: none;
font-size: 0.85em;
font-weight: bold;
top: 0;
height: 0;
transition: height 0.3s, min-height 0.3s;
text-align: center;
width: 100%;
overflow: hidden;
display: flex;
align-items: flex-end;
align-content: stretch;
}
.__PREFIX__box {
padding: 10px;
flex-basis: 100%;
}
.__PREFIX__pull {
transition: none;
}
.__PREFIX__text {
margin-top: .33em;
color: rgba(0, 0, 0, 0.3);
}
.__PREFIX__icon {
color: rgba(0, 0, 0, 0.3);
transition: transform .3s;
}
/*
When at the top of the page, disable vertical overscroll so passive touch
listeners can take over.
*/
.__PREFIX__top {
touch-action: pan-x pan-down pinch-zoom;
}
.__PREFIX__release {
.__PREFIX__icon {
transform: rotate(180deg);
}
}
`;