player.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. /* from Invidious, AGPL-3.0 */
  2. #player-container {
  3. width: 100% !important;
  4. height: auto !important;
  5. }
  6. .vjs-control-bar {
  7. z-index: 999;
  8. }
  9. /* Youtube player style */
  10. .video-js.player-style-youtube .vjs-progress-control {
  11. height: 0;
  12. }
  13. .video-js.player-style-youtube .vjs-progress-control .vjs-progress-holder, .video-js.player-style-youtube .vjs-progress-control {
  14. position: absolute;
  15. right: 0;
  16. left: 0;
  17. width: 100%;
  18. margin: 0;
  19. }
  20. .video-js.player-style-youtube .vjs-control-bar {
  21. background: linear-gradient(rgba(0,0,0,0.1), rgba(0, 0, 0,0.5));
  22. }
  23. .video-js.player-style-youtube .vjs-slider {
  24. background-color: rgba(255,255,255,0.2);
  25. }
  26. .video-js.player-style-youtube .vjs-load-progress > div {
  27. background-color: rgba(255,255,255,0.5);
  28. }
  29. .video-js.player-style-youtube .vjs-play-progress {
  30. background-color: red;
  31. }
  32. .video-js.player-style-youtube .vjs-progress-control:hover .vjs-progress-holder {
  33. font-size: 15px;
  34. }
  35. .video-js.player-style-youtube .vjs-control-bar > .vjs-spacer {
  36. flex: 1;
  37. order: 2;
  38. }
  39. .video-js.player-style-youtube .vjs-play-progress .vjs-time-tooltip {
  40. display: none;
  41. }
  42. .video-js.player-style-youtube .vjs-play-progress::before {
  43. color: red;
  44. font-size: 0.85em;
  45. display: none;
  46. }
  47. .video-js.player-style-youtube .vjs-progress-holder:hover .vjs-play-progress::before {
  48. display: unset;
  49. }
  50. .video-js.player-style-youtube .vjs-control-bar {
  51. display: flex;
  52. flex-direction: row;
  53. }
  54. .video-js.player-style-youtube .vjs-big-play-button {
  55. /*
  56. Styles copied from video-js.min.css, definition of
  57. .vjs-big-play-centered .vjs-big-play-button
  58. */
  59. top: 50%;
  60. left: 50%;
  61. margin-top: -0.81666em;
  62. margin-left: -1.5em;
  63. }
  64. .video-js.player-style-youtube .vjs-menu-button-popup .vjs-menu {
  65. margin-bottom: 2em;
  66. }
  67. .video-js.player-style-youtube .vjs-progress-control .vjs-progress-holder, .video-js.player-style-youtube .vjs-progress-control {height: 5px;
  68. margin-bottom: 10px;}
  69. ul.vjs-menu-content::-webkit-scrollbar {
  70. display: none;
  71. }
  72. .vjs-user-inactive {
  73. cursor: none;
  74. }
  75. .video-js .vjs-text-track-display > div > div > div {
  76. background-color: rgba(0, 0, 0, 0.75) !important;
  77. border-radius: 9px !important;
  78. padding: 5px !important;
  79. }
  80. .vjs-play-control,
  81. .vjs-volume-panel,
  82. .vjs-current-time,
  83. .vjs-time-control,
  84. .vjs-duration,
  85. .vjs-progress-control,
  86. .vjs-remaining-time {
  87. order: 1;
  88. }
  89. .vjs-captions-button {
  90. order: 2;
  91. }
  92. .vjs-audio-button {
  93. order: 3;
  94. }
  95. .vjs-quality-selector,
  96. .video-js .vjs-http-source-selector {
  97. order: 4;
  98. }
  99. .vjs-playback-rate {
  100. order: 5;
  101. }
  102. .vjs-share-control {
  103. order: 6;
  104. }
  105. .vjs-fullscreen-control {
  106. order: 7;
  107. }
  108. .vjs-playback-rate > .vjs-menu {
  109. width: 50px;
  110. }
  111. .vjs-control-bar {
  112. display: flex;
  113. flex-direction: row;
  114. scrollbar-width: none;
  115. }
  116. .vjs-control-bar::-webkit-scrollbar {
  117. display: none;
  118. }
  119. .video-js .vjs-icon-cog {
  120. font-size: 18px;
  121. }
  122. .video-js .vjs-control-bar,
  123. .vjs-menu-button-popup .vjs-menu .vjs-menu-content {
  124. background-color: rgba(35, 35, 35, 0.75);
  125. }
  126. .vjs-menu li.vjs-menu-item:focus,
  127. .vjs-menu li.vjs-menu-item:hover {
  128. background-color: rgba(255, 255, 255, 0.75);
  129. color: rgba(49, 49, 51, 0.75);
  130. }
  131. .vjs-menu li.vjs-selected,
  132. .vjs-menu li.vjs-selected:focus,
  133. .vjs-menu li.vjs-selected:hover {
  134. background-color: rgba(0, 182, 240, 0.75);
  135. }
  136. /* Progress Bar */
  137. .video-js .vjs-slider {
  138. background-color: rgba(15, 15, 15, 0.5);
  139. }
  140. .video-js .vjs-load-progress,
  141. .video-js .vjs-load-progress div {
  142. background: rgba(87, 87, 88, 1);
  143. }
  144. .video-js .vjs-slider:hover,
  145. .video-js button:hover {
  146. color: rgba(0, 182, 240, 1);
  147. }
  148. .video-js.player-style-invidious .vjs-play-progress {
  149. background-color: rgba(0, 182, 240, 1);
  150. }
  151. /* Overlay */
  152. .video-js .vjs-overlay {
  153. background-color: rgba(35, 35, 35, 0.75) !important;
  154. }
  155. .video-js .vjs-overlay * {
  156. color: rgba(255, 255, 255, 1) !important;
  157. text-align: center;
  158. }
  159. /* ProgressBar marker */
  160. .vjs-marker {
  161. background-color: rgba(255, 255, 255, 1);
  162. z-index: 0;
  163. }
  164. /* Big "Play" Button */
  165. .video-js .vjs-big-play-button {
  166. background-color: rgba(35, 35, 35, 0.5);
  167. }
  168. .video-js:hover .vjs-big-play-button {
  169. background-color: rgba(35, 35, 35, 0.75);
  170. }
  171. .video-js .vjs-current-time,
  172. .video-js .vjs-time-divider,
  173. .video-js .vjs-duration {
  174. display: block;
  175. }
  176. .video-js .vjs-time-divider {
  177. min-width: 0px;
  178. padding-left: 0px;
  179. padding-right: 0px;
  180. }
  181. .video-js .vjs-poster {
  182. background-size: cover;
  183. object-fit: cover;
  184. }
  185. .player-dimensions.vjs-fluid {
  186. padding-top: 82vh;
  187. }
  188. video.video-js {
  189. position: absolute;
  190. height: 100%;
  191. }
  192. #player-container {
  193. position: relative;
  194. padding-left: 0;
  195. padding-right: 0;
  196. margin-left: 1em;
  197. margin-right: 1em;
  198. height: 0;
  199. }
  200. .mobile-operations-bar {
  201. display: flex;
  202. position: absolute;
  203. top: 0;
  204. right: 1px !important;
  205. left: initial !important;
  206. width: initial !important;
  207. }
  208. .mobile-operations-bar ul {
  209. position: absolute !important;
  210. bottom: unset !important;
  211. top: 1.5em;
  212. }
  213. @media screen and (max-width: 700px) {
  214. .video-js .vjs-share {
  215. justify-content: unset;
  216. }
  217. }
  218. @media screen and (max-width: 650px) {
  219. .vjs-modal-dialog-content {
  220. overflow-x: hidden;
  221. }
  222. }