|
|
@ -36,7 +36,7 @@ |
|
|
|
*/ |
|
|
|
@media (min-width: 768px) and (max-width: 991px) { |
|
|
|
/* Show 4th slide on md if col-md-4*/ |
|
|
|
.carousel-inner .active.col-md-4.carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .active.col-md-4.carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
right: -33.3333%; /*change this with javascript in the future*/ |
|
|
@ -47,7 +47,7 @@ |
|
|
|
} |
|
|
|
@media (min-width: 576px) and (max-width: 768px) { |
|
|
|
/* Show 3rd slide on sm if col-sm-6*/ |
|
|
|
.carousel-inner .active.col-sm-6.carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .active.col-sm-6.carousel-item + .carousel-item + .carousel-item { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
right: -50%; /*change this with javascript in the future*/ |
|
|
@ -57,31 +57,31 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
@media (min-width: 576px) { |
|
|
|
.carousel-item { |
|
|
|
.carousel_click .carousel-item { |
|
|
|
margin-right: 0; |
|
|
|
} |
|
|
|
/* show 2 items */ |
|
|
|
.carousel-inner .active.carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .active.carousel-item + .carousel-item { |
|
|
|
display: block; |
|
|
|
} |
|
|
|
.carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left), |
|
|
|
.carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left), |
|
|
|
.carousel_click .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item { |
|
|
|
transition: none; |
|
|
|
} |
|
|
|
.carousel-inner .carousel-item-next { |
|
|
|
.carousel_click .carousel-inner .carousel-item-next { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
/* left or forward direction */ |
|
|
|
.active.carousel-item-left + .carousel-item-next.carousel-item-left, |
|
|
|
.carousel-item-next.carousel-item-left + .carousel-item, |
|
|
|
.carousel-item-next.carousel-item-left + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .active.carousel-item-left + .carousel-item-next.carousel-item-left, |
|
|
|
.carousel_click .carousel-item-next.carousel-item-left + .carousel-item, |
|
|
|
.carousel_click .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
visibility: visible; |
|
|
|
} |
|
|
|
/* farthest right hidden item must be also positioned for animations */ |
|
|
|
.carousel-inner .carousel-item-prev.carousel-item-right { |
|
|
|
.carousel_click .carousel-inner .carousel-item-prev.carousel-item-right { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
@ -90,9 +90,9 @@ |
|
|
|
visibility: visible; |
|
|
|
} |
|
|
|
/* right or prev direction */ |
|
|
|
.active.carousel-item-right + .carousel-item-prev.carousel-item-right, |
|
|
|
.carousel-item-prev.carousel-item-right + .carousel-item, |
|
|
|
.carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .active.carousel-item-right + .carousel-item-prev.carousel-item-right, |
|
|
|
.carousel_click .carousel-item-prev.carousel-item-right + .carousel-item, |
|
|
|
.carousel_click .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(100%, 0, 0); |
|
|
|
visibility: visible; |
|
|
@ -103,24 +103,24 @@ |
|
|
|
/* MD */ |
|
|
|
@media (min-width: 768px) { |
|
|
|
/* show 3rd of 3 item slide */ |
|
|
|
.carousel-inner .active.carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .active.carousel-item + .carousel-item + .carousel-item { |
|
|
|
display: block; |
|
|
|
} |
|
|
|
.carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item { |
|
|
|
transition: none; |
|
|
|
} |
|
|
|
.carousel-inner .carousel-item-next { |
|
|
|
.carousel_click .carousel-inner .carousel-item-next { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
/* left or forward direction */ |
|
|
|
.carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
visibility: visible; |
|
|
|
} |
|
|
|
/* right or prev direction */ |
|
|
|
.carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(100%, 0, 0); |
|
|
|
visibility: visible; |
|
|
@ -131,14 +131,14 @@ |
|
|
|
/* LG */ |
|
|
|
@media (min-width: 991px) { |
|
|
|
/* show 4th item */ |
|
|
|
.carousel-inner .active.carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .active.carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
display: block; |
|
|
|
} |
|
|
|
.carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
transition: none; |
|
|
|
} |
|
|
|
/* Show 5th slide on lg if col-lg-3 */ |
|
|
|
.carousel-inner .active.col-lg-3.carousel-item + .carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-inner .active.col-lg-3.carousel-item + .carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
right: -25%; /*change this with javascript in the future*/ |
|
|
@ -147,13 +147,13 @@ |
|
|
|
visibility: visible; |
|
|
|
} |
|
|
|
/* left or forward direction */ |
|
|
|
.carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
visibility: visible; |
|
|
|
} |
|
|
|
/* right or prev direction //t - previous slide direction last item animation fix */ |
|
|
|
.carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
.carousel_click .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item + .carousel-item { |
|
|
|
position: relative; |
|
|
|
transform: translate3d(100%, 0, 0); |
|
|
|
visibility: visible; |
|
|
@ -162,18 +162,18 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.carousel-control-prev, .carousel-control-next{ |
|
|
|
.carousel_click .carousel-control-prev, .carousel_click .carousel-control-next{ |
|
|
|
width: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.carousel-control-next-icon:after |
|
|
|
.carousel_click .carousel-control-next-icon:after |
|
|
|
{ |
|
|
|
content: '>'; |
|
|
|
font-size: 20px; |
|
|
|
color: #000; |
|
|
|
} |
|
|
|
|
|
|
|
.carousel-control-prev-icon:after { |
|
|
|
.carousel_click .carousel-control-prev-icon:after { |
|
|
|
content: '<'; |
|
|
|
font-size: 20px; |
|
|
|
color: #000; |
|
|
|