| 1 |
/** |
| 2 |
* Merchant Carousel |
| 3 |
* |
| 4 |
*/ |
| 5 |
.merchant-carousel { |
| 6 |
--mrc-carousel-nav-icon-color: #FFF; |
| 7 |
--mrc-carousel-nav-color: #212121; |
| 8 |
--mrc-carousel-nav-color-hover: #757575; |
| 9 |
} |
| 10 |
.merchant-carousel .merchant-carousel-wrapper { |
| 11 |
position: relative; |
| 12 |
} |
| 13 |
.merchant-carousel .merchant-carousel-wrapper .products, |
| 14 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage { |
| 15 |
display: block !important; |
| 16 |
margin: 0; |
| 17 |
opacity: 0; |
| 18 |
visibility: hidden; |
| 19 |
-webkit-transition: ease opacity 300ms 300ms; |
| 20 |
transition: ease opacity 300ms 300ms; |
| 21 |
} |
| 22 |
.merchant-carousel .merchant-carousel-wrapper .products.row:not(.products), |
| 23 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage.row:not(.products) { |
| 24 |
display: block; |
| 25 |
} |
| 26 |
.merchant-carousel .merchant-carousel-wrapper .products.show, |
| 27 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage.show { |
| 28 |
opacity: 1; |
| 29 |
visibility: visible; |
| 30 |
} |
| 31 |
.merchant-carousel .merchant-carousel-wrapper .products > div, |
| 32 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage > div { |
| 33 |
display: -webkit-box; |
| 34 |
display: -ms-flexbox; |
| 35 |
display: flex; |
| 36 |
} |
| 37 |
.merchant-carousel .merchant-carousel-wrapper .products > div > div > .product, |
| 38 |
.merchant-carousel .merchant-carousel-wrapper .products > div > div > div[class*=col-], |
| 39 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage > div > div > .product, |
| 40 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage > div > div > div[class*=col-] { |
| 41 |
width: 100% !important; |
| 42 |
max-width: none !important; |
| 43 |
margin: 0 !important; |
| 44 |
padding: 0 !important; |
| 45 |
} |
| 46 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:hover { |
| 47 |
opacity: 0.7; |
| 48 |
} |
| 49 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:focus, .merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:active { |
| 50 |
border: none; |
| 51 |
-webkit-box-shadow: none; |
| 52 |
box-shadow: none; |
| 53 |
outline: none; |
| 54 |
} |
| 55 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav-next { |
| 56 |
position: absolute; |
| 57 |
top: -40px; |
| 58 |
right: 0; |
| 59 |
width: 21px; |
| 60 |
height: 21px; |
| 61 |
border-radius: 100%; |
| 62 |
z-index: 1; |
| 63 |
} |
| 64 |
.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav-prev { |
| 65 |
position: absolute; |
| 66 |
top: -40px; |
| 67 |
right: 30px; |
| 68 |
width: 21px; |
| 69 |
height: 21px; |
| 70 |
border-radius: 100%; |
| 71 |
z-index: 1; |
| 72 |
} |
| 73 |
.merchant-carousel.no-nav .merchant-carousel-stage { |
| 74 |
display: -webkit-box !important; |
| 75 |
display: -ms-flexbox !important; |
| 76 |
display: flex !important; |
| 77 |
-ms-flex-wrap: wrap; |
| 78 |
flex-wrap: wrap; |
| 79 |
margin: calc(-1 * var(--merchant-rvp-columns-gap, 15px)) 0 0 calc(-1 * var(--merchant-rvp-columns-gap, 15px)) !important; |
| 80 |
width: calc(100% + var(--merchant-rvp-columns-gap, 15px)) !important; |
| 81 |
-webkit-column-gap: 0 !important; |
| 82 |
-moz-column-gap: 0 !important; |
| 83 |
column-gap: 0 !important; |
| 84 |
} |
| 85 |
.merchant-carousel.no-nav .merchant-carousel-stage > li.product { |
| 86 |
margin: var(--merchant-rvp-columns-gap, 15px) 0 0 var(--merchant-rvp-columns-gap, 15px) !important; |
| 87 |
} |
| 88 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next, |
| 89 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev { |
| 90 |
display: -webkit-box; |
| 91 |
display: -ms-flexbox; |
| 92 |
display: flex; |
| 93 |
-webkit-box-align: center; |
| 94 |
-ms-flex-align: center; |
| 95 |
align-items: center; |
| 96 |
-webkit-box-pack: center; |
| 97 |
-ms-flex-pack: center; |
| 98 |
justify-content: center; |
| 99 |
top: 50%; |
| 100 |
right: 15px; |
| 101 |
background: var(--mrc-carousel-nav-color); |
| 102 |
width: 35px; |
| 103 |
height: 35px; |
| 104 |
opacity: 0; |
| 105 |
visibility: hidden; |
| 106 |
-webkit-transform: translate3d(20px, -210%, 0); |
| 107 |
transform: translate3d(20px, -210%, 0); |
| 108 |
-webkit-transition: ease transform 300ms, ease opacity 300ms; |
| 109 |
transition: ease transform 300ms, ease opacity 300ms; |
| 110 |
} |
| 111 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next svg, |
| 112 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev svg { |
| 113 |
width: 14px; |
| 114 |
height: 14px; |
| 115 |
} |
| 116 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next svg path, |
| 117 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev svg path { |
| 118 |
stroke: var(--mrc-carousel-nav-icon-color); |
| 119 |
} |
| 120 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next:hover, |
| 121 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev:hover { |
| 122 |
background: var(--mrc-carousel-nav-color-hover); |
| 123 |
} |
| 124 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev { |
| 125 |
right: auto; |
| 126 |
left: 15px; |
| 127 |
-webkit-transform: translate3d(-20px, -210%, 0); |
| 128 |
transform: translate3d(-20px, -210%, 0); |
| 129 |
} |
| 130 |
.merchant-carousel.merchant-carousel-nav2:hover .merchant-carousel-nav-next, |
| 131 |
.merchant-carousel.merchant-carousel-nav2:hover .merchant-carousel-nav-prev, .merchant-carousel.merchant-carousel-nav2.merchant-carousel-nav2-always-show .merchant-carousel-nav-next, |
| 132 |
.merchant-carousel.merchant-carousel-nav2.merchant-carousel-nav2-always-show .merchant-carousel-nav-prev { |
| 133 |
opacity: 1; |
| 134 |
visibility: visible; |
| 135 |
-webkit-transform: translate3d(0, -210%, 0); |
| 136 |
transform: translate3d(0, -210%, 0); |
| 137 |
} |
| 138 |
|
| 139 |
@media (max-width: 991px) { |
| 140 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next, |
| 141 |
.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev { |
| 142 |
opacity: 1; |
| 143 |
visibility: visible; |
| 144 |
-webkit-transform: translate3d(0, -210%, 0); |
| 145 |
transform: translate3d(0, -210%, 0); |
| 146 |
} |
| 147 |
} |
| 148 |
@media (max-width: 575px) { |
| 149 |
.merchant-carousel { |
| 150 |
padding-left: 15px; |
| 151 |
padding-right: 15px; |
| 152 |
} |
| 153 |
.merchant-carousel:not(.merchant-carousel-nav2) .merchant-carousel-wrapper .merchant-carousel-nav-next { |
| 154 |
top: auto; |
| 155 |
bottom: 0; |
| 156 |
right: 45%; |
| 157 |
-webkit-transform: translate3d(50%, 0, 0); |
| 158 |
transform: translate3d(50%, 0, 0); |
| 159 |
} |
| 160 |
.merchant-carousel:not(.merchant-carousel-nav2) .merchant-carousel-wrapper .merchant-carousel-nav-prev { |
| 161 |
top: auto; |
| 162 |
bottom: 0; |
| 163 |
right: 55%; |
| 164 |
-webkit-transform: translate3d(50%, 0, 0); |
| 165 |
transform: translate3d(50%, 0, 0); |
| 166 |
} |
| 167 |
} |