You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

180 line
3.8 KiB

  1. .ce_youtube {
  2. margin-bottom: 2rem;
  3. .video_container {
  4. position: relative;
  5. padding-bottom: 56.25%;
  6. width: 100%;
  7. height: auto;
  8. a {
  9. display: block;
  10. width: 100%;
  11. height: 100%;
  12. position: absolute;
  13. left: 0;
  14. top: 0;
  15. z-index: 200;
  16. &:after {
  17. content: "";
  18. position: absolute;
  19. left: 50%;
  20. top: 50%;
  21. transform: translate(-50%, -50%);
  22. width: 77px;
  23. height: 78px;
  24. -webkit-mask-image: url("../images/elements/youtube-play-icon.svg");
  25. mask-image: url("../images/elements/youtube-play-icon.svg");
  26. -webkit-mask-repeat: no-repeat;
  27. mask-repeat: no-repeat;
  28. -webkit-mask-position: left top;
  29. mask-position: left top;
  30. -webkit-mask-size: 100% auto;
  31. mask-size: 100% auto;
  32. background-color: $white;
  33. @media (max-width: 575px) {
  34. transform: translate(-50%, -50%) scale(50%);
  35. }
  36. }
  37. &:hover {
  38. &:after {
  39. background-color: $youtube-red;
  40. }
  41. }
  42. }
  43. }
  44. img,
  45. iframe {
  46. position: absolute;
  47. top: 0;
  48. left: 0;
  49. right: 0;
  50. bottom: 0;
  51. width: 100% !important;
  52. height: 100% !important;
  53. }
  54. &.spwn-youtube {
  55. position: relative;
  56. display: flex;
  57. justify-content: flex-end;
  58. min-height: 300px;
  59. margin-bottom: 6rem;
  60. @media (max-width: 1004px) {
  61. margin-top: 4rem;
  62. }
  63. @media (max-width: 575px) {
  64. margin-bottom: 3rem;
  65. }
  66. &:before {
  67. content: "";
  68. position: absolute;
  69. left: 0;
  70. top: 50%;
  71. z-index: -1;
  72. transform: translate(0, -50%);
  73. width: 100%;
  74. height: 268px;
  75. background: $secondary;
  76. border-radius: 30px;
  77. @media (max-width: 1280px) {
  78. height: 230px;
  79. }
  80. @media (max-width: 1004px) {
  81. width: 70%;
  82. height: 168px;
  83. transform: translate(0, -130%);
  84. }
  85. @media (max-width: 575px) {
  86. height: 120px;
  87. transform: translate(0, -170%);
  88. }
  89. }
  90. h2 {
  91. color: $white;
  92. position: absolute;
  93. left: 50px;
  94. top: 50%;
  95. transform: translate(0, -50%);
  96. padding: 0 800px 0 0;
  97. @media (max-width: 1280px) {
  98. padding-right: calc(50vw + 90px);
  99. font-size: size(48);
  100. line-height: size(56);
  101. }
  102. @media (max-width: 1004px) {
  103. top: 0;
  104. transform: translate(0, -50%);
  105. padding-right: 0;
  106. margin-right: 27vw;
  107. font-size: size(40);
  108. line-height: size(48);
  109. }
  110. @media (max-width: 768px) {
  111. font-size: size(32);
  112. line-height: size(38);
  113. }
  114. @media (max-width: 575px) {
  115. font-size: size(26);
  116. line-height: size(32);
  117. }
  118. }
  119. .video_container {
  120. width: 717px;
  121. padding-bottom: 0;
  122. margin-right: 85px;
  123. @media (max-width: 1280px) {
  124. width: 50vw;
  125. }
  126. @media (max-width: 1004px) {
  127. width: 60vw;
  128. margin-top: 2rem;
  129. }
  130. @media (max-width: 768px) {
  131. width: 85%;
  132. margin-right: 0;
  133. }
  134. @media (max-width: 575px) {
  135. height: 52vw;
  136. }
  137. .responsive {
  138. position: relative;
  139. padding-bottom: 56.25%;
  140. width: 100%;
  141. height: auto;
  142. }
  143. img,
  144. iframe {
  145. border-radius: 20px;
  146. }
  147. }
  148. .caption {
  149. position: absolute;
  150. left: 0;
  151. bottom: 0;
  152. width: 100%;
  153. padding: 30px;
  154. font-size: size(24);
  155. line-height: size(30);
  156. color: $white;
  157. background: rgba(0, 0, 0, 0.7);
  158. border-bottom-left-radius: 20px;
  159. border-bottom-right-radius: 20px;
  160. @media (max-width: 575px) {
  161. padding: 50px;
  162. font-size: size(18);
  163. line-height: size(24);
  164. background: none;
  165. }
  166. }
  167. }
  168. }