nej-react-components/Parts/RangeSlider.scss
2022-02-23 16:12:25 +01:00

87 lines
1.7 KiB
SCSS

.rs-range {
-webkit-appearance: none;
width: 100%;
&:focus {
outline: none;
}
&::-webkit-slider-runnable-track {
width: 100%;
height: 1px;
cursor: pointer;
box-shadow: none;
background: --accent;
}
&::-moz-range-track {
width: 100%;
height: 1px;
cursor: pointer;
background: --accent;
}
&::-webkit-slider-runnable-track {
width: 100%;
height: 8px;
cursor: pointer;
background: var(--accent);
}
&::-webkit-slider-thumb {
box-shadow: none;
border: 0px solid --accent;
box-shadow: 0px 10px 10px rgba(0,0,0,0.25);
height: 32px;
width: 22px;
border-radius: 22px;
background: var(--accent);
cursor: pointer;
-webkit-appearance: none;
margin-top: -12px;
}
&::-moz-range-thumb{
box-shadow: none;
border: 0px solid;
box-shadow: 0px 10px 10px rgba(0,0,0,0.25);
height: 31px;
width: 12px;
border-radius: 22px;
background: var(--accent);
cursor: pointer;
-webkit-appearance: none;
margin-top: -20px;
}
&::-moz-focus-outer {
border: 0;
}
}
.rs-label {
position: relative;
display: block;
margin-bottom: 1rem;
margin-left: -1rem;
width: 3rem;
height: 3rem;
background: transparent;
border-radius: 50%;
line-height: 30px;
text-align: center;
font-weight: bold;
padding-top: 0.4rem;
box-sizing: border-box;
border: 2px solid var(--accent);
margin-top: 20px;
left: attr(value);
color: var(--accent);
font-size: 20px;
&::after {
content: "Price";
display: block;
font-size: 8px;
letter-spacing: 0.07em;
margin-top: -1rem;
}
}