You are here

slick.theme.css in Slick Carousel 7.2

. Provided basic layout and styling for the Slick based on custom settings.

File

css/theme/slick.theme.css
View source
  1. /**
  2. * @file.
  3. * Provided basic layout and styling for the Slick based on custom settings.
  4. */
  5. /* Credit: https://github.com/tobiasahlin/SpinKit */
  6. @-webkit-keyframes rotateplane {
  7. 0% {
  8. -webkit-transform: perspective(120px);
  9. }
  10. 50% {
  11. -webkit-transform: perspective(120px) rotateY(180deg);
  12. }
  13. 100% {
  14. -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg);
  15. }
  16. }
  17. @keyframes rotateplane {
  18. 0% {
  19. transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  20. }
  21. 50% {
  22. transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
  23. }
  24. 100% {
  25. transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  26. }
  27. }
  28. .slick-wrapper,
  29. .slick,
  30. .slick *,
  31. body.adminimal-theme .slick * {
  32. -moz-box-sizing: border-box;
  33. -ms-box-sizing: border-box;
  34. -o-box-sizing: border-box;
  35. -webkit-box-sizing: border-box;
  36. box-sizing: border-box;
  37. }
  38. .slick img {
  39. height: auto;
  40. -ms-interpolation-mode: bicubic;
  41. }
  42. .slick img,
  43. .slick iframe {
  44. border: 0;
  45. min-height: 1px;
  46. max-width: 100%;
  47. }
  48. .slick {
  49. max-width: 100%;
  50. position: relative;
  51. }
  52. .slick-initialized {
  53. overflow: visible;
  54. }
  55. /** Visibility fix for stacking slides during initialization. */
  56. .slick__slide {
  57. max-width: 100%;
  58. position: absolute;
  59. visibility: hidden;
  60. }
  61. /** Prevents collapsing container during initialization. */
  62. .slick__slide.slide--0 {
  63. position: relative;
  64. }
  65. .unslick .slick__slide,
  66. .slick-initialized .slick__slide {
  67. position: relative;
  68. visibility: visible;
  69. }
  70. /* Prevents collapsing slick when unslick like one item. */
  71. .unslick .slide {
  72. width: 100%;
  73. }
  74. .slick__slide.slick-center {
  75. z-index: 1;
  76. }
  77. .slick__slide.slick-current {
  78. z-index: 4;
  79. }
  80. /** Draggable cursors. */
  81. .draggable {
  82. cursor: grab;
  83. cursor: -webkit-grab;
  84. }
  85. .draggable:active {
  86. cursor: grabbing;
  87. cursor: -webkit-grabbing;
  88. }
  89. .draggable:active a,
  90. .draggable:active .slide__caption {
  91. cursor: grabbing;
  92. cursor: -webkit-grabbing;
  93. -moz-user-select: none;
  94. -ms-user-select: none;
  95. -o-user-select: none;
  96. -webkit-user-select: none;
  97. user-select: none;
  98. }
  99. /**
  100. * Arrows contained/wrapped within slick__arrow for easy moves.
  101. */
  102. .slick__arrow {
  103. bottom: auto;
  104. display: none;
  105. height: 2px;
  106. left: 0;
  107. margin-top: -1px;
  108. pointer-events: none;
  109. position: absolute;
  110. top: 50%;
  111. width: 100%;
  112. z-index: 2;
  113. }
  114. .slick__arrow li,
  115. .slick__arrow button {
  116. pointer-events: auto;
  117. }
  118. .slick__arrow button {
  119. display: none;
  120. }
  121. .slick--has-arrow-down > .slick__arrow {
  122. bottom: 20px;
  123. height: 62px;
  124. left: 50%;
  125. margin: 0 0 0 -90px;
  126. top: auto;
  127. width: 180px;
  128. }
  129. .slick-arrow,
  130. .slick-down {
  131. border: 0;
  132. border-radius: 50%;
  133. font-size: 0;
  134. height: 42px;
  135. pointer-events: auto;
  136. position: absolute;
  137. top: 50%;
  138. -webkit-transform: translateY(-50%);
  139. transform: translateY(-50%);
  140. width: 42px;
  141. }
  142. .slick-arrow:active,
  143. .slick-arrow:focus,
  144. .slick-down:active,
  145. .slick-down:focus {
  146. box-shadow: none;
  147. outline: 0;
  148. }
  149. .slick-arrow::before,
  150. .slick-arrow::after,
  151. .slick-down::before,
  152. .slick-down::after {
  153. pointer-events: none;
  154. }
  155. /* Overrides problematic hidden arrows at core slick.css */
  156. .slick-prev {
  157. left: 0;
  158. }
  159. .slick-next {
  160. right: 0;
  161. }
  162. .slick-arrow::before {
  163. color: #ff6d2c;
  164. font-size: 36px;
  165. font-size: 2.25rem;
  166. }
  167. .slick-arrow:hover::before {
  168. color: #37465b;
  169. }
  170. /* Pure CSS arrow down, override by icon font accordingly */
  171. .slick-down {
  172. background: #ff6d2c;
  173. cursor: pointer;
  174. height: 48px;
  175. left: 50%;
  176. margin-left: -24px;
  177. top: 50%;
  178. width: 48px;
  179. }
  180. .slick-down:hover {
  181. background: #37465b;
  182. }
  183. .slick-down::before,
  184. .slick-down::after {
  185. border-right: 3px solid;
  186. color: #fff;
  187. content: '';
  188. display: block;
  189. height: 16px;
  190. margin-top: -6px;
  191. position: absolute;
  192. -ms-transform: rotate(135deg);
  193. -webkit-transform: rotate(135deg);
  194. transform: rotate(135deg);
  195. right: 28px;
  196. top: 50%;
  197. width: 0;
  198. }
  199. .slick-down::after {
  200. right: 18px;
  201. -ms-transform: rotate(45deg);
  202. -webkit-transform: rotate(45deg);
  203. transform: rotate(45deg);
  204. }
  205. .slick-down:hover::before,
  206. .slick-down:hover::after {
  207. color: #fff;
  208. }
  209. .slick__arrow .slick-arrow,
  210. .slick-initialized ~ .slick__arrow,
  211. .slick-initialized ~ .slick__arrow .slick-down {
  212. display: block;
  213. }
  214. .slick__arrow .slick-hidden,
  215. .slick-initialized ~ .slick__arrow.element-hidden {
  216. display: none;
  217. }
  218. /**
  219. * Skins.
  220. */
  221. .slide__content::after {
  222. content: "";
  223. display: table;
  224. clear: both;
  225. }
  226. .slide__title {
  227. margin: 10px 0 5px;
  228. line-height: 1.2;
  229. }
  230. .slide__link {
  231. margin: 30px auto;
  232. }
  233. .slide__pattern {
  234. display: block;
  235. height: 100%;
  236. left: 0;
  237. position: absolute;
  238. top: 0;
  239. width: 100%;
  240. z-index: 0;
  241. pointer-events: none;
  242. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADAQMAAABs5if8AAAAA3NCSVQICAjb4U/gAAAABlBMVEUAAAD///+l2Z/dAAAAAnRSTlP/AOW3MEoAAAAJcEhZcwAACusAAArrAYKLDVoAAAAWdEVYdENyZWF0aW9uIFRpbWUAMjUvMDQvMTHvvlk6AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M1cbXjNgAAAA5JREFUCJljSGB4wPAAAAVmAiGdUf+vAAAAAElFTkSuQmCC") repeat 0 0;
  243. }
  244. /**
  245. * Bullets.
  246. */
  247. /* Makes the pointer work when bullets placed over the slide. */
  248. .slick-dots li button {
  249. pointer-events: auto;
  250. }
  251. /* Overrides too tiny bullets from core slick.css */
  252. .slick-dots li button::before {
  253. font-size: 12px;
  254. font-size: 0.75rem;
  255. }
  256. /* Overrides .slick-slider to make caption text selectable. */
  257. .slide__caption {
  258. cursor: text;
  259. position: relative;
  260. -moz-user-select: text;
  261. -ms-user-select: text;
  262. -o-user-select: text;
  263. -webkit-user-select: text;
  264. user-select: text;
  265. width: 100%;
  266. }
  267. /**
  268. * Complex layout needs custom refinement for mobile, hence it is reasonable
  269. * to apply for Desktop up. Adjust mobile version accordingly.
  270. */
  271. /**
  272. * Slide layouts, adjust accordingly per actual container slide.
  273. */
  274. .slick--display--main .slide__caption {
  275. min-height: 32%;
  276. padding: 20px 0;
  277. z-index: 3;
  278. }
  279. .slick--display--thumbnail .slide__caption {
  280. padding: 5px 6px;
  281. }
  282. /* Prevent stacking oversized thumbnails when/before JS is on. */
  283. .slick--display--thumbnail .slick__slide {
  284. float: left;
  285. }
  286. /**
  287. * Media
  288. */
  289. /* Hide broken lazyloaded image for non-JS. */
  290. img[data-lazy] {
  291. display: none;
  292. }
  293. /* Prevents confusing white space with centerPadding */
  294. .media__image {
  295. margin-left: auto;
  296. margin-right: auto;
  297. }
  298. /* Overrides core > 1.3.11, otherwise thumbnails are non-clickable */
  299. .slick--display--thumbnail .slick__slide img {
  300. pointer-events: auto;
  301. }
  302. /* Media ratio */
  303. .media,
  304. .slide__media {
  305. overflow: hidden;
  306. position: relative;
  307. }
  308. .media--ratio {
  309. height: 0;
  310. /* padding-top: 30px; IE7 fix */
  311. }
  312. /* Allows to fix broken images with hidden elements, see slick.load.js. */
  313. .js-media--ratio {
  314. height: auto;
  315. }
  316. /* 1:1 ratio */
  317. .media--ratio--11 {
  318. padding-bottom: 100%;
  319. }
  320. /* 3:2 ratio */
  321. .media--ratio--32 {
  322. padding-bottom: 66.66%;
  323. }
  324. /* 4:3 ratio */
  325. .media--ratio--43 {
  326. padding-bottom: 75%;
  327. }
  328. /* 8:5 ratio */
  329. .media--ratio--85 {
  330. padding-bottom: 62.5%;
  331. }
  332. /* 16:9 ratio */
  333. .media--ratio--169 {
  334. padding-bottom: 56.25%;
  335. }
  336. .media--ratio > .media__element {
  337. border: 0 none;
  338. display: block;
  339. height: 100%;
  340. left: 0;
  341. position: absolute;
  342. top: 0;
  343. width: 100%;
  344. z-index: 0;
  345. }
  346. .media__element {
  347. opacity: 1;
  348. -webkit-transition: opacity 500ms ease-in-out;
  349. transition: opacity 500ms ease-in-out;
  350. }
  351. /* The lazyloaded element: IMG, IFRAME, DIV */
  352. .media--loading .media__element {
  353. display: block;
  354. opacity: 0;
  355. }
  356. /* Needed to display preloader with CSS BG image, otherwise hidden. */
  357. .media--loading.media--background {
  358. opacity: 1;
  359. }
  360. .media--loading {
  361. -webkit-backface-visibility: hidden;
  362. backface-visibility: hidden;
  363. position: relative;
  364. }
  365. .media--loading::before {
  366. content: '';
  367. display: block;
  368. width: 30px;
  369. height: 30px;
  370. max-width: 30px;
  371. background: #2eaae0;
  372. position: absolute;
  373. left: 50%;
  374. top: 50%;
  375. margin-left: -15px;
  376. margin-top: -15px;
  377. font-size: 0;
  378. z-index: 22;
  379. -webkit-animation: rotateplane 1.2s infinite ease-in-out;
  380. animation: rotateplane 1.2s infinite ease-in-out;
  381. }
  382. .media--background {
  383. background-size: cover;
  384. background-position: center center;
  385. background-repeat: no-repeat;
  386. }
  387. .slide--loading .slide__caption {
  388. visibility: hidden;
  389. }
  390. /* Prevents nested slicks from inheriting background images. */
  391. .slick--nested .media--background {
  392. background-image: none;
  393. }
  394. /** @todo: Remove temp fix for when total <= slidesToShow. */
  395. /** @see https://github.com/kenwheeler/slick/issues/262 */
  396. .slick--less .slick-track {
  397. margin-left: auto;
  398. margin-right: auto;
  399. text-align: center;
  400. }
  401. .slick--less .slick-slide {
  402. float: none;
  403. display: inline-block;
  404. vertical-align: top;
  405. }
  406. .slick--less .draggable {
  407. cursor: default;
  408. }
  409. @media (min-width: 64em) {
  410. /* Fixed FireFox draggable issue, avoid asNavFor thumbnails. */
  411. .slick--display--main .slick__slide img {
  412. pointer-events: none;
  413. }
  414. .slide__caption {
  415. left: 0;
  416. padding: 20px;
  417. top: 10%;
  418. }
  419. .slide--caption--center .slide__caption,
  420. .slide--caption--center-top .slide__caption,
  421. .slide--caption--right .slide__caption {
  422. width: 42%;
  423. }
  424. .slide--caption--center .slide__caption {
  425. margin-top: -16%;
  426. position: absolute;
  427. top: 50%;
  428. }
  429. .slide--caption--center .slide__caption,
  430. .slide--caption--center-top .slide__caption {
  431. left: 50%;
  432. margin-left: -21%;
  433. padding: 0;
  434. position: absolute;
  435. text-align: center;
  436. }
  437. .slide--caption--right .slide__caption {
  438. left: auto;
  439. position: absolute;
  440. right: 0;
  441. }
  442. .slide--caption--top .slide__caption,
  443. .slide--caption--bottom .slide__caption {
  444. position: absolute;
  445. width: 100%;
  446. }
  447. .slide--caption--top .slide__caption {
  448. top: 0;
  449. }
  450. .slide--caption--bottom .slide__caption {
  451. bottom: 0;
  452. top: auto;
  453. }
  454. .slick--has-arrow-down .slide--caption--bottom .slide__caption {
  455. padding-bottom: 80px;
  456. }
  457. .slide--caption--stage-left .slide__caption,
  458. .slide--caption--stage-right .slide__caption,
  459. .slide--caption--stage-zebra .slide__caption {
  460. left: 50%;
  461. margin-left: -41%;
  462. padding: 0;
  463. position: absolute;
  464. width: 82%;
  465. }
  466. .slick--display--thumbnail .slide__caption,
  467. .slide--caption--below .slide__caption {
  468. padding: 20px 0;
  469. position: relative;
  470. top: auto;
  471. width: 100%;
  472. }
  473. .slick--display--thumbnail .slide__caption {
  474. padding: 5px 6px;
  475. }
  476. #overlay .slick-wrapper,
  477. #overlay .slick {
  478. margin-left: auto;
  479. margin-right: auto;
  480. max-width: 1040px;
  481. }
  482. }