109 lines
2.0 KiB
SCSS
109 lines
2.0 KiB
SCSS
$image-size: 4em;
|
|
|
|
.audio-player {
|
|
position: fixed;
|
|
bottom: 0;
|
|
right: 0;
|
|
z-index: 10;
|
|
display: grid;
|
|
padding: 0.5em 1.5em;
|
|
gap: 1em;
|
|
box-shadow: 0 0 20px rgb(0 0 0 / 0.25);
|
|
grid-template-columns: 30% 1fr 30%;
|
|
background: rgb(0 0 0 / 0.8) !important;
|
|
#waveform {
|
|
width: 100%;
|
|
transform: scaleY(0);
|
|
transition: transform $transition-time-default;
|
|
&[data-show="true"] {
|
|
transform: scaleY(1) !important;
|
|
}
|
|
}
|
|
&-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5em;
|
|
padding: 0.5em 0;
|
|
flex-flow: column;
|
|
}
|
|
&-info {
|
|
display: grid;
|
|
gap: 1em;
|
|
grid-template-columns: minmax(0, $image-size) minmax(0, 1fr);
|
|
width: fit-content;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
&-image {
|
|
width: $image-size;
|
|
aspect-ratio: 1;
|
|
object-fit: cover;
|
|
z-index: 1;
|
|
flex-shrink: 0;
|
|
flex-grow: 1;
|
|
|
|
position: relative;
|
|
&-container {
|
|
border-radius: $border-radius_04;
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: fit-content;
|
|
aspect-ratio: 1;
|
|
background: rgb(255 255 255 / 0.1);
|
|
}
|
|
&-icon {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 2em !important;
|
|
z-index: 0;
|
|
}
|
|
}
|
|
&-track {
|
|
grid-template-columns: $image-size 60% 0.5fr 0.5fr !important;
|
|
}
|
|
&-playlist{
|
|
background: $clr-background-dark !important;
|
|
border: 1.2px solid rgb(255 255 255 / 0.2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1em;
|
|
// Magic scrollbar
|
|
&::-webkit-scrollbar {
|
|
&-thumb {
|
|
height: 150px;
|
|
max-height: 33%;
|
|
}
|
|
&-track {
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
background: transparent !important;
|
|
}
|
|
}
|
|
|
|
&-track{
|
|
display: grid;
|
|
gap: 1em;
|
|
grid-template-columns: 4em 1fr 4em;
|
|
cursor: pointer;
|
|
&.active{
|
|
color: $clr-accent-default;
|
|
}
|
|
&-image{
|
|
background: rgb(255 255 255 / 0.1);
|
|
border: 1.2px solid rgb(255 255 255 / 0.1);
|
|
overflow: hidden;
|
|
border-radius:5px;
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
height: 4em;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|