index.less 3.5 KB

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