93 lines
1.4 KiB
SCSS
Executable File
93 lines
1.4 KiB
SCSS
Executable File
|
|
.slider {
|
|
position: relative;
|
|
cursor: pointer;
|
|
height: 20px;
|
|
|
|
&__input {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
opacity: 0;
|
|
z-index: 2;
|
|
cursor: pointer;
|
|
|
|
&::-webkit-slider-thumb {
|
|
width: 1px;
|
|
border: 0;
|
|
}
|
|
|
|
&::-moz-range-thumb {
|
|
width: 1px;
|
|
border: 0;
|
|
}
|
|
|
|
&::-ms-thumb {
|
|
width: 1px;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
&__track {
|
|
position: absolute;
|
|
background: rgba(0,0,0,0.2);
|
|
border-radius: 2px;
|
|
height: 4px;
|
|
top: 42%;
|
|
right: 0;
|
|
left: 0;
|
|
margin-top: -3px;
|
|
|
|
&__progress {
|
|
position: absolute;
|
|
background: colour(turquoise);
|
|
pointer-events: none;
|
|
top: 0;
|
|
left: 0;
|
|
border-radius: 2px;
|
|
height: 100%;
|
|
max-width: 100%;
|
|
border-radius: 4px;
|
|
|
|
&:after {
|
|
@include animate(0.1s);
|
|
content: '';
|
|
display: block;
|
|
background: colour(turquoise);
|
|
position: absolute;
|
|
top: 0;
|
|
right: -1px;
|
|
width: 4px;
|
|
height: 4px;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
&--disabled,
|
|
&--muted {
|
|
.slider__track__progress {
|
|
background: colour(mid_grey);
|
|
|
|
&:after {
|
|
background: colour(mid_grey) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.slider__track {
|
|
&__progress {
|
|
&:after {
|
|
width: 12px;
|
|
height: 12px;
|
|
top: -4px;
|
|
right: -6px;
|
|
background: lighten(colour(turquoise), 10%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |