_slick-theme.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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: "marianne" !default;
  9. $slick-loader-path: "./" !default;
  10. $slick-arrow-color: rgb(0,158,227) !default;
  11. $slick-dot-color: black !default;
  12. $slick-dot-color-active: $slick-dot-color !default;
  13. $slick-prev-character: "\2190" !default;
  14. $slick-next-character: "\2192" !default;
  15. $slick-dot-character: "\2022" !default;
  16. $slick-dot-size: 50px !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. height: 60px;
  58. width: 60px;
  59. line-height: 0px;
  60. font-size: 0px;
  61. cursor: pointer;
  62. background: transparent;
  63. color: transparent;
  64. top: 50%;
  65. -webkit-transform: translate(0, -50%);
  66. -ms-transform: translate(0, -50%);
  67. transform: translate(0, -50%);
  68. padding: 0;
  69. border: none;
  70. outline: none;
  71. &:hover, &:focus {
  72. outline: none;
  73. background: transparent;
  74. color: transparent;
  75. &:before {
  76. opacity: $slick-opacity-on-hover;
  77. }
  78. }
  79. &.slick-disabled:before {
  80. opacity: $slick-opacity-not-active;
  81. }
  82. &:before {
  83. font-family: $slick-font-family;
  84. font-size: 60px;
  85. line-height: 1;
  86. color: $slick-arrow-color;
  87. opacity: $slick-opacity-default;
  88. -webkit-font-smoothing: antialiased;
  89. -moz-osx-font-smoothing: grayscale;
  90. }
  91. }
  92. .slick-prev {
  93. z-index: 1;
  94. left: 25px;
  95. [dir="rtl"] & {
  96. left: auto;
  97. right: 25px;
  98. }
  99. &:before {
  100. content: $slick-prev-character;
  101. [dir="rtl"] & {
  102. content: $slick-next-character;
  103. }
  104. }
  105. }
  106. .slick-next {
  107. right: 25px;
  108. [dir="rtl"] & {
  109. left: 25px;
  110. right: auto;
  111. }
  112. &:before {
  113. content: $slick-next-character;
  114. [dir="rtl"] & {
  115. content: $slick-prev-character;
  116. }
  117. }
  118. }
  119. /* Dots */
  120. .slick-dotted.slick-slider {
  121. margin-bottom: 30px;
  122. }
  123. html.js body.node-type-actualite.node-id-88.path-node.page-node-type-actualite div.dialog-off-canvas-main-canvas div.layout-container main div.layout-content div.region.region-content div#block-contenudelapageprincipale.block.block-system.block-system-main-block div.layout.layout--threecol-25-50-25 div.layout__region.layout__region--top div.block-region-top div.block.block-ctools-block.block-entity-fieldnodefield-images div.field.field--name-field-images.field--type-image.field--label-hidden.field__items.slick-initialized.slick-slider.slick-dotted ul.slick-dots{
  124. width: 600px;
  125. }
  126. .slick-dots {
  127. // position: absolute;
  128. // bottom: -25px;
  129. list-style: none;
  130. display: block;
  131. text-align: center;
  132. padding: 0;
  133. margin: 0;
  134. width: 100%;
  135. li {
  136. position: relative;
  137. display: inline-block;
  138. height: 20px;
  139. width: 20px;
  140. margin: 0 5px;
  141. padding: 0;
  142. cursor: pointer;
  143. button {
  144. border: 0;
  145. background: transparent;
  146. display: block;
  147. height: 20px;
  148. width: 20px;
  149. outline: none;
  150. line-height: 0px;
  151. font-size: 0px;
  152. color: transparent;
  153. padding: 5px;
  154. cursor: pointer;
  155. &:hover, &:focus {
  156. outline: none;
  157. &:before {
  158. opacity: $slick-opacity-on-hover;
  159. }
  160. }
  161. &:before {
  162. position: absolute;
  163. top: 0;
  164. left: 0;
  165. content: $slick-dot-character;
  166. width: 20px;
  167. height: 20px;
  168. font-family: $slick-font-family;
  169. font-size: $slick-dot-size;
  170. line-height: 20px;
  171. text-align: center;
  172. color: $slick-dot-color;
  173. opacity: $slick-opacity-not-active;
  174. -webkit-font-smoothing: antialiased;
  175. -moz-osx-font-smoothing: grayscale;
  176. }
  177. }
  178. &.slick-active button:before {
  179. color: $slick-dot-color-active;
  180. opacity: $slick-opacity-default;
  181. }
  182. }
  183. }