-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.css
178 lines (166 loc) · 3.87 KB
/
player.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
172
173
174
175
176
177
178
html {
--bg-image: url("./assets/KaranAujla.jpg");
min-height: 100%;
background-size: cover;
background-position: center;
background-clip: border-box;
background-attachment: fixed;
position: relative;
}
html::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: var(--bg-image);
background-size: cover;
background-position: center;
background-clip: border-box;
background-attachment: fixed;
filter: brightness(0.4);
z-index: -1;
}
body {
font-family: 'Montserrat', sans-serif;
}
#Player {
position: absolute;
margin: 2rem ;
height: 30px;
width: auto;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
color: aliceblue;
}
#logo {
background-size : contain;
height: 20px;
width: 20px;
}
#art {
display: flex;
align-items: center;
background-size:contain;
position: absolute;
top: 70%;
left: 2rem;
color: aliceblue;
}
#singer {
display: block;
margin-top: 1rem;
opacity: 1;
margin-top: 3rem;
margin-left: -2.5rem;
font-size: 0.8rem;
animation: fadeIn 2s ease-in-out;
}
#cover {
height: 100px;
width: auto;
display: block;
margin-left: 1rem;
font-size: 2rem;
}
.playback-bar {
position: fixed;
bottom: 0;
left: 0; /* Align the bar to the left edge of the screen */
width: 100%; /* Make the bar span the full width of the screen */
height: 80px;
background-color: #282828;
color: white;
display: flex;
justify-content: center; /* Center the items */
align-items: center;
background: transparent;
box-sizing: border-box; /* Include padding and border in element's total width and height */
padding: 2rem 2rem 2rem 2rem ;
padding-bottom: 4rem;
}
.progress-bar {
-webkit-appearance: none; /* Override default CSS styles */
appearance: none;
width: 100%; /* Full-width */
height: 5px; /* Specified height */
background: #d3d3d3; /* Grey background */
outline: none; /* Remove outline */
opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
-webkit-transition: .2s; /* 0.2 seconds transition on hover */
transition: opacity .2s;
}
.progress-bar::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
width: 25px; /* Set a specific slider handle width */
height: 25px; /* Slider handle height */
background: #1DB954; /* Green background */
cursor: pointer; /* Cursor on hover */
border-radius: 50%; /* Make the slider thumb round */
}
.progress-bar::-moz-range-thumb {
width: 25px; /* Set a specific slider handle width */
height: 25px; /* Slider handle height */
background: #1DB954; /* Green background */
cursor: pointer; /* Cursor on hover */
border-radius: 50%; /* Make the slider thumb round */
}
.player-controls{
display: flex;
justify-content: center;
align-items: center;
height: auto;
width: auto;
position: absolute;
top: 92%;
left: 43.5%;
margin-top: 1rem;
}
.player-control-icon{
height: 1rem;
margin-right: 1.75rem;
opacity: 0.75;
}
.player-control-icon:hover{
opacity: 1;
}
#heart {
color: #d3d3d3;
position: absolute;
right: 260%;
}
#vol {
margin-left: 10rem;
}
#vol:hover{
background-color: #1bd760;
}
#vol::-webkit-slider-runnable-track {
width: 300px;
height: 5px;
background: #ddd;
border: none;
border-radius: 3px;
}
#vol::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 0px;
width: 0px;
border-radius: 50%;
margin-top: -4px;
}
.back{
position:fixed;
bottom: 100%;
top:auto;
left:0%;
width:100%;
height:100%;
background: #282828;
transition: bottom 0.5s ease;
}