-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathap-design.css
114 lines (93 loc) · 1.69 KB
/
ap-design.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
/* Presentational CSS
* All of the presentational/visual layout of the player should be included in
* this stylesheet. This stylesheet is fairly rudimentary, but works.
*/
.audio-container {
--button-height: 5rem;
--button-width: 5rem;
}
.audio-loader {
height: var(--button-height);
}
[data-ap-ready-state=pending] {
width: 2rem;
height: 2rem;
transition: 300ms opacity;
}
[data-ap-ready-state=pending][data-hidden=false] {
opacity: 1;
}
/* animation is not rendered when opacity is 0; okay to be here */
[data-ap-symbol=loader-main] circle {
stroke-dasharray: 150, 200;
stroke-dashoffset: 100;
transform-origin: 50% 50%;
animation: none;
animation: bufferLoader 1000ms linear infinite;
}
@keyframes bufferLoader {
0% {
transform: rotate(0deg);
}
50% {
}
100% {
transform: rotate(360deg);
}
}
[data-status=complete] {
/* keyframe animate out for graceful removal*/
display: flex;
transition: opacity 200ms;
opacity: 0;
}
.audio-player {
font-family: system-ui, sans-serif;
}
.audio-player_metadata {
flex: 1 1 100%;
margin-bottom: 0.5rem;
}
.audio-player_progress {
display: flex;
flex-flow: row;
align-items: center;
}
.flex-fill {
flex: 1 1 auto;
}
.slider--progress {
flex: 1 1 auto;
margin: 0 0.5rem;
}
.audio-player_gain {
display: flex;
align-items: center;
}
.slider--gain {
width: 4rem;
margin: 0 1rem;
}
.player-time-current,
.player-time-total {
min-width: 2.5rem;
}
.player-time-current {
text-align: right;
}
button {
min-width: 4rem;
min-height: 4rem;
}
@media screen and (max-width: 500px) {
.audio-player {
justify-content: center;
}
.audio-player_progress {
flex: 1 1 100%;
padding: 2rem;
}
}
[aria-disabled=true] svg {
opacity: 0.4;
}