_slick-theme.scss 5.2 KB

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