|
9 | 9 | draggedSongs,
|
10 | 10 | isPlaying,
|
11 | 11 | playlist,
|
12 |
| - playlistType |
| 12 | + playlistType, |
13 | 13 | } from "../../data/store";
|
14 | 14 | import audioPlayer from "../player/AudioPlayer";
|
15 | 15 | import Icon from "../ui/Icon.svelte";
|
|
117 | 117 | </div>
|
118 | 118 | {/if}
|
119 | 119 | {#if isHovered || ($playlistType === "album" && isPlayingCurrentAlbum)}
|
120 |
| - <div class={$playlistType === "album" && |
| 120 | + <div |
| 121 | + class={$playlistType === "album" && |
121 | 122 | $isPlaying &&
|
122 | 123 | isPlayingCurrentAlbum
|
123 | 124 | ? "play-button-container pause-button"
|
124 |
| - : "play-button-container play-button"}> |
| 125 | + : "play-button-container play-button"} |
| 126 | + > |
125 | 127 | <div class="button" on:click={playPauseToggle}>
|
126 | 128 | <Icon
|
127 | 129 | icon={$playlistType === "album" &&
|
|
145 | 147 | <small>{album.year}</small>
|
146 | 148 | <small>•</small>
|
147 | 149 | {/if}
|
148 |
| - <small>{album?.tracksIds.length} {$LL.albums.item.tracksLabel()}</small> |
| 150 | + <small |
| 151 | + >{album?.tracksIds.length} |
| 152 | + {$LL.albums.item.tracksLabel()}</small |
| 153 | + > |
149 | 154 | </div>
|
150 | 155 | {/if}
|
151 | 156 | </div>
|
|
154 | 159 | .playing {
|
155 | 160 | transform: scale(1.1);
|
156 | 161 | z-index: 9;
|
157 |
| - |
| 162 | +
|
158 | 163 | .cd {
|
159 | 164 | z-index: 8;
|
160 | 165 | /* box-shadow: 2px 2px 30px 20px rgba(39, 0, 178, 0.181) !important; */
|
161 | 166 | box-shadow: 2px 2px 50px 40px
|
162 | 167 | color-mix(in srgb, var(--album-playing-shadow) 50%, transparent) !important;
|
163 | 168 | .hinge {
|
164 |
| - background-color: rgba(167, 164, 173, 0.078); |
| 169 | + background-color: color-mix( |
| 170 | + in srgb, |
| 171 | + var(--inverse) 10.32%, |
| 172 | + transparent |
| 173 | + ); |
| 174 | + backdrop-filter: blur(8px); |
| 175 | + border-left: 1px solid |
| 176 | + color-mix(in srgb, var(--inverse), transparent 50%); |
| 177 | + box-shadow: |
| 178 | + inset -0.75px -0.5px rgba(255, 255, 255, 0.1), |
| 179 | + inset + 0.75px +0.5px rgba(255, 255, 255, 0.025), |
| 180 | + 3px 2px 10px rgba(0, 0, 0, 0.25), |
| 181 | + inset 0px 0px 10px 5px rgba(255, 255, 255, 0.025), |
| 182 | + inset 0px 0px 40px 5px rgba(255, 255, 255, 0.025); |
| 183 | + } |
| 184 | + .artwork-frame { |
| 185 | + &::after { |
| 186 | + content: ""; |
| 187 | + position: absolute; |
| 188 | + top: 0; |
| 189 | + left: 0; |
| 190 | + width: 100%; |
| 191 | + height: 100%; |
| 192 | + background-image: url("images/cd-shimmer.png"); |
| 193 | + background-repeat: no-repeat; |
| 194 | + z-index: 20; |
| 195 | + animation: playing-shimmer 3.5s cubic-bezier(.4,0,.41,.97) 1; |
| 196 | + pointer-events: none; |
| 197 | + } |
165 | 198 | }
|
166 | 199 | }
|
167 | 200 |
|
|
173 | 206 | border-radius: 4px;
|
174 | 207 | color: var(--text);
|
175 | 208 | z-index: 20;
|
| 209 | + margin-top: 3px !important; |
176 | 210 | }
|
177 | 211 | .artist,
|
178 | 212 | .info {
|
179 | 213 | z-index: 20;
|
180 | 214 | }
|
181 | 215 | }
|
182 | 216 |
|
| 217 | + @keyframes playing-shimmer { |
| 218 | + 0% { |
| 219 | + background-position: -40% 110%; |
| 220 | + background-size: 250%; |
| 221 | + } |
| 222 | + 100% { |
| 223 | + background-position: 120% -30%; |
| 224 | + background-size: 250%; |
| 225 | + } |
| 226 | + } |
| 227 | +
|
183 | 228 | .hovered:not(.playing) {
|
184 | 229 | z-index: 8;
|
185 | 230 |
|
|
316 | 361 | box-sizing: border-box;
|
317 | 362 | .hinge {
|
318 | 363 | border-left: 1px solid
|
319 |
| - color-mix(in srgb, var(--inverse) 10.32%, transparent); |
| 364 | + color-mix(in srgb, var(--inverse) 20.32%, transparent); |
320 | 365 | width: 5%;
|
321 | 366 | background-color: color-mix(
|
322 | 367 | in srgb,
|
323 |
| - var(--inverse) 4.32%, |
| 368 | + var(--inverse) 9.32%, |
324 | 369 | transparent
|
325 | 370 | );
|
326 | 371 | }
|
|
374 | 419 | transparent
|
375 | 420 | );
|
376 | 421 | background-color: var(--album-playing-play-bg);
|
377 |
| - |
| 422 | +
|
378 | 423 | .button {
|
379 | 424 | position: relative;
|
380 | 425 | left: 1px;
|
|
383 | 428 | align-self: center;
|
384 | 429 | color: var(--album-playing-play-icon);
|
385 | 430 | }
|
386 |
| - |
| 431 | +
|
387 | 432 | &:hover {
|
388 |
| - background-color: var(--album-playing-play-hover-bg); |
389 |
| - |
| 433 | + background-color: var( |
| 434 | + --album-playing-play-hover-bg |
| 435 | + ); |
| 436 | +
|
390 | 437 | .button {
|
391 | 438 | color: var(--album-playing-play-hover-icon);
|
392 | 439 | }
|
|
401 | 448 | transparent
|
402 | 449 | );
|
403 | 450 | background-color: var(--album-playing-pause-bg);
|
404 |
| - |
| 451 | +
|
405 | 452 | .button {
|
406 | 453 | font-size: 2.2em;
|
407 | 454 | margin: auto;
|
408 | 455 | align-self: center;
|
409 | 456 | color: var(--album-playing-pause-icon);
|
410 | 457 | }
|
411 |
| - |
| 458 | +
|
412 | 459 | &:hover {
|
413 |
| - background-color: var(--album-playing-pause-hover-bg); |
414 |
| - |
| 460 | + background-color: var( |
| 461 | + --album-playing-pause-hover-bg |
| 462 | + ); |
| 463 | +
|
415 | 464 | .button {
|
416 | 465 | color: var(--album-playing-pause-hover-icon);
|
417 | 466 | }
|
|
0 commit comments