assets/css/blocks/carousel.css

50 lines
1.1 KiB
CSS

.carousel {
padding-top: var(--block-space);
padding-bottom: var(--block-space);
}
.carousel__title {
margin: 0;
margin-bottom: var(--space-5);
}
.carousel__more-link {
margin-top: var(--space-5);
margin-bottom: var(--space-5);
}
.carousel__more-link::after {
content: " →";
position: relative;
font-size: 1.1em;
top: 0.05em;
}
@media (min-width: 800px) {
.carousel__more-link {
margin-top: 0;
}
}
.carousel__horizontal {
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
overscroll-behavior-x: contain;
-webkit-overflow-scrolling: touch; /* iOS 12 snap bug fix */
scrollbar-width: none; /* hide Firefox scrollbars */
}
.carousel__horizontal::after {
/* this fixes the space after the last item not showing */
content: "";
display: block;
width: 1px;
height: 1px;
}
.carousel__horizontal::-webkit-scrollbar {
display: none; /* hide Chrome + Safari scrollbars */
}
.carousel--bold {
--bg-color: var(--green);
--highlight-color: var(--white);
}
.carousel--bold .carousel__title {
font-family: var(--headline);
font-weight: var(--headline-bold);
}