smooth-player 1.0.1 → 2.0.0
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 +116 -12
- package/assets/icons/logo-wave-preview.svg +28 -0
- package/assets/icons/logo.svg +8 -0
- package/assets/icons/stop.svg +3 -0
- package/assets/icons/upload.svg +5 -0
- package/assets/icons/visualizer.svg +7 -0
- package/dist/SmoothPlayer.d.ts +16 -1
- package/dist/SmoothPlayer.js +295 -13
- package/dist/i18n/en.generated.d.ts +50 -0
- package/dist/i18n/en.generated.js +51 -0
- package/dist/i18n/strings.d.ts +51 -0
- package/dist/i18n/strings.js +2 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/smooth-player.css +575 -154
- package/dist/types.d.ts +31 -0
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +567 -14
- package/dist/visualizers.d.ts +2 -0
- package/dist/visualizers.js +150 -15
- package/dist-cjs/SmoothPlayer.js +295 -13
- package/dist-cjs/i18n/en.generated.js +54 -0
- package/dist-cjs/i18n/strings.js +5 -0
- package/dist-cjs/index.js +4 -2
- package/dist-cjs/ui.js +568 -15
- package/dist-cjs/visualizers.js +150 -15
- package/package.json +15 -3
- package/styles/common/_base.scss +216 -95
- package/styles/themes/_nocturne.scss +408 -62
- package/styles/themes/_aurora.scss +0 -70
- package/styles/themes/_ocean.scss +0 -13
|
@@ -1,27 +1,49 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
|
|
3
|
+
@function sp-rem($px) {
|
|
4
|
+
@return string.unquote("calc(var(--smooth-player-rem) * #{$px})");
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.smooth-player {
|
|
2
8
|
--smooth-player-muted: #9ca7b6;
|
|
3
|
-
--smooth-player-radius:
|
|
9
|
+
--smooth-player-radius: #{sp-rem(32)};
|
|
4
10
|
|
|
5
11
|
border-color: rgba(255, 255, 255, 0.08);
|
|
6
|
-
box-shadow: 0
|
|
12
|
+
box-shadow: 0 sp-rem(30) sp-rem(60) rgba(0, 0, 0, 0.35), inset 0 sp-rem(1) sp-rem(1) rgba(255, 255, 255, 0.06);
|
|
7
13
|
|
|
8
14
|
.smooth-player__meta {
|
|
9
15
|
margin-top: 1.5rem;
|
|
10
16
|
text-align: center;
|
|
11
17
|
|
|
12
18
|
strong {
|
|
13
|
-
font-size: clamp(
|
|
19
|
+
font-size: clamp(sp-rem(24), 5vw, sp-rem(42));
|
|
14
20
|
font-weight: 500;
|
|
15
21
|
letter-spacing: -0.02em;
|
|
16
22
|
line-height: 1.08;
|
|
17
23
|
display: block;
|
|
18
24
|
color: color-mix(in srgb, var(--smooth-player-accent) 80%, transparent);
|
|
25
|
+
transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
26
|
+
will-change: opacity, transform;
|
|
19
27
|
}
|
|
20
28
|
}
|
|
21
29
|
|
|
22
30
|
.smooth-player__artist {
|
|
23
31
|
margin-top: 0.375rem;
|
|
24
|
-
font-size: clamp(
|
|
32
|
+
font-size: clamp(sp-rem(14), 2.4vw, sp-rem(18));
|
|
33
|
+
transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
34
|
+
will-change: opacity, transform;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.smooth-player__meta strong.is-track-exit,
|
|
38
|
+
.smooth-player__artist.is-track-exit {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: translateY(-0.35rem);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.smooth-player__meta strong.is-track-enter,
|
|
44
|
+
.smooth-player__artist.is-track-enter {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transform: translateY(0.45rem);
|
|
25
47
|
}
|
|
26
48
|
|
|
27
49
|
.smooth-player__top {
|
|
@@ -29,50 +51,87 @@
|
|
|
29
51
|
min-height: 2.125rem;
|
|
30
52
|
display: flex;
|
|
31
53
|
align-items: center;
|
|
32
|
-
justify-content:
|
|
54
|
+
justify-content: flex-start;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.smooth-player__brand {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: .75rem;
|
|
60
|
+
right: 0;
|
|
61
|
+
left: auto;
|
|
62
|
+
width: 2.2rem;
|
|
63
|
+
height: 1.6rem;
|
|
64
|
+
display: block;
|
|
65
|
+
color: color-mix(in srgb, var(--smooth-player-accent) 92%, #fff 8%);
|
|
66
|
+
opacity: 0.8;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.smooth-player__brand::before {
|
|
70
|
+
content: "";
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
display: block;
|
|
74
|
+
background: currentColor;
|
|
75
|
+
-webkit-mask: url("/assets/icons/logo.svg") center / contain no-repeat;
|
|
76
|
+
mask: url("/assets/icons/logo.svg") center / contain no-repeat;
|
|
33
77
|
}
|
|
34
78
|
|
|
35
79
|
.smooth-player__top-title {
|
|
36
80
|
font-size: 0.875rem;
|
|
37
81
|
color: rgba(242, 244, 248, 0.8);
|
|
38
82
|
letter-spacing: 0.01em;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
text-align: right;
|
|
39
85
|
}
|
|
40
86
|
|
|
41
|
-
.smooth-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
87
|
+
.smooth-player__playlist-top {
|
|
88
|
+
margin-right: auto;
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 0.45rem;
|
|
92
|
+
min-width: 0;
|
|
93
|
+
max-width: calc(100% - 4.5rem);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#playlist-toggle {
|
|
97
|
+
position: static;
|
|
98
|
+
width: 3.125rem;
|
|
99
|
+
height: 3.125rem;
|
|
100
|
+
min-width: 3.125rem;
|
|
101
|
+
min-height: 3.125rem;
|
|
49
102
|
border-radius: 50%;
|
|
50
|
-
background: transparent;
|
|
51
103
|
border: 0;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
box-shadow:
|
|
104
|
+
background: rgba(255, 255, 255, 0.14);
|
|
105
|
+
color: rgba(255, 255, 255, 0.78);
|
|
106
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
55
107
|
}
|
|
56
108
|
|
|
57
|
-
|
|
58
|
-
|
|
109
|
+
#playlist-toggle:hover {
|
|
110
|
+
background: rgba(255, 255, 255, 0.19);
|
|
111
|
+
filter: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#playlist-toggle .smooth-player__icon {
|
|
115
|
+
width: 1.375rem;
|
|
116
|
+
height: 1.375rem;
|
|
117
|
+
opacity: 0.78;
|
|
118
|
+
filter: brightness(0) invert(1);
|
|
59
119
|
}
|
|
60
120
|
|
|
61
121
|
#shuffle-toggle {
|
|
62
|
-
position:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
67
|
-
|
|
68
|
-
min-height: 1.875rem;
|
|
122
|
+
position: static;
|
|
123
|
+
width: 3.125rem;
|
|
124
|
+
height: 3.125rem;
|
|
125
|
+
min-width: 3.125rem;
|
|
126
|
+
min-height: 3.125rem;
|
|
127
|
+
border: 0;
|
|
69
128
|
background: transparent;
|
|
70
|
-
color: rgba(
|
|
129
|
+
color: rgba(255, 255, 255, 0.78);
|
|
71
130
|
box-shadow: none;
|
|
72
|
-
z-index: 4;
|
|
73
131
|
}
|
|
74
132
|
|
|
75
133
|
#shuffle-toggle:hover {
|
|
134
|
+
background: transparent;
|
|
76
135
|
filter: none;
|
|
77
136
|
}
|
|
78
137
|
|
|
@@ -91,36 +150,283 @@
|
|
|
91
150
|
box-shadow: none;
|
|
92
151
|
}
|
|
93
152
|
|
|
153
|
+
#visualizer-toggle {
|
|
154
|
+
position: static;
|
|
155
|
+
width: 3.125rem;
|
|
156
|
+
height: 3.125rem;
|
|
157
|
+
min-width: 3.125rem;
|
|
158
|
+
min-height: 3.125rem;
|
|
159
|
+
border: 0;
|
|
160
|
+
background: transparent;
|
|
161
|
+
color: rgba(255, 255, 255, 0.78);
|
|
162
|
+
box-shadow: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#visualizer-toggle:hover {
|
|
166
|
+
background: transparent;
|
|
167
|
+
filter: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
#visualizer-toggle .smooth-player__icon-visualizer {
|
|
171
|
+
width: 1rem;
|
|
172
|
+
height: 1rem;
|
|
173
|
+
display: block;
|
|
174
|
+
background-color: currentColor;
|
|
175
|
+
-webkit-mask: url("/assets/icons/visualizer.svg") center / contain no-repeat;
|
|
176
|
+
mask: url("/assets/icons/visualizer.svg") center / contain no-repeat;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#visualizer-toggle[data-mode="none"] {
|
|
180
|
+
color: rgba(255, 255, 255, 0.62);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#visualizer-toggle[data-mode="spectrum"],
|
|
184
|
+
#visualizer-toggle[data-mode="waveform"] {
|
|
185
|
+
color: var(--smooth-player-accent);
|
|
186
|
+
background: transparent;
|
|
187
|
+
box-shadow: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.smooth-player__visualizer-panel {
|
|
191
|
+
position: absolute;
|
|
192
|
+
inset: auto 0 0 0;
|
|
193
|
+
z-index: 2;
|
|
194
|
+
width: 100%;
|
|
195
|
+
height: min(48%, 20rem);
|
|
196
|
+
overflow-y: auto;
|
|
197
|
+
padding: 0.8rem 1rem 1rem;
|
|
198
|
+
border-top: 1px solid rgba(255, 255, 255, 0.16);
|
|
199
|
+
border-radius: 0;
|
|
200
|
+
background: var(--smooth-player-panel);
|
|
201
|
+
backdrop-filter: blur(8px);
|
|
202
|
+
display: grid;
|
|
203
|
+
gap: 0.42rem;
|
|
204
|
+
align-content: start;
|
|
205
|
+
justify-items: stretch;
|
|
206
|
+
transform: translateY(104%);
|
|
207
|
+
opacity: 0;
|
|
208
|
+
visibility: hidden;
|
|
209
|
+
pointer-events: none;
|
|
210
|
+
transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 220ms ease, visibility 220ms ease;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.smooth-player__visualizer-panel.is-open {
|
|
214
|
+
transform: translateY(0);
|
|
215
|
+
opacity: 1;
|
|
216
|
+
visibility: visible;
|
|
217
|
+
pointer-events: auto;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.smooth-player__visualizer-label {
|
|
221
|
+
margin-top: 0.55rem;
|
|
222
|
+
margin-bottom: 0.28rem;
|
|
223
|
+
font-size: 0.98rem;
|
|
224
|
+
font-weight: 600;
|
|
225
|
+
color: rgba(242, 244, 248, 0.9);
|
|
226
|
+
letter-spacing: 0.01em;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.smooth-player__visualizer-mode-row {
|
|
230
|
+
display: flex;
|
|
231
|
+
justify-content: stretch;
|
|
232
|
+
gap: 0;
|
|
233
|
+
margin: 0.35rem 0 0.8rem;
|
|
234
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.smooth-player__visualizer-mode {
|
|
238
|
+
width: 33.333%;
|
|
239
|
+
height: 2.3rem;
|
|
240
|
+
min-width: 0;
|
|
241
|
+
min-height: 2.3rem;
|
|
242
|
+
border-radius: 0;
|
|
243
|
+
border: 0;
|
|
244
|
+
border-bottom: 2px solid transparent;
|
|
245
|
+
background: transparent;
|
|
246
|
+
color: rgba(242, 244, 248, 0.72);
|
|
247
|
+
box-shadow: none;
|
|
248
|
+
padding: 0 0.45rem;
|
|
249
|
+
display: inline-flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
gap: 0.4rem;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.smooth-player__visualizer-mode.is-active {
|
|
256
|
+
border-bottom-color: var(--smooth-player-accent);
|
|
257
|
+
color: color-mix(in srgb, var(--smooth-player-accent) 82%, #fff 18%);
|
|
258
|
+
background: color-mix(in srgb, var(--smooth-player-accent) 12%, transparent);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.smooth-player__visualizer-mode-icon {
|
|
262
|
+
width: 1rem;
|
|
263
|
+
height: 1rem;
|
|
264
|
+
margin: 0;
|
|
265
|
+
display: block;
|
|
266
|
+
fill: currentColor;
|
|
267
|
+
stroke: currentColor;
|
|
268
|
+
stroke-width: 1.8;
|
|
269
|
+
stroke-linecap: round;
|
|
270
|
+
stroke-linejoin: round;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.smooth-player__visualizer-mode-text {
|
|
274
|
+
font-size: 0.69rem;
|
|
275
|
+
line-height: 1;
|
|
276
|
+
white-space: nowrap;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.smooth-player__visualizer-spectrum-options,
|
|
280
|
+
.smooth-player__visualizer-waveform-options {
|
|
281
|
+
display: grid;
|
|
282
|
+
gap: 0.1rem;
|
|
283
|
+
align-content: start;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.smooth-player__visualizer-spectrum-grid {
|
|
287
|
+
display: grid;
|
|
288
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
289
|
+
gap: 1rem;
|
|
290
|
+
align-items: start;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.smooth-player__visualizer-spectrum-col {
|
|
294
|
+
min-width: 0;
|
|
295
|
+
display: grid;
|
|
296
|
+
gap: 0.1rem;
|
|
297
|
+
align-content: start;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.smooth-player__visualizer-spectrum-options[hidden],
|
|
301
|
+
.smooth-player__visualizer-waveform-options[hidden],
|
|
302
|
+
.smooth-player__visualizer-off-options[hidden] {
|
|
303
|
+
display: none !important;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.smooth-player__visualizer-size-list {
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
gap: 0.8rem;
|
|
310
|
+
margin-top: 0.15rem;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.smooth-player__visualizer-size {
|
|
314
|
+
width: 2.25rem;
|
|
315
|
+
min-width: 2.25rem;
|
|
316
|
+
min-height: 2.25rem;
|
|
317
|
+
border-radius: 0;
|
|
318
|
+
border: 0;
|
|
319
|
+
background: transparent;
|
|
320
|
+
color: rgba(242, 244, 248, 0.86);
|
|
321
|
+
box-shadow: none;
|
|
322
|
+
padding: 0;
|
|
323
|
+
display: inline-grid;
|
|
324
|
+
grid-template-columns: 2.25rem;
|
|
325
|
+
align-items: center;
|
|
326
|
+
justify-items: center;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.smooth-player__visualizer-size.is-active {
|
|
330
|
+
color: color-mix(in srgb, var(--smooth-player-accent) 90%, #fff 10%);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.smooth-player__visualizer-size:disabled {
|
|
334
|
+
opacity: 0.4;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.smooth-player__size-bars {
|
|
338
|
+
width: 2.25rem;
|
|
339
|
+
height: 2.25rem;
|
|
340
|
+
border-radius: 50%;
|
|
341
|
+
border: 0;
|
|
342
|
+
background: rgba(255, 255, 255, 0.06);
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: end;
|
|
345
|
+
justify-content: center;
|
|
346
|
+
gap: 0.13rem;
|
|
347
|
+
padding-bottom: 0.45rem;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.smooth-player__size-bars span {
|
|
351
|
+
display: block;
|
|
352
|
+
background: currentColor;
|
|
353
|
+
border-radius: 1px;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.smooth-player__size-bars span:nth-child(1) { height: 0.42rem; }
|
|
357
|
+
.smooth-player__size-bars span:nth-child(2) { height: 0.68rem; }
|
|
358
|
+
.smooth-player__size-bars span:nth-child(3) { height: 0.98rem; }
|
|
359
|
+
|
|
360
|
+
.smooth-player__size-bars--thin span { width: 0.11rem; }
|
|
361
|
+
.smooth-player__size-bars--medium span { width: 0.18rem; }
|
|
362
|
+
.smooth-player__size-bars--large span { width: 0.3rem; }
|
|
363
|
+
|
|
364
|
+
.smooth-player__visualizer-size.is-active .smooth-player__size-bars {
|
|
365
|
+
background: color-mix(in srgb, var(--smooth-player-accent) 16%, transparent);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.smooth-player__visualizer-check {
|
|
369
|
+
display: flex;
|
|
370
|
+
align-items: center;
|
|
371
|
+
gap: 0.62rem;
|
|
372
|
+
min-height: 2rem;
|
|
373
|
+
font-size: 1rem;
|
|
374
|
+
color: rgba(242, 244, 248, 0.9);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.smooth-player__visualizer-check input {
|
|
378
|
+
width: 1.08rem;
|
|
379
|
+
height: 1.08rem;
|
|
380
|
+
accent-color: var(--smooth-player-accent);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.smooth-player__visualizer-check input:disabled {
|
|
384
|
+
opacity: 0.5;
|
|
385
|
+
}
|
|
386
|
+
|
|
94
387
|
.smooth-player__transport {
|
|
95
388
|
margin-top: 1.75rem;
|
|
96
389
|
margin-bottom: 2.25rem;
|
|
97
390
|
display: flex;
|
|
98
391
|
justify-content: center;
|
|
99
392
|
align-items: center;
|
|
100
|
-
gap: 1.
|
|
393
|
+
gap: 1.1rem;
|
|
101
394
|
|
|
102
395
|
button {
|
|
103
396
|
width: 3.125rem;
|
|
104
397
|
height: 3.125rem;
|
|
105
|
-
|
|
398
|
+
border: 0;
|
|
399
|
+
background: rgba(255, 255, 255, 0.14);
|
|
400
|
+
color: rgba(255, 255, 255, 0.78);
|
|
401
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
106
402
|
}
|
|
107
403
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
min-width: 3.75rem;
|
|
112
|
-
min-height: 3.75rem;
|
|
404
|
+
button:hover {
|
|
405
|
+
background: rgba(255, 255, 255, 0.19);
|
|
406
|
+
filter: none;
|
|
113
407
|
}
|
|
114
408
|
|
|
115
|
-
|
|
116
|
-
width: 1.5rem;
|
|
117
|
-
height: 1.5rem;
|
|
118
|
-
}
|
|
409
|
+
}
|
|
119
410
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
411
|
+
.smooth-player__transport .smooth-player__icon {
|
|
412
|
+
opacity: 0.78;
|
|
413
|
+
filter: brightness(0) invert(1);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
#stop {
|
|
417
|
+
width: 4.2rem;
|
|
418
|
+
height: 4.2rem;
|
|
419
|
+
min-width: 4.2rem;
|
|
420
|
+
min-height: 4.2rem;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
#stop .smooth-player__icon-stop {
|
|
424
|
+
width: 1.6rem;
|
|
425
|
+
height: 1.6rem;
|
|
426
|
+
display: block;
|
|
427
|
+
background: currentColor;
|
|
428
|
+
-webkit-mask: url("/assets/icons/stop.svg") center / contain no-repeat;
|
|
429
|
+
mask: url("/assets/icons/stop.svg") center / contain no-repeat;
|
|
124
430
|
}
|
|
125
431
|
|
|
126
432
|
.smooth-player__progress-wrap {
|
|
@@ -152,16 +458,34 @@
|
|
|
152
458
|
height: 4.625rem;
|
|
153
459
|
background: transparent;
|
|
154
460
|
border: 0;
|
|
155
|
-
color:
|
|
461
|
+
color: var(--smooth-player-accent);
|
|
156
462
|
}
|
|
157
463
|
|
|
158
464
|
.smooth-player__hero-play .smooth-player__icon-play {
|
|
159
|
-
width: 2.
|
|
160
|
-
height: 2.
|
|
465
|
+
width: 2.95rem;
|
|
466
|
+
height: 2.95rem;
|
|
161
467
|
display: block;
|
|
468
|
+
position: relative;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.smooth-player__hero-play .smooth-player__icon-play::before,
|
|
472
|
+
.smooth-player__hero-play .smooth-player__icon-play::after {
|
|
473
|
+
content: "";
|
|
474
|
+
position: absolute;
|
|
475
|
+
inset: 0;
|
|
162
476
|
background-color: currentColor;
|
|
163
|
-
-
|
|
164
|
-
|
|
477
|
+
transition: clip-path 260ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
478
|
+
will-change: clip-path, transform;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.smooth-player__hero-play .smooth-player__icon-play::before {
|
|
482
|
+
clip-path: polygon(24% 16%, 24% 84%, 84% 50%);
|
|
483
|
+
transform: scale(1);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.smooth-player__hero-play .smooth-player__icon-play::after {
|
|
487
|
+
clip-path: polygon(58% 50%, 58% 50%, 58% 50%, 58% 50%);
|
|
488
|
+
transform: scale(1);
|
|
165
489
|
}
|
|
166
490
|
|
|
167
491
|
.smooth-player__hero-play[aria-pressed="true"] {
|
|
@@ -169,8 +493,18 @@
|
|
|
169
493
|
}
|
|
170
494
|
|
|
171
495
|
.smooth-player__hero-play[aria-pressed="true"] .smooth-player__icon-play {
|
|
172
|
-
|
|
173
|
-
|
|
496
|
+
width: 2.95rem;
|
|
497
|
+
height: 2.95rem;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.smooth-player__hero-play[aria-pressed="true"] .smooth-player__icon-play::before {
|
|
501
|
+
clip-path: polygon(22% 16%, 42% 16%, 42% 84%, 22% 84%);
|
|
502
|
+
transform: scale(0.96);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.smooth-player__hero-play[aria-pressed="true"] .smooth-player__icon-play::after {
|
|
506
|
+
clip-path: polygon(58% 16%, 78% 16%, 78% 84%, 58% 84%);
|
|
507
|
+
transform: scale(0.96);
|
|
174
508
|
}
|
|
175
509
|
|
|
176
510
|
.smooth-player__hero-play:hover {
|
|
@@ -183,7 +517,7 @@
|
|
|
183
517
|
}
|
|
184
518
|
|
|
185
519
|
.smooth-player__progress {
|
|
186
|
-
height:
|
|
520
|
+
height: sp-rem(3);
|
|
187
521
|
background: linear-gradient(
|
|
188
522
|
to right,
|
|
189
523
|
color-mix(in srgb, var(--smooth-player-accent) 95%, #fff 5%) 0%,
|
|
@@ -191,23 +525,23 @@
|
|
|
191
525
|
rgba(255, 255, 255, 0.2) var(--smooth-player-progress),
|
|
192
526
|
rgba(255, 255, 255, 0.2) 100%
|
|
193
527
|
);
|
|
194
|
-
box-shadow: 0 0
|
|
528
|
+
box-shadow: 0 0 sp-rem(14) rgba(14, 210, 164, 0.24);
|
|
195
529
|
|
|
196
530
|
&::-webkit-slider-thumb {
|
|
197
|
-
width:
|
|
198
|
-
height:
|
|
199
|
-
box-shadow: 0 0 0
|
|
531
|
+
width: sp-rem(12);
|
|
532
|
+
height: sp-rem(12);
|
|
533
|
+
box-shadow: 0 0 0 sp-rem(2) rgba(14, 210, 164, 0.35), 0 0 sp-rem(12) rgba(14, 210, 164, 0.48);
|
|
200
534
|
}
|
|
201
535
|
|
|
202
536
|
&::-moz-range-thumb {
|
|
203
|
-
width:
|
|
204
|
-
height:
|
|
205
|
-
box-shadow: 0 0 0
|
|
537
|
+
width: sp-rem(12);
|
|
538
|
+
height: sp-rem(12);
|
|
539
|
+
box-shadow: 0 0 0 sp-rem(2) rgba(14, 210, 164, 0.35), 0 0 sp-rem(12) rgba(14, 210, 164, 0.48);
|
|
206
540
|
}
|
|
207
541
|
}
|
|
208
542
|
|
|
209
543
|
.smooth-player__progress-row {
|
|
210
|
-
font-size:
|
|
544
|
+
font-size: sp-rem(11);
|
|
211
545
|
opacity: 0.9;
|
|
212
546
|
}
|
|
213
547
|
|
|
@@ -221,6 +555,18 @@
|
|
|
221
555
|
background: transparent;
|
|
222
556
|
}
|
|
223
557
|
|
|
558
|
+
.smooth-player__playlist-close.secondary {
|
|
559
|
+
border: 0;
|
|
560
|
+
background: rgba(255, 255, 255, 0.14);
|
|
561
|
+
color: rgba(255, 255, 255, 0.78);
|
|
562
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.smooth-player__playlist-close.secondary:hover {
|
|
566
|
+
background: rgba(255, 255, 255, 0.19);
|
|
567
|
+
filter: none;
|
|
568
|
+
}
|
|
569
|
+
|
|
224
570
|
.smooth-player__playlist-switcher {
|
|
225
571
|
padding-bottom: 0.375rem;
|
|
226
572
|
margin-bottom: 0.25rem;
|
|
@@ -252,8 +598,8 @@
|
|
|
252
598
|
}
|
|
253
599
|
|
|
254
600
|
.smooth-player__canvas {
|
|
255
|
-
margin-top:
|
|
256
|
-
border-radius:
|
|
257
|
-
min-height:
|
|
601
|
+
margin-top: sp-rem(16);
|
|
602
|
+
border-radius: sp-rem(12);
|
|
603
|
+
min-height: sp-rem(82);
|
|
258
604
|
}
|
|
259
605
|
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
.smooth-theme-aurora {
|
|
2
|
-
--smooth-player-muted: #c8c1dd;
|
|
3
|
-
|
|
4
|
-
&[data-smooth-layout="split"] {
|
|
5
|
-
.smooth-player__main {
|
|
6
|
-
display: grid;
|
|
7
|
-
grid-template-columns: minmax(0, 1fr) 320px;
|
|
8
|
-
grid-template-rows: auto auto 1fr;
|
|
9
|
-
gap: 14px;
|
|
10
|
-
align-content: start;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.smooth-player__row,
|
|
14
|
-
.smooth-player__meta,
|
|
15
|
-
.smooth-player__progress-wrap {
|
|
16
|
-
grid-column: 1 / 2;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
#spectrum {
|
|
20
|
-
grid-column: 1 / 2;
|
|
21
|
-
grid-row: 4;
|
|
22
|
-
min-height: 210px;
|
|
23
|
-
margin-top: 4px;
|
|
24
|
-
border-radius: 16px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
#waveform {
|
|
28
|
-
grid-column: 2 / 3;
|
|
29
|
-
grid-row: 1 / 5;
|
|
30
|
-
height: calc(100% - 8px);
|
|
31
|
-
min-height: 300px;
|
|
32
|
-
margin-top: 0;
|
|
33
|
-
border-radius: 16px;
|
|
34
|
-
background: color-mix(in srgb, var(--smooth-player-background) 82%, #ffffff 18%);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.smooth-player__playlist {
|
|
38
|
-
width: min(400px, 94vw);
|
|
39
|
-
border-left-color: rgba(255, 122, 89, 0.35);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.smooth-player__playlist-item[aria-current="true"] {
|
|
43
|
-
border-color: rgba(255, 209, 102, 0.7);
|
|
44
|
-
background: rgba(255, 122, 89, 0.24);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (max-width: 980px) {
|
|
50
|
-
.smooth-theme-aurora[data-smooth-layout="split"] {
|
|
51
|
-
.smooth-player__main {
|
|
52
|
-
grid-template-columns: 1fr;
|
|
53
|
-
grid-template-rows: auto;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
#waveform,
|
|
57
|
-
#spectrum,
|
|
58
|
-
.smooth-player__row,
|
|
59
|
-
.smooth-player__meta,
|
|
60
|
-
.smooth-player__progress-wrap {
|
|
61
|
-
grid-column: 1;
|
|
62
|
-
grid-row: auto;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
#waveform {
|
|
66
|
-
margin-top: 14px;
|
|
67
|
-
min-height: 120px;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|