You are here

slick.theme--classic.css in Slick Carousel 8.2

Detailed stylings are all yours, get yourself dirty.

Transform is more performed than positions.

File

css/theme/slick.theme--classic.css
View source
  1. /**
  2. * @file
  3. * Detailed stylings are all yours, get yourself dirty.
  4. *
  5. * Transform is more performed than positions.
  6. */
  7. .slick--skin--classic .slick__slide {
  8. overflow: hidden;
  9. }
  10. .slick--skin--classic .slide__caption {
  11. box-sizing: border-box; /* dups due to csslint ignoring inheritance */
  12. background-color: #000;
  13. background-color: rgba(0, 0, 0, 0.8);
  14. color: #fff;
  15. left: auto;
  16. margin: 0;
  17. min-height: 80px;
  18. padding: 15px;
  19. -webkit-transition: -webkit-transform 1s ease-in-out 0.2s;
  20. transition: transform 1s ease-in-out 0.2s;
  21. width: 100%;
  22. }
  23. .slick--skin--classic .slide__description {
  24. margin: 0;
  25. }
  26. .slick--skin--classic .slide--caption--below .slide__caption {
  27. background: none;
  28. color: #38465c;
  29. }
  30. .slick--skin--classic .slide--caption--center .slide__caption {
  31. color: #fff;
  32. opacity: 0;
  33. visibility: hidden;
  34. -webkit-transition: all 0.4s ease-in-out 0s;
  35. transition: all 0.4s ease-in-out 0s;
  36. -webkit-backface-visibility: hidden;
  37. }
  38. .slick--skin--classic .slide--caption--center:hover .slide__caption {
  39. opacity: 1;
  40. visibility: visible;
  41. }
  42. @media (min-width: 64em) {
  43. .slick--skin--classic .slide__caption {
  44. box-sizing: border-box; /* dups due to csslint ignoring inheritance */
  45. height: 100%;
  46. min-height: 100%;
  47. padding: 60px 30px;
  48. top: 0;
  49. width: 22%;
  50. }
  51. .slick--skin--classic .slide__caption .slide__data {
  52. box-sizing: border-box; /* dups due to csslint ignoring inheritance */
  53. margin: 0 !important; /* csslint allow: known-properties, important */
  54. padding: 15px;
  55. width: 100%;
  56. }
  57. .slick--skin--classic .slide--caption--center .slide__caption {
  58. height: 120px;
  59. left: 50%;
  60. margin: -60px 0 0 -40%;
  61. min-height: 120px;
  62. top: 50%;
  63. width: 80%;
  64. }
  65. .slick--skin--classic .slide--caption--top .slide__caption,
  66. .slick--skin--classic .slide--caption--center-top .slide__caption,
  67. .slick--skin--classic .slide--caption--bottom .slide__caption,
  68. .slick--skin--classic .slide--caption--below .slide__caption {
  69. box-sizing: border-box; /* dups due to csslint ignoring inheritance */
  70. height: auto;
  71. min-height: 80px;
  72. padding: 30px;
  73. width: 100%;
  74. }
  75. .slick--skin--classic .slide--caption--bottom .slide__caption {
  76. bottom: 0;
  77. -ms-transform: translateY(210px);
  78. -webkit-transform: translateY(210px);
  79. transform: translateY(210px);
  80. min-height: 120px;
  81. top: auto;
  82. }
  83. .slick--skin--classic .slide--caption--stage-zebra .slide__title {
  84. margin-bottom: 30px;
  85. }
  86. .slick--skin--classic .slide--caption--stage-zebra:nth-child(odd) .slide__caption,
  87. .slick--skin--classic .slide--caption--stage-left .slide__caption,
  88. .slick--skin--classic .slide--caption--left .slide__caption {
  89. left: 0;
  90. -ms-transform: translateX(-320px);
  91. -webkit-transform: translateX(-320px);
  92. transform: translateX(-320px);
  93. }
  94. .slick--skin--classic .slide--caption--stage-zebra:nth-child(even) .slide__caption,
  95. .slick--skin--classic .slide--caption--stage-right .slide__caption,
  96. .slick--skin--classic .slide--caption--right .slide__caption {
  97. left: auto;
  98. right: 0;
  99. -ms-transform: translateX(320px);
  100. -webkit-transform: translateX(320px);
  101. transform: translateX(320px);
  102. }
  103. .slick--skin--classic .slide--caption--top .slide__caption,
  104. .slick--skin--classic .slide--caption--center-top .slide__caption {
  105. top: 0;
  106. -ms-transform: translateY(-210px);
  107. -webkit-transform: translateY(-210px);
  108. transform: translateY(-210px);
  109. }
  110. .slick--skin--classic .slick__slide.slick-active .slide__caption {
  111. -ms-transform: translateY(0);
  112. -webkit-transform: translateY(0);
  113. transform: translateY(0);
  114. -webkit-transition-delay: 0s;
  115. transition-delay: 0s;
  116. }
  117. }