File: /var/www/innodrive/src/scss/blocks/filter-range.scss
.filter-range {
width: 100%;
}
.filter-range__slider {
display: block;
position: relative;
height: 10px;
width: 100%;
user-select: none;
}
.filter-range__touch-left,
.filter-range__touch-right {
box-sizing: border-box;
display: block;
position: absolute;
height: 10px;
width: 10px;
padding: 0;
z-index: 2;
cursor: pointer;
span {
display: block;
width: 100%;
height: 100%;
background: #247cc6;
border-radius: 50%;
}
}
.filter-range__line {
box-sizing: border-box;
position: absolute;
width: 100%;
left: 0;
top: 3.5px;
height: 3px;
background: #e5e5e5;
z-index: 0;
overflow: hidden;
span {
display: block;
height: 100%;
width: 0;
background: #247cc6;
}
}
.filter-range__inboxes {
display: flex;
justify-content: space-between;
p {
display: inline-block;
width: 50%;
margin: 17px 0;
&:last-of-type {
text-align: right;
}
}
label {
padding: 0 0 0 6px;
}
input {
width: 81px;
height: 27px;
margin-left: 6px;
text-align: center;
font-size: 15px;
line-height: 1.1;
border: 1px solid #d7d7d7;
}
}
.filter-range__value,
.filter-range__unit {
display: none;
}
@include media('tablet-l') {
.filter-range__inboxes {
input {
display: block;
margin-left: 0;
}
}
}
@include media('tablet-s') {
.filter-range__value,
.filter-range__unit {
display: inline-block;
font-size: 18px;
line-height: 1;
color: #000;
}
.filter-range__slider {
height: 37.5px;
}
.filter-range__line {
top: 17.25px;
}
.filter-range__touch-left,
.filter-range__touch-right {
height: 37.5px;
width: 37.5px;
span {
border-radius: 2.5px;
}
}
.filter-range__inboxes {
p {
margin: 17px 0 0;
}
label {
display: none;
}
input {
display: inline-block;
margin-left: 6px;
}
}
}