mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
110 lines
2.1 KiB
CSS
110 lines
2.1 KiB
CSS
.sound {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 25px 20px;
|
|
border: 1px solid var(--color-neutral-200);
|
|
border-radius: 8px;
|
|
background: linear-gradient(var(--color-neutral-100), transparent);
|
|
text-align: center;
|
|
|
|
&.hidden {
|
|
display: none;
|
|
}
|
|
|
|
&:not(.selected)::before {
|
|
position: absolute;
|
|
top: -1px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 1px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
var(--color-neutral-400),
|
|
transparent
|
|
);
|
|
content: '';
|
|
}
|
|
|
|
& .favoriteButton {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
display: flex;
|
|
width: 30px;
|
|
height: 30px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--color-neutral-200);
|
|
border-radius: 50%;
|
|
background-color: black;
|
|
background-color: var(--color-neutral-100);
|
|
color: var(--color-foreground-subtle);
|
|
cursor: pointer;
|
|
outline: none;
|
|
|
|
&.isFavorite {
|
|
color: #f43f5e;
|
|
}
|
|
}
|
|
|
|
& .icon {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
width: 40px;
|
|
height: 40px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: var(--font-base);
|
|
transition: 0.2s;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
z-index: -1;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
background-color: var(--color-neutral-50);
|
|
content: '';
|
|
}
|
|
|
|
&::before {
|
|
position: absolute;
|
|
z-index: -2;
|
|
top: -1px;
|
|
left: -1px;
|
|
width: calc(100% + 2px);
|
|
height: calc(100% + 2px);
|
|
border-radius: 50%;
|
|
background: linear-gradient(
|
|
var(--color-neutral-300),
|
|
var(--color-neutral-100)
|
|
);
|
|
content: '';
|
|
}
|
|
}
|
|
|
|
&.selected {
|
|
border: 2px solid #818cf8;
|
|
box-shadow: 0 10px 20px #818cf833;
|
|
|
|
& .icon {
|
|
color: #818cf8;
|
|
}
|
|
}
|
|
|
|
& h3 {
|
|
margin-top: 8px;
|
|
cursor: default;
|
|
font-family: var(--font-heading);
|
|
font-size: var(--font-sm);
|
|
font-weight: 600;
|
|
line-height: 1.6;
|
|
}
|
|
}
|