76 lines
1.4 KiB
SCSS
76 lines
1.4 KiB
SCSS
/** @format */
|
|
|
|
.audio-player {
|
|
position: fixed;
|
|
bottom: 0;
|
|
right: 0;
|
|
background: $clr-background-dark-opacity-0_8;
|
|
z-index: 10;
|
|
display: grid;
|
|
padding: 1em;
|
|
margin: 1em;
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
gap: 1em;
|
|
box-shadow: 0 0 20px rgb(0 0 0 / 0.25);
|
|
|
|
grid-template-columns: 25% 1fr 25%;
|
|
|
|
#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: 1em;
|
|
flex-flow: column;
|
|
}
|
|
&-info {
|
|
display: grid;
|
|
gap: 0.5em;
|
|
grid-template-columns: minmax(0, 4.5em) minmax(0, 1fr);
|
|
width: fit-content;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
&-image {
|
|
width: 4.5em;
|
|
aspect-ratio: 1;
|
|
object-fit: cover;
|
|
z-index: 1;
|
|
flex-shrink: 0;
|
|
flex-grow: 1;
|
|
|
|
position: relative;
|
|
&-container {
|
|
border-radius: $border-radius-default;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: $clr-gradient-dark;
|
|
height: fit-content;
|
|
aspect-ratio: 1;
|
|
}
|
|
&-icon {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 2em !important;
|
|
fill: url(#clr-gradient-default) !important;
|
|
z-index: 0;
|
|
}
|
|
}
|
|
&-track {
|
|
grid-template-columns: 4.5em 60% 0.5fr 0.5fr !important;
|
|
}
|
|
}
|