mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
113 lines
1.8 KiB
CSS
113 lines
1.8 KiB
CSS
.container {
|
|
padding-top: 30px;
|
|
display: flex;
|
|
height: 35px;
|
|
}
|
|
|
|
.slider {
|
|
position: relative;
|
|
width: 400px;
|
|
}
|
|
|
|
.slider__track,
|
|
.slider__range,
|
|
.slider__left-value,
|
|
.slider__right-value,
|
|
.slider__left-input,
|
|
.slider__right-input {
|
|
position: absolute;
|
|
}
|
|
|
|
.slider__track,
|
|
.slider__range {
|
|
border-radius: 3px;
|
|
height: 5px;
|
|
}
|
|
|
|
.slider__track {
|
|
background-color: #ced4da;
|
|
width: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.slider__range {
|
|
background-color: #9fe5e1;
|
|
z-index: 2;
|
|
}
|
|
|
|
.slider__left-value,
|
|
.slider__right-value {
|
|
font-size: 12px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.slider__left-input,
|
|
.slider__right-input {
|
|
font-size: 12px;
|
|
margin-top: -36px;
|
|
}
|
|
|
|
|
|
.slider__left-input input,
|
|
.slider__right-input input {
|
|
width: 80px;
|
|
}
|
|
|
|
.slider__left-value, .slider__left-input {
|
|
left: 6px;
|
|
}
|
|
|
|
.slider__right-value, .slider__right-input {
|
|
right: -4px;
|
|
}
|
|
|
|
/* Removing the default appearance */
|
|
.thumb,
|
|
.thumb::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.thumb {
|
|
pointer-events: none;
|
|
position: absolute;
|
|
height: 0;
|
|
width: 400px;
|
|
outline: none;
|
|
}
|
|
|
|
.thumb--left {
|
|
z-index: 3;
|
|
}
|
|
|
|
.thumb--right {
|
|
z-index: 4;
|
|
}
|
|
|
|
/* For Chrome browsers */
|
|
.thumb::-webkit-slider-thumb {
|
|
background-color: #f1f5f7;
|
|
border: none;
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 1px 1px #ced4da;
|
|
cursor: pointer;
|
|
height: 18px;
|
|
width: 18px;
|
|
margin-top: 4px;
|
|
pointer-events: all;
|
|
position: relative;
|
|
}
|
|
|
|
/* For Firefox browsers */
|
|
.thumb::-moz-range-thumb {
|
|
background-color: #f1f5f7;
|
|
border: none;
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 1px 1px #ced4da;
|
|
cursor: pointer;
|
|
height: 18px;
|
|
width: 18px;
|
|
margin-top: 4px;
|
|
pointer-events: all;
|
|
position: relative;
|
|
}
|