index.less 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. .video-item {
  2. width: 100%;
  3. height: 100%;
  4. padding-bottom: 3px;
  5. position: relative;
  6. overflow: hidden;
  7. background: #3A3A3AFF;
  8. .video-wrapper {
  9. .vjs-loading-spinner {
  10. display: none;
  11. }
  12. .vjs-big-play-button {
  13. display: none;
  14. }
  15. .vjs-control-bar {
  16. display: none;
  17. }
  18. .vjs-modal-dialog {
  19. display: none;
  20. }
  21. }
  22. .select-speed {
  23. position: absolute;
  24. bottom: 55px;
  25. right: 35px;
  26. width: 80px;
  27. background: #3A3A3AFF;
  28. border-radius: 4px;
  29. z-index: 99;
  30. .item {
  31. height: 40px;
  32. line-height: 40px;
  33. text-align: center;
  34. font-size: 12px;
  35. color: rgba(255, 255, 255, 0.6);
  36. cursor: pointer;
  37. }
  38. .item.active {
  39. color: #fff;
  40. }
  41. }
  42. .video-bottom {
  43. position: absolute;
  44. bottom: 0;
  45. left: 0;
  46. right: 0;
  47. user-select: none;
  48. }
  49. .ant-slider {
  50. margin: 0;
  51. .ant-slider-rail {
  52. border-radius: 0;
  53. background: #616161FF;
  54. }
  55. .ant-slider-track {
  56. background: #4292f0;
  57. }
  58. .ant-slider-handle {
  59. border: none;
  60. // background-color: transparent;
  61. box-shadow: none;
  62. width: 4px;
  63. height: 4px;
  64. margin-top: 0;
  65. margin-left: -2px;
  66. }
  67. .ant-slider-handle-click-focused {
  68. box-shadow: none;
  69. }
  70. }
  71. .progress {
  72. height: 3px;
  73. background: #616161FF;
  74. }
  75. .show-progress-tip {
  76. display: none;
  77. position: absolute;
  78. top: -26px;
  79. color: #fff;
  80. padding: 2px 5px;
  81. background: rgba(0, 0, 0, 0.5);
  82. text-align: center;
  83. }
  84. .action-bar {
  85. height: 50px;
  86. line-height: 50px;
  87. padding: 0 20px;
  88. display: flex;
  89. .assets {
  90. cursor: pointer;
  91. }
  92. .fix-btn-action {
  93. transform: translateY(-1px);
  94. }
  95. .btn-action {
  96. display: inline-block;
  97. font-size: 12px;
  98. line-height: 12px;
  99. padding: 6px 10px;
  100. color: #fff;
  101. background: #696969FF;
  102. text-align: center;
  103. cursor: pointer;
  104. border-radius: 12px;
  105. }
  106. // .btn:hover {
  107. // background: darken(#696969, 10);
  108. // }
  109. .btn-action.active,
  110. .btn-action.active:hover {
  111. background: #4292f0;
  112. }
  113. }
  114. .video-wrapper {
  115. width: 100%;
  116. height: 100%;
  117. position: relative;
  118. .vjs_video_3-dimensions {
  119. width: 100% !important;
  120. height: 100% !important;
  121. .vjs-text-track-display {
  122. display: none;
  123. }
  124. .vjs-loading-spinner {
  125. display: none;
  126. }
  127. .vjs-big-play-button {
  128. display: none;
  129. }
  130. .vjs-error-display {
  131. display: none;
  132. }
  133. .vjs-modal-dialog {
  134. display: none;
  135. }
  136. .vjs-control-bar {
  137. position: absolute;
  138. bottom: -53px;
  139. left: 0;
  140. right: 0;
  141. height: 70px;
  142. padding-top: 20px;
  143. line-height: 50px;
  144. padding-left: 90px;
  145. overflow: hidden;
  146. button {
  147. display: none;
  148. }
  149. .vjs-volume-panel {
  150. display: none;
  151. }
  152. .vjs-control-text {
  153. display: none;
  154. }
  155. .vjs-current-time {
  156. display: inline-block;
  157. color: #fff;
  158. font-size: 12px;
  159. }
  160. .vjs-time-divider {
  161. display: inline-block;
  162. color: #fff;
  163. font-size: 12px;
  164. margin: 0 5px;
  165. }
  166. .vjs-duration {
  167. display: inline-block;
  168. color: #fff;
  169. font-size: 12px;
  170. }
  171. .vjs-progress-control:hover {
  172. .vjs-mouse-display {
  173. opacity: 1;
  174. }
  175. }
  176. .vjs-progress-control {
  177. position: absolute;
  178. height: 3px;
  179. top: 17px;
  180. left: 0;
  181. right: 0;
  182. .vjs-load-progress {
  183. position: absolute;
  184. top: 0;
  185. left: 0;
  186. right: 0;
  187. bottom: 0;
  188. background: rgb(168, 168, 168);
  189. z-index: 1;
  190. }
  191. .vjs-mouse-display {
  192. position: absolute;
  193. width: 8px;
  194. height: 8px;
  195. background: #fff;
  196. border-radius: 4px;
  197. top: -2px;
  198. z-index: 2;
  199. opacity: 0;
  200. .vjs-time-tooltip {
  201. color: #fff;
  202. position: absolute;
  203. top: -35px;
  204. font-size: 12px;
  205. }
  206. }
  207. .vjs-play-progress {
  208. position: absolute;
  209. top: 0;
  210. left: 0;
  211. right: 0;
  212. bottom: 0;
  213. background: #4292f0;
  214. z-index: 1;
  215. .vjs-time-tooltip {
  216. display: none;
  217. }
  218. }
  219. }
  220. }
  221. }
  222. .assets {
  223. position: absolute;
  224. left: 50%;
  225. top: 50%;
  226. transform: translate(-50%, -50%);
  227. }
  228. .stop {
  229. display: none;
  230. }
  231. }
  232. .video-wrapper:hover {
  233. .stop {
  234. display: block;
  235. }
  236. }
  237. video {
  238. width: 100%;
  239. height: 100%;
  240. }
  241. }
  242. .video-item.action {
  243. padding-bottom: 53px;
  244. }