mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-04 04:41:56 -05:00
41e4b3b990
Created a new global style sheet to manage colors and converted all the current SCSS to match the new color scheme.
50 lines
826 B
SCSS
50 lines
826 B
SCSS
@import "../../colors";
|
|
|
|
.carousel {
|
|
$icon-size: 40px;
|
|
$button-offset: $icon-size + 5px;
|
|
$box-content-offset: 20px;
|
|
|
|
padding: 0 $button-offset;
|
|
|
|
.box-content & {
|
|
padding: 0 $button-offset - 20px;
|
|
}
|
|
|
|
.slick-next,
|
|
.slick-prev {
|
|
margin-top: -$icon-size/2;
|
|
width: $icon-size;
|
|
height: $icon-size;
|
|
|
|
&:before {
|
|
color: $ui-dark-gray;
|
|
font-size: $icon-size;
|
|
}
|
|
|
|
&.slick-disabled:before {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.slick-prev {
|
|
left: 0;
|
|
|
|
.box-content & {
|
|
left: -$box-content-offset;
|
|
}
|
|
}
|
|
|
|
.slick-next {
|
|
right: 0;
|
|
|
|
.box-content & {
|
|
right: -$box-content-offset;
|
|
}
|
|
}
|
|
|
|
.slick-slide {
|
|
padding-right: 30px;
|
|
}
|
|
|
|
}
|