scratch-www/src/components/carousel/carousel.scss

51 lines
826 B
SCSS
Raw Normal View History

@import "../../colors";
2015-09-08 14:56:28 -04:00
.carousel {
$icon-size: 40px;
$button-offset: $icon-size + 5px;
2015-09-08 15:10:25 -04:00
$box-content-offset: 20px;
2015-09-08 14:56:28 -04:00
padding: 0 $button-offset;
2015-09-08 15:10:25 -04:00
.box-content & {
padding: 0 $button-offset - 20px;
}
2015-09-24 19:27:50 -04:00
.slick-next,
.slick-prev {
margin-top: -$icon-size/2;
2015-09-08 14:56:28 -04:00
width: $icon-size;
height: $icon-size;
2015-09-24 19:27:50 -04:00
2015-09-08 14:56:28 -04:00
&:before {
color: $ui-dark-gray;
2015-09-24 19:27:50 -04:00
font-size: $icon-size;
2015-09-08 14:56:28 -04:00
}
2015-09-24 19:27:50 -04:00
&.slick-disabled:before {
2015-09-08 14:56:28 -04:00
opacity: 1;
}
}
.slick-prev {
left: 0;
2015-09-08 15:10:25 -04:00
.box-content & {
left: -$box-content-offset;
}
2015-09-08 14:56:28 -04:00
}
.slick-next {
right: 0;
2015-09-08 15:10:25 -04:00
.box-content & {
right: -$box-content-offset;
}
2015-09-08 14:56:28 -04:00
}
.slick-slide {
padding-right: 30px;
}
2015-09-08 15:10:25 -04:00
}