No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_slider.scss 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. /*--------------------------------------------------------------
  2. 5. Slider
  3. ----------------------------------------------------------------*/
  4. .slick-slide > div {
  5. display: flex;
  6. }
  7. .slick_slide_in {
  8. width: 100%;
  9. }
  10. .cs_slider {
  11. .cs_slider_wrapper {
  12. margin-left: -12px;
  13. margin-right: -12px;
  14. }
  15. .slick_slide_in {
  16. padding-left: 12px;
  17. padding-right: 12px;
  18. }
  19. }
  20. .cs_pagination.cs_style_1 {
  21. display: inline-block;
  22. position: absolute;
  23. left: 75px;
  24. bottom: 70px;
  25. @media (max-width: 1400px) {
  26. bottom: 40px;
  27. left: 45px;
  28. }
  29. @media (max-width: 1199px) {
  30. left: 25px;
  31. }
  32. @media (max-width: 991px) {
  33. left: 15px;
  34. }
  35. @media (max-width: 991px) {
  36. left: 15px;
  37. bottom: 80px;
  38. }
  39. .slick-dots {
  40. margin-top: 50px;
  41. }
  42. }
  43. .cs_pagination.cs_style_1,
  44. .cs_pagination.cs_style_2 {
  45. .slick-dots {
  46. list-style: none;
  47. display: flex;
  48. align-items: center;
  49. gap: 15px;
  50. padding: 0;
  51. margin-bottom: 0;
  52. button {
  53. padding: 0;
  54. opacity: 0;
  55. position: absolute;
  56. top: 0;
  57. left: 0;
  58. height: 100%;
  59. width: 100%;
  60. }
  61. li {
  62. overflow: hidden;
  63. border: none;
  64. width: 19px;
  65. height: 19px;
  66. border-radius: 50%;
  67. background-color: transparent;
  68. font-size: 0px;
  69. position: relative;
  70. padding: 0;
  71. flex: none;
  72. cursor: pointer;
  73. transition: all 0.4s ease;
  74. &::after {
  75. content: '';
  76. width: 7px;
  77. height: 7px;
  78. background-color: rgba($secondary, 0.5);
  79. border-radius: 50%;
  80. position: absolute;
  81. left: 50%;
  82. top: 50%;
  83. transform: translate(-50%, -50%);
  84. transition: all 0.4s ease;
  85. }
  86. }
  87. .slick-active {
  88. border: 1px solid $primary;
  89. &::after {
  90. background-color: $primary;
  91. }
  92. }
  93. }
  94. }
  95. .cs_pagination.cs_style_2 {
  96. display: flex;
  97. justify-content: center;
  98. .slick-dots {
  99. margin-top: 35px;
  100. }
  101. }
  102. .cs_pagingInfo.cs_style_1 {
  103. position: absolute;
  104. top: 50%;
  105. left: 50%;
  106. transform: translate(-50%, -50%);
  107. }
  108. /*-----------------------------------
  109. Slider arrow design
  110. -------------------------------------*/
  111. .cs_slider_arrows.cs_style_1 {
  112. .cs_slider_arrow {
  113. position: absolute;
  114. top: 50%;
  115. transform: translateY(-50%);
  116. cursor: pointer;
  117. &:hover {
  118. &:hover {
  119. color: $primary;
  120. }
  121. }
  122. }
  123. .cs_right_arrow {
  124. right: calc((100vw - 1300px) / 2 / 2);
  125. margin-right: -18px;
  126. @media (max-width: 1400px) {
  127. right: calc((100vw - 1140px) / 2 / 2);
  128. margin-right: -13px;
  129. }
  130. @media (max-width: 1199px) {
  131. right: calc((100vw - 960px) / 2 / 2);
  132. margin-right: -13px;
  133. }
  134. @media (max-width: 1050px) {
  135. margin-right: 0px;
  136. }
  137. }
  138. .cs_left_arrow {
  139. left: calc((100vw - 1300px) / 2 / 2);
  140. margin-left: -18px;
  141. @media (max-width: 1400px) {
  142. left: calc((100vw - 1140px) / 2 / 2);
  143. margin-left: -13px;
  144. }
  145. @media (max-width: 1199px) {
  146. left: calc((100vw - 960px) / 2 / 2);
  147. margin-left: -13px;
  148. }
  149. @media (max-width: 1050px) {
  150. margin-left: 0px;
  151. }
  152. }
  153. }
  154. .cs_slider_arrows.cs_style_2 {
  155. display: flex;
  156. align-items: center;
  157. gap: 15px;
  158. .cs_slider_arrow {
  159. width: 45px;
  160. height: 45px;
  161. border: 1px solid $secondary;
  162. color: $secondary;
  163. border-radius: 50%;
  164. display: flex;
  165. align-items: center;
  166. justify-content: center;
  167. cursor: pointer;
  168. transition: all 0.3s ease;
  169. &:hover {
  170. color: #fff;
  171. background-color: $accent;
  172. border-color: $accent;
  173. }
  174. }
  175. }
  176. .cs_slider_arrows.cs_style_3 {
  177. .cs_slider_arrow {
  178. position: absolute;
  179. top: 50%;
  180. transform: translateY(-50%);
  181. transition: all 0.3s ease;
  182. cursor: pointer;
  183. &:hover {
  184. color: #fff;
  185. }
  186. }
  187. .cs_left_arrow {
  188. left: 50px;
  189. }
  190. .cs_right_arrow {
  191. right: 50px;
  192. }
  193. }
  194. .cs_hover_arrow {
  195. .cs_slider_arrows.cs_style_3 {
  196. opacity: 0;
  197. }
  198. &:hover {
  199. .cs_slider_arrows.cs_style_3 {
  200. opacity: 1;
  201. }
  202. }
  203. }
  204. @media (max-width: 991px) {
  205. .cs_hide_mobile {
  206. display: none !important;
  207. }
  208. }
  209. @media (min-width: 992px) {
  210. .cs_hide_desktop {
  211. display: none !important;
  212. }
  213. }
  214. .slick-slide {
  215. .cs_hero_text {
  216. position: relative;
  217. left: 60px;
  218. opacity: 0;
  219. transition: all 0.7s ease;
  220. }
  221. &.slick-active {
  222. .cs_hero_text {
  223. left: 0px;
  224. opacity: 1;
  225. transition-delay: 0.5s;
  226. }
  227. }
  228. }
  229. .cs_slides_numbers {
  230. position: absolute;
  231. bottom: 12%;
  232. left: 75px;
  233. font-weight: 600;
  234. @media (max-width: 991px) {
  235. bottom: 60px;
  236. right: 40px;
  237. left: initial;
  238. }
  239. @media (max-width: 380px) {
  240. right: 25px;
  241. bottom: 56px;
  242. }
  243. .active {
  244. font-size: 37px;
  245. color: $primary;
  246. @media (max-width: 380px) {
  247. font-size: 28px;
  248. }
  249. }
  250. .cs_slide_seperator {
  251. position: relative;
  252. bottom: 3px;
  253. margin-left: 1px;
  254. }
  255. }