feat(nyancat): add the status of stillness nyancat (#541)

This commit is contained in:
Map1en_ 2021-04-14 01:38:38 +08:00 committed by GitHub
parent 4f4f2b09e3
commit 2ecba8e161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 B

View File

@ -100,6 +100,11 @@
visibility: visible;
}
.nyancat-stop .vue-slider-dot-handle {
background-image: url("/img/logos/nyancat-stop.png");
transition: 300ms;
}
/* lyrics */
.lyrics-page .vue-slider-rail {
background-color: rgba(128, 128, 128, 0.18);

View File

@ -2,7 +2,10 @@
<div class="player" @click="toggleLyrics">
<div
class="progress-bar"
:class="{ nyancat: settings.nyancatStyle }"
:class="{
nyancat: settings.nyancatStyle,
'nyancat-stop': settings.nyancatStyle && !player.playing,
}"
@click.stop
>
<vue-slider