123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
-
-
-
-
-
-
-
-
-
-
- .carousel {
- position: relative;
- }
-
- .carousel-inner {
- position: relative;
- width: 100%;
- overflow: hidden;
- }
-
- .carousel-item {
- position: relative;
- display: none;
- align-items: center;
- width: 100%;
- backface-visibility: hidden;
- perspective: 1000px;
- }
-
- .carousel-item.active,
- .carousel-item-next,
- .carousel-item-prev {
- display: block;
- @include transition($carousel-transition);
- }
-
- .carousel-item-next,
- .carousel-item-prev {
- position: absolute;
- top: 0;
- }
-
- .carousel-item-next.carousel-item-left,
- .carousel-item-prev.carousel-item-right {
- transform: translateX(0);
-
- @supports (transform-style: preserve-3d) {
- transform: translate3d(0, 0, 0);
- }
- }
-
- .carousel-item-next,
- .active.carousel-item-right {
- transform: translateX(100%);
-
- @supports (transform-style: preserve-3d) {
- transform: translate3d(100%, 0, 0);
- }
- }
-
- .carousel-item-prev,
- .active.carousel-item-left {
- transform: translateX(-100%);
-
- @supports (transform-style: preserve-3d) {
- transform: translate3d(-100%, 0, 0);
- }
- }
-
-
-
-
-
-
- .carousel-fade {
- .carousel-item {
- opacity: 0;
- transition-duration: .6s;
- transition-property: opacity;
- }
-
- .carousel-item.active,
- .carousel-item-next.carousel-item-left,
- .carousel-item-prev.carousel-item-right {
- opacity: 1;
- }
-
- .active.carousel-item-left,
- .active.carousel-item-right {
- opacity: 0;
- }
-
- .carousel-item-next,
- .carousel-item-prev,
- .carousel-item.active,
- .active.carousel-item-left,
- .active.carousel-item-prev {
- transform: translateX(0);
-
- @supports (transform-style: preserve-3d) {
- transform: translate3d(0, 0, 0);
- }
- }
- }
-
-
-
-
-
-
- .carousel-control-prev,
- .carousel-control-next {
- position: absolute;
- top: 0;
- bottom: 0;
-
- display: flex;
- align-items: center;
- justify-content: center;
- width: $carousel-control-width;
- color: $carousel-control-color;
- text-align: center;
- opacity: $carousel-control-opacity;
-
-
-
-
- @include hover-focus {
- color: $carousel-control-color;
- text-decoration: none;
- outline: 0;
- opacity: .9;
- }
- }
- .carousel-control-prev {
- left: 0;
- @if $enable-gradients {
- background: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
- }
- }
- .carousel-control-next {
- right: 0;
- @if $enable-gradients {
- background: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
- }
- }
-
-
- .carousel-control-prev-icon,
- .carousel-control-next-icon {
- display: inline-block;
- width: $carousel-control-icon-width;
- height: $carousel-control-icon-width;
- background: transparent no-repeat center center;
- background-size: 100% 100%;
- }
- .carousel-control-prev-icon {
- background-image: $carousel-control-prev-icon-bg;
- }
- .carousel-control-next-icon {
- background-image: $carousel-control-next-icon-bg;
- }
-
-
-
-
-
-
-
- .carousel-indicators {
- position: absolute;
- right: 0;
- bottom: 10px;
- left: 0;
- z-index: 15;
- display: flex;
- justify-content: center;
- padding-left: 0;
-
- margin-right: $carousel-control-width;
- margin-left: $carousel-control-width;
- list-style: none;
-
- li {
- position: relative;
- flex: 0 1 auto;
- width: $carousel-indicator-width;
- height: $carousel-indicator-height;
- margin-right: $carousel-indicator-spacer;
- margin-left: $carousel-indicator-spacer;
- text-indent: -999px;
- cursor: pointer;
- background-color: rgba($carousel-indicator-active-bg, .5);
-
-
- &::before {
- position: absolute;
- top: -10px;
- left: 0;
- display: inline-block;
- width: 100%;
- height: 10px;
- content: "";
- }
- &::after {
- position: absolute;
- bottom: -10px;
- left: 0;
- display: inline-block;
- width: 100%;
- height: 10px;
- content: "";
- }
- }
-
- .active {
- background-color: $carousel-indicator-active-bg;
- }
- }
-
-
-
-
-
-
- .carousel-caption {
- position: absolute;
- right: ((100% - $carousel-caption-width) / 2);
- bottom: 20px;
- left: ((100% - $carousel-caption-width) / 2);
- z-index: 10;
- padding-top: 20px;
- padding-bottom: 20px;
- color: $carousel-caption-color;
- text-align: center;
- }
|