valcord-css/snippets/css/BetterSpotifyPlayer/bsp.css
2025-04-05 16:34:24 -04:00

169 lines
5.5 KiB
CSS

/* BetterSpotifyPlayer */
/* a spotify icon snippet */
#vc-spotify-song-title::before,
#vc-spotify-song-title + div::before,
#vc-spotify-song-title + div + div::before {
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: contain;
padding: 7px;
margin-left: -17px;
margin-top: 2px;
content: '';
background-color: var(--header-primary);
/* Spotify wave thingy fix */
/*background-color: hsla(var(--spotify-vencord-text)/1);*/
position: absolute;
}
#vc-spotify-song-title + div::before,
#vc-spotify-song-title + div + div::before {
background-color: var(--header-secondary);
/* Spotify wave thingy fix */
/*background-color: hsla(var(--spotify-vencord-text)/1);*/
}
#vc-spotify-song-title::before {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-music-4'%3E%3Cpath d='M9 18V5l12-2v13'%3E%3C/path%3E%3Cpath d='m9 9 12-2'%3E%3C/path%3E%3Ccircle cx='6' cy='18' r='3'%3E%3C/circle%3E%3Ccircle cx='18' cy='16' r='3'%3E%3C/circle%3E%3C/svg%3E");
}
#vc-spotify-song-title + div::before {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-mic'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'%3E%3C/path%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'%3E%3C/path%3E%3Cline x1='12' x2='12' y1='19' y2='22'%3E%3C/line%3E%3C/svg%3E");
}
#vc-spotify-song-title + div + div::before {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-disc-2'%3E%3Ccircle cx='12' cy='12' r='4'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='12' x2='12' y2='12.01'%3E%3C/line%3E%3C/svg%3E");
}
/* */
/* */
#vc-spotify-player {
height:50px;
background: transparent !important;
position: relative;
transition: height 0.4s ease-out;
padding: 7px!important;
padding-top: 8px !important;
overflow: hidden;
}
#vc-spotify-player:has(#vc-spotify-album-expanded-wrapper) {
height: 300px;
}
#vc-spotify-player:hover {
height: 115px;
}
#vc-spotify-progress-bar, .vc-spotify-button-row {
opacity: 0;
transition: opacity 0.4s ease-out;
}
#vc-spotify-player:hover #vc-spotify-progress-bar,
#vc-spotify-player:hover .vc-spotify-button-row {
opacity: 1;
}
#vc-spotify-player:has(#vc-spotify-album-expanded-wrapper) #vc-spotify-progress-bar,
#vc-spotify-player:has(#vc-spotify-album-expanded-wrapper) .vc-spotify-button-row {
opacity: 1;
}
#vc-spotify-player::before,
#vc-spotify-player::after {
z-index: -1;
content: "";
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
transition: all 0.4s ease-out;
}
#vc-spotify-player::before {
background: var(--vc-spotify-track-image);
background-size: cover;
background-position: center;
opacity: 0;
}
#vc-spotify-player:hover::before,
#vc-spotify-player:has(#vc-spotify-album-expanded-wrapper)::before {
opacity: 1;
filter: brightness(50%);
}
#vc-spotify-player::after {
background: var(--vc-spotify-track-image);
background-size: cover;
background-position: center;
opacity: 0.2;
filter: blur(100px);
transform: scale(20);
}
#vc-spotify-player::after {
opacity: 0;
}
#vc-spotify-player:hover::after,
#vc-spotify-player:has(#vc-spotify-album-expanded-wrapper)::after {
opacity: 0.2;
}
#vc-spotify-player:has(#vc-spotify-album-expanded-wrapper)::after {
backdrop-filter: brightness(50%);
}
#vc-spotify-progress-bar {
margin: 11px 0 7px;
}
#vc-spotify-info-wrapper > img {
height: 100%;
opacity: 1;
transition: opacity 0.4s ease-out;
}
#vc-spotify-player:not(:has(#vc-spotify-album-expanded-wrapper)):hover #vc-spotify-album-image {
opacity: 0;
}
#vc-spotify-album-image:hover {
filter: none;
}
#vc-spotify-info-wrapper #vc-spotify-titles {
margin-left: 15px;
transition: margin-left 0.4s ease-out;
}
#vc-spotify-player:hover #vc-spotify-titles {
margin-left: -42px;
}
#vc-spotify-player #vc-spotify-titles .size14_b2af01 {
font-size: 13px;
}
#vc-spotify-song-title::before, #vc-spotify-song-title + div::before, #vc-spotify-song-title + div + div::before {
background-color: var(--interactive-active);
}
#vc-spotify-player .colorStandard__5111e {
color: var(--interactive-active);
}
.vc-spotify-artist, .vc-spotify-album {
color: var(--interactive-normal)
}
#vc-spotify-player .bar_e58961 {
background-color: color-mix(in srgb, var(--white-500), transparent 75%);
}
#vc-spotify-player .barFill__30e17 {
background-color: var(--interactive-active);
}
#vc-spotify-progress-bar>[class^=slider] [class^=grabber] {
background-color: var(--interactive-active);
border-color: var(--interactive-active);
width: 12px !important;
height: 12px !important;
margin-top: 3px;
opacity: 1 !important;
}
.vc-spotify-progress-time {
top: 12px;
}
.vc-spotify-button {
color: var(--interactive-active);
}
.vc-spotify-button:hover {
background-color: color-mix(in srgb, var(--interactive-active), transparent 75%);
}
.vc-spotify-button.vc-spotify-shuffle-on {
color: var(--green-360);
}
.vc-spotify-button.vc-spotify-shuffle-on:hover {
background-color: color-mix(in srgb, var(--green-360), transparent 75%);;
}
/* */
/* adding this to force update */