swiper.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. /*=========================================================================================
  2. File Name: swiper.scss
  3. Description: swiper plugin scss.
  4. ----------------------------------------------------------------------------------------
  5. Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. Author: PIXINVENT
  7. Author URL: http://www.themeforest.net/user/pixinvent
  8. ==========================================================================================*/
  9. // Core variables and mixins
  10. @import "../../bootstrap/functions";
  11. @import "../../bootstrap/mixins";
  12. // Core variables and mixins overrides
  13. @import "../../core/variables/variables";
  14. @import "../../bootstrap/variables";
  15. // Overrides user variable
  16. @import "../../core/variables/components-variables";
  17. /* Swiper css */
  18. /* ---------- */
  19. /* swiper slide shadow */
  20. .swiper-container {
  21. .swiper-shadow {
  22. box-shadow: 2px 8px 10px 0 rgba(25, 42, 70, 0.13) !important;
  23. }
  24. }
  25. // centered slides option-1
  26. .swiper-centered-slides {
  27. &.swiper-container {
  28. .swiper-slide {
  29. text-align: center;
  30. font-weight: $headings-font-weight;
  31. background-color: $white;
  32. height: auto;
  33. width: auto !important;
  34. padding: 2rem 5.5rem;
  35. cursor: pointer;
  36. &.swiper-slide-active {
  37. border: 2px solid $primary;
  38. i {
  39. color: $primary;
  40. }
  41. }
  42. }
  43. }
  44. .swiper-button-next,
  45. .swiper-button-prev {
  46. &:after {
  47. border-radius: 50%;
  48. background-color: $primary;
  49. box-shadow: 0 2px 4px 0 rgba($black, 0.5) !important;
  50. }
  51. }
  52. }
  53. // centered slides option-2
  54. .swiper-centered-slides-2 {
  55. &.swiper-container {
  56. .swiper-slide {
  57. font-weight: $headings-font-weight;
  58. background-color: $swiper-bg;
  59. height: auto;
  60. width: auto !important;
  61. cursor: pointer;
  62. &.swiper-slide-active {
  63. color: $white;
  64. background-color: $primary;
  65. box-shadow: 0 3px 6px 0 rgba($primary, 0.5) !important
  66. }
  67. }
  68. }
  69. }
  70. /* cube effect */
  71. .swiper-cube-effect {
  72. &.swiper-container {
  73. width: 300px;
  74. left: 50%;
  75. margin-left: -150px;
  76. margin-top: -12px;
  77. }
  78. }
  79. /* swiper coverflow slide width */
  80. .swiper-coverflow {
  81. &.swiper-container {
  82. .swiper-slide {
  83. width: 300px;
  84. }
  85. }
  86. }
  87. .gallery-thumbs {
  88. padding: 10px 0;
  89. background: $black;
  90. .swiper-slide {
  91. opacity: 0.4;
  92. }
  93. .swiper-slide-thumb-active {
  94. opacity: 1;
  95. }
  96. }
  97. // parallax
  98. .swiper-parallax {
  99. .swiper-slide {
  100. padding: 2.67rem 4rem;
  101. .title {
  102. font-size: $h5-font-size;
  103. padding: .5rem 0;
  104. }
  105. .text {
  106. font-size: $font-size-sm;
  107. }
  108. }
  109. .parallax-bg {
  110. position: absolute;
  111. width: 130%;
  112. }
  113. }
  114. .swiper-virtual {
  115. &.swiper-container {
  116. height: 300px;
  117. .swiper-slide {
  118. /* virtual slides */
  119. font-size: $h3-font-size;
  120. background-color: $kbd-bg;
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. }
  125. }
  126. }
  127. //navigation button custom feather icons
  128. .swiper-button-prev,
  129. .swiper-button-next,
  130. .swiper-container-rtl .swiper-button-prev,
  131. .swiper-container-rtl .swiper-button-next {
  132. background-image: none;
  133. color: $white;
  134. width: 35px;
  135. font-size: $h1-font-size;
  136. &:focus {
  137. outline: none;
  138. }
  139. &:after {
  140. font-family: 'feather';
  141. }
  142. }
  143. .swiper-button-prev {
  144. &:after {
  145. content: "\e843";
  146. padding-right: 1px;
  147. }
  148. }
  149. .swiper-button-next {
  150. &:after {
  151. content: "\e844";
  152. padding-left: 2px;
  153. }
  154. }
  155. .swiper-container-rtl {
  156. .swiper-button-prev {
  157. &:after {
  158. content: "\e844";
  159. }
  160. }
  161. .swiper-button-next {
  162. &:after {
  163. content: "\e843";
  164. }
  165. }
  166. }
  167. // Media query for medium screen
  168. @media only screen and (max-width: 768px) {
  169. //navigation button custom boxicons
  170. .swiper-button-prev {
  171. font-size: $h4-font-size;
  172. top: 55%;
  173. }
  174. .swiper-button-next {
  175. font-size: $h4-font-size;
  176. top: 55%;
  177. width: 15px;
  178. }
  179. // parallax
  180. .swiper-parallax {
  181. .swiper-slide {
  182. padding: 1rem 1.2rem;
  183. }
  184. img {
  185. height: 100% !important;
  186. }
  187. }
  188. }
  189. // Media query for small screen
  190. @media only screen and (max-width: 576px) {
  191. // centered slides option-1
  192. .swiper-centered-slides {
  193. &.swiper-container {
  194. .swiper-slide {
  195. padding: 1.6rem 2.5rem;
  196. i {
  197. font-size: $h5-font-size !important;
  198. }
  199. }
  200. }
  201. }
  202. // cube effect
  203. .swiper-cube-effect {
  204. &.swiper-container {
  205. width: 150px;
  206. left: 70%;
  207. }
  208. }
  209. // parallax
  210. .swiper-parallax {
  211. .swiper-slide {
  212. padding: 1rem 1.3rem;
  213. }
  214. }
  215. // virtual slides
  216. .swiper-virtual {
  217. &.swiper-container {
  218. .swiper-slide {
  219. font-size: $font-size-base;
  220. }
  221. }
  222. }
  223. }