52
52
></i >
53
53
</div >
54
54
55
- <n-popover trigger =" click " :z-index =" 99999999" placement =" top" :show-arrow =" false" >
55
+ <n-popover trigger =" hover " :z-index =" 99999999" placement =" top" :show-arrow =" false" >
56
56
<template #trigger >
57
57
<div class =" function-button" @click =" mute" >
58
58
<i class =" iconfont" :class =" getVolumeIcon" ></i >
59
59
</div >
60
60
</template >
61
- <div class =" volume-slider-wrapper" >
61
+ <div class =" volume-slider-wrapper transparent-popover " >
62
62
<n-slider
63
63
v-model:value =" volumeSlider"
64
64
:step =" 0.01"
@@ -459,7 +459,7 @@ const setMusicFull = () => {
459
459
}
460
460
461
461
.control-button {
462
- @apply flex items-center justify-center rounded-full transition-all duration-200 border-0 bg-transparent cursor-pointer text-gray- 600;
462
+ @apply flex items-center justify-center rounded-full transition-all duration-200 border-0 bg-transparent cursor-pointer text-gray-600 hover :text - gray - 800 dark :text - gray - 400 dark :hover:text - gray - 200 ;
463
463
width : 32px ;
464
464
height : 32px ;
465
465
@@ -484,10 +484,9 @@ const setMusicFull = () => {
484
484
}
485
485
486
486
.function-button {
487
- @apply flex items-center justify-center rounded-full transition-all duration-200 border-0 bg-transparent cursor-pointer ;
487
+ @apply flex items-center justify-center rounded-full transition-all duration-200 border-0 bg-transparent cursor-pointer text-gray-600 hover :text - gray - 800 dark :text - gray - 400 dark :hover:text - gray - 200 ;
488
488
width : 32px ;
489
489
height : 32px ;
490
- color : var (--text-color-2 , #666 );
491
490
492
491
& :hover {
493
492
@apply bg-gray-100 dark :bg- dark- 300;
@@ -546,8 +545,7 @@ const setMusicFull = () => {
546
545
}
547
546
548
547
.volume-slider-wrapper {
549
- @apply p-4 rounded-xl bg-white dark :bg- dark- 100 shadow- lg;
550
- width : 40px ;
548
+ @apply p-2 py-4 rounded-xl bg-white dark :bg- dark- 100 shadow- lg bg- opacity- 90 backdrop- blur;
551
549
height : 160px ;
552
550
}
553
551
@@ -608,4 +606,8 @@ const setMusicFull = () => {
608
606
}
609
607
}
610
608
}
609
+
610
+ :deep(.n-popover ){
611
+ background-color : transparent !important ;
612
+ }
611
613
</style >
0 commit comments