Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

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