mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-01-07 13:01:59 -05:00
3034abc2b4
Had to overwrite slick-slider's iconfont with background image for a quick fix.
75 lines
1.5 KiB
SCSS
75 lines
1.5 KiB
SCSS
@import "../../colors";
|
|
|
|
.carousel {
|
|
$icon-size: 40px;
|
|
$button-offset: $icon-size + 5px;
|
|
$box-content-offset: 20px;
|
|
|
|
padding: 12px $button-offset;
|
|
|
|
.box-content & {
|
|
padding: 12px $button-offset - 20px;
|
|
}
|
|
|
|
.slick-next,
|
|
.slick-prev {
|
|
margin-top: -$icon-size/2;
|
|
width: $icon-size;
|
|
height: $icon-size;
|
|
|
|
&:before {
|
|
display: block;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
background-size: 70%;
|
|
width: $icon-size;
|
|
height: $icon-size;
|
|
font-size: $icon-size;
|
|
content: "";
|
|
}
|
|
|
|
&.slick-disabled:before {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.slick-prev {
|
|
left: 0;
|
|
|
|
&:before {
|
|
background-image: url("/svgs/carousel/prev_ui-dark-gray.svg");
|
|
}
|
|
|
|
&:hover:before {
|
|
background-image: url("/svgs/carousel/prev_ui-blue.svg");
|
|
background-size: 90%;
|
|
}
|
|
|
|
|
|
.box-content & {
|
|
left: -$box-content-offset;
|
|
}
|
|
}
|
|
|
|
.slick-next {
|
|
right: 0;
|
|
|
|
&:before {
|
|
background-image: url("/svgs/carousel/next_ui-dark-gray.svg");
|
|
}
|
|
|
|
&:hover:before {
|
|
background-image: url("/svgs/carousel/next_ui-blue.svg");
|
|
background-size: 90%;
|
|
}
|
|
|
|
.box-content & {
|
|
right: -$box-content-offset;
|
|
}
|
|
}
|
|
|
|
.slick-slide {
|
|
padding-right: 30px;
|
|
}
|
|
|
|
}
|