234 lines
5.8 KiB
SCSS
234 lines
5.8 KiB
SCSS
.song {
|
|
&-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0 var(--space-between-block);
|
|
}
|
|
|
|
.m--column &-item{
|
|
width: 100%;
|
|
}
|
|
|
|
&-item {
|
|
@mixin responsive-m {
|
|
width: 100%;
|
|
}
|
|
|
|
position: relative;
|
|
z-index: 2;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
width: calc(50% - var(--space-between-block) / 2);
|
|
padding: 10px;
|
|
|
|
background: transparent;
|
|
border-left: 3px solid transparent;
|
|
|
|
transition: border .5s ease, background .5s ease;
|
|
|
|
&.m--select &__selected {
|
|
width: 35px;
|
|
height: 33px;
|
|
margin-right: 20px;
|
|
|
|
&.m--stop {
|
|
path {
|
|
animation-play-state: paused;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__selected {
|
|
overflow: hidden;
|
|
width: 0;
|
|
transition: all .2s ease;
|
|
|
|
path:nth-child(n) {
|
|
animation: play-transform 3s infinite linear;
|
|
}
|
|
|
|
path:nth-child(2n) {
|
|
animation: play-transform 2s infinite linear;
|
|
}
|
|
|
|
path:nth-child(3n) {
|
|
animation: play-transform 1.5s infinite linear;
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
cursor: url("./assets/img/icon/cursor.svg"), auto;
|
|
background: linear-gradient(90deg, rgb(255 255 255 / 20%) 0%, rgb(255 255 255 / 0%) 100%);
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
&__btn {
|
|
position: relative;
|
|
|
|
width: 50px;
|
|
min-width: 0;
|
|
height: 50px;
|
|
min-height: 0;
|
|
|
|
background: var(--color-primary);
|
|
border: none;
|
|
border-radius: 50%;
|
|
|
|
&.m--small {
|
|
width: 25px;
|
|
height: 25px;
|
|
background: transparent;
|
|
}
|
|
|
|
&.m--favorites {
|
|
&::after {
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 25px;
|
|
height: 25px;
|
|
margin: auto;
|
|
|
|
background: svg-load('./assets/img/icon/favorites.svg', fill=$color-primary) no-repeat 100%;
|
|
background-size: contain;
|
|
|
|
transition: all .3s ease;
|
|
}
|
|
|
|
&:hover::after {
|
|
background: svg-load('./assets/img/icon/favorites.svg', fill=#FFF) no-repeat 100%;
|
|
background-size: contain;
|
|
}
|
|
}
|
|
|
|
&.m--add {
|
|
&::after {
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 25px;
|
|
height: 25px;
|
|
margin: auto;
|
|
|
|
background: svg-load('./assets/img/icon/add-icon.svg', fill=$color-primary) no-repeat 100%;
|
|
background-size: contain;
|
|
|
|
transition: all .3s ease;
|
|
}
|
|
|
|
&:hover::after {
|
|
background: svg-load('./assets/img/icon/add-icon.svg', fill=#FFF) no-repeat 100%;
|
|
background-size: contain;
|
|
}
|
|
}
|
|
|
|
&.m--already{
|
|
&::after {
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 25px;
|
|
height: 25px;
|
|
margin: auto;
|
|
|
|
background: svg-load('./assets/img/icon/icon-trash.svg', stroke=$color-primary) no-repeat 100%;
|
|
background-size: contain;
|
|
|
|
transition: all .3s ease;
|
|
}
|
|
|
|
&:hover::after {
|
|
background: svg-load('./assets/img/icon/icon-trash.svg', stroke=#FFF) no-repeat 100%;
|
|
background-size: contain;
|
|
}
|
|
}
|
|
|
|
&.m--play {
|
|
&::after {
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 18px;
|
|
height: 18px;
|
|
margin: auto;
|
|
|
|
background: svg-load('./assets/img/icon/play.svg', fill=#FFFF) no-repeat 100%;
|
|
background-size: contain;
|
|
|
|
transition: all .3s ease;
|
|
}
|
|
|
|
&:hover::after {
|
|
background: svg-load('./assets/img/icon/play.svg', fill=$color-primary) no-repeat 100%;
|
|
background-size: contain;
|
|
}
|
|
}
|
|
|
|
&.m--pause {
|
|
&::after {
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 18px;
|
|
height: 18px;
|
|
margin: auto;
|
|
|
|
background: svg-load('./assets/img/icon/pause.svg', fill=#FFFF) no-repeat 100%;
|
|
background-size: contain;
|
|
|
|
transition: all .3s ease;
|
|
}
|
|
|
|
&:hover::after {
|
|
background: svg-load('./assets/img/icon/pause.svg', fill=$color-primary) no-repeat 100%;
|
|
background-size: contain;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
margin-left: 20px;
|
|
|
|
font-size: 1rem;
|
|
line-height: 21px;
|
|
color: var(--color-white-opacity);
|
|
|
|
span {
|
|
color: var(--color-white);
|
|
}
|
|
}
|
|
|
|
&__tools {
|
|
display: flex;
|
|
gap: 20px;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes play-transform {
|
|
0% {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(50%);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
}
|