_slick-theme.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. @charset "UTF-8";
  2. // Default Variables
  3. // Slick icon entity codes outputs the following
  4. // "\2190" outputs ascii character "←"
  5. // "\2192" outputs ascii character "→"
  6. // "\2022" outputs ascii character "•"
  7. $slick-font-path: "./fonts/" !default;
  8. $slick-font-family: "slick" !default;
  9. $slick-loader-path: "./" !default;
  10. $slick-arrow-color: $gris-violet !default;
  11. $slick-dot-color: black !default;
  12. $slick-dot-color-active: $slick-dot-color !default;
  13. $slick-prev-character: "\003C" !default;
  14. $slick-next-character: "\003E" !default;
  15. $slick-dot-character: "\2022" !default;
  16. $slick-dot-size: 40px !default;
  17. $slick-opacity-default: 0.75 !default;
  18. $slick-opacity-on-hover: 1 !default;
  19. $slick-opacity-not-active: 0.25 !default;
  20. @function slick-image-url($url) {
  21. @if function-exists(image-url) {
  22. @return image-url($url);
  23. }
  24. @else {
  25. @return url($slick-loader-path + $url);
  26. }
  27. }
  28. @function slick-font-url($url) {
  29. @if function-exists(font-url) {
  30. @return font-url($url);
  31. }
  32. @else {
  33. @return url($slick-font-path + $url);
  34. }
  35. }
  36. /* Slider */
  37. .slick-list {
  38. .slick-loading & {
  39. background: #fff slick-image-url("ajax-loader.gif") center center no-repeat;
  40. }
  41. }
  42. /* Icons */
  43. @if $slick-font-family == "slick" {
  44. @font-face {
  45. font-family: "slick";
  46. src: slick-font-url("slick.eot");
  47. src: slick-font-url("slick.eot?#iefix") format("embedded-opentype"), slick-font-url("slick.woff") format("woff"), slick-font-url("slick.ttf") format("truetype"), slick-font-url("slick.svg#slick") format("svg");
  48. font-weight: normal;
  49. font-style: normal;
  50. }
  51. }
  52. /* Arrows */
  53. .slick-prev,
  54. .slick-next {
  55. position: absolute;
  56. display: block;
  57. z-index: 9;
  58. height: 20px;
  59. width: 20px;
  60. line-height: 0px;
  61. font-size: 0px;
  62. cursor: pointer;
  63. background: transparent;
  64. color: transparent;
  65. top: 20%;
  66. -webkit-transform: translate(0, -50%);
  67. -ms-transform: translate(0, -50%);
  68. transform: translate(0, -50%);
  69. padding: 0;
  70. border: none;
  71. outline: none;
  72. &:hover, &:focus {
  73. outline: none;
  74. background: transparent;
  75. color: transparent;
  76. &:before {
  77. opacity: $slick-opacity-on-hover;
  78. }
  79. }
  80. &.slick-disabled:before {
  81. opacity: $slick-opacity-not-active;
  82. }
  83. &:before {
  84. font-family: $slick-font-family;
  85. font-size: 200px;
  86. line-height: 1;
  87. color: $slick-arrow-color;
  88. opacity: $slick-opacity-default;
  89. -webkit-font-smoothing: antialiased;
  90. -moz-osx-font-smoothing: grayscale;
  91. }
  92. }
  93. .slick-prev {
  94. left: -25px;
  95. padding-left: 4rem;
  96. [dir="rtl"] & {
  97. left: auto;
  98. right: 200px;
  99. }
  100. &:before {
  101. content: $slick-prev-character;
  102. font-weight: lighter;
  103. [dir="rtl"] & {
  104. content: $slick-next-character;
  105. font-weight: lighter;
  106. }
  107. }
  108. }
  109. .slick-next {
  110. right: 200px;
  111. [dir="rtl"] & {
  112. left: -25px;
  113. right: auto;
  114. }
  115. &:before {
  116. content: $slick-next-character;
  117. font-weight: lighter;
  118. [dir="rtl"] & {
  119. content: $slick-prev-character;
  120. font-weight: lighter;
  121. }
  122. }
  123. }
  124. /* Dots */
  125. .slick-dotted.slick-slider {
  126. margin-bottom: 30px;
  127. }
  128. .slick-dots {
  129. position: absolute;
  130. bottom: -60px;
  131. list-style: none;
  132. display: block;
  133. text-align: center;
  134. padding: 0;
  135. margin: 0;
  136. width: 100%;
  137. li {
  138. position: relative;
  139. display: inline-block;
  140. height: 50px;
  141. width: 50px;
  142. margin: 0 5px;
  143. padding: 0;
  144. cursor: pointer;
  145. button {
  146. border: 0;
  147. background: transparent;
  148. display: block;
  149. height: 50px;
  150. width: 50px;
  151. outline: none;
  152. line-height: 0px;
  153. font-size: 0px;
  154. color: transparent;
  155. padding: 5px;
  156. cursor: pointer;
  157. &:hover, &:focus {
  158. outline: none;
  159. &:before {
  160. opacity: $slick-opacity-on-hover;
  161. }
  162. }
  163. &:before {
  164. position: absolute;
  165. top: 0;
  166. left: 0;
  167. content: $slick-dot-character;
  168. width: 50px;
  169. height: 50px;
  170. font-family: $slick-font-family;
  171. font-size: $slick-dot-size;
  172. line-height: 20px;
  173. text-align: center;
  174. color: $slick-dot-color;
  175. opacity: $slick-opacity-not-active;
  176. -webkit-font-smoothing: antialiased;
  177. -moz-osx-font-smoothing: grayscale;
  178. }
  179. }
  180. &.slick-active button:before {
  181. color: $slick-dot-color-active;
  182. opacity: $slick-opacity-default;
  183. }
  184. }
  185. }