70 lines
1.3 KiB
SCSS
70 lines
1.3 KiB
SCSS
.range-slider {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 16px 0;
|
|
|
|
&__input {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 100%;
|
|
height: 10px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
#28aa3a var(--progress, 0%),
|
|
/* Filled color */ #cccccc var(--progress, 0%) /* Remaining color */
|
|
);
|
|
border-radius: 5px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
|
|
&::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: #28aa3a;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: transform 0.3s ease;
|
|
|
|
&:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
|
|
&::-moz-range-thumb {
|
|
width: 20px;
|
|
height: 20px;
|
|
background: #28aa3a;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&__value {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: #28aa3a;
|
|
min-width: 40px;
|
|
text-align: left;
|
|
padding: 1rem 0rem;
|
|
}
|
|
}
|
|
|
|
.range-slider__value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #28aa3a;
|
|
text-align: left;
|
|
padding-bottom: 1rem;
|
|
transition:
|
|
transform 0.1s ease,
|
|
opacity 0.1s ease;
|
|
|
|
&:hover {
|
|
color: #28aa39d6;
|
|
}
|
|
}
|