index.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. .video-item {
  2. width: 100%;
  3. height: 100%;
  4. padding-bottom: 3px;
  5. position: relative;
  6. overflow: hidden;
  7. background: #3A3A3AFF;
  8. .video-bottom {
  9. position: absolute;
  10. bottom: 0;
  11. left: 0;
  12. right: 0;
  13. }
  14. .progress {
  15. height: 3px;
  16. background: #616161FF;
  17. }
  18. .action-bar {
  19. height: 50px;
  20. line-height: 50px;
  21. padding: 0 20px;
  22. display: flex;
  23. .assets {
  24. cursor: pointer;
  25. }
  26. .fix-btn {
  27. transform: translateY(-1px);
  28. }
  29. .btn {
  30. display: inline-block;
  31. font-size: 12px;
  32. line-height: 12px;
  33. padding: 6px 10px;
  34. color: #fff;
  35. background: #696969FF;
  36. text-align: center;
  37. cursor: pointer;
  38. border-radius: 12px;
  39. }
  40. // .btn:hover {
  41. // background: darken(#696969, 10);
  42. // }
  43. .btn.active,
  44. .btn.active:hover {
  45. background: #4292f0;
  46. }
  47. }
  48. .video-wrapper {
  49. width: 100%;
  50. height: 100%;
  51. position: relative;
  52. .vjs_video_3-dimensions {
  53. width: 100% !important;
  54. height: 100% !important;
  55. .vjs-text-track-display {
  56. display: none;
  57. }
  58. .vjs-loading-spinner {
  59. display: none;
  60. }
  61. .vjs-big-play-button {
  62. display: none;
  63. }
  64. .vjs-error-display {
  65. display: none;
  66. }
  67. .vjs-modal-dialog {
  68. display: none;
  69. }
  70. .vjs-control-bar {
  71. position: absolute;
  72. bottom: -53px;
  73. left: 0;
  74. right: 0;
  75. height: 70px;
  76. padding-top: 20px;
  77. line-height: 50px;
  78. padding-left: 90px;
  79. overflow: hidden;
  80. button {
  81. display: none;
  82. }
  83. .vjs-volume-panel {
  84. display: none;
  85. }
  86. .vjs-control-text {
  87. display: none;
  88. }
  89. .vjs-current-time {
  90. display: inline-block;
  91. color: #fff;
  92. font-size: 12px;
  93. }
  94. .vjs-time-divider {
  95. display: inline-block;
  96. color: #fff;
  97. font-size: 12px;
  98. margin: 0 5px;
  99. }
  100. .vjs-duration {
  101. display: inline-block;
  102. color: #fff;
  103. font-size: 12px;
  104. }
  105. .vjs-progress-control:hover {
  106. .vjs-mouse-display {
  107. opacity: 1;
  108. }
  109. }
  110. .vjs-progress-control {
  111. position: absolute;
  112. height: 3px;
  113. top: 17px;
  114. left: 0;
  115. right: 0;
  116. .vjs-load-progress {
  117. position: absolute;
  118. top: 0;
  119. left: 0;
  120. right: 0;
  121. bottom: 0;
  122. background: rgb(168, 168, 168);
  123. z-index: 1;
  124. }
  125. .vjs-mouse-display {
  126. position: absolute;
  127. width: 8px;
  128. height: 8px;
  129. background: #fff;
  130. border-radius: 4px;
  131. top: -2px;
  132. z-index: 2;
  133. opacity: 0;
  134. .vjs-time-tooltip {
  135. color: #fff;
  136. position: absolute;
  137. top: -35px;
  138. font-size: 12px;
  139. }
  140. }
  141. .vjs-play-progress {
  142. position: absolute;
  143. top: 0;
  144. left: 0;
  145. right: 0;
  146. bottom: 0;
  147. background: #4292f0;
  148. z-index: 1;
  149. .vjs-time-tooltip {
  150. display: none;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. .assets {
  157. position: absolute;
  158. left: 50%;
  159. top: 50%;
  160. transform: translate(-50%, -50%);
  161. }
  162. .stop {
  163. display: none;
  164. }
  165. }
  166. .video-wrapper:hover {
  167. .stop {
  168. display: block;
  169. }
  170. }
  171. video {
  172. width: 100%;
  173. height: 100%;
  174. }
  175. }
  176. .video-item.action {
  177. padding-bottom: 53px;
  178. }