File: /var/www/innodrive/src/scss/blocks/filter.scss
.filter {
position: relative;
margin: 0;
}
.filter__results {
display: none;
flex-shrink: 0;
z-index: 99;
position: absolute;
right: 0;
top: 101px;
transform: translateX(100%);
background-color: #fff;
box-shadow: 0 0 25px 5px rgba(0, 0, 0, 0.15);
.filter__results-wrp {
display: flex;
height: 36px;
font-size: 15px;
line-height: 19px;
color: #5c5c5c;
a {
flex-shrink: 0;
display: block;
padding: 10px 8px;
line-height: 1;
color: #fff;
background-color: #11b9a4;
}
span {
flex-shrink: 0;
display: block;
padding: 7px 8px 8px 14px;
border: 1px solid #11b9a4;
border-left: none;
border-right: none;
}
> div {
z-index: -1;
flex-shrink: 0;
content: '';
left: -20px;
position: absolute;
top: 50%;
margin-top: 0;
bottom: 0;
width: 26px;
height: 26px;
transform: translate(7px, -50%) rotate(45deg);
border: 1px solid #11b9a4;
border-right: none;
border-top: none;
border-top-left-radius: 1px;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 1px;
background-color: #fff;
}
}
&.visible {
display: block;
}
}
.filter__button-reset {
@include reset-button;
margin: 27px auto;
padding: 0 13.5px;
font-size: 13px;
line-height: 27px;
text-transform: uppercase;
color: #939393;
border-radius: 13.5px;
border: 1px solid #939393;
letter-spacing: 0.05em;
}
.filter__button-submit {
display: none;
}
.filter__buttons {
order: -1;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
}
@include media('tablet-s') {
.filter {
z-index: 2;
position: fixed;
top: 60px;
bottom: 0;
left: 100%;
display: flex;
flex-direction: column;
width: 100%;
padding-top: 19px;
background: #fff;
overflow: auto;
overflow-y: scroll;
&.js-open {
left: 0;
}
}
.filter__results {
&.visible {
display: none;
}
}
.filter__buttons {
order: -1;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
button,
a {
width: 50%;
max-width: 160px;
min-width: unset;
margin: 0;
line-height: 25px;
}
}
.filter__button-reset {
margin: 0;
font-size: 9px;
}
.filter__button-submit {
display: inline-block;
}
}