-
Notifications
You must be signed in to change notification settings - Fork 0
/
AudioPlayer.css
94 lines (89 loc) · 1.79 KB
/
AudioPlayer.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
.section__audioPlayer {
background-color: #f2f2f2;
border-top: 1px solid #cecece;
width: 100%;
padding: 20px 0px;
display: flex;
justify-content: center;
}
.audioPlayer {
display: flex;
flex-direction: row;
align-items: center;
}
.button {
border: none;
cursor: pointer;
text-decoration: none;
}
#speedDownBtn img {
transform: rotateZ(180deg);
}
.available {
display: inline-block;
}
.notAvailable {
display: none;
}
#audio {
display: none;
}
/* custom progress bar */
.audioPlayer__progress {
min-width: 500px;
display: flex;
flex-direction: row;
align-items: center;
margin: 0px 30px;
}
#currentTime,
#songDuration {
width: 100px;
text-align: center;
margin: auto;
}
.range-wrap {
position: relative;
width: 100%;
padding: 1.5em 0; /* Giving more room for hover */
max-width: 400px;
}
/* Custom Bar */
.range-wrap::before {
content: "";
background: linear-gradient(to right, #0145b8, #00e5e0, #00f25e);
width: 100%;
height: 8px;
display: block;
position: absolute;
border-radius: 4px;
top: 50%;
transform: translateY(-50%);
transition: height 100ms ease;
}
.range-wrap:hover::before {
height: 10px;
}
/* Hide Original */
.range {
width: 100%;
cursor: pointer;
opacity: 0;
}
.bubble {
background: white;
border: 3px solid #cbd2da;
position: absolute;
border-radius: 50%;
width: 2rem;
height: 2rem;
top: 50%;
transform: translateY(-50%);
pointer-events: none; /* Remove pointer events on Bubble so user can click on the actual thumb beaneath it! */
color: transparent;
display: grid;
place-items: center; /* Place the number on the center */
font-weight: bold;
transition: color 100ms ease, transform 100ms ease;
user-select: none; /* Prevent Accidentally highlighting the number while sliding the cursor */
}