File tree Expand file tree Collapse file tree 3 files changed +29
-29
lines changed Expand file tree Collapse file tree 3 files changed +29
-29
lines changed Original file line number Diff line number Diff line change
1
+ @keyframes loader-fade {
2
+ 0% {
3
+ opacity : 0 ;
4
+ }
5
+
6
+ 75% {
7
+ opacity : 1 ;
8
+ }
9
+ }
10
+
11
+ .dot {
12
+ animation : loader-fade 1s ;
13
+ animation-iteration-count : infinite;
14
+ opacity : 0 ;
15
+
16
+ & : nth-child (2 ) {
17
+ animation-delay : 0.2s ;
18
+ }
19
+
20
+ & : nth-child (3 ) {
21
+ animation-delay : 0.4s ;
22
+ }
23
+ }
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
+ import styles from './Loader.module.css' ;
4
+
3
5
const Loader : React . SFC = ( ) => (
4
- < div className = "loader" >
5
- < span className = "loader- dot" > ⬤</ span >
6
- < span className = "loader- dot" > ⬤</ span >
7
- < span className = "loader- dot" > ⬤</ span >
6
+ < div >
7
+ < span className = { styles . dot } > ⬤</ span >
8
+ < span className = { styles . dot } > ⬤</ span >
9
+ < span className = { styles . dot } > ⬤</ span >
8
10
</ div >
9
11
) ;
10
12
Original file line number Diff line number Diff line change @@ -188,31 +188,6 @@ body {
188
188
}
189
189
}
190
190
191
- @keyframes loader-fade {
192
- 0% {
193
- opacity : 0 ;
194
- }
195
- 75% {
196
- opacity : 1 ;
197
- }
198
- }
199
-
200
- .loader {
201
- & -dot {
202
- opacity : 0 ;
203
- animation : loader- fade 1s ;
204
- animation-iteration-count : infinite ;
205
-
206
- & :nth-child (2 ) {
207
- animation-delay : 0.2s ;
208
- }
209
-
210
- & :nth-child (3 ) {
211
- animation-delay : 0.4s ;
212
- }
213
- }
214
- }
215
-
216
191
.language-rust_errors {
217
192
.warning {
218
193
color : #f79a06 ;
You can’t perform that action at this time.
0 commit comments