diff --git a/src/layout/components/PlayBar.vue b/src/layout/components/PlayBar.vue index 8d89f16..74c8158 100644 --- a/src/layout/components/PlayBar.vue +++ b/src/layout/components/PlayBar.vue @@ -11,13 +11,16 @@ class="music-play-bar" :class="setAnimationClass('animate__bounceInUp') + ' ' + (musicFullVisible ? 'play-bar-opcity' : '')" > - +
+ +
+
+ + + {{ musicFullVisible ? '收起' : '展开' }}歌词 +
+
+
@@ -409,4 +412,39 @@ const scrollToPlayList = (val: boolean) => { :root { --primary-color: #18a058; } + +.play-bar-img-wrapper { + @apply relative cursor-pointer w-14 h-14; + + .hover-arrow { + @apply absolute inset-0 flex items-center justify-center opacity-0 transition-opacity duration-300 rounded-2xl; + background: rgba(0, 0, 0, 0.5); + + .hover-content { + @apply flex flex-col items-center justify-center; + + i { + @apply text-white mb-0.5; + } + + .hover-text { + @apply text-white text-xs scale-90; + } + } + } + + &:hover { + .hover-arrow { + @apply opacity-100; + } + } +} + +.tooltip-content { + @apply text-sm py-1 px-2; +} + +.play-bar-img { + @apply w-14 h-14 rounded-2xl; +}