ext-component-swiper.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. /*=========================================================================================
  2. File Name: ext-component-swiper.scss
  3. Description: swiper plugin scss.
  4. ----------------------------------------------------------------------------------------
  5. Item Name: Vuexy - Vuejs, React, Angular, HTML & Laravel Admin Dashboard Template
  6. Author: PIXINVENT
  7. Author URL: http://www.themeforest.net/user/pixinvent
  8. ==========================================================================================*/
  9. @import '../../bootstrap-extended/include'; // Bootstrap includes
  10. @import '../../components/include'; // Components includes
  11. /* Swiper css */
  12. /* ---------- */
  13. /* swiper slide shadow */
  14. .swiper-container {
  15. .swiper-shadow {
  16. box-shadow: 2px 8px 10px 0 rgba(25, 42, 70, 0.13) !important;
  17. }
  18. }
  19. // swiper pagination
  20. .swiper-pagination {
  21. // bullet pagination
  22. .swiper-pagination-bullet {
  23. &:focus {
  24. outline: none;
  25. }
  26. &.swiper-pagination-bullet-active {
  27. background-color: $primary;
  28. }
  29. }
  30. // progress bar pagination
  31. &.swiper-pagination-progressbar {
  32. .swiper-pagination-progressbar-fill {
  33. background-color: $primary;
  34. }
  35. }
  36. }
  37. // centered slides option-1
  38. .swiper-centered-slides {
  39. &.swiper-container {
  40. .swiper-slide {
  41. text-align: center;
  42. font-weight: $headings-font-weight;
  43. background-color: $white;
  44. height: auto;
  45. width: auto !important;
  46. padding: 2rem 5.5rem;
  47. cursor: pointer;
  48. &.swiper-slide-active {
  49. border: 2px solid $primary;
  50. i,
  51. svg {
  52. color: $primary;
  53. }
  54. }
  55. }
  56. }
  57. .swiper-button-next {
  58. &:after {
  59. background-image: url(str-replace(str-replace($chevron-right, 'currentColor', $white), '#', '%23'));
  60. }
  61. }
  62. .swiper-button-prev {
  63. &:after {
  64. background-image: url(str-replace(str-replace($chevron-left, 'currentColor', $white), '#', '%23'));
  65. }
  66. }
  67. .swiper-button-next,
  68. .swiper-button-prev {
  69. height: 40px !important;
  70. width: 40px !important;
  71. &:after {
  72. border-radius: 50%;
  73. background-color: $primary;
  74. box-shadow: 0 2px 4px 0 rgba($black, 0.5) !important;
  75. background-size: 24px !important;
  76. height: 40px !important;
  77. width: 40px !important;
  78. }
  79. }
  80. // For RTL
  81. &.swiper-container-rtl {
  82. .swiper-button-next {
  83. &:after {
  84. background-image: url(str-replace(str-replace($chevron-left, 'currentColor', $white), '#', '%23'));
  85. }
  86. }
  87. .swiper-button-prev {
  88. &:after {
  89. background-image: url(str-replace(str-replace($chevron-right, 'currentColor', $white), '#', '%23'));
  90. }
  91. }
  92. }
  93. }
  94. // centered slides option-2
  95. .swiper-centered-slides-2 {
  96. &.swiper-container {
  97. .swiper-slide {
  98. font-weight: $headings-font-weight;
  99. background-color: $swiper-bg;
  100. height: auto;
  101. width: auto !important;
  102. cursor: pointer;
  103. &.swiper-slide-active {
  104. color: $white;
  105. background-color: $primary !important;
  106. box-shadow: 0 3px 6px 0 rgba($primary, 0.5) !important;
  107. }
  108. }
  109. }
  110. }
  111. /* cube effect */
  112. .swiper-cube-effect {
  113. &.swiper-container {
  114. width: 300px;
  115. left: 50%;
  116. margin-left: -150px;
  117. margin-top: -12px;
  118. }
  119. }
  120. /* swiper coverflow slide width */
  121. .swiper-coverflow {
  122. &.swiper-container {
  123. .swiper-slide {
  124. width: 300px;
  125. }
  126. }
  127. }
  128. .gallery-thumbs {
  129. padding: 10px 0;
  130. background: $black;
  131. .swiper-slide {
  132. opacity: 0.4;
  133. }
  134. .swiper-slide-thumb-active {
  135. opacity: 1;
  136. }
  137. }
  138. // parallax
  139. .swiper-parallax {
  140. .swiper-slide {
  141. padding: 2.67rem 4rem;
  142. .title {
  143. font-size: $h5-font-size;
  144. padding: 0.5rem 0;
  145. }
  146. .text {
  147. font-size: $font-size-sm;
  148. }
  149. }
  150. .parallax-bg {
  151. position: absolute;
  152. width: 130%;
  153. }
  154. }
  155. .swiper-virtual {
  156. &.swiper-container {
  157. height: 300px;
  158. .swiper-slide {
  159. /* virtual slides */
  160. font-size: $h3-font-size;
  161. background-color: $kbd-bg;
  162. display: flex;
  163. justify-content: center;
  164. align-items: center;
  165. }
  166. }
  167. }
  168. //navigation button custom icons
  169. .swiper-button-prev,
  170. .swiper-button-next,
  171. .swiper-container-rtl .swiper-button-prev,
  172. .swiper-container-rtl .swiper-button-next {
  173. background-image: none;
  174. color: $white;
  175. width: 38px;
  176. font-size: $h1-font-size;
  177. &:focus {
  178. outline: none;
  179. }
  180. }
  181. .swiper-button-prev {
  182. &:after {
  183. background-image: url(str-replace(str-replace($chevron-left, 'currentColor', $primary), '#', '%23'));
  184. background-repeat: no-repeat;
  185. background-position: center;
  186. background-size: 44px;
  187. color: $body-color;
  188. width: 44px;
  189. height: 44px;
  190. content: '';
  191. padding-right: 1px;
  192. }
  193. }
  194. .swiper-button-next {
  195. &:after {
  196. background-image: url(str-replace(str-replace($chevron-right, 'currentColor', $primary), '#', '%23'));
  197. background-repeat: no-repeat;
  198. background-position: center;
  199. background-size: 44px;
  200. color: $body-color;
  201. width: 44px;
  202. height: 44px;
  203. content: '';
  204. padding-right: 2px;
  205. }
  206. }
  207. .swiper-container-rtl {
  208. .swiper-button-prev {
  209. &:after {
  210. background-image: url(str-replace(str-replace($chevron-right, 'currentColor', $primary), '#', '%23'));
  211. background-repeat: no-repeat;
  212. background-position: center;
  213. background-size: 44px;
  214. color: $body-color;
  215. width: 44px;
  216. height: 44px;
  217. content: '';
  218. }
  219. }
  220. .swiper-button-next {
  221. &:after {
  222. background-image: url(str-replace(str-replace($chevron-left, 'currentColor', $primary), '#', '%23'));
  223. background-repeat: no-repeat;
  224. background-position: center;
  225. background-size: 44px;
  226. color: $body-color;
  227. width: 44px;
  228. height: 44px;
  229. content: '';
  230. }
  231. }
  232. }
  233. // Media query for medium screen
  234. @media only screen and (max-width: 768px) {
  235. //navigation button custom boxicons
  236. .swiper-button-prev {
  237. font-size: $h4-font-size;
  238. top: 55%;
  239. &:after {
  240. height: 28px;
  241. width: 28px;
  242. background-size: 24px;
  243. }
  244. }
  245. .swiper-button-next {
  246. font-size: $h4-font-size;
  247. top: 55%;
  248. &:after {
  249. background-size: 24px;
  250. }
  251. }
  252. .swiper-centered-slides {
  253. .swiper-button-next,
  254. .swiper-button-prev {
  255. &:after {
  256. height: 28px;
  257. width: 28px;
  258. background-size: 18px;
  259. }
  260. }
  261. }
  262. // parallax
  263. .swiper-parallax {
  264. .swiper-slide {
  265. padding: 1rem 1.2rem;
  266. }
  267. img {
  268. height: 100% !important;
  269. }
  270. }
  271. }
  272. // Media query for small screen
  273. @media only screen and (max-width: 576px) {
  274. // centered slides option-1
  275. .swiper-centered-slides {
  276. &.swiper-container {
  277. .swiper-slide {
  278. padding: 1.6rem 2.5rem;
  279. i,
  280. svg {
  281. height: $h5-font-size !important;
  282. width: $h5-font-size !important;
  283. font-size: $h5-font-size !important;
  284. }
  285. }
  286. }
  287. }
  288. // cube effect
  289. .swiper-cube-effect {
  290. &.swiper-container {
  291. width: 150px;
  292. left: 70%;
  293. }
  294. }
  295. // parallax
  296. .swiper-parallax {
  297. .swiper-slide {
  298. padding: 1rem 1.3rem;
  299. }
  300. }
  301. // virtual slides
  302. .swiper-virtual {
  303. &.swiper-container {
  304. .swiper-slide {
  305. font-size: $font-size-base;
  306. }
  307. }
  308. }
  309. }
  310. // Dark Layout
  311. .dark-layout {
  312. .swiper-container {
  313. &:not(.swiper-parallax) {
  314. .swiper-slide {
  315. background-color: $theme-dark-body-bg;
  316. }
  317. }
  318. &.swiper-centered-slides {
  319. .swiper-slide {
  320. background-color: $theme-dark-card-bg;
  321. }
  322. }
  323. &.swiper-parallax {
  324. .swiper-slide * {
  325. color: $body-color;
  326. }
  327. }
  328. }
  329. }