mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
112 lines
2.2 KiB
CSS
112 lines
2.2 KiB
CSS
.sound {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 30px 20px;
|
|
border: 1px solid var(--color-neutral-200);
|
|
border-radius: 8px;
|
|
background: linear-gradient(var(--color-neutral-100), transparent);
|
|
text-align: center;
|
|
|
|
&:not(.selected)::before {
|
|
position: absolute;
|
|
top: -1px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 1px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
var(--color-neutral-400),
|
|
transparent
|
|
);
|
|
content: '';
|
|
}
|
|
|
|
&.selected {
|
|
border: 2px solid #818cf8;
|
|
box-shadow: 0 10px 20px #818cf833;
|
|
}
|
|
|
|
& h3 {
|
|
font-family: var(--font-heading);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
& input {
|
|
width: 100%;
|
|
max-width: 120px;
|
|
margin-top: 12px;
|
|
|
|
/********** Range Input Styles **********/
|
|
|
|
/* Range Reset */
|
|
appearance: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
|
|
/* Removes default focus */
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: default;
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/***** Chrome, Safari, Opera and Edge Chromium styles *****/
|
|
|
|
&::-webkit-slider-runnable-track {
|
|
height: 0.5rem;
|
|
border-radius: 0.5rem;
|
|
background-color: #27272a;
|
|
}
|
|
|
|
&::-webkit-slider-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 1px solid #52525b;
|
|
border-radius: 50%;
|
|
margin-top: -3px;
|
|
appearance: none;
|
|
background-color: #3f3f46;
|
|
}
|
|
|
|
&:not(:disabled):focus::-webkit-slider-thumb {
|
|
border: 1px solid #053a5f;
|
|
outline: 3px solid #053a5f;
|
|
outline-offset: 0.125rem;
|
|
}
|
|
|
|
/******** Firefox styles ********/
|
|
|
|
&::-moz-range-track {
|
|
height: 0.5rem;
|
|
border-radius: 0.5rem;
|
|
background-color: #27272a;
|
|
}
|
|
|
|
&::-moz-range-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: none;
|
|
border: 1px solid #52525b;
|
|
border-radius: 0;
|
|
border-radius: 50%;
|
|
margin-top: -3px;
|
|
background-color: #3f3f46;
|
|
}
|
|
|
|
&:not(:disabled):focus::-moz-range-thumb {
|
|
border: 1px solid #053a5f;
|
|
outline: 3px solid #053a5f;
|
|
outline-offset: 0.125rem;
|
|
}
|
|
}
|
|
}
|