video.module.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. .videoWrap {
  2. width: 100%;
  3. height: 100%;
  4. .sectionAnimate {
  5. opacity: 0;
  6. pointer-events: none;
  7. transform: translateY(126px);
  8. transition: all .2s;
  9. }
  10. .controls {
  11. position: absolute;
  12. bottom: 0;
  13. left: 0;
  14. right: 0;
  15. width: 100%;
  16. background-color: rgba(0, 0, 0, 0.7);
  17. // backdrop-filter: blur(26px);
  18. height: 108px;
  19. padding: 0 330px 0 40px !important;
  20. display: flex;
  21. align-items: center;
  22. transition: all 0.301s;
  23. .time {
  24. display: flex;
  25. justify-content: space-between;
  26. color: #fff;
  27. // font-size: 10px;
  28. padding: 4px 20px 4px;
  29. font-size: 24px;
  30. font-weight: 600;
  31. line-height: 33px;
  32. &>div {
  33. font-size: 24px !important;
  34. }
  35. .line {
  36. font-size: 12px;
  37. }
  38. :global {
  39. .plyr__time+.plyr__time:before {
  40. content: '';
  41. margin-right: 0;
  42. }
  43. }
  44. }
  45. }
  46. .actions {
  47. display: flex;
  48. justify-content: space-between;
  49. // width: 100%;
  50. height: 100%;
  51. color: #fff;
  52. font-size: 12px;
  53. align-items: center;
  54. .actionWrap {
  55. display: flex;
  56. }
  57. .actionBtn {
  58. display: flex;
  59. width: 60px;
  60. height: 60px;
  61. padding: 4px 0;
  62. background: transparent;
  63. cursor: pointer;
  64. &>img {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. }
  69. .iconReplay {
  70. width: 40px;
  71. height: 39px;
  72. background-color: transparent;
  73. &>img {
  74. width: 100%;
  75. height: 100%;
  76. }
  77. }
  78. }
  79. .slider {
  80. width: 100%;
  81. padding: 0 20px 0 12px;
  82. :global {
  83. .n-slider .n-slider-rail .n-slider-rail__fill,
  84. .n-slider .n-slider-handles .n-slider-handle-wrapper {
  85. transition: all .2s;
  86. }
  87. }
  88. }
  89. }
  90. // .videoWrap {
  91. // width: 100%;
  92. // height: 100%;
  93. // --plyr-color-main: #198CFE;
  94. // --plyr-range-track-height: 4px;
  95. // --plyr-tooltip-radius: 3px;
  96. // --plyr-range-thumb-height: 18px;
  97. // :global {
  98. // .plyr--video {
  99. // width: 100%;
  100. // height: 100%;
  101. // }
  102. // .plyr__time {
  103. // display: block !important;
  104. // }
  105. // .plyr__video-wrapper {
  106. // pointer-events: none;
  107. // }
  108. // }
  109. // }
  110. // :global(.bottomFixed).controls {
  111. // width: 100%;
  112. // background: rgba(0, 0, 0, 0.6);
  113. // backdrop-filter: blur(26px);
  114. // height: 150px;
  115. // padding: 0 250px 0 40px !important;
  116. // transition: all 0.5s;
  117. // .time {
  118. // display: flex;
  119. // justify-content: space-between;
  120. // color: #fff;
  121. // // font-size: 10px;
  122. // padding: 4px 0 4px 20px;
  123. // font-size: 24px;
  124. // font-weight: 600;
  125. // line-height: 33px;
  126. // &>div {
  127. // font-size: 24px !important;
  128. // }
  129. // .line {
  130. // font-size: 12px;
  131. // }
  132. // :global {
  133. // .plyr__time+.plyr__time:before {
  134. // content: '';
  135. // margin-right: 0;
  136. // }
  137. // }
  138. // }
  139. // .slider {
  140. // width: 100%;
  141. // padding: 0 20px 0 12px;
  142. // :global {
  143. // .van-slider__button {
  144. // background: var(--van-primary);
  145. // }
  146. // .van-loading {
  147. // width: 100%;
  148. // height: 100%;
  149. // }
  150. // }
  151. // }
  152. // .actions {
  153. // display: flex;
  154. // justify-content: space-between;
  155. // color: #fff;
  156. // font-size: 12px;
  157. // padding-right: 20px;
  158. // align-items: center;
  159. // .actionWrap {
  160. // display: flex;
  161. // }
  162. // .actionBtn {
  163. // display: flex;
  164. // // width: 43px !important;
  165. // // height: 43px !important;
  166. // width: 82px;
  167. // height: 82px;
  168. // padding: 4px 0;
  169. // background: transparent;
  170. // }
  171. // .actionBtn>img {
  172. // width: 100%;
  173. // height: 100%;
  174. // }
  175. // :global {
  176. // .van-loading__circular {
  177. // width: 100%;
  178. // height: 100%;
  179. // }
  180. // }
  181. // .playIcon {
  182. // display: none;
  183. // }
  184. // .btnPlay img:nth-child(2) {
  185. // display: block;
  186. // }
  187. // .btnPause img:nth-child(3) {
  188. // display: block;
  189. // }
  190. // .btnPlay,
  191. // .btnPause {
  192. // :global {
  193. // .van-loading {
  194. // display: none;
  195. // }
  196. // }
  197. // }
  198. // .loopBtn {
  199. // background-color: transparent;
  200. // width: 43px;
  201. // height: 42px;
  202. // padding: 0;
  203. // cursor: pointer;
  204. // :global {
  205. // .loop {
  206. // display: block;
  207. // }
  208. // .loopActive {
  209. // display: none;
  210. // }
  211. // }
  212. // }
  213. // }
  214. // }