200 lines
3.8 KiB
CSS
200 lines
3.8 KiB
CSS
#vc-spotify-player {
|
|
padding: 0.375rem 0.5rem;
|
|
border-bottom: 1px solid var(--background-modifier-accent);
|
|
|
|
--vc-spotify-green: #1db954; /* so custom themes can easily change it */
|
|
}
|
|
|
|
.theme-light #vc-spotify-player {
|
|
background: var(--bg-overlay-3, var(--background-secondary-alt));
|
|
}
|
|
|
|
.theme-dark #vc-spotify-player {
|
|
background: var(--bg-overlay-1, var(--background-secondary-alt));
|
|
}
|
|
|
|
.vc-spotify-button {
|
|
background: none;
|
|
color: var(--interactive-normal);
|
|
padding: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.vc-spotify-button:hover {
|
|
color: var(--interactive-hover);
|
|
background-color: var(--background-modifier-selected);
|
|
}
|
|
|
|
.vc-spotify-button svg {
|
|
height: 24px;
|
|
width: 24px;
|
|
}
|
|
|
|
[class*="vc-spotify-shuffle"] > svg,
|
|
[class*="vc-spotify-repeat"] > svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.vc-spotify-button svg path {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* .vc-spotify-button:hover {
|
|
filter: brightness(1.3);
|
|
} */
|
|
|
|
.vc-spotify-shuffle-on,
|
|
.vc-spotify-repeat-context,
|
|
.vc-spotify-repeat-track,
|
|
.vc-spotify-shuffle-on:hover,
|
|
.vc-spotify-repeat-context:hover,
|
|
.vc-spotify-repeat-track:hover {
|
|
color: var(--vc-spotify-green);
|
|
}
|
|
|
|
.vc-spotify-tooltip-text {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
padding-right: 0.2em;
|
|
max-width: 100%;
|
|
margin: unset;
|
|
}
|
|
|
|
.vc-spotify-repeat-1 {
|
|
font-size: 70%;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.vc-spotify-button-row {
|
|
justify-content: center;
|
|
}
|
|
|
|
#vc-spotify-info-wrapper {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
height: 3em;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
#vc-spotify-info-wrapper img {
|
|
height: 90%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
#vc-spotify-album-expanded-wrapper img {
|
|
width: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
#vc-spotify-titles {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0.2rem;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
align-content: flex-start;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#vc-spotify-song-title {
|
|
color: var(--header-primary);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.vc-spotify-ellipoverflow {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.vc-spotify-artist,
|
|
.vc-spotify-album {
|
|
font-size: 12px;
|
|
text-decoration: none;
|
|
color: var(--header-secondary);
|
|
}
|
|
|
|
.vc-spotify-comma {
|
|
color: var(--header-secondary);
|
|
}
|
|
|
|
.vc-spotify-artist[role="link"]:hover,
|
|
#vc-spotify-album-title[role="link"]:hover,
|
|
#vc-spotify-song-title[role="link"]:hover {
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#vc-spotify-album-image {
|
|
border-radius: 3px;
|
|
transition: filter 0.2s;
|
|
}
|
|
|
|
#vc-spotify-album-image:hover {
|
|
filter: brightness(1.2);
|
|
cursor: pointer;
|
|
}
|
|
|
|
#vc-spotify-progress-bar {
|
|
position: relative;
|
|
color: var(--text-normal);
|
|
width: 100%;
|
|
margin: 0.5em 0;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
#vc-spotify-progress-bar > [class^="slider"] {
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
#vc-spotify-progress-bar > [class^="slider"] [class^="bar-"] {
|
|
height: 4px !important;
|
|
}
|
|
|
|
#vc-spotify-progress-bar > [class^="slider"] [class^="grabber"] {
|
|
/* these importants are necessary, it applies a width and height through inline styles */
|
|
height: 10px !important;
|
|
width: 10px !important;
|
|
background-color: var(--interactive-normal);
|
|
border-color: var(--interactive-normal);
|
|
color: var(--interactive-normal);
|
|
}
|
|
|
|
#vc-spotify-progress-text {
|
|
margin: 0;
|
|
}
|
|
|
|
.vc-spotify-progress-time {
|
|
font-size: 12px;
|
|
top: 10px;
|
|
position: absolute;
|
|
}
|
|
|
|
.vc-spotify-time-left {
|
|
left: 0;
|
|
}
|
|
|
|
.vc-spotify-time-right {
|
|
right: 0;
|
|
}
|
|
|
|
.vc-spotify-fallback {
|
|
padding: 0.5em;
|
|
color: var(--text-normal);
|
|
}
|