-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
75 lines (75 loc) · 1.5 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
* {
margin: 0;
padding: 0;
letter-spacing: 1px;
box-sizing: border-box;
font-family: sans-serif;
transition: all 0.35s linear;
}
body {
color: white;
display: flex;
--bg: #358194;
min-height: 100vh;
align-items: center;
justify-content: center;
background-color: var(--bg);
}
.player {
width: 640px;
display: grid;
grid-gap: 16px;
padding: 8px 24px;
position: relative;
border-radius: 64px;
background-color: var(--bg);
grid-template-columns: 48px 1fr 48px;
}
.control, .player__current {
height: 100%;
display: flex;
padding-block: 16px;
align-items: center;
justify-content: center;
}
.player__play {
font-size: 24px;
cursor: pointer;
color: transparent;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: white;
}
.player__play:hover {
-webkit-text-fill-color: white;
}
.player__info {
display: flex;
font-size: 21px;
align-items: center;
justify-content: center;
}
.player__current {
text-align: right;
}
.player__bar {
z-index: -2;
--space: -4px;
overflow: hidden;
top: var(--space);
left: var(--space);
position: absolute;
border-radius: 64px;
right: var(--space);
bottom: var(--space);
background-color: #24242424;
}
.player__progress {
display: blcok;
height: 100%;
background-color: white;
transition: all 1s linear;
width: var(--progress,0%);
}
.player__progress.stopped {
background-color: orange;
}