@gentomiyano/optimized-web-audio-player 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/react/index.js +212 -159
- package/dist/react/index.js.map +1 -1
- package/dist/ui/index.js +151 -109
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/player-views.css +37 -59
- package/package.json +1 -1
package/dist/ui/player-views.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.player-compact,
|
|
2
|
-
.player-bound-compact,
|
|
3
2
|
.player-wide,
|
|
4
3
|
.player-detailed,
|
|
5
4
|
.player-podcast,
|
|
@@ -9,64 +8,6 @@
|
|
|
9
8
|
container-type: inline-size;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
.player-bound-compact {
|
|
13
|
-
max-width: 480px;
|
|
14
|
-
overflow: visible;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.player-bound-compact__main {
|
|
18
|
-
display: grid;
|
|
19
|
-
grid-template-areas:
|
|
20
|
-
"play artwork metadata"
|
|
21
|
-
"play artwork signal"
|
|
22
|
-
"seek seek seek";
|
|
23
|
-
grid-template-columns: auto 48px minmax(0, 1fr);
|
|
24
|
-
align-items: center;
|
|
25
|
-
min-width: 0;
|
|
26
|
-
column-gap: 0.65rem;
|
|
27
|
-
row-gap: 0.3rem;
|
|
28
|
-
padding: 0.55rem 0.65rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.player-bound-compact__main[data-active="true"] {
|
|
32
|
-
box-shadow: inset 3px 0 0 var(--player-accent);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.player-bound-compact__main > .player-play-button {
|
|
36
|
-
grid-area: play;
|
|
37
|
-
min-width: var(--player-hit);
|
|
38
|
-
min-height: var(--player-hit);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.player-bound-compact__artwork {
|
|
42
|
-
grid-area: artwork;
|
|
43
|
-
width: 48px;
|
|
44
|
-
height: 48px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.player-bound-compact__main > .player-metadata {
|
|
48
|
-
grid-area: metadata;
|
|
49
|
-
gap: 0.05rem;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.player-bound-compact__signal {
|
|
53
|
-
display: grid;
|
|
54
|
-
grid-area: signal;
|
|
55
|
-
grid-template-columns: minmax(48px, 1fr) auto;
|
|
56
|
-
align-items: center;
|
|
57
|
-
min-width: 0;
|
|
58
|
-
gap: 0.4rem;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.player-bound-compact__signal .player-waveform {
|
|
62
|
-
height: 14px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.player-bound-compact__main > .player-seek {
|
|
66
|
-
grid-area: seek;
|
|
67
|
-
min-height: 24px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
11
|
.player-compact {
|
|
71
12
|
max-width: 480px;
|
|
72
13
|
overflow: visible;
|
|
@@ -91,6 +32,13 @@
|
|
|
91
32
|
min-height: var(--player-hit);
|
|
92
33
|
}
|
|
93
34
|
|
|
35
|
+
.player-compact__main[data-has-trailing-control="false"] {
|
|
36
|
+
grid-template-areas:
|
|
37
|
+
"play artwork metadata"
|
|
38
|
+
"play artwork signal";
|
|
39
|
+
grid-template-columns: auto 48px minmax(0, 1fr);
|
|
40
|
+
}
|
|
41
|
+
|
|
94
42
|
.player-compact__artwork {
|
|
95
43
|
grid-area: artwork;
|
|
96
44
|
width: 48px;
|
|
@@ -123,6 +71,36 @@
|
|
|
123
71
|
gap: 0.4rem;
|
|
124
72
|
}
|
|
125
73
|
|
|
74
|
+
.player-compact__main[data-has-status="false"] .player-compact__signal {
|
|
75
|
+
grid-template-columns: minmax(48px, 1fr) auto;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.player-compact__scrubber {
|
|
79
|
+
position: relative;
|
|
80
|
+
display: grid;
|
|
81
|
+
min-width: 48px;
|
|
82
|
+
align-items: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.player-compact__scrubber > * {
|
|
86
|
+
grid-area: 1 / 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.player-compact__scrubber > .player-seek {
|
|
90
|
+
position: absolute;
|
|
91
|
+
inset: -8px 0;
|
|
92
|
+
min-height: 30px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.player-compact__scrubber > .player-seek::before,
|
|
96
|
+
.player-compact__scrubber > .player-seek > .player-seek__progress {
|
|
97
|
+
opacity: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.player-compact__scrubber > .player-seek input {
|
|
101
|
+
height: 30px;
|
|
102
|
+
}
|
|
103
|
+
|
|
126
104
|
.player-compact__main > .player-volume-popover {
|
|
127
105
|
grid-area: volume;
|
|
128
106
|
}
|