You are here

slick.media.css in Slick Carousel 7.2

Provides media integration with pure CSS fluid video wrapper.

File

css/components/slick.media.css
View source
  1. /**
  2. * @file
  3. * Provides media integration with pure CSS fluid video wrapper.
  4. */
  5. .media__iframe,
  6. .litebox,
  7. .slick__slide picture {
  8. border: 0;
  9. display: block;
  10. max-width: 100%;
  11. }
  12. .media--ratio iframe,
  13. .media-icon {
  14. -webkit-transition: visibility 0s linear 0.5s, opacity 0.5s linear;
  15. transition: visibility 0s linear 0.5s, opacity 0.5s linear;
  16. }
  17. .media-icon {
  18. cursor: pointer;
  19. display: block;
  20. opacity: 0;
  21. position: absolute;
  22. visibility: hidden;
  23. z-index: 9;
  24. }
  25. .media-icon--play,
  26. .media-icon--close,
  27. .media-icon--spinner {
  28. height: 80px;
  29. left: 50%;
  30. margin: -40px 0 0 -40px;
  31. top: 50%;
  32. width: 80px;
  33. }
  34. .media-icon--close::before,
  35. .media-icon--close::after,
  36. .media-icon--play::before {
  37. content: '';
  38. display: block;
  39. position: absolute;
  40. pointer-events: none;
  41. }
  42. .media-icon--close::before,
  43. .media-icon--close::after {
  44. background: white;
  45. border-radius: 4px;
  46. height: 8px;
  47. left: 50%;
  48. margin: -4px 0 0 -40px;
  49. top: 50%;
  50. width: 80px;
  51. -ms-transform: rotate(45deg);
  52. -webkit-transform: rotate(45deg);
  53. transform: rotate(45deg);
  54. }
  55. .media-icon--close::after {
  56. -ms-transform: rotate(-45deg);
  57. -webkit-transform: rotate(-45deg);
  58. transform: rotate(-45deg);
  59. }
  60. .media-icon--close:hover::before,
  61. .media-icon--close:hover::after {
  62. background-color: #ff6d2c;
  63. }
  64. .is-playing .media-icon--close {
  65. visibility: hidden;
  66. }
  67. .media-icon--play {
  68. border: 8px solid white;
  69. border-radius: 50%;
  70. }
  71. .media-icon--play::before {
  72. border: 16px solid transparent;
  73. border-left: 24px solid white;
  74. left: 50%;
  75. line-height: 60px;
  76. margin: -16px 0 0 -6px;
  77. top: 50%;
  78. }
  79. .media--loading .media-icon--play::before {
  80. display: none;
  81. }
  82. .media-icon--play:hover {
  83. border-color: #ff6d2c;
  84. }
  85. .media-icon--play:hover::before {
  86. border-left-color: #ff6d2c;
  87. }
  88. .is-playing:hover .media-icon {
  89. -webkit-transition-delay: 0s;
  90. transition-delay: 0s;
  91. }
  92. /* Ensures not affecting iframe only without media swicther */
  93. .media--player.media--ratio > iframe {
  94. opacity: 0;
  95. visibility: hidden;
  96. }
  97. .media--switch .media__image,
  98. .media-icon--play,
  99. .is-playing .media__iframe,
  100. .is-playing.media--ratio > iframe,
  101. .is-playing:hover .media-icon--close {
  102. opacity: 1;
  103. visibility: visible;
  104. }
  105. .is-playing .media__iframe {
  106. z-index: 3;
  107. }
  108. .is-playing > img,
  109. .is-playing .media__image,
  110. .is-playing.media--switch + .slide__pattern,
  111. .is-playing.media--switch .media__image,
  112. .is-playing .media-icon--play,
  113. .is-playing:hover .media-icon--play {
  114. opacity: 0;
  115. position: absolute;
  116. visibility: hidden;
  117. z-index: -1;
  118. }
  119. .is-playing .slide__pattern {
  120. display: none;
  121. }
  122. /**
  123. * Fallback non-JS, if no-js class is provided by theme.
  124. */
  125. .no-js .media--switch .media__image,
  126. .no-js .media--switch .media-icon {
  127. opacity: 0;
  128. visibility: hidden;
  129. }
  130. .no-js .media--switch .media__iframe {
  131. opacity: 1;
  132. visibility: visible;
  133. }