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

83 lines
1.6 KiB
SCSS
Raw Normal View History

2019-06-08 17:20:51 +02:00
/*
* Bootstrap carousel improvement
*/
2019-08-27 17:25:41 +02:00
/*.carousel-item {
2019-07-10 20:59:57 +02:00
&.active {
display: flex !important;
justify-content: center;
align-items: flex-start;
}
2019-08-27 17:25:41 +02:00
}*/
2020-02-17 18:38:23 +01:00
$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;
$carousel-controls-hover-bg: transparentize($black, 0.4) !default;
2020-09-02 00:12:38 +02:00
$carousel-slide-img-loading-max-height: 25vh !default;
2020-02-17 18:38:23 +01:00
2019-08-27 17:25:41 +02:00
.carousel-slide {
2020-02-17 18:38:23 +01:00
min-height: $carousel-slide-min-height;
2019-08-27 17:25:41 +02:00
display: flex;
justify-content: center;
align-items: flex-start;
2021-02-26 03:47:36 +01:00
flex-direction: column;
>.container {
position: relative;
}
2019-08-27 17:25:41 +02:00
.video {
width: 100%;
iframe {
width: 100% !important;
height: auto !important;
}
}
.img {
display: block;
width: 100%;
}
2020-09-02 00:12:38 +02:00
img.loading {
max-height: $carousel-slide-img-loading-max-height;
}
2019-07-10 20:59:57 +02:00
}
2019-06-08 17:20:51 +02:00
.carousel-control-prev,
.carousel-control-next {
2020-02-17 18:38:23 +01:00
z-index: $carousel-controls-zindex;
font-size: $carousel-controls-font-size;
text-shadow: $carousel-controls-shadow;
2019-06-08 17:20:51 +02:00
&:hover,
&:focus {
2020-02-17 18:38:23 +01:00
background: $carousel-controls-hover-bg;
2019-06-08 17:20:51 +02:00
}
}
.carousel-indicators li {
box-shadow: none;
}
.carousel-title {
2020-02-17 18:38:23 +01:00
color: $carousel-title-color;
2019-06-08 17:20:51 +02:00
}
.carousel-title,
.carousel-content {
2020-02-17 18:38:23 +01:00
text-shadow: $carousel-text-shadow;
2019-06-08 17:20:51 +02:00
}
2021-02-26 03:47:36 +01:00
.carousel-caption {
right: 0;
left: auto;
width: 50%;
bottom: 0;
}