File: //var/www/innodrive/src/scss/blocks/short-list.scss
.short-list {
@include reset-list;
display: flex;
align-items: flex-start;
padding-top: 8px;
&::-webkit-scrollbar {
height: 12px;
}
/* Track */
&::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px $color-primary-grey;
border-radius: 10px;
}
/* Handle */
&::-webkit-scrollbar-thumb {
background: $color-primary-blue;
border-radius: 10px;
}
scrollbar-base-color: $color-primary-blue;
overflow-x: auto;
overflow-y: visible;
&::after {
content: '';
flex-shrink: 0;
display: block;
height: 1px;
width: 30px;
}
li {
flex-shrink: 0;
width: 222px;
margin: 30px;
&:last-of-type {
margin-right: 0;
}
}
.picture-wrp {
width: 100%;
padding-bottom: 82%;
border: 1px solid #d7d7d7;
}
p {
margin: 18px 0 5px;
font-size: 16px;
line-height: 20px;
font-weight: 300;
text-align: center;
}
a {
color: $color-primary-blue;
text-decoration: underline;
}
}
@include media('tablet-m') {
.short-list {
&::after {
width: 15px;
}
li {
margin: 15px;
}
}
}
@include media('tablet-s') {
.short-list {
padding: 24px 8px;
justify-content: space-between;
&::-webkit-scrollbar {
height: 6px;
}
/* Track */
&::-webkit-scrollbar-track {
box-shadow: inset 0 0 2.5px $color-primary-grey;
border-radius: 5px;
}
/* Handle */
&::-webkit-scrollbar-thumb {
border-radius: 5px;
}
&::after {
width: 36px;
}
li {
//width: 45%;
width: 112px;
margin: 0 25px;
&:last-of-type {
margin-right: 0;
}
&:nth-of-type(n+3) {
//display: none;
}
p {
margin: 7px 0 2px;
font-size: 10px;
line-height: 13px;
}
.picture-wrp {
//width: 110px;
margin: 0 auto;
padding-bottom: 79%;
}
}
}
}