@@ -138,52 +138,6 @@ body.grade-c {
138
138
}
139
139
}
140
140
141
-
142
- // Scroll refresher (for pull to refresh)
143
- .scroll-refresher {
144
- position : absolute ;
145
- top : -60px ;
146
- right : 0 ;
147
- left : 0 ;
148
- overflow : hidden ;
149
- margin : auto ;
150
- height : 60px ;
151
-
152
- .icon-refreshing {
153
- @include animation-duration (1.5s );
154
- display : none ;
155
- }
156
- }
157
-
158
- .scroll-refresher-content {
159
- position : absolute ;
160
- bottom : 15px ;
161
- left : 0 ;
162
- width : 100% ;
163
- color : $scroll-refresh-icon-color ;
164
- text-align : center ;
165
-
166
- font-size : 30px ;
167
- }
168
-
169
- .ionic-refresher-content {
170
- position : absolute ;
171
- bottom : 15px ;
172
- left : 0 ;
173
- width : 100% ;
174
- color : $scroll-refresh-icon-color ;
175
- text-align : center ;
176
-
177
- font-size : 30px ;
178
-
179
- .icon-pulling {
180
- @include animation-name (refresh- spin- back);
181
- @include animation-duration (200ms );
182
- @include animation-timing-function (linear );
183
- @include animation-fill-mode (both );
184
- }
185
- }
186
-
187
141
@keyframes refresh-spin {
188
142
0% { transform : rotate (0 ); }
189
143
100% { transform : rotate (-180deg ); }
@@ -204,31 +158,84 @@ body.grade-c {
204
158
100% {-webkit-transform : rotate (0 ); }
205
159
}
206
160
207
- .scroll-refresher.active {
161
+ // Scroll refresher (for pull to refresh)
162
+ .scroll-refresher {
163
+ position : absolute ;
164
+ top : -60px ;
165
+ right : 0 ;
166
+ left : 0 ;
167
+ overflow : hidden ;
168
+ margin : auto ;
169
+ height : 60px ;
170
+
171
+ .ionic-refresher-content {
172
+ position : absolute ;
173
+ bottom : 15px ;
174
+ left : 0 ;
175
+ width : 100% ;
176
+ color : $scroll-refresh-icon-color ;
177
+ text-align : center ;
178
+
179
+ font-size : 30px ;
180
+
181
+ .text-refreshing ,
182
+ .text-pulling {
183
+ line-height : 16px ;
184
+ font-size : 16px ;
185
+ }
186
+ }
208
187
209
188
.icon-pulling {
210
- display : block ;
189
+ @include animation-name (refresh- spin- back);
190
+ @include animation-duration (200ms );
191
+ @include animation-timing-function (linear );
192
+ @include animation-fill-mode (both );
211
193
}
212
- .icon-refreshing {
194
+ .icon-refreshing ,
195
+ .text-refreshing {
213
196
display : none ;
214
197
}
198
+ .icon-refreshing {
199
+ @include animation-duration (1.5s );
200
+ }
215
201
216
- & .refreshing {
202
+ & .active {
203
+ .icon-pulling ,
204
+ .text-pulling {
205
+ display : block ;
206
+ }
217
207
.icon-pulling {
218
- display : none ;
208
+ @include animation-name (refresh - spin) ;
219
209
}
220
- .icon-refreshing {
221
- display : block ;
210
+ .icon-refreshing ,
211
+ .text-refreshing {
212
+ display : none ;
222
213
}
223
- }
224
214
225
- .ionic-refresher-content {
226
- i .icon.icon-pulling {
227
- @include animation-name (refresh- spin);
215
+ & .refreshing {
216
+ .icon-pulling ,
217
+ .text-pulling {
218
+ display : none ;
219
+ }
220
+ .icon-refreshing ,
221
+ .text-refreshing {
222
+ display : block ;
223
+ }
228
224
}
229
225
}
230
226
}
231
227
228
+ .scroll-refresher-content {
229
+ position : absolute ;
230
+ bottom : 15px ;
231
+ left : 0 ;
232
+ width : 100% ;
233
+ color : $scroll-refresh-icon-color ;
234
+ text-align : center ;
235
+
236
+ font-size : 30px ;
237
+ }
238
+
232
239
// Infinite scroll
233
240
ion-infinite-scroll .scroll-infinite {
234
241
position : relative ;
0 commit comments