您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

165 行
3.4 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. mask-image: url("../images/elements/youtube-play-icon.svg");
  119. mask-repeat: no-repeat;
  120. mask-position: left top;
  121. mask-size: 100% auto;
  122. background-color: $white;
  123. @media (max-width: 575px) {
  124. transform: translate(-50%, -50%) scale(50%);
  125. }
  126. }
  127. &:hover {
  128. &:after {
  129. background-color: $youtube-red;
  130. }
  131. }
  132. }
  133. img,
  134. iframe {
  135. border-radius: 20px;
  136. }
  137. }
  138. .caption {
  139. position: absolute;
  140. left: 30px;
  141. bottom: 30px;
  142. padding-right: 30px;
  143. font-size: size(24);
  144. line-height: size(30);
  145. color: $white;
  146. @media (max-width: 575px) {
  147. bottom: 50px;
  148. font-size: size(18);
  149. line-height: size(24);
  150. }
  151. }
  152. }
  153. }