-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyleSpotify.css
More file actions
250 lines (247 loc) · 5.55 KB
/
styleSpotify.css
File metadata and controls
250 lines (247 loc) · 5.55 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
body{
font-family: "Montserrat", sans-serif;
margin:0;
color:azure;
background-color:black;
overflow:hidden;
}
.main{
display: flex;
height: 100vh;
padding:0.5rem;
}
.main-content{
background-color: #121212;
flex:1;
border-radius: 1rem; /*16px*/
overflow:auto;/* allows the content to scroll if it overflows */
padding:0 1.5rem 0 1.5rem;
}
.sidebar{
background-color: #000;
width:300px;
border-radius: 1rem;
margin: 0.5rem;
}
.music-player{
background-color:black;
width: 100%;
height:72px;
position: fixed;
bottom: 0;
}
a{
text-decoration: none;
color: #fff;
}
.nav{
background-color: #121212;
border-radius: 1rem;
display:flex;/* makes the nav bar horizontal */
flex-direction: column;/* makes the nav bar vertical */
justify-content: center;/* centers the items vertically */;
height:100px;/* sets the height of the nav bar */
padding: 0.5rem 0.75rem;/* sets the padding of the nav bar */
}
.nav-option{
line-height: 2.5rem;/* sets the line height of the nav bar */
opacity:0.7;/* sets the opacity of the nav bar */
padding:0.5rem 0.75rem;
}
.nav-option:hover{
opacity:1;/* sets the opacity of the nav bar on hover */
}
.nav-option i{
font-size: 1.25rem;/* sets the font size of the nav bar icons */
}
.nav-option a{
font-size:1rem;/* sets the font size of the nav bar links */
margin:1rem;
}
.library{
border-radius: 1rem;
background-color: #121212;
height: 100%;
margin-top: 0.5rem;
padding:0.5rem 0.75rem;
}
.options{
display: flex;
justify-content: space-between;
align-items: center;
}
.lib-options img{
height: 1.25rem;
width: 1.25rem;
}
.icons{
font-size: 1.25rem;
display: flex;
}
.icons i{
opacity:0.7;
margin-right: 1rem;
}
.icons i:hover{
opacity: 1;
}
.box{
background-color: #232323;
border-radius: 0.75rem;
height:8rem;
margin:0.75rem 0 0.75rem 0;
padding: 0.75rem 1rem;
}
.box-p1{
font-size:1rem;
font-weight:500;
}
.box-p2{
font-size: 0.75rem;
opacity: 0.9;
}
.badge{
background-color: #fff;
border:none;
border-radius: 100px;
padding:0.25rem 1rem;
font-weight:700;
margin-top:0.5rem;
height:2rem;
width: fit-content;
}
.dark-badge{
background-color: #121212;
color: #fff;
}
.box2{
height:10rem;
}
.sticky-nav{
position: sticky;/* makes the nav bar sticky */
top: 0;/* sets the top position of the nav bar */
background-color: #121212;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0 1rem 0;
z-index:10;/*means the nav bar will be on top of other elements */
}
.sticky-nav-icons{
margin-left: 0.75rem;
}
.sticky-nav-options{
display: flex;
align-items: center;
margin-right: 0.75rem;
}
.nav-item{
margin-right: 1.5rem;
}
@media (max-width: 1000px){/* media query for screens smaller than 1000px */
.hide{
display: none; /* hides the element */
}
}
.card{
background-color: #232323;
width:150px ;
border-radius: 0.5rem;
padding: 1rem;
margin-left: 1.5rem;
margin-top: 1rem;
}
.cards-container{
display: flex;
flex-wrap:wrap; /* allows the cards to wrap to the next line */
}
.card-img{
width:100%;
border-radius: 0.5rem;
}
.card-title{
font-weight: 600;
}
.card-info{
font-size: 0.85rem;
opacity: 0.5;
}
.footer{
height:300px;
display: flex;/*means the footer will be a flex container*/
align-items: center;/* centers the items vertically */
justify-content: center;/* centers the items horizontally */
}
.line{
width:90%;
height:50%;
border-top: 1px solid #fff;
opacity: 0.4;
}
.music-player{
display: flex;
justify-content: space-between;/* means the items will be spaced evenly */
align-items: center;/* centers the items vertically */
}
.album{
width: 25%;
}
.player{
width: 50%;
}
.controls{
width: 25%;
}
.player-control{
display: flex;
justify-content:center;
align-items: center;/* centers the items vertically */
}
.player-control-icon{
height: 1rem;
margin-right: 1.75rem;
opacity: 0.7;
}
.player-control-icon:hover{
opacity: 1;
}
.playback-bar{
display: flex;
align-items: center;/* centers the items vertically */
justify-content: center;/* centers the items horizontally */
}
.progress-bar{
width: 70%;
appearance: none;/* removes the default appearance of the progress bar */
background-color: transparent;/* makes the background transparent */
cursor: pointer;/* changes the cursor to a pointer */
}
.progress-bar::-webkit-slider-runnable-track{
background-color: #ddd;
height: 0.2rem;/* sets the height of the progress bar */
border-radius: 100px;/* makes the progress bar rounded */
}
.progress-bar::-webkit-slider-thumb{
appearance: none;
width: 1rem;
height: 1rem;
background-color: #1bd760;
border-radius: 50%;
margin-top: -6px;/* centers the thumb on the track */
}
.album{
display: flex;
align-items: center;/* centers the items vertically */
width:3.5rem;
}
.song-info{
display: flex;
flex-direction: column;/* makes the song info vertical */
margin-right: 6rem;
}
.artist{
font-size: 0.75rem;
opacity: 0.7;
display: flex;
margin-block-end: 1.5rem;
}