暫無描述
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.

_video-modal.scss 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. /*--------------------------------------------------------------
  2. 6. Video Block
  3. ----------------------------------------------------------------*/
  4. .cs_video_block.cs_style_1 {
  5. min-height: 600px;
  6. position: relative;
  7. .cs_video_block_in {
  8. border-radius: 20px;
  9. border: 6px solid #ffffff;
  10. box-shadow: 0px 10px 80px rgba(0, 55, 106, 0.2);
  11. backdrop-filter: blur(40px);
  12. }
  13. .cs_schedule_shape_1 {
  14. position: absolute;
  15. width: 400px;
  16. height: 320px;
  17. background: rgba(0, 194, 255, 0.08);
  18. border-radius: 30px 0px 0px 0px;
  19. left: -55px;
  20. top: -55px;
  21. }
  22. .cs_schedule_shape_2 {
  23. position: absolute;
  24. left: -34px;
  25. top: 48%;
  26. }
  27. .cs_video_block_img {
  28. height: 475px;
  29. width: 100%;
  30. background-size: cover;
  31. background-position: center;
  32. > div {
  33. position: absolute;
  34. height: 100%;
  35. width: 100%;
  36. left: 0;
  37. top: 0;
  38. opacity: 0.7;
  39. }
  40. }
  41. }
  42. .cs_play_btn_container {
  43. width: 80px;
  44. height: 80px;
  45. position: absolute;
  46. left: 50%;
  47. top: 50%;
  48. transform: translate(-50%, -50%);
  49. border-radius: 50%;
  50. cursor: pointer;
  51. &::before {
  52. content: '';
  53. width: 100%;
  54. height: 100%;
  55. background: #f5faff;
  56. border-radius: 50%;
  57. position: absolute;
  58. left: 50%;
  59. top: 50%;
  60. transform: translate(-50%, -50%);
  61. z-index: 0;
  62. animation: playBtnAnim 3s linear infinite;
  63. }
  64. }
  65. .cs_play_btn {
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. width: 100%;
  70. height: 100%;
  71. background: $accent;
  72. border-radius: 50%;
  73. position: relative;
  74. z-index: 2;
  75. }
  76. @keyframes playBtnAnim {
  77. 50% {
  78. transform: translate(-50%, -50%) scale(1.5);
  79. opacity: 0.5;
  80. }
  81. 100% {
  82. transform: translate(-50%, -50%) scale(2);
  83. opacity: 0;
  84. }
  85. }
  86. /*--------------------------------------------------------------
  87. 6. Video Popup
  88. ----------------------------------------------------------------*/
  89. .cs_pd_video .cs_video_open,
  90. .cs_sample_img .cs_video_open {
  91. position: absolute;
  92. left: 50%;
  93. top: 50%;
  94. transform: translate(-50%, -50%);
  95. color: #fff;
  96. font-size: 68px;
  97. transition: all 0.3s ease;
  98. line-height: 48px;
  99. }
  100. .cs_pd_video .cs_video_open:hover,
  101. .cs_sample_img .cs_video_open:hover {
  102. color: rgba(255, 255, 255, 0.7);
  103. }
  104. .cs_video_popup {
  105. position: fixed;
  106. z-index: 1000;
  107. top: 0;
  108. width: 100%;
  109. height: 100%;
  110. left: -100%;
  111. transition-delay: 0.3s;
  112. }
  113. .cs_video_popup.active {
  114. left: 0;
  115. transition-delay: 0s;
  116. left: 0;
  117. }
  118. .cs_video_popup_overlay {
  119. position: absolute;
  120. left: 0;
  121. right: 0;
  122. background: #000;
  123. transition: all 0.4s ease-out;
  124. opacity: 0;
  125. }
  126. .cs_video_popup.active .cs_video_popup_overlay {
  127. opacity: 0.8;
  128. height: 100%;
  129. background: rgba(0, 0, 0, 0.5);
  130. }
  131. .cs_video_popup_content {
  132. position: absolute;
  133. left: 0;
  134. top: 0;
  135. right: 0;
  136. bottom: 0;
  137. overflow: auto;
  138. -webkit-overflow-scrolling: touch;
  139. font-size: 0;
  140. text-align: center;
  141. transition: all 0.4s ease-out;
  142. transform: translateY(100px);
  143. opacity: 0;
  144. visibility: hidden;
  145. padding: 15px;
  146. }
  147. .cs_video_popup.active .cs_video_popup_content {
  148. transform: translateY(0);
  149. opacity: 1;
  150. visibility: visible;
  151. }
  152. .cs_video_popup_content:after {
  153. content: '';
  154. display: inline-block;
  155. height: 100%;
  156. vertical-align: middle;
  157. }
  158. .cs_video_popup_container {
  159. display: inline-block;
  160. position: relative;
  161. text-align: left;
  162. background: #fff;
  163. max-width: 1380px;
  164. width: 100%;
  165. vertical-align: middle;
  166. }
  167. .cs_video_popup_container .embed_responsive {
  168. width: 100%;
  169. }
  170. .embed_responsive {
  171. position: relative;
  172. display: block;
  173. height: 0;
  174. padding: 0;
  175. overflow: hidden;
  176. height: 100%;
  177. }
  178. .embed_responsive_16by9::before {
  179. display: block;
  180. content: '';
  181. padding-top: 56.25%;
  182. }
  183. .embed_responsive iframe,
  184. .embed_responsive video {
  185. position: absolute;
  186. top: 0;
  187. bottom: 0;
  188. left: 0;
  189. width: 100%;
  190. height: 100%;
  191. border: 0;
  192. }
  193. .cs_video_popup_close {
  194. position: absolute;
  195. top: 0;
  196. right: 0;
  197. width: 40px;
  198. height: 40px;
  199. background: #d90d0d;
  200. cursor: pointer;
  201. transition: all 0.4s ease-in-out;
  202. }
  203. .cs_video_popup iframe {
  204. width: 100%;
  205. height: 100%;
  206. position: absolute;
  207. }
  208. .cs_video_popup_close:before {
  209. content: '';
  210. display: block;
  211. position: absolute;
  212. top: 50%;
  213. left: 50%;
  214. width: 20px;
  215. height: 1px;
  216. background: #fff;
  217. margin-left: -10px;
  218. transform: rotate(-45deg);
  219. transition: all 0.4s ease-in-out;
  220. }
  221. .cs_video_popup_close:after {
  222. content: '';
  223. display: block;
  224. position: absolute;
  225. top: 50%;
  226. left: 50%;
  227. width: 20px;
  228. height: 1px;
  229. background: #fff;
  230. margin-left: -10px;
  231. transform: rotate(45deg);
  232. transition: all 0.4s ease-in-out;
  233. }
  234. .cs_video_popup_close:hover:before,
  235. .cs_video_popup_close:hover:after {
  236. background: #000;
  237. }
  238. .cs_video_popup_layer {
  239. position: absolute;
  240. left: 0;
  241. bottom: 0;
  242. right: 0;
  243. }
  244. .cs_video_popup_align {
  245. overflow: hidden;
  246. }