-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.scss
115 lines (97 loc) · 1.54 KB
/
styles.scss
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/* Demo */
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(#bababa,#e0e0e0);
}
.app-content{
display: flex;
flex-direction: column;
align-items: center;
.caption,
.playing {
font-family: system-ui, serif;
text-shadow: 0 0 10px #656565;
font-weight: 100;
color: #828282;
}
.caption {
animation: flicker 3s ease-out infinite;
.dots {
display: inline-block;
width: 35px;
&:before{
content: '';
display: inline-block;
animation: dots 3s linear infinite;
}
}
}
.playing {
font-size: 14px;
span {
font-weight: 700;
}
}
}
/* Animation */
@keyframes rotate {
to {
transform: rotate(360deg);
}
}
@keyframes flicker {
0% {
opacity: 0.2;
}
50% {
opacity: 1;
}
100% {
opacity: 0.2;
}
}
@keyframes dots {
0% {
content: '.';
}
25% {
content: '..';
}
50% {
content: '...';
}
75% {
content: '..';
}
100% {
content: '.';
}
}
/* Variables */
$loader-size: 100px;
/* Loading Icon */
.loading {
width: $loader-size;
height: $loader-size;
&__ring {
position: absolute;
width: $loader-size;
height: $loader-size;
&:first-child {
transform: skew(30deg,20deg);
}
&:last-child {
transform: skew(-30deg,-20deg) scale(-1, 1);
svg {
animation-delay: -0.5s;
}
}
svg {
animation: rotate 1s linear infinite;
fill: rgba(0, 0, 0, 0.2);
}
}
}