-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
196 lines (189 loc) · 3.36 KB
/
style.css
File metadata and controls
196 lines (189 loc) · 3.36 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
body{
font-family: Arial, Helvetica, sans-serif;
color: whitesmoke;
}
.player{
height: 95vh;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
flex: auto;
z-index: -1;
}
.wrapper{
border: 1px solid transparent;
padding: 30px;
border-radius: 20px;
box-shadow:rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
z-index: 1;
}
.details{
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.track-art{
margin: 25px;
height: 250px;
width: 250px;
border: 2px solid white;
background-size: cover;
background-position: center;
border-radius: 50%;
-moz-box-shadow: 0px 6px 5px #ccc ;
-webkit-box-shadow: 0px 6px 5px #ccc;
box-shadow: 0px 6px 5px #ccc ;
-moz-border-radius:190px;
-webkit-border-radius: 190px;
border-radius: 190px ;
}
.now-playing{
font-size: 1rem;
}
.track-name{
font-size: 2.5rem;
}
.track-artist{
margin-top: 5px;
font-size: 1.5rem;
}
.buttons{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-bottom: 30px;
}
.active{
color: black;
}
.repeat-track,
.random-track,
.play-pause-track,
.previous-track,
.next-track{
padding: 25px;
opacity: 0.8;
transition: opacity .2s;
}
.repeat-track:hover,
.random-track:hover,
.play-pause-track:hover,
.previous-track:hover,
.next-track:hover{
opacity: 1;
}
.slider-container{
display: flex;
justify-content: center;
align-items: center;
}
.seek-slider,
.volume-slider{
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
height: 5px;
background: #459cc1;
-webkit-transition: .2s;
transition: opacity .2s;
}
.seek-slider::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb{
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 15px;
height: 15px;
background: white;
border: 3px solid rgb(29, 131, 221);
cursor: pointer;
border-radius: 100%;
}
.seek-slider:hover,
.volume-slider:hover{
opacity: 1.0;
}
.seek-slider{
width: 60%;
}
.volume-slider{
width: 30%;
}
.current-time,
.total-duration{
padding: 10px;
}
i.fa-volume-down,
i.fa-volume-up{
padding: 10px;
}
i,
i.fa-play-circle,
i.fa-pause-circle,
i.fa-step-forward,
i.fa-step-backward{
cursor: pointer;
}
.randomActive{
color: black;
}
.rotate{ /* to rotate the song image*/
animation: rotation 8s infinite linear;
}
@keyframes rotation {
from{
transform : rotate(0deg);
}
to{
transform:rotate(359deg);
}
}
.loader .stroke{
background: #f1f1f1;
height: 150%;
width: 10px;
border-radius: 50px;
margin: 0px 50px;
animation: animate 1.4s linear infinite;
}
.loader{ /* how to put the loader inside the wrapper so that it is still visible? lowering the width make it disappear -- problem to resolve*/
height: 90px;
display: flex;
justify-content: center;
justify-content: space-between;
align-items: center;
width: 400px;
}
@keyframes animate {
50%{
height: 20%;
background: #4286f4;
}
100%{
height: 100%;
}
}
.stroke:nth-child(1){
animation-delay: 0s;
}
.stroke:nth-child(2){
animation-delay: 0.3s;
}
.stroke:nth-child(3){
animation-delay: 0.6s;
}
.stroke:nth-child(4){
animation-delay: 0.9s;
}
.stroke:nth-child(5){
animation-delay: 0.6s;
}
.stroke:nth-child(6){
animation-delay: 0.3s;
}
.stroke:nth-child(7){
animation-delay: 0s;
}