webpack-bootstrap-ui-kit/src/scss/ui/carousel.scss

143 lines
2.7 KiB
SCSS
Raw Normal View History

2021-08-18 20:38:12 +02:00
@import "~bootstrap/scss/carousel";
2021-08-09 18:04:09 +02:00
/*
* Bootstrap carousel improvement
*/
/*.carousel-item {
&.active {
display: flex !important;
justify-content: center;
align-items: flex-start;
}
}*/
$carousel-title-color: $white !default;
$carousel-slide-min-height: 4rem !default;
$carousel-text-shadow: 1px 1px $black !default;
$carousel-controls-font-size: 3rem;
$carousel-controls-zindex: 11 !default;
$carousel-controls-shadow: 1px 1px $black !default;
2022-04-19 17:07:22 +02:00
$carousel-controls-hover-bg: transparentize($black, .4) !default;
2021-08-09 18:04:09 +02:00
$carousel-slide-img-loading-max-height: 25vh !default;
.carousel-slide {
2022-04-19 17:07:22 +02:00
display: flex;
flex-direction: column;
min-height: $carousel-slide-min-height;
align-items: flex-start;
justify-content: center;
> .container {
position: relative;
}
.video {
width: 100%;
iframe {
width: 100% !important;
height: auto !important;
}
2021-08-09 18:04:09 +02:00
}
2022-04-19 17:07:22 +02:00
.img {
display: block;
width: 100%;
}
2021-08-09 18:04:09 +02:00
2022-04-19 17:07:22 +02:00
img.loading {
max-height: $carousel-slide-img-loading-max-height;
}
2021-08-09 18:04:09 +02:00
}
.carousel-control-prev,
.carousel-control-next {
2022-04-19 17:07:22 +02:00
font-size: $carousel-controls-font-size;
z-index: $carousel-controls-zindex;
text-shadow: $carousel-controls-shadow;
&:hover,
&:focus {
background: $carousel-controls-hover-bg;
}
2021-08-09 18:04:09 +02:00
}
.carousel-indicators li {
2022-04-19 17:07:22 +02:00
box-shadow: none;
2021-08-09 18:04:09 +02:00
}
.carousel-title {
2022-04-19 17:07:22 +02:00
color: $carousel-title-color;
2021-08-09 18:04:09 +02:00
}
.carousel-title,
.carousel-content {
2022-04-19 17:07:22 +02:00
text-shadow: $carousel-text-shadow;
2021-08-09 18:04:09 +02:00
}
.carousel-caption {
2022-04-19 17:07:22 +02:00
right: 0;
bottom: 0;
left: auto;
width: 50%;
2021-08-09 18:04:09 +02:00
}
.slide-link__media {
2022-04-19 17:07:22 +02:00
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
2021-08-09 18:04:09 +02:00
}
2021-09-05 21:05:55 +02:00
.carousel-multislide {
2022-04-19 17:07:22 +02:00
overflow: hidden;
.carousel-item {
display: block;
width: 50%;
margin: 0;
2022-07-12 16:45:34 +02:00
@media (max-width: (map-get($grid-breakpoints, "md") - 1)) {
width: 100%!important;
}
}
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
transform: none;
}
.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
transform: none;
2022-04-19 17:07:22 +02:00
}
.carousel-inner {
display: flex;
2022-09-21 19:43:28 +02:00
flex-direction: row;
2022-04-19 17:07:22 +02:00
align-items: center;
justify-content: center;
2022-07-12 16:45:34 +02:00
transition: all 1s ease;
2022-09-21 19:43:28 +02:00
/*@media (min-width: map-get($grid-breakpoints, "md")) {
2022-07-12 16:45:34 +02:00
flex-direction: row;
2022-09-21 19:43:28 +02:00
}*/
2022-04-19 17:07:22 +02:00
}
}
2022-07-12 16:45:34 +02:00
.carousel-inner {
transition: all .4s ease;
}
2022-04-19 17:07:22 +02:00
.js-carousel-no-slide {
.carousel-control-next,
.carousel-control-prev,
.carousel-indicators {
display: none;
}
2021-09-05 21:05:55 +02:00
}