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

79 lines
1.6 KiB
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
margin-bottom: 0;
padding: 12px $button-offset;
2015-09-08 14:56:28 -04:00
2015-09-08 15:10:25 -04:00
.box-content & {
padding: 12px $button-offset - 20px;
2015-09-08 15:10:25 -04:00
}
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 {
display: block;
background-repeat: no-repeat;
background-position: center center;
background-size: 70%;
width: $icon-size;
height: $icon-size;
2015-09-24 19:27:50 -04:00
font-size: $icon-size;
content: "";
2015-09-08 14:56:28 -04:00
}
2016-01-29 15:17:51 -05:00
&.slick-disabled {
&:before {
opacity: 1;
}
2015-09-08 14:56:28 -04:00
}
}
.slick-prev {
left: 0;
2015-09-08 15:10:25 -04:00
&:before {
background-image: url("/svgs/carousel/prev_ui-dark-gray.svg");
2016-01-29 15:17:51 -05:00
&:hover {
background-image: url("/svgs/carousel/prev_ui-blue.svg");
background-size: 90%;
}
}
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
&:before {
background-image: url("/svgs/carousel/next_ui-dark-gray.svg");
2016-01-29 15:17:51 -05:00
&:hover {
background-image: url("/svgs/carousel/next_ui-blue.svg");
background-size: 90%;
}
}
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
}