smooth-player 1.0.4 → 2.1.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 +296 -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 +582 -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 +296 -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 +4 -3
- package/styles/common/_base.scss +223 -95
- package/styles/themes/_nocturne.scss +408 -62
- package/styles/themes/_aurora.scss +0 -70
- package/styles/themes/_ocean.scss +0 -13
package/dist/smooth-player.css
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
.smooth-player {
|
|
2
|
+
--smooth-player-rem: 0.0625rem;
|
|
2
3
|
--smooth-player-background: #0b1220;
|
|
3
4
|
--smooth-player-foreground: rgba(243, 245, 249, 0.8);
|
|
4
5
|
--smooth-player-accent: #2db6c8;
|
|
5
6
|
--smooth-player-waveform: #f3f5f9;
|
|
6
|
-
--smooth-player-radius:
|
|
7
|
+
--smooth-player-radius: calc(var(--smooth-player-rem) * 18);
|
|
7
8
|
--smooth-player-font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
|
|
8
9
|
--smooth-player-surface: linear-gradient(145deg, #182743, #111a2d 56%, #0e1628);
|
|
9
10
|
--smooth-player-panel: linear-gradient(190deg, #1a2945 0%, #111a2e 58%, #0c1321 100%);
|
|
10
11
|
--smooth-player-muted: #92a4c1;
|
|
11
12
|
--smooth-player-progress: 0%;
|
|
12
13
|
position: relative;
|
|
13
|
-
width: min(
|
|
14
|
-
min-height:
|
|
14
|
+
width: min(40rem, 92vw);
|
|
15
|
+
min-height: calc(var(--smooth-player-rem) * 500);
|
|
15
16
|
border-radius: var(--smooth-player-radius);
|
|
16
|
-
border:
|
|
17
|
+
border: calc(var(--smooth-player-rem) * 1) solid rgba(255, 255, 255, 0.12);
|
|
17
18
|
background: var(--smooth-player-surface);
|
|
18
19
|
color: var(--smooth-player-foreground);
|
|
19
20
|
font-family: var(--smooth-player-font-family);
|
|
@@ -29,38 +30,146 @@
|
|
|
29
30
|
transition: opacity 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
.smooth-player.is-drag-over {
|
|
34
|
+
border-color: color-mix(in srgb, var(--smooth-player-accent) 44%, #fff 56%);
|
|
35
|
+
box-shadow: 0 0 0 calc(var(--smooth-player-rem) * 2) color-mix(in srgb, var(--smooth-player-accent) 18%, transparent);
|
|
36
|
+
}
|
|
37
|
+
.smooth-player.is-drag-over::before {
|
|
38
|
+
opacity: 0.45;
|
|
39
|
+
}
|
|
40
|
+
.smooth-player.is-drag-over .smooth-player__main {
|
|
41
|
+
filter: saturate(1.03);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.smooth-player__main::before,
|
|
45
|
+
.smooth-player__main::after {
|
|
46
|
+
content: "";
|
|
47
|
+
position: absolute;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transition: opacity 220ms ease, transform 220ms ease;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.smooth-player__main::before {
|
|
54
|
+
inset: calc(var(--smooth-player-rem) * 18);
|
|
55
|
+
border-radius: calc(var(--smooth-player-rem) * 16);
|
|
56
|
+
border: calc(var(--smooth-player-rem) * 2) dashed color-mix(in srgb, var(--smooth-player-accent) 52%, #fff 48%);
|
|
57
|
+
background: color-mix(in srgb, var(--smooth-player-accent) 8%, transparent);
|
|
58
|
+
transform: scale(0.985);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.smooth-player__main::after {
|
|
62
|
+
width: calc(var(--smooth-player-rem) * 64);
|
|
63
|
+
height: calc(var(--smooth-player-rem) * 64);
|
|
64
|
+
left: 50%;
|
|
65
|
+
top: 50%;
|
|
66
|
+
transform: translate(-50%, -50%) scale(0.92);
|
|
67
|
+
background: rgba(255, 255, 255, 0.78);
|
|
68
|
+
-webkit-mask: url("/assets/icons/upload.svg") center/contain no-repeat;
|
|
69
|
+
mask: url("/assets/icons/upload.svg") center/contain no-repeat;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.smooth-player.is-drag-over .smooth-player__main::before,
|
|
73
|
+
.smooth-player.is-drag-over .smooth-player__main::after {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.smooth-player.is-drag-over .smooth-player__main::before {
|
|
78
|
+
transform: scale(1);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.smooth-player.is-drag-over .smooth-player__main::after {
|
|
82
|
+
transform: translate(-50%, -50%) scale(1);
|
|
83
|
+
}
|
|
84
|
+
|
|
32
85
|
.smooth-player__main {
|
|
33
86
|
position: relative;
|
|
34
87
|
z-index: 1;
|
|
35
88
|
height: 100%;
|
|
36
|
-
padding:
|
|
89
|
+
padding: calc(var(--smooth-player-rem) * 20);
|
|
37
90
|
transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 420ms ease;
|
|
38
91
|
}
|
|
39
92
|
|
|
93
|
+
.smooth-player__notice {
|
|
94
|
+
position: absolute;
|
|
95
|
+
left: 50%;
|
|
96
|
+
bottom: calc(var(--smooth-player-rem) * 14);
|
|
97
|
+
z-index: 6;
|
|
98
|
+
transform: translate(-50%, calc(var(--smooth-player-rem) * 8));
|
|
99
|
+
width: min(calc(var(--smooth-player-rem) * 640), 100% - calc(var(--smooth-player-rem) * 28));
|
|
100
|
+
padding: calc(var(--smooth-player-rem) * 10) calc(var(--smooth-player-rem) * 12);
|
|
101
|
+
border-radius: calc(var(--smooth-player-rem) * 10);
|
|
102
|
+
border: calc(var(--smooth-player-rem) * 1) solid rgba(255, 255, 255, 0.24);
|
|
103
|
+
background: rgba(9, 16, 30, 0.84);
|
|
104
|
+
color: rgba(255, 255, 255, 0.9);
|
|
105
|
+
font-size: calc(var(--smooth-player-rem) * 12);
|
|
106
|
+
line-height: 1.35;
|
|
107
|
+
text-align: center;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
opacity: 0;
|
|
110
|
+
transition: opacity 180ms ease, transform 180ms ease;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.smooth-player__notice.is-visible {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transform: translate(-50%, 0);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.smooth-player__debug {
|
|
119
|
+
width: min(100%, calc(var(--smooth-player-rem) * 640));
|
|
120
|
+
margin: calc(var(--smooth-player-rem) * 12) auto 0;
|
|
121
|
+
border: calc(var(--smooth-player-rem) * 1) solid rgba(255, 255, 255, 0.18);
|
|
122
|
+
border-radius: calc(var(--smooth-player-rem) * 12);
|
|
123
|
+
background: rgba(7, 12, 22, 0.65);
|
|
124
|
+
padding: calc(var(--smooth-player-rem) * 10) calc(var(--smooth-player-rem) * 12);
|
|
125
|
+
font-size: calc(var(--smooth-player-rem) * 12);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.smooth-player__debug h3 {
|
|
129
|
+
margin: 0 0 calc(var(--smooth-player-rem) * 8);
|
|
130
|
+
font-size: calc(var(--smooth-player-rem) * 13);
|
|
131
|
+
font-weight: 700;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.smooth-player__debug-grid {
|
|
135
|
+
display: grid;
|
|
136
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
137
|
+
gap: calc(var(--smooth-player-rem) * 6) calc(var(--smooth-player-rem) * 10);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.smooth-player__debug-events {
|
|
141
|
+
margin: calc(var(--smooth-player-rem) * 8) 0 0;
|
|
142
|
+
max-height: calc(var(--smooth-player-rem) * 140);
|
|
143
|
+
overflow: auto;
|
|
144
|
+
border-radius: calc(var(--smooth-player-rem) * 8);
|
|
145
|
+
padding: calc(var(--smooth-player-rem) * 8);
|
|
146
|
+
background: rgba(255, 255, 255, 0.06);
|
|
147
|
+
}
|
|
148
|
+
|
|
40
149
|
.smooth-player__row {
|
|
41
150
|
display: flex;
|
|
42
151
|
flex-wrap: wrap;
|
|
43
|
-
gap:
|
|
152
|
+
gap: calc(var(--smooth-player-rem) * 12);
|
|
44
153
|
align-items: center;
|
|
45
154
|
justify-content: space-between;
|
|
46
155
|
}
|
|
47
156
|
|
|
48
157
|
.smooth-player__title {
|
|
49
158
|
margin: 0;
|
|
50
|
-
font-size:
|
|
159
|
+
font-size: calc(var(--smooth-player-rem) * 22);
|
|
51
160
|
}
|
|
52
161
|
|
|
53
162
|
.smooth-player__controls {
|
|
54
163
|
display: flex;
|
|
55
|
-
gap:
|
|
164
|
+
gap: calc(var(--smooth-player-rem) * 8);
|
|
56
165
|
}
|
|
57
166
|
|
|
58
167
|
.smooth-player button {
|
|
59
168
|
border: 0;
|
|
60
169
|
background: var(--smooth-player-accent);
|
|
61
170
|
color: #041016;
|
|
62
|
-
width:
|
|
63
|
-
height:
|
|
171
|
+
width: calc(var(--smooth-player-rem) * 46);
|
|
172
|
+
height: calc(var(--smooth-player-rem) * 46);
|
|
64
173
|
display: inline-flex;
|
|
65
174
|
align-items: center;
|
|
66
175
|
justify-content: center;
|
|
@@ -73,12 +182,12 @@
|
|
|
73
182
|
outline: none;
|
|
74
183
|
}
|
|
75
184
|
.smooth-player button:hover {
|
|
76
|
-
transform: translateY(-
|
|
185
|
+
transform: translateY(-sp-rem(1));
|
|
77
186
|
filter: brightness(1.1);
|
|
78
187
|
}
|
|
79
188
|
.smooth-player button:focus-visible {
|
|
80
|
-
outline:
|
|
81
|
-
outline-offset:
|
|
189
|
+
outline: calc(var(--smooth-player-rem) * 2) solid #7fe9f5;
|
|
190
|
+
outline-offset: calc(var(--smooth-player-rem) * 2);
|
|
82
191
|
}
|
|
83
192
|
.smooth-player button.secondary {
|
|
84
193
|
background: #27344f;
|
|
@@ -86,24 +195,24 @@
|
|
|
86
195
|
}
|
|
87
196
|
|
|
88
197
|
.smooth-player__icon {
|
|
89
|
-
width:
|
|
90
|
-
height:
|
|
198
|
+
width: calc(var(--smooth-player-rem) * 22);
|
|
199
|
+
height: calc(var(--smooth-player-rem) * 22);
|
|
91
200
|
display: block;
|
|
92
201
|
}
|
|
93
202
|
|
|
94
203
|
.smooth-player__sr-only {
|
|
95
204
|
position: absolute;
|
|
96
|
-
width:
|
|
97
|
-
height:
|
|
205
|
+
width: calc(var(--smooth-player-rem) * 1);
|
|
206
|
+
height: calc(var(--smooth-player-rem) * 1);
|
|
98
207
|
padding: 0;
|
|
99
|
-
margin: -
|
|
208
|
+
margin: -sp-rem(1);
|
|
100
209
|
overflow: hidden;
|
|
101
210
|
clip: rect(0, 0, 0, 0);
|
|
102
211
|
border: 0;
|
|
103
212
|
}
|
|
104
213
|
|
|
105
214
|
.smooth-player__meta {
|
|
106
|
-
margin-top:
|
|
215
|
+
margin-top: calc(var(--smooth-player-rem) * 14);
|
|
107
216
|
opacity: 0.95;
|
|
108
217
|
}
|
|
109
218
|
|
|
@@ -118,13 +227,13 @@
|
|
|
118
227
|
.smooth-player__ring {
|
|
119
228
|
--smooth-player-progress-angle: 0deg;
|
|
120
229
|
position: relative;
|
|
121
|
-
width:
|
|
230
|
+
width: calc(var(--smooth-player-rem) * 230);
|
|
122
231
|
aspect-ratio: 1/1;
|
|
123
232
|
border-radius: 50%;
|
|
124
|
-
padding:
|
|
233
|
+
padding: calc(var(--smooth-player-rem) * 2);
|
|
125
234
|
background: conic-gradient(var(--smooth-player-accent) var(--smooth-player-progress), rgba(255, 255, 255, 0.16) 0%);
|
|
126
235
|
cursor: grab;
|
|
127
|
-
box-shadow: 0 0
|
|
236
|
+
box-shadow: 0 0 calc(var(--smooth-player-rem) * 20) color-mix(in srgb, var(--smooth-player-accent) 45%, transparent);
|
|
128
237
|
}
|
|
129
238
|
|
|
130
239
|
.smooth-player__ring:active {
|
|
@@ -146,7 +255,7 @@
|
|
|
146
255
|
border-radius: 50%;
|
|
147
256
|
overflow: hidden;
|
|
148
257
|
background: var(--smooth-player-background);
|
|
149
|
-
box-shadow: 0
|
|
258
|
+
box-shadow: 0 calc(var(--smooth-player-rem) * 16) calc(var(--smooth-player-rem) * 28) rgba(0, 0, 0, 0.36), inset 0 calc(var(--smooth-player-rem) * 1) calc(var(--smooth-player-rem) * 1) rgba(255, 255, 255, 0.25);
|
|
150
259
|
}
|
|
151
260
|
|
|
152
261
|
.smooth-player__cover-canvas {
|
|
@@ -162,27 +271,27 @@
|
|
|
162
271
|
}
|
|
163
272
|
|
|
164
273
|
.smooth-player__artist {
|
|
165
|
-
margin-top:
|
|
274
|
+
margin-top: calc(var(--smooth-player-rem) * 2);
|
|
166
275
|
color: var(--smooth-player-muted);
|
|
167
276
|
}
|
|
168
277
|
|
|
169
278
|
.smooth-player__time {
|
|
170
|
-
margin-top:
|
|
171
|
-
font-size:
|
|
279
|
+
margin-top: calc(var(--smooth-player-rem) * 8);
|
|
280
|
+
font-size: calc(var(--smooth-player-rem) * 14);
|
|
172
281
|
color: var(--smooth-player-muted);
|
|
173
282
|
}
|
|
174
283
|
|
|
175
284
|
.smooth-player__progress-wrap {
|
|
176
|
-
margin-top:
|
|
285
|
+
margin-top: calc(var(--smooth-player-rem) * 10);
|
|
177
286
|
display: grid;
|
|
178
|
-
gap:
|
|
287
|
+
gap: calc(var(--smooth-player-rem) * 6);
|
|
179
288
|
}
|
|
180
289
|
|
|
181
290
|
.smooth-player__progress-row {
|
|
182
291
|
display: flex;
|
|
183
292
|
justify-content: space-between;
|
|
184
293
|
align-items: center;
|
|
185
|
-
font-size:
|
|
294
|
+
font-size: calc(var(--smooth-player-rem) * 12);
|
|
186
295
|
color: var(--smooth-player-muted);
|
|
187
296
|
}
|
|
188
297
|
|
|
@@ -190,45 +299,45 @@
|
|
|
190
299
|
--smooth-player-progress: 0%;
|
|
191
300
|
appearance: none;
|
|
192
301
|
width: 100%;
|
|
193
|
-
height:
|
|
194
|
-
border-radius:
|
|
302
|
+
height: calc(var(--smooth-player-rem) * 7);
|
|
303
|
+
border-radius: calc(var(--smooth-player-rem) * 999);
|
|
195
304
|
background: linear-gradient(to right, var(--smooth-player-accent) 0%, var(--smooth-player-accent) var(--smooth-player-progress), rgba(255, 255, 255, 0.2) var(--smooth-player-progress), rgba(255, 255, 255, 0.2) 100%);
|
|
196
305
|
cursor: pointer;
|
|
197
306
|
}
|
|
198
307
|
.smooth-player__progress::-webkit-slider-thumb {
|
|
199
308
|
appearance: none;
|
|
200
|
-
width:
|
|
201
|
-
height:
|
|
309
|
+
width: calc(var(--smooth-player-rem) * 14);
|
|
310
|
+
height: calc(var(--smooth-player-rem) * 14);
|
|
202
311
|
border-radius: 50%;
|
|
203
312
|
border: 0;
|
|
204
313
|
background: #f4fbff;
|
|
205
|
-
box-shadow: 0 0 0
|
|
314
|
+
box-shadow: 0 0 0 calc(var(--smooth-player-rem) * 2) rgba(44, 182, 200, 0.35);
|
|
206
315
|
}
|
|
207
316
|
.smooth-player__progress::-moz-range-thumb {
|
|
208
|
-
width:
|
|
209
|
-
height:
|
|
317
|
+
width: calc(var(--smooth-player-rem) * 14);
|
|
318
|
+
height: calc(var(--smooth-player-rem) * 14);
|
|
210
319
|
border-radius: 50%;
|
|
211
320
|
border: 0;
|
|
212
321
|
background: #f4fbff;
|
|
213
|
-
box-shadow: 0 0 0
|
|
322
|
+
box-shadow: 0 0 0 calc(var(--smooth-player-rem) * 2) rgba(44, 182, 200, 0.35);
|
|
214
323
|
}
|
|
215
324
|
|
|
216
325
|
.smooth-player__canvas {
|
|
217
|
-
margin-top:
|
|
326
|
+
margin-top: calc(var(--smooth-player-rem) * 14);
|
|
218
327
|
width: 100%;
|
|
219
|
-
border-radius:
|
|
220
|
-
border:
|
|
328
|
+
border-radius: calc(var(--smooth-player-rem) * 10);
|
|
329
|
+
border: calc(var(--smooth-player-rem) * 1) solid rgba(255, 255, 255, 0.1);
|
|
221
330
|
background: var(--smooth-player-background);
|
|
222
331
|
}
|
|
223
332
|
|
|
224
333
|
.smooth-player__playlist {
|
|
225
334
|
position: absolute;
|
|
226
335
|
inset: 0 0 0 auto;
|
|
227
|
-
width: min(
|
|
336
|
+
width: min(calc(var(--smooth-player-rem) * 350), 90vw);
|
|
228
337
|
height: 100%;
|
|
229
|
-
padding:
|
|
338
|
+
padding: calc(var(--smooth-player-rem) * 20);
|
|
230
339
|
background: var(--smooth-player-panel);
|
|
231
|
-
border-left:
|
|
340
|
+
border-left: calc(var(--smooth-player-rem) * 1) solid rgba(255, 255, 255, 0.12);
|
|
232
341
|
transform: translateX(105%);
|
|
233
342
|
opacity: 0;
|
|
234
343
|
visibility: hidden;
|
|
@@ -237,26 +346,33 @@
|
|
|
237
346
|
z-index: 3;
|
|
238
347
|
}
|
|
239
348
|
|
|
349
|
+
.smooth-player__playlist.is-open {
|
|
350
|
+
transform: translateX(0);
|
|
351
|
+
opacity: 1;
|
|
352
|
+
visibility: visible;
|
|
353
|
+
pointer-events: auto;
|
|
354
|
+
}
|
|
355
|
+
|
|
240
356
|
.smooth-player__playlist-head {
|
|
241
357
|
display: flex;
|
|
242
358
|
align-items: center;
|
|
243
359
|
justify-content: space-between;
|
|
244
|
-
gap:
|
|
360
|
+
gap: calc(var(--smooth-player-rem) * 12);
|
|
245
361
|
}
|
|
246
362
|
.smooth-player__playlist-head h2 {
|
|
247
363
|
margin: 0;
|
|
248
|
-
font-size:
|
|
364
|
+
font-size: calc(var(--smooth-player-rem) * 20);
|
|
249
365
|
}
|
|
250
366
|
|
|
251
367
|
.smooth-player__playlist-close {
|
|
252
|
-
width:
|
|
253
|
-
height:
|
|
254
|
-
font-size:
|
|
368
|
+
width: calc(var(--smooth-player-rem) * 36);
|
|
369
|
+
height: calc(var(--smooth-player-rem) * 36);
|
|
370
|
+
font-size: calc(var(--smooth-player-rem) * 22);
|
|
255
371
|
line-height: 1;
|
|
256
372
|
}
|
|
257
373
|
|
|
258
374
|
.smooth-player__playlist-switcher {
|
|
259
|
-
margin-top:
|
|
375
|
+
margin-top: calc(var(--smooth-player-rem) * 10);
|
|
260
376
|
position: relative;
|
|
261
377
|
}
|
|
262
378
|
|
|
@@ -264,30 +380,30 @@
|
|
|
264
380
|
width: 100%;
|
|
265
381
|
height: auto;
|
|
266
382
|
min-width: 0;
|
|
267
|
-
min-height:
|
|
268
|
-
padding:
|
|
269
|
-
border:
|
|
383
|
+
min-height: calc(var(--smooth-player-rem) * 36);
|
|
384
|
+
padding: calc(var(--smooth-player-rem) * 8) calc(var(--smooth-player-rem) * 12);
|
|
385
|
+
border: calc(var(--smooth-player-rem) * 1) solid rgba(255, 255, 255, 0.18);
|
|
270
386
|
background: rgba(255, 255, 255, 0.06);
|
|
271
387
|
color: #e7eef9;
|
|
272
|
-
font-size:
|
|
388
|
+
font-size: calc(var(--smooth-player-rem) * 13);
|
|
273
389
|
line-height: 1.2;
|
|
274
390
|
text-align: left;
|
|
275
391
|
white-space: nowrap;
|
|
276
392
|
overflow: hidden;
|
|
277
393
|
text-overflow: ellipsis;
|
|
278
394
|
position: relative;
|
|
279
|
-
padding-right:
|
|
395
|
+
padding-right: calc(var(--smooth-player-rem) * 32);
|
|
280
396
|
}
|
|
281
397
|
|
|
282
398
|
.smooth-player__playlist-switcher-trigger::after {
|
|
283
399
|
content: "";
|
|
284
400
|
position: absolute;
|
|
285
|
-
right:
|
|
401
|
+
right: calc(var(--smooth-player-rem) * 12);
|
|
286
402
|
top: 50%;
|
|
287
|
-
width:
|
|
288
|
-
height:
|
|
289
|
-
border-right:
|
|
290
|
-
border-bottom:
|
|
403
|
+
width: calc(var(--smooth-player-rem) * 8);
|
|
404
|
+
height: calc(var(--smooth-player-rem) * 8);
|
|
405
|
+
border-right: calc(var(--smooth-player-rem) * 2) solid currentColor;
|
|
406
|
+
border-bottom: calc(var(--smooth-player-rem) * 2) solid currentColor;
|
|
291
407
|
transform: translateY(-65%) rotate(45deg);
|
|
292
408
|
opacity: 0.8;
|
|
293
409
|
}
|
|
@@ -298,15 +414,15 @@
|
|
|
298
414
|
|
|
299
415
|
.smooth-player__playlist-switcher-menu {
|
|
300
416
|
position: absolute;
|
|
301
|
-
top: calc(100% +
|
|
417
|
+
top: calc(100% + calc(var(--smooth-player-rem) * 6));
|
|
302
418
|
left: 0;
|
|
303
419
|
right: 0;
|
|
304
420
|
display: grid;
|
|
305
|
-
gap:
|
|
306
|
-
padding:
|
|
421
|
+
gap: calc(var(--smooth-player-rem) * 6);
|
|
422
|
+
padding: calc(var(--smooth-player-rem) * 12);
|
|
307
423
|
background: rgba(10, 18, 35, 0.96);
|
|
308
|
-
backdrop-filter: blur(
|
|
309
|
-
border-radius:
|
|
424
|
+
backdrop-filter: blur(calc(var(--smooth-player-rem) * 10));
|
|
425
|
+
border-radius: calc(var(--smooth-player-rem) * 8);
|
|
310
426
|
z-index: 8;
|
|
311
427
|
}
|
|
312
428
|
|
|
@@ -318,13 +434,13 @@
|
|
|
318
434
|
width: 100%;
|
|
319
435
|
height: auto;
|
|
320
436
|
min-width: 0;
|
|
321
|
-
min-height:
|
|
322
|
-
padding:
|
|
323
|
-
border-radius:
|
|
324
|
-
border:
|
|
437
|
+
min-height: calc(var(--smooth-player-rem) * 34);
|
|
438
|
+
padding: calc(var(--smooth-player-rem) * 8) calc(var(--smooth-player-rem) * 10);
|
|
439
|
+
border-radius: calc(var(--smooth-player-rem) * 10);
|
|
440
|
+
border: calc(var(--smooth-player-rem) * 1) solid rgba(255, 255, 255, 0.14);
|
|
325
441
|
background: rgba(255, 255, 255, 0.04);
|
|
326
442
|
color: #e7eef9;
|
|
327
|
-
font-size:
|
|
443
|
+
font-size: calc(var(--smooth-player-rem) * 12);
|
|
328
444
|
line-height: 1.2;
|
|
329
445
|
text-align: left;
|
|
330
446
|
white-space: nowrap;
|
|
@@ -340,11 +456,11 @@
|
|
|
340
456
|
|
|
341
457
|
.smooth-player__playlist-list {
|
|
342
458
|
list-style: none;
|
|
343
|
-
margin:
|
|
459
|
+
margin: calc(var(--smooth-player-rem) * 12) 0 0;
|
|
344
460
|
padding: 0;
|
|
345
461
|
display: grid;
|
|
346
|
-
gap:
|
|
347
|
-
max-height: calc(100% -
|
|
462
|
+
gap: calc(var(--smooth-player-rem) * 8);
|
|
463
|
+
max-height: calc(100% - calc(var(--smooth-player-rem) * 108));
|
|
348
464
|
overflow: auto;
|
|
349
465
|
}
|
|
350
466
|
|
|
@@ -352,18 +468,18 @@
|
|
|
352
468
|
width: 100%;
|
|
353
469
|
height: auto;
|
|
354
470
|
min-width: 0;
|
|
355
|
-
min-height:
|
|
356
|
-
border-radius:
|
|
471
|
+
min-height: calc(var(--smooth-player-rem) * 48);
|
|
472
|
+
border-radius: calc(var(--smooth-player-rem) * 8);
|
|
357
473
|
border: 0;
|
|
358
474
|
background: transparent;
|
|
359
475
|
color: #f1f5fd;
|
|
360
|
-
padding:
|
|
476
|
+
padding: calc(var(--smooth-player-rem) * 8) 0;
|
|
361
477
|
text-align: left;
|
|
362
478
|
display: grid;
|
|
363
|
-
grid-template-columns:
|
|
479
|
+
grid-template-columns: calc(var(--smooth-player-rem) * 18) minmax(0, 1fr);
|
|
364
480
|
align-items: center;
|
|
365
481
|
justify-content: initial;
|
|
366
|
-
gap:
|
|
482
|
+
gap: calc(var(--smooth-player-rem) * 10);
|
|
367
483
|
cursor: pointer;
|
|
368
484
|
}
|
|
369
485
|
|
|
@@ -371,41 +487,41 @@
|
|
|
371
487
|
width: 100%;
|
|
372
488
|
height: auto;
|
|
373
489
|
min-width: 0;
|
|
374
|
-
min-height:
|
|
375
|
-
border-radius:
|
|
490
|
+
min-height: calc(var(--smooth-player-rem) * 36);
|
|
491
|
+
border-radius: calc(var(--smooth-player-rem) * 6);
|
|
376
492
|
}
|
|
377
493
|
|
|
378
494
|
.smooth-player .smooth-player__playlist-switcher-item {
|
|
379
495
|
width: 100%;
|
|
380
496
|
height: auto;
|
|
381
497
|
min-width: 0;
|
|
382
|
-
min-height:
|
|
383
|
-
border-radius:
|
|
498
|
+
min-height: calc(var(--smooth-player-rem) * 34);
|
|
499
|
+
border-radius: calc(var(--smooth-player-rem) * 4);
|
|
384
500
|
}
|
|
385
501
|
|
|
386
502
|
.smooth-player .smooth-player__playlist-item {
|
|
387
503
|
width: 100%;
|
|
388
504
|
height: auto;
|
|
389
505
|
min-width: 0;
|
|
390
|
-
min-height:
|
|
391
|
-
border-bottom: rgba(255, 255, 255, 0.1)
|
|
506
|
+
min-height: calc(var(--smooth-player-rem) * 48);
|
|
507
|
+
border-bottom: rgba(255, 255, 255, 0.1) calc(var(--smooth-player-rem) * 1) solid;
|
|
392
508
|
border-radius: 0;
|
|
393
509
|
}
|
|
394
510
|
|
|
395
511
|
.smooth-player__playlist-note {
|
|
396
|
-
width:
|
|
397
|
-
height:
|
|
512
|
+
width: calc(var(--smooth-player-rem) * 18);
|
|
513
|
+
height: calc(var(--smooth-player-rem) * 18);
|
|
398
514
|
color: rgba(243, 245, 249, 0.52);
|
|
399
515
|
background: currentColor;
|
|
400
516
|
display: block;
|
|
401
|
-
-webkit-mask: url("/assets/icons/note.svg") center/
|
|
402
|
-
mask: url("/assets/icons/note.svg") center/
|
|
517
|
+
-webkit-mask: url("/assets/icons/note.svg") center/calc(var(--smooth-player-rem) * 15) calc(var(--smooth-player-rem) * 15) no-repeat;
|
|
518
|
+
mask: url("/assets/icons/note.svg") center/calc(var(--smooth-player-rem) * 15) calc(var(--smooth-player-rem) * 15) no-repeat;
|
|
403
519
|
}
|
|
404
520
|
|
|
405
521
|
.smooth-player__playlist-content {
|
|
406
522
|
min-width: 0;
|
|
407
523
|
display: grid;
|
|
408
|
-
gap:
|
|
524
|
+
gap: calc(var(--smooth-player-rem) * 2);
|
|
409
525
|
}
|
|
410
526
|
|
|
411
527
|
.smooth-player__playlist-title {
|
|
@@ -430,16 +546,16 @@
|
|
|
430
546
|
}
|
|
431
547
|
|
|
432
548
|
.smooth-player__playlist-item:focus-visible {
|
|
433
|
-
outline:
|
|
434
|
-
outline-offset:
|
|
435
|
-
border-radius:
|
|
549
|
+
outline: calc(var(--smooth-player-rem) * 2) solid color-mix(in srgb, var(--smooth-player-accent) 55%, #fff 45%);
|
|
550
|
+
outline-offset: calc(var(--smooth-player-rem) * 3);
|
|
551
|
+
border-radius: calc(var(--smooth-player-rem) * 8);
|
|
436
552
|
}
|
|
437
553
|
|
|
438
554
|
.smooth-player--playlist-open::before {
|
|
439
555
|
opacity: 1;
|
|
440
556
|
}
|
|
441
557
|
.smooth-player--playlist-open .smooth-player__main {
|
|
442
|
-
transform: translateX(-
|
|
558
|
+
transform: translateX(-sp-rem(18)) scale(0.992);
|
|
443
559
|
filter: saturate(0.9);
|
|
444
560
|
}
|
|
445
561
|
.smooth-player--playlist-open .smooth-player__playlist {
|
|
@@ -449,12 +565,15 @@
|
|
|
449
565
|
pointer-events: auto;
|
|
450
566
|
}
|
|
451
567
|
|
|
452
|
-
@media (max-width:
|
|
568
|
+
@media (max-width: 560px) {
|
|
453
569
|
.smooth-player {
|
|
454
|
-
|
|
570
|
+
width: 100%;
|
|
571
|
+
min-height: 100dvh;
|
|
572
|
+
border-radius: 0;
|
|
573
|
+
margin: 0;
|
|
455
574
|
}
|
|
456
575
|
.smooth-player__main {
|
|
457
|
-
padding:
|
|
576
|
+
padding: calc(var(--smooth-player-rem) * 14);
|
|
458
577
|
}
|
|
459
578
|
.smooth-player__playlist {
|
|
460
579
|
width: 100%;
|
|
@@ -463,70 +582,117 @@
|
|
|
463
582
|
}
|
|
464
583
|
.smooth-player {
|
|
465
584
|
--smooth-player-muted: #9ca7b6;
|
|
466
|
-
--smooth-player-radius:
|
|
585
|
+
--smooth-player-radius: calc(var(--smooth-player-rem) * 32);
|
|
467
586
|
border-color: rgba(255, 255, 255, 0.08);
|
|
468
|
-
box-shadow: 0
|
|
587
|
+
box-shadow: 0 calc(var(--smooth-player-rem) * 30) calc(var(--smooth-player-rem) * 60) rgba(0, 0, 0, 0.35), inset 0 calc(var(--smooth-player-rem) * 1) calc(var(--smooth-player-rem) * 1) rgba(255, 255, 255, 0.06);
|
|
469
588
|
}
|
|
470
589
|
.smooth-player .smooth-player__meta {
|
|
471
590
|
margin-top: 1.5rem;
|
|
472
591
|
text-align: center;
|
|
473
592
|
}
|
|
474
593
|
.smooth-player .smooth-player__meta strong {
|
|
475
|
-
font-size: clamp(
|
|
594
|
+
font-size: clamp(calc(var(--smooth-player-rem) * 24), 5vw, calc(var(--smooth-player-rem) * 42));
|
|
476
595
|
font-weight: 500;
|
|
477
596
|
letter-spacing: -0.02em;
|
|
478
597
|
line-height: 1.08;
|
|
479
598
|
display: block;
|
|
480
599
|
color: color-mix(in srgb, var(--smooth-player-accent) 80%, transparent);
|
|
600
|
+
transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
601
|
+
will-change: opacity, transform;
|
|
481
602
|
}
|
|
482
603
|
.smooth-player .smooth-player__artist {
|
|
483
604
|
margin-top: 0.375rem;
|
|
484
|
-
font-size: clamp(
|
|
605
|
+
font-size: clamp(calc(var(--smooth-player-rem) * 14), 2.4vw, calc(var(--smooth-player-rem) * 18));
|
|
606
|
+
transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
607
|
+
will-change: opacity, transform;
|
|
608
|
+
}
|
|
609
|
+
.smooth-player .smooth-player__meta strong.is-track-exit,
|
|
610
|
+
.smooth-player .smooth-player__artist.is-track-exit {
|
|
611
|
+
opacity: 0;
|
|
612
|
+
transform: translateY(-0.35rem);
|
|
613
|
+
}
|
|
614
|
+
.smooth-player .smooth-player__meta strong.is-track-enter,
|
|
615
|
+
.smooth-player .smooth-player__artist.is-track-enter {
|
|
616
|
+
opacity: 0;
|
|
617
|
+
transform: translateY(0.45rem);
|
|
485
618
|
}
|
|
486
619
|
.smooth-player .smooth-player__top {
|
|
487
620
|
position: relative;
|
|
488
621
|
min-height: 2.125rem;
|
|
489
622
|
display: flex;
|
|
490
623
|
align-items: center;
|
|
491
|
-
justify-content:
|
|
624
|
+
justify-content: flex-start;
|
|
625
|
+
}
|
|
626
|
+
.smooth-player .smooth-player__brand {
|
|
627
|
+
position: absolute;
|
|
628
|
+
top: 0.75rem;
|
|
629
|
+
right: 0;
|
|
630
|
+
left: auto;
|
|
631
|
+
width: 2.2rem;
|
|
632
|
+
height: 1.6rem;
|
|
633
|
+
display: block;
|
|
634
|
+
color: color-mix(in srgb, var(--smooth-player-accent) 92%, #fff 8%);
|
|
635
|
+
opacity: 0.8;
|
|
636
|
+
}
|
|
637
|
+
.smooth-player .smooth-player__brand::before {
|
|
638
|
+
content: "";
|
|
639
|
+
width: 100%;
|
|
640
|
+
height: 100%;
|
|
641
|
+
display: block;
|
|
642
|
+
background: currentColor;
|
|
643
|
+
-webkit-mask: url("/assets/icons/logo.svg") center/contain no-repeat;
|
|
644
|
+
mask: url("/assets/icons/logo.svg") center/contain no-repeat;
|
|
492
645
|
}
|
|
493
646
|
.smooth-player .smooth-player__top-title {
|
|
494
647
|
font-size: 0.875rem;
|
|
495
648
|
color: rgba(242, 244, 248, 0.8);
|
|
496
649
|
letter-spacing: 0.01em;
|
|
650
|
+
white-space: nowrap;
|
|
651
|
+
text-align: right;
|
|
497
652
|
}
|
|
498
|
-
.smooth-player .smooth-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
653
|
+
.smooth-player .smooth-player__playlist-top {
|
|
654
|
+
margin-right: auto;
|
|
655
|
+
display: inline-flex;
|
|
656
|
+
align-items: center;
|
|
657
|
+
gap: 0.45rem;
|
|
658
|
+
min-width: 0;
|
|
659
|
+
max-width: calc(100% - 4.5rem);
|
|
660
|
+
}
|
|
661
|
+
.smooth-player #playlist-toggle {
|
|
662
|
+
position: static;
|
|
663
|
+
width: 3.125rem;
|
|
664
|
+
height: 3.125rem;
|
|
665
|
+
min-width: 3.125rem;
|
|
666
|
+
min-height: 3.125rem;
|
|
506
667
|
border-radius: 50%;
|
|
507
|
-
background: transparent;
|
|
508
668
|
border: 0;
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
box-shadow:
|
|
669
|
+
background: rgba(255, 255, 255, 0.14);
|
|
670
|
+
color: rgba(255, 255, 255, 0.78);
|
|
671
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
512
672
|
}
|
|
513
|
-
.smooth-player
|
|
514
|
-
|
|
673
|
+
.smooth-player #playlist-toggle:hover {
|
|
674
|
+
background: rgba(255, 255, 255, 0.19);
|
|
675
|
+
filter: none;
|
|
676
|
+
}
|
|
677
|
+
.smooth-player #playlist-toggle .smooth-player__icon {
|
|
678
|
+
width: 1.375rem;
|
|
679
|
+
height: 1.375rem;
|
|
680
|
+
opacity: 0.78;
|
|
681
|
+
filter: brightness(0) invert(1);
|
|
515
682
|
}
|
|
516
683
|
.smooth-player #shuffle-toggle {
|
|
517
|
-
position:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
width:
|
|
521
|
-
height:
|
|
522
|
-
|
|
523
|
-
min-height: 1.875rem;
|
|
684
|
+
position: static;
|
|
685
|
+
width: 3.125rem;
|
|
686
|
+
height: 3.125rem;
|
|
687
|
+
min-width: 3.125rem;
|
|
688
|
+
min-height: 3.125rem;
|
|
689
|
+
border: 0;
|
|
524
690
|
background: transparent;
|
|
525
|
-
color: rgba(
|
|
691
|
+
color: rgba(255, 255, 255, 0.78);
|
|
526
692
|
box-shadow: none;
|
|
527
|
-
z-index: 4;
|
|
528
693
|
}
|
|
529
694
|
.smooth-player #shuffle-toggle:hover {
|
|
695
|
+
background: transparent;
|
|
530
696
|
filter: none;
|
|
531
697
|
}
|
|
532
698
|
.smooth-player #shuffle-toggle .smooth-player__icon-shuffle {
|
|
@@ -542,31 +708,260 @@
|
|
|
542
708
|
background: transparent;
|
|
543
709
|
box-shadow: none;
|
|
544
710
|
}
|
|
711
|
+
.smooth-player #visualizer-toggle {
|
|
712
|
+
position: static;
|
|
713
|
+
width: 3.125rem;
|
|
714
|
+
height: 3.125rem;
|
|
715
|
+
min-width: 3.125rem;
|
|
716
|
+
min-height: 3.125rem;
|
|
717
|
+
border: 0;
|
|
718
|
+
background: transparent;
|
|
719
|
+
color: rgba(255, 255, 255, 0.78);
|
|
720
|
+
box-shadow: none;
|
|
721
|
+
}
|
|
722
|
+
.smooth-player #visualizer-toggle:hover {
|
|
723
|
+
background: transparent;
|
|
724
|
+
filter: none;
|
|
725
|
+
}
|
|
726
|
+
.smooth-player #visualizer-toggle .smooth-player__icon-visualizer {
|
|
727
|
+
width: 1rem;
|
|
728
|
+
height: 1rem;
|
|
729
|
+
display: block;
|
|
730
|
+
background-color: currentColor;
|
|
731
|
+
-webkit-mask: url("/assets/icons/visualizer.svg") center/contain no-repeat;
|
|
732
|
+
mask: url("/assets/icons/visualizer.svg") center/contain no-repeat;
|
|
733
|
+
}
|
|
734
|
+
.smooth-player #visualizer-toggle[data-mode=none] {
|
|
735
|
+
color: rgba(255, 255, 255, 0.62);
|
|
736
|
+
}
|
|
737
|
+
.smooth-player #visualizer-toggle[data-mode=spectrum],
|
|
738
|
+
.smooth-player #visualizer-toggle[data-mode=waveform] {
|
|
739
|
+
color: var(--smooth-player-accent);
|
|
740
|
+
background: transparent;
|
|
741
|
+
box-shadow: none;
|
|
742
|
+
}
|
|
743
|
+
.smooth-player .smooth-player__visualizer-panel {
|
|
744
|
+
position: absolute;
|
|
745
|
+
inset: auto 0 0 0;
|
|
746
|
+
z-index: 2;
|
|
747
|
+
width: 100%;
|
|
748
|
+
height: min(48%, 20rem);
|
|
749
|
+
overflow-y: auto;
|
|
750
|
+
padding: 0.8rem 1rem 1rem;
|
|
751
|
+
border-top: 1px solid rgba(255, 255, 255, 0.16);
|
|
752
|
+
border-radius: 0;
|
|
753
|
+
background: var(--smooth-player-panel);
|
|
754
|
+
backdrop-filter: blur(8px);
|
|
755
|
+
display: grid;
|
|
756
|
+
gap: 0.42rem;
|
|
757
|
+
align-content: start;
|
|
758
|
+
justify-items: stretch;
|
|
759
|
+
transform: translateY(104%);
|
|
760
|
+
opacity: 0;
|
|
761
|
+
visibility: hidden;
|
|
762
|
+
pointer-events: none;
|
|
763
|
+
transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 220ms ease, visibility 220ms ease;
|
|
764
|
+
}
|
|
765
|
+
.smooth-player .smooth-player__visualizer-panel.is-open {
|
|
766
|
+
transform: translateY(0);
|
|
767
|
+
opacity: 1;
|
|
768
|
+
visibility: visible;
|
|
769
|
+
pointer-events: auto;
|
|
770
|
+
}
|
|
771
|
+
.smooth-player .smooth-player__visualizer-label {
|
|
772
|
+
margin-top: 0.55rem;
|
|
773
|
+
margin-bottom: 0.28rem;
|
|
774
|
+
font-size: 0.98rem;
|
|
775
|
+
font-weight: 600;
|
|
776
|
+
color: rgba(242, 244, 248, 0.9);
|
|
777
|
+
letter-spacing: 0.01em;
|
|
778
|
+
}
|
|
779
|
+
.smooth-player .smooth-player__visualizer-mode-row {
|
|
780
|
+
display: flex;
|
|
781
|
+
justify-content: stretch;
|
|
782
|
+
gap: 0;
|
|
783
|
+
margin: 0.35rem 0 0.8rem;
|
|
784
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
|
|
785
|
+
}
|
|
786
|
+
.smooth-player .smooth-player__visualizer-mode {
|
|
787
|
+
width: 33.333%;
|
|
788
|
+
height: 2.3rem;
|
|
789
|
+
min-width: 0;
|
|
790
|
+
min-height: 2.3rem;
|
|
791
|
+
border-radius: 0;
|
|
792
|
+
border: 0;
|
|
793
|
+
border-bottom: 2px solid transparent;
|
|
794
|
+
background: transparent;
|
|
795
|
+
color: rgba(242, 244, 248, 0.72);
|
|
796
|
+
box-shadow: none;
|
|
797
|
+
padding: 0 0.45rem;
|
|
798
|
+
display: inline-flex;
|
|
799
|
+
align-items: center;
|
|
800
|
+
justify-content: center;
|
|
801
|
+
gap: 0.4rem;
|
|
802
|
+
}
|
|
803
|
+
.smooth-player .smooth-player__visualizer-mode.is-active {
|
|
804
|
+
border-bottom-color: var(--smooth-player-accent);
|
|
805
|
+
color: color-mix(in srgb, var(--smooth-player-accent) 82%, #fff 18%);
|
|
806
|
+
background: color-mix(in srgb, var(--smooth-player-accent) 12%, transparent);
|
|
807
|
+
}
|
|
808
|
+
.smooth-player .smooth-player__visualizer-mode-icon {
|
|
809
|
+
width: 1rem;
|
|
810
|
+
height: 1rem;
|
|
811
|
+
margin: 0;
|
|
812
|
+
display: block;
|
|
813
|
+
fill: currentColor;
|
|
814
|
+
stroke: currentColor;
|
|
815
|
+
stroke-width: 1.8;
|
|
816
|
+
stroke-linecap: round;
|
|
817
|
+
stroke-linejoin: round;
|
|
818
|
+
}
|
|
819
|
+
.smooth-player .smooth-player__visualizer-mode-text {
|
|
820
|
+
font-size: 0.69rem;
|
|
821
|
+
line-height: 1;
|
|
822
|
+
white-space: nowrap;
|
|
823
|
+
}
|
|
824
|
+
.smooth-player .smooth-player__visualizer-spectrum-options,
|
|
825
|
+
.smooth-player .smooth-player__visualizer-waveform-options {
|
|
826
|
+
display: grid;
|
|
827
|
+
gap: 0.1rem;
|
|
828
|
+
align-content: start;
|
|
829
|
+
}
|
|
830
|
+
.smooth-player .smooth-player__visualizer-spectrum-grid {
|
|
831
|
+
display: grid;
|
|
832
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
833
|
+
gap: 1rem;
|
|
834
|
+
align-items: start;
|
|
835
|
+
}
|
|
836
|
+
.smooth-player .smooth-player__visualizer-spectrum-col {
|
|
837
|
+
min-width: 0;
|
|
838
|
+
display: grid;
|
|
839
|
+
gap: 0.1rem;
|
|
840
|
+
align-content: start;
|
|
841
|
+
}
|
|
842
|
+
.smooth-player .smooth-player__visualizer-spectrum-options[hidden],
|
|
843
|
+
.smooth-player .smooth-player__visualizer-waveform-options[hidden],
|
|
844
|
+
.smooth-player .smooth-player__visualizer-off-options[hidden] {
|
|
845
|
+
display: none !important;
|
|
846
|
+
}
|
|
847
|
+
.smooth-player .smooth-player__visualizer-size-list {
|
|
848
|
+
display: flex;
|
|
849
|
+
align-items: center;
|
|
850
|
+
gap: 0.8rem;
|
|
851
|
+
margin-top: 0.15rem;
|
|
852
|
+
}
|
|
853
|
+
.smooth-player .smooth-player__visualizer-size {
|
|
854
|
+
width: 2.25rem;
|
|
855
|
+
min-width: 2.25rem;
|
|
856
|
+
min-height: 2.25rem;
|
|
857
|
+
border-radius: 0;
|
|
858
|
+
border: 0;
|
|
859
|
+
background: transparent;
|
|
860
|
+
color: rgba(242, 244, 248, 0.86);
|
|
861
|
+
box-shadow: none;
|
|
862
|
+
padding: 0;
|
|
863
|
+
display: inline-grid;
|
|
864
|
+
grid-template-columns: 2.25rem;
|
|
865
|
+
align-items: center;
|
|
866
|
+
justify-items: center;
|
|
867
|
+
}
|
|
868
|
+
.smooth-player .smooth-player__visualizer-size.is-active {
|
|
869
|
+
color: color-mix(in srgb, var(--smooth-player-accent) 90%, #fff 10%);
|
|
870
|
+
}
|
|
871
|
+
.smooth-player .smooth-player__visualizer-size:disabled {
|
|
872
|
+
opacity: 0.4;
|
|
873
|
+
}
|
|
874
|
+
.smooth-player .smooth-player__size-bars {
|
|
875
|
+
width: 2.25rem;
|
|
876
|
+
height: 2.25rem;
|
|
877
|
+
border-radius: 50%;
|
|
878
|
+
border: 0;
|
|
879
|
+
background: rgba(255, 255, 255, 0.06);
|
|
880
|
+
display: flex;
|
|
881
|
+
align-items: end;
|
|
882
|
+
justify-content: center;
|
|
883
|
+
gap: 0.13rem;
|
|
884
|
+
padding-bottom: 0.45rem;
|
|
885
|
+
}
|
|
886
|
+
.smooth-player .smooth-player__size-bars span {
|
|
887
|
+
display: block;
|
|
888
|
+
background: currentColor;
|
|
889
|
+
border-radius: 1px;
|
|
890
|
+
}
|
|
891
|
+
.smooth-player .smooth-player__size-bars span:nth-child(1) {
|
|
892
|
+
height: 0.42rem;
|
|
893
|
+
}
|
|
894
|
+
.smooth-player .smooth-player__size-bars span:nth-child(2) {
|
|
895
|
+
height: 0.68rem;
|
|
896
|
+
}
|
|
897
|
+
.smooth-player .smooth-player__size-bars span:nth-child(3) {
|
|
898
|
+
height: 0.98rem;
|
|
899
|
+
}
|
|
900
|
+
.smooth-player .smooth-player__size-bars--thin span {
|
|
901
|
+
width: 0.11rem;
|
|
902
|
+
}
|
|
903
|
+
.smooth-player .smooth-player__size-bars--medium span {
|
|
904
|
+
width: 0.18rem;
|
|
905
|
+
}
|
|
906
|
+
.smooth-player .smooth-player__size-bars--large span {
|
|
907
|
+
width: 0.3rem;
|
|
908
|
+
}
|
|
909
|
+
.smooth-player .smooth-player__visualizer-size.is-active .smooth-player__size-bars {
|
|
910
|
+
background: color-mix(in srgb, var(--smooth-player-accent) 16%, transparent);
|
|
911
|
+
}
|
|
912
|
+
.smooth-player .smooth-player__visualizer-check {
|
|
913
|
+
display: flex;
|
|
914
|
+
align-items: center;
|
|
915
|
+
gap: 0.62rem;
|
|
916
|
+
min-height: 2rem;
|
|
917
|
+
font-size: 1rem;
|
|
918
|
+
color: rgba(242, 244, 248, 0.9);
|
|
919
|
+
}
|
|
920
|
+
.smooth-player .smooth-player__visualizer-check input {
|
|
921
|
+
width: 1.08rem;
|
|
922
|
+
height: 1.08rem;
|
|
923
|
+
accent-color: var(--smooth-player-accent);
|
|
924
|
+
}
|
|
925
|
+
.smooth-player .smooth-player__visualizer-check input:disabled {
|
|
926
|
+
opacity: 0.5;
|
|
927
|
+
}
|
|
545
928
|
.smooth-player .smooth-player__transport {
|
|
546
929
|
margin-top: 1.75rem;
|
|
547
930
|
margin-bottom: 2.25rem;
|
|
548
931
|
display: flex;
|
|
549
932
|
justify-content: center;
|
|
550
933
|
align-items: center;
|
|
551
|
-
gap: 1.
|
|
934
|
+
gap: 1.1rem;
|
|
552
935
|
}
|
|
553
936
|
.smooth-player .smooth-player__transport button {
|
|
554
937
|
width: 3.125rem;
|
|
555
938
|
height: 3.125rem;
|
|
939
|
+
border: 0;
|
|
940
|
+
background: rgba(255, 255, 255, 0.14);
|
|
941
|
+
color: rgba(255, 255, 255, 0.78);
|
|
942
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
556
943
|
}
|
|
557
|
-
.smooth-player .smooth-player__transport
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
944
|
+
.smooth-player .smooth-player__transport button:hover {
|
|
945
|
+
background: rgba(255, 255, 255, 0.19);
|
|
946
|
+
filter: none;
|
|
947
|
+
}
|
|
948
|
+
.smooth-player .smooth-player__transport .smooth-player__icon {
|
|
949
|
+
opacity: 0.78;
|
|
950
|
+
filter: brightness(0) invert(1);
|
|
562
951
|
}
|
|
563
|
-
.smooth-player
|
|
564
|
-
width:
|
|
565
|
-
height:
|
|
952
|
+
.smooth-player #stop {
|
|
953
|
+
width: 4.2rem;
|
|
954
|
+
height: 4.2rem;
|
|
955
|
+
min-width: 4.2rem;
|
|
956
|
+
min-height: 4.2rem;
|
|
566
957
|
}
|
|
567
|
-
.smooth-player
|
|
568
|
-
width:
|
|
569
|
-
height:
|
|
958
|
+
.smooth-player #stop .smooth-player__icon-stop {
|
|
959
|
+
width: 1.6rem;
|
|
960
|
+
height: 1.6rem;
|
|
961
|
+
display: block;
|
|
962
|
+
background: currentColor;
|
|
963
|
+
-webkit-mask: url("/assets/icons/stop.svg") center/contain no-repeat;
|
|
964
|
+
mask: url("/assets/icons/stop.svg") center/contain no-repeat;
|
|
570
965
|
}
|
|
571
966
|
.smooth-player .smooth-player__progress-wrap {
|
|
572
967
|
display: none;
|
|
@@ -592,22 +987,45 @@
|
|
|
592
987
|
height: 4.625rem;
|
|
593
988
|
background: transparent;
|
|
594
989
|
border: 0;
|
|
595
|
-
color:
|
|
990
|
+
color: var(--smooth-player-accent);
|
|
596
991
|
}
|
|
597
992
|
.smooth-player .smooth-player__hero-play .smooth-player__icon-play {
|
|
598
|
-
width: 2.
|
|
599
|
-
height: 2.
|
|
993
|
+
width: 2.95rem;
|
|
994
|
+
height: 2.95rem;
|
|
600
995
|
display: block;
|
|
996
|
+
position: relative;
|
|
997
|
+
}
|
|
998
|
+
.smooth-player .smooth-player__hero-play .smooth-player__icon-play::before,
|
|
999
|
+
.smooth-player .smooth-player__hero-play .smooth-player__icon-play::after {
|
|
1000
|
+
content: "";
|
|
1001
|
+
position: absolute;
|
|
1002
|
+
inset: 0;
|
|
601
1003
|
background-color: currentColor;
|
|
602
|
-
-
|
|
603
|
-
|
|
1004
|
+
transition: clip-path 260ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
1005
|
+
will-change: clip-path, transform;
|
|
1006
|
+
}
|
|
1007
|
+
.smooth-player .smooth-player__hero-play .smooth-player__icon-play::before {
|
|
1008
|
+
clip-path: polygon(24% 16%, 24% 84%, 84% 50%);
|
|
1009
|
+
transform: scale(1);
|
|
1010
|
+
}
|
|
1011
|
+
.smooth-player .smooth-player__hero-play .smooth-player__icon-play::after {
|
|
1012
|
+
clip-path: polygon(58% 50%, 58% 50%, 58% 50%, 58% 50%);
|
|
1013
|
+
transform: scale(1);
|
|
604
1014
|
}
|
|
605
1015
|
.smooth-player .smooth-player__hero-play[aria-pressed=true] {
|
|
606
1016
|
color: var(--smooth-player-accent);
|
|
607
1017
|
}
|
|
608
1018
|
.smooth-player .smooth-player__hero-play[aria-pressed=true] .smooth-player__icon-play {
|
|
609
|
-
|
|
610
|
-
|
|
1019
|
+
width: 2.95rem;
|
|
1020
|
+
height: 2.95rem;
|
|
1021
|
+
}
|
|
1022
|
+
.smooth-player .smooth-player__hero-play[aria-pressed=true] .smooth-player__icon-play::before {
|
|
1023
|
+
clip-path: polygon(22% 16%, 42% 16%, 42% 84%, 22% 84%);
|
|
1024
|
+
transform: scale(0.96);
|
|
1025
|
+
}
|
|
1026
|
+
.smooth-player .smooth-player__hero-play[aria-pressed=true] .smooth-player__icon-play::after {
|
|
1027
|
+
clip-path: polygon(58% 16%, 78% 16%, 78% 84%, 58% 84%);
|
|
1028
|
+
transform: scale(0.96);
|
|
611
1029
|
}
|
|
612
1030
|
.smooth-player .smooth-player__hero-play:hover {
|
|
613
1031
|
transform: translate(-50%, -50%) scale(1.02);
|
|
@@ -617,22 +1035,22 @@
|
|
|
617
1035
|
transform: translate(-50%, -50%);
|
|
618
1036
|
}
|
|
619
1037
|
.smooth-player .smooth-player__progress {
|
|
620
|
-
height:
|
|
1038
|
+
height: calc(var(--smooth-player-rem) * 3);
|
|
621
1039
|
background: linear-gradient(to right, color-mix(in srgb, var(--smooth-player-accent) 95%, #fff 5%) 0%, color-mix(in srgb, var(--smooth-player-accent) 95%, #fff 5%) var(--smooth-player-progress), rgba(255, 255, 255, 0.2) var(--smooth-player-progress), rgba(255, 255, 255, 0.2) 100%);
|
|
622
|
-
box-shadow: 0 0
|
|
1040
|
+
box-shadow: 0 0 calc(var(--smooth-player-rem) * 14) rgba(14, 210, 164, 0.24);
|
|
623
1041
|
}
|
|
624
1042
|
.smooth-player .smooth-player__progress::-webkit-slider-thumb {
|
|
625
|
-
width:
|
|
626
|
-
height:
|
|
627
|
-
box-shadow: 0 0 0
|
|
1043
|
+
width: calc(var(--smooth-player-rem) * 12);
|
|
1044
|
+
height: calc(var(--smooth-player-rem) * 12);
|
|
1045
|
+
box-shadow: 0 0 0 calc(var(--smooth-player-rem) * 2) rgba(14, 210, 164, 0.35), 0 0 calc(var(--smooth-player-rem) * 12) rgba(14, 210, 164, 0.48);
|
|
628
1046
|
}
|
|
629
1047
|
.smooth-player .smooth-player__progress::-moz-range-thumb {
|
|
630
|
-
width:
|
|
631
|
-
height:
|
|
632
|
-
box-shadow: 0 0 0
|
|
1048
|
+
width: calc(var(--smooth-player-rem) * 12);
|
|
1049
|
+
height: calc(var(--smooth-player-rem) * 12);
|
|
1050
|
+
box-shadow: 0 0 0 calc(var(--smooth-player-rem) * 2) rgba(14, 210, 164, 0.35), 0 0 calc(var(--smooth-player-rem) * 12) rgba(14, 210, 164, 0.48);
|
|
633
1051
|
}
|
|
634
1052
|
.smooth-player .smooth-player__progress-row {
|
|
635
|
-
font-size:
|
|
1053
|
+
font-size: calc(var(--smooth-player-rem) * 11);
|
|
636
1054
|
opacity: 0.9;
|
|
637
1055
|
}
|
|
638
1056
|
.smooth-player .smooth-player__playlist {
|
|
@@ -643,6 +1061,16 @@
|
|
|
643
1061
|
align-items: center;
|
|
644
1062
|
background: transparent;
|
|
645
1063
|
}
|
|
1064
|
+
.smooth-player .smooth-player__playlist-close.secondary {
|
|
1065
|
+
border: 0;
|
|
1066
|
+
background: rgba(255, 255, 255, 0.14);
|
|
1067
|
+
color: rgba(255, 255, 255, 0.78);
|
|
1068
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
1069
|
+
}
|
|
1070
|
+
.smooth-player .smooth-player__playlist-close.secondary:hover {
|
|
1071
|
+
background: rgba(255, 255, 255, 0.19);
|
|
1072
|
+
filter: none;
|
|
1073
|
+
}
|
|
646
1074
|
.smooth-player .smooth-player__playlist-switcher {
|
|
647
1075
|
padding-bottom: 0.375rem;
|
|
648
1076
|
margin-bottom: 0.25rem;
|
|
@@ -669,7 +1097,7 @@
|
|
|
669
1097
|
color: #fff;
|
|
670
1098
|
}
|
|
671
1099
|
.smooth-player .smooth-player__canvas {
|
|
672
|
-
margin-top:
|
|
673
|
-
border-radius:
|
|
674
|
-
min-height:
|
|
1100
|
+
margin-top: calc(var(--smooth-player-rem) * 16);
|
|
1101
|
+
border-radius: calc(var(--smooth-player-rem) * 12);
|
|
1102
|
+
min-height: calc(var(--smooth-player-rem) * 82);
|
|
675
1103
|
}
|