You are here

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