Files
Iris/src/scss/components/_grid-slider.scss

70 lines
981 B
SCSS
Raw Normal View History

.grid-slider-wrapper {
2017-01-11 21:54:20 +13:00
padding-bottom: 10px;
2017-01-12 08:52:21 +13:00
position: relative;
.controls {
position: absolute;
top: -5px;
right: 0;
.fa {
display: inline-block;
padding: 8px;
margin-left: 2px;
cursor: pointer;
opacity: 0.5;
@include animate();
&[disabled] {
opacity: 0.2;
cursor: not-allowed;
}
&:hover {
opacity: 1;
}
}
}
.grid-slider {
position: relative;
2017-01-11 21:54:20 +13:00
overflow-x: hidden;
overflow-y: hidden;
2017-01-12 08:52:21 +13:00
height: 17vw;
2017-01-11 21:54:20 +13:00
.has-touch-events & {
overflow-x: scroll;
}
.liner {
position: absolute;
top: 0;
left: 0;
width: 400%;
box-sizing: border-box;
2017-01-12 08:52:21 +13:00
@include animate();
.grid-item {
width: 4%;
margin: 0 0.5% !important;
}
}
2017-01-11 21:54:20 +13:00
}
@include responsive( $bp_medium ){
.grid-slider {
2017-01-12 08:52:21 +13:00
height: 23vw;
2017-01-11 21:54:20 +13:00
}
}
@include responsive( 500px ){
.grid-slider {
height: 40vw;
.liner {
width: 666.6667%;
}
}
}
}