index.less 5.0 KB

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