-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
171 lines (146 loc) · 3.25 KB
/
style.css
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
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Ubuntu&display=swap');
body{
background-color: black;
}
*{
margin: 0;
padding: 0;
}
nav{
font-family: 'Ubuntu', sans-serif;
}
nav ul{
display: flex; /*to create a different layout for different screen sizes/devices*/
align-items: center; /*all ul items in center*/
list-style-type: none; /*remove the bullet points of ul*/
height: 60px; /*image size*/
background-color: black;
color: white;
}
nav ul li{
padding: 0 12px; /*padding-top/bottom=0 padding-left/right=12*/
}
.brand img{
width: 38px;
padding: 0 8px;
}
.brand{
display: flex;
align-items: center; /*all .brand items in center*/
font-weight: bold;
font-size: 20px;
}
.container{
display: flex;
position: relative;
margin: 200px auto 0;
width: 80vw;
margin: 27px auto; /*auto to bring it in center*/
padding: 30px;
min-height: 52vh; /*1vh is Relative to 1% of the height of the viewport*/
background: linear-gradient(0deg, #000, #262626);
color: white;
}
.container:before,
.container:after{
content: '';
position: absolute;
top: -2px;
left: -2px;
background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00, #ffff00, #ff0000, #fb0094, #0000ff, #00ff00, #ffff00, #ff0000);
background-size: 400%;
width: calc(100% + 4px);
height: calc(100% + 4px);
z-index: -1;
animation: animate 20s linear infinite;
}
.container:after{
filter: blur(15px);
}
@keyframes animate{
0%
{
background-position: 0 0;
}
50%
{
background-position: 500% 0;
}
100%
{
background-position: 0 0;
}
}
.bottom{
position: sticky; /*Element is positioned based on the user's scroll position.*/
height: 25vh;
color: white;
bottom: 0;
display: flex;
justify-content: center; /*Aligns the flexible container's items when the items do not use all available space horizontally.*/
align-items: center;
flex-direction: column; /*The flexible items are displayed vertically, as a column*/
}
.icons{
margin-top: 14px;
cursor: pointer; /*The cursor changes to the hand cursor*/
}
#myProgressBar{
width: 50vw; /*1vw is Relative to 1% of the width of the viewport*/
cursor: pointer;
}
.songItem{
height: 10vh;
display: flex;
background-color: white;
width: 30vw;
color: black;
margin: 12px 23px;
justify-content: space-between;
align-items: center;
border-radius: 34px;
}
.songItem img{
width: 10vh;
border-radius: 34px;
margin-right: 23px;
}
.songItemContainer{
margin-top: 34px;
display: flex;
flex-wrap: wrap;
}
.songInfo{
position: absolute;
left: 10vw;
}
.songInfo img{
opacity: 0;
transition: opacity 0.4s ease-in;
}
.songListPlay i{
margin: 0 10px;
cursor: pointer;
}
@media screen and (max-width: 860px) {
.songItem{
width: 65vw;
}
.container{
width: 70vw;
padding: 30px;
}
.bottom{
height: 15vh;
background-color: rgba(0, 0, 0, 0.527);
}
}
@media screen and (max-width: 300px) {
.songItem{
width: 85vw;
margin: 12px -20px;
}
.container{
padding: 35px;
}
}