You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

766 lines
21 KiB

3 years ago
  1. /*!
  2. Video.js Default Styles (http://videojs.com)
  3. Version 4.3.0
  4. Create your own skin at http://designer.videojs.com
  5. */
  6. /* SKIN
  7. ================================================================================
  8. The main class name for all skin-specific styles. To make your own skin,
  9. replace all occurances of 'vjs-default-skin' with a new name. Then add your new
  10. skin name to your video tag instead of the default skin.
  11. e.g. <video class="video-js my-skin-name">
  12. */
  13. .vjs-default-skin {
  14. color: #cccccc;
  15. }
  16. /* Custom Icon Font
  17. --------------------------------------------------------------------------------
  18. The control icons are from a custom font. Each icon corresponds to a character
  19. (e.g. "\e001"). Font icons allow for easy scaling and coloring of icons.
  20. */
  21. @font-face {
  22. font-family: 'VideoJS';
  23. src: url('font/vjs.eot');
  24. src: url('font/vjs.eot?#iefix') format('embedded-opentype'), url('font/vjs.woff') format('woff'), url('font/vjs.ttf') format('truetype');
  25. font-weight: normal;
  26. font-style: normal;
  27. }
  28. /* Base UI Component Classes
  29. --------------------------------------------------------------------------------
  30. */
  31. /* Slider - used for Volume bar and Seek bar */
  32. .vjs-default-skin .vjs-slider {
  33. /* Replace browser focus hightlight with handle highlight */
  34. outline: 0;
  35. position: relative;
  36. cursor: pointer;
  37. padding: 0;
  38. /* background-color-with-alpha */
  39. background-color: #333333;
  40. background-color: rgba(51, 51, 51, 0.9);
  41. }
  42. .vjs-default-skin .vjs-slider:focus {
  43. /* box-shadow */
  44. -webkit-box-shadow: 0 0 2em #ffffff;
  45. -moz-box-shadow: 0 0 2em #ffffff;
  46. box-shadow: 0 0 2em #ffffff;
  47. }
  48. .vjs-default-skin .vjs-slider-handle {
  49. position: absolute;
  50. /* Needed for IE6 */
  51. left: 0;
  52. top: 0;
  53. }
  54. .vjs-default-skin .vjs-slider-handle:before {
  55. content: "\e009";
  56. font-family: VideoJS;
  57. font-size: 1em;
  58. line-height: 1;
  59. text-align: center;
  60. text-shadow: 0em 0em 1em #fff;
  61. position: absolute;
  62. top: 0;
  63. left: 0;
  64. /* Rotate the square icon to make a diamond */
  65. /* transform */
  66. -webkit-transform: rotate(-45deg);
  67. -moz-transform: rotate(-45deg);
  68. -ms-transform: rotate(-45deg);
  69. -o-transform: rotate(-45deg);
  70. transform: rotate(-45deg);
  71. }
  72. /* Control Bar
  73. --------------------------------------------------------------------------------
  74. The default control bar that is a container for most of the controls.
  75. */
  76. .vjs-default-skin .vjs-control-bar {
  77. /* Start hidden */
  78. display: none;
  79. position: absolute;
  80. /* Place control bar at the bottom of the player box/video.
  81. If you want more margin below the control bar, add more height. */
  82. bottom: 0;
  83. /* Use left/right to stretch to 100% width of player div */
  84. left: 0;
  85. right: 0;
  86. /* Height includes any margin you want above or below control items */
  87. height: 3.0em;
  88. /* background-color-with-alpha */
  89. background-color: #07141e;
  90. background-color: rgba(7, 20, 30, 0.7);
  91. }
  92. /* Show the control bar only once the video has started playing */
  93. .vjs-default-skin.vjs-has-started .vjs-control-bar {
  94. display: block;
  95. /* Visibility needed to make sure things hide in older browsers too. */
  96. visibility: visible;
  97. opacity: 1;
  98. /* transition */
  99. -webkit-transition: visibility 0.1s, opacity 0.1s;
  100. -moz-transition: visibility 0.1s, opacity 0.1s;
  101. -o-transition: visibility 0.1s, opacity 0.1s;
  102. transition: visibility 0.1s, opacity 0.1s;
  103. }
  104. /* Hide the control bar when the video is playing and the user is inactive */
  105. .vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
  106. display: block;
  107. visibility: hidden;
  108. opacity: 0;
  109. /* transition */
  110. -webkit-transition: visibility 1s, opacity 1s;
  111. -moz-transition: visibility 1s, opacity 1s;
  112. -o-transition: visibility 1s, opacity 1s;
  113. transition: visibility 1s, opacity 1s;
  114. }
  115. .vjs-default-skin.vjs-controls-disabled .vjs-control-bar {
  116. display: none;
  117. }
  118. .vjs-default-skin.vjs-using-native-controls .vjs-control-bar {
  119. display: none;
  120. }
  121. /* IE8 is flakey with fonts, and you have to change the actual content to force
  122. fonts to show/hide properly.
  123. - "\9" IE8 hack didn't work for this
  124. - Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9
  125. */
  126. @media \0screen {
  127. .vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
  128. content: "";
  129. }
  130. }
  131. /* General styles for individual controls. */
  132. .vjs-default-skin .vjs-control {
  133. outline: none;
  134. position: relative;
  135. float: left;
  136. text-align: center;
  137. margin: 0;
  138. padding: 0;
  139. height: 3.0em;
  140. width: 4em;
  141. }
  142. /* FontAwsome button icons */
  143. .vjs-default-skin .vjs-control:before {
  144. font-family: VideoJS;
  145. font-size: 1.5em;
  146. line-height: 2;
  147. position: absolute;
  148. top: 0;
  149. left: 0;
  150. width: 100%;
  151. height: 100%;
  152. text-align: center;
  153. text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  154. }
  155. /* Replacement for focus outline */
  156. .vjs-default-skin .vjs-control:focus:before,
  157. .vjs-default-skin .vjs-control:hover:before {
  158. text-shadow: 0em 0em 1em #ffffff;
  159. }
  160. .vjs-default-skin .vjs-control:focus {
  161. /* outline: 0; */
  162. /* keyboard-only users cannot see the focus on several of the UI elements when
  163. this is set to 0 */
  164. }
  165. /* Hide control text visually, but have it available for screenreaders */
  166. .vjs-default-skin .vjs-control-text {
  167. /* hide-visually */
  168. border: 0;
  169. clip: rect(0 0 0 0);
  170. height: 1px;
  171. margin: -1px;
  172. overflow: hidden;
  173. padding: 0;
  174. position: absolute;
  175. width: 1px;
  176. }
  177. /* Play/Pause
  178. --------------------------------------------------------------------------------
  179. */
  180. .vjs-default-skin .vjs-play-control {
  181. width: 5em;
  182. cursor: pointer;
  183. }
  184. .vjs-default-skin .vjs-play-control:before {
  185. content: "\e001";
  186. }
  187. .vjs-default-skin.vjs-playing .vjs-play-control:before {
  188. content: "\e002";
  189. }
  190. /* Volume/Mute
  191. -------------------------------------------------------------------------------- */
  192. .vjs-default-skin .vjs-mute-control,
  193. .vjs-default-skin .vjs-volume-menu-button {
  194. cursor: pointer;
  195. float: right;
  196. }
  197. .vjs-default-skin .vjs-mute-control:before,
  198. .vjs-default-skin .vjs-volume-menu-button:before {
  199. content: "\e006";
  200. }
  201. .vjs-default-skin .vjs-mute-control.vjs-vol-0:before,
  202. .vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before {
  203. content: "\e003";
  204. }
  205. .vjs-default-skin .vjs-mute-control.vjs-vol-1:before,
  206. .vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before {
  207. content: "\e004";
  208. }
  209. .vjs-default-skin .vjs-mute-control.vjs-vol-2:before,
  210. .vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before {
  211. content: "\e005";
  212. }
  213. .vjs-default-skin .vjs-volume-control {
  214. width: 5em;
  215. float: right;
  216. }
  217. .vjs-default-skin .vjs-volume-bar {
  218. width: 5em;
  219. height: 0.6em;
  220. margin: 1.1em auto 0;
  221. }
  222. .vjs-default-skin .vjs-volume-menu-button .vjs-menu-content {
  223. height: 2.9em;
  224. }
  225. .vjs-default-skin .vjs-volume-level {
  226. position: absolute;
  227. top: 0;
  228. left: 0;
  229. height: 0.5em;
  230. background: #66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;
  231. }
  232. .vjs-default-skin .vjs-volume-bar .vjs-volume-handle {
  233. width: 0.5em;
  234. height: 0.5em;
  235. }
  236. .vjs-default-skin .vjs-volume-handle:before {
  237. font-size: 0.9em;
  238. top: -0.2em;
  239. left: -0.2em;
  240. width: 1em;
  241. height: 1em;
  242. }
  243. .vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content {
  244. width: 6em;
  245. left: -4em;
  246. }
  247. /* Progress
  248. --------------------------------------------------------------------------------
  249. */
  250. .vjs-default-skin .vjs-progress-control {
  251. position: absolute;
  252. left: 0;
  253. right: 0;
  254. width: auto;
  255. font-size: 0.3em;
  256. height: 1em;
  257. /* Set above the rest of the controls. */
  258. top: -1em;
  259. /* Shrink the bar slower than it grows. */
  260. /* transition */
  261. -webkit-transition: all 0.4s;
  262. -moz-transition: all 0.4s;
  263. -o-transition: all 0.4s;
  264. transition: all 0.4s;
  265. }
  266. /* On hover, make the progress bar grow to something that's more clickable.
  267. This simply changes the overall font for the progress bar, and this
  268. updates both the em-based widths and heights, as wells as the icon font */
  269. .vjs-default-skin:hover .vjs-progress-control {
  270. font-size: .9em;
  271. /* Even though we're not changing the top/height, we need to include them in
  272. the transition so they're handled correctly. */
  273. /* transition */
  274. -webkit-transition: all 0.2s;
  275. -moz-transition: all 0.2s;
  276. -o-transition: all 0.2s;
  277. transition: all 0.2s;
  278. }
  279. /* Box containing play and load progresses. Also acts as seek scrubber. */
  280. .vjs-default-skin .vjs-progress-holder {
  281. height: 100%;
  282. }
  283. /* Progress Bars */
  284. .vjs-default-skin .vjs-progress-holder .vjs-play-progress,
  285. .vjs-default-skin .vjs-progress-holder .vjs-load-progress {
  286. position: absolute;
  287. display: block;
  288. height: 100%;
  289. margin: 0;
  290. padding: 0;
  291. /* Needed for IE6 */
  292. left: 0;
  293. top: 0;
  294. }
  295. .vjs-default-skin .vjs-play-progress {
  296. /*
  297. Using a data URI to create the white diagonal lines with a transparent
  298. background. Surprisingly works in IE8.
  299. Created using http://www.patternify.com
  300. Changing the first color value will change the bar color.
  301. Also using a paralax effect to make the lines move backwards.
  302. The -50% left position makes that happen.
  303. */
  304. background: #66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;
  305. }
  306. .vjs-default-skin .vjs-load-progress {
  307. background: #646464 /* IE8- Fallback */;
  308. background: rgba(255, 255, 255, 0.4);
  309. }
  310. .vjs-default-skin .vjs-seek-handle {
  311. width: 1.5em;
  312. height: 100%;
  313. }
  314. .vjs-default-skin .vjs-seek-handle:before {
  315. padding-top: 0.1em /* Minor adjustment */;
  316. }
  317. /* Time Display
  318. --------------------------------------------------------------------------------
  319. */
  320. .vjs-default-skin .vjs-time-controls {
  321. font-size: 1em;
  322. /* Align vertically by making the line height the same as the control bar */
  323. line-height: 3em;
  324. }
  325. .vjs-default-skin .vjs-current-time {
  326. float: left;
  327. }
  328. .vjs-default-skin .vjs-duration {
  329. float: left;
  330. }
  331. /* Remaining time is in the HTML, but not included in default design */
  332. .vjs-default-skin .vjs-remaining-time {
  333. display: none;
  334. float: left;
  335. }
  336. .vjs-time-divider {
  337. float: left;
  338. line-height: 3em;
  339. }
  340. /* Fullscreen
  341. --------------------------------------------------------------------------------
  342. */
  343. .vjs-default-skin .vjs-fullscreen-control {
  344. width: 3.8em;
  345. cursor: pointer;
  346. float: right;
  347. }
  348. .vjs-default-skin .vjs-fullscreen-control:before {
  349. content: "\e000";
  350. }
  351. /* Switch to the exit icon when the player is in fullscreen */
  352. .vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before {
  353. content: "\e00b";
  354. }
  355. /* Big Play Button (play button at start)
  356. --------------------------------------------------------------------------------
  357. Positioning of the play button in the center or other corners can be done more
  358. easily in the skin designer. http://designer.videojs.com/
  359. */
  360. .vjs-default-skin .vjs-big-play-button {
  361. left: 0.5em;
  362. top: 0.5em;
  363. font-size: 3em;
  364. display: block;
  365. z-index: 2;
  366. position: absolute;
  367. width: 4em;
  368. height: 2.6em;
  369. text-align: center;
  370. vertical-align: middle;
  371. cursor: pointer;
  372. opacity: 1;
  373. /* Need a slightly gray bg so it can be seen on black backgrounds */
  374. /* background-color-with-alpha */
  375. background-color: #07141e;
  376. background-color: rgba(7, 20, 30, 0.7);
  377. border: 0.1em solid #3b4249;
  378. /* border-radius */
  379. -webkit-border-radius: 0.8em;
  380. -moz-border-radius: 0.8em;
  381. border-radius: 0.8em;
  382. /* box-shadow */
  383. -webkit-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
  384. -moz-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
  385. box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
  386. /* transition */
  387. -webkit-transition: all 0.4s;
  388. -moz-transition: all 0.4s;
  389. -o-transition: all 0.4s;
  390. transition: all 0.4s;
  391. }
  392. /* Optionally center */
  393. .vjs-default-skin.vjs-big-play-centered .vjs-big-play-button {
  394. /* Center it horizontally */
  395. left: 50%;
  396. margin-left: -2.1em;
  397. /* Center it vertically */
  398. top: 50%;
  399. margin-top: -1.4000000000000001em;
  400. }
  401. /* Hide if controls are disabled */
  402. .vjs-default-skin.vjs-controls-disabled .vjs-big-play-button {
  403. display: none;
  404. }
  405. /* Hide when video starts playing */
  406. .vjs-default-skin.vjs-has-started .vjs-big-play-button {
  407. display: none;
  408. }
  409. /* Hide on mobile devices. Remove when we stop using native controls
  410. by default on mobile */
  411. .vjs-default-skin.vjs-using-native-controls .vjs-big-play-button {
  412. display: none;
  413. }
  414. .vjs-default-skin:hover .vjs-big-play-button,
  415. .vjs-default-skin .vjs-big-play-button:focus {
  416. outline: 0;
  417. border-color: #fff;
  418. /* IE8 needs a non-glow hover state */
  419. background-color: #505050;
  420. background-color: rgba(50, 50, 50, 0.75);
  421. /* box-shadow */
  422. -webkit-box-shadow: 0 0 3em #ffffff;
  423. -moz-box-shadow: 0 0 3em #ffffff;
  424. box-shadow: 0 0 3em #ffffff;
  425. /* transition */
  426. -webkit-transition: all 0s;
  427. -moz-transition: all 0s;
  428. -o-transition: all 0s;
  429. transition: all 0s;
  430. }
  431. .vjs-default-skin .vjs-big-play-button:before {
  432. content: "\e001";
  433. font-family: VideoJS;
  434. /* In order to center the play icon vertically we need to set the line height
  435. to the same as the button height */
  436. line-height: 2.6em;
  437. text-shadow: 0.05em 0.05em 0.1em #000;
  438. text-align: center /* Needed for IE8 */;
  439. position: absolute;
  440. left: 0;
  441. width: 100%;
  442. height: 100%;
  443. }
  444. /* Loading Spinner
  445. --------------------------------------------------------------------------------
  446. */
  447. .vjs-loading-spinner {
  448. display: none;
  449. position: absolute;
  450. top: 50%;
  451. left: 50%;
  452. font-size: 4em;
  453. line-height: 1;
  454. width: 1em;
  455. height: 1em;
  456. margin-left: -0.5em;
  457. margin-top: -0.5em;
  458. opacity: 0.75;
  459. /* animation */
  460. -webkit-animation: spin 1.5s infinite linear;
  461. -moz-animation: spin 1.5s infinite linear;
  462. -o-animation: spin 1.5s infinite linear;
  463. animation: spin 1.5s infinite linear;
  464. }
  465. .vjs-default-skin .vjs-loading-spinner:before {
  466. content: "\e01e";
  467. font-family: VideoJS;
  468. position: absolute;
  469. top: 0;
  470. left: 0;
  471. width: 1em;
  472. height: 1em;
  473. text-align: center;
  474. text-shadow: 0em 0em 0.1em #000;
  475. }
  476. @-moz-keyframes spin {
  477. 0% {
  478. -moz-transform: rotate(0deg);
  479. }
  480. 100% {
  481. -moz-transform: rotate(359deg);
  482. }
  483. }
  484. @-webkit-keyframes spin {
  485. 0% {
  486. -webkit-transform: rotate(0deg);
  487. }
  488. 100% {
  489. -webkit-transform: rotate(359deg);
  490. }
  491. }
  492. @-o-keyframes spin {
  493. 0% {
  494. -o-transform: rotate(0deg);
  495. }
  496. 100% {
  497. -o-transform: rotate(359deg);
  498. }
  499. }
  500. @keyframes spin {
  501. 0% {
  502. transform: rotate(0deg);
  503. }
  504. 100% {
  505. transform: rotate(359deg);
  506. }
  507. }
  508. /* Menu Buttons (Captions/Subtitles/etc.)
  509. --------------------------------------------------------------------------------
  510. */
  511. .vjs-default-skin .vjs-menu-button {
  512. float: right;
  513. cursor: pointer;
  514. }
  515. .vjs-default-skin .vjs-menu {
  516. display: none;
  517. position: absolute;
  518. bottom: 0;
  519. left: 0em;
  520. /* (Width of vjs-menu - width of button) / 2 */
  521. width: 0em;
  522. height: 0em;
  523. margin-bottom: 3em;
  524. border-left: 2em solid transparent;
  525. border-right: 2em solid transparent;
  526. border-top: 1.55em solid #000000;
  527. /* Same width top as ul bottom */
  528. border-top-color: rgba(7, 40, 50, 0.5);
  529. /* Same as ul background */
  530. }
  531. /* Button Pop-up Menu */
  532. .vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {
  533. display: block;
  534. padding: 0;
  535. margin: 0;
  536. position: absolute;
  537. width: 10em;
  538. bottom: 1.5em;
  539. /* Same bottom as vjs-menu border-top */
  540. max-height: 15em;
  541. overflow: auto;
  542. left: -5em;
  543. /* Width of menu - width of button / 2 */
  544. /* background-color-with-alpha */
  545. background-color: #07141e;
  546. background-color: rgba(7, 20, 30, 0.7);
  547. /* box-shadow */
  548. -webkit-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
  549. -moz-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
  550. box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
  551. }
  552. .vjs-default-skin .vjs-menu-button:hover .vjs-menu {
  553. display: block;
  554. }
  555. .vjs-default-skin .vjs-menu-button ul li {
  556. list-style: none;
  557. margin: 0;
  558. padding: 0.3em 0 0.3em 0;
  559. line-height: 1.4em;
  560. font-size: 1.2em;
  561. text-align: center;
  562. text-transform: lowercase;
  563. }
  564. .vjs-default-skin .vjs-menu-button ul li.vjs-selected {
  565. background-color: #000;
  566. }
  567. .vjs-default-skin .vjs-menu-button ul li:focus,
  568. .vjs-default-skin .vjs-menu-button ul li:hover,
  569. .vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,
  570. .vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover {
  571. outline: 0;
  572. color: #111;
  573. /* background-color-with-alpha */
  574. background-color: #ffffff;
  575. background-color: rgba(255, 255, 255, 0.75);
  576. /* box-shadow */
  577. -webkit-box-shadow: 0 0 1em #ffffff;
  578. -moz-box-shadow: 0 0 1em #ffffff;
  579. box-shadow: 0 0 1em #ffffff;
  580. }
  581. .vjs-default-skin .vjs-menu-button ul li.vjs-menu-title {
  582. text-align: center;
  583. text-transform: uppercase;
  584. font-size: 1em;
  585. line-height: 2em;
  586. padding: 0;
  587. margin: 0 0 0.3em 0;
  588. font-weight: bold;
  589. cursor: default;
  590. }
  591. /* Subtitles Button */
  592. .vjs-default-skin .vjs-subtitles-button:before {
  593. content: "\e00c";
  594. }
  595. /* Captions Button */
  596. .vjs-default-skin .vjs-captions-button:before {
  597. content: "\e008";
  598. }
  599. /* Replacement for focus outline */
  600. .vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,
  601. .vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before {
  602. /* box-shadow */
  603. -webkit-box-shadow: 0 0 1em #ffffff;
  604. -moz-box-shadow: 0 0 1em #ffffff;
  605. box-shadow: 0 0 1em #ffffff;
  606. }
  607. /*
  608. REQUIRED STYLES (be careful overriding)
  609. ================================================================================
  610. When loading the player, the video tag is replaced with a DIV,
  611. that will hold the video tag or object tag for other playback methods.
  612. The div contains the video playback element (Flash or HTML5) and controls,
  613. and sets the width and height of the video.
  614. ** If you want to add some kind of border/padding (e.g. a frame), or special
  615. positioning, use another containing element. Otherwise you risk messing up
  616. control positioning and full window mode. **
  617. */
  618. .video-js {
  619. background-color: #000;
  620. position: relative;
  621. padding: 0;
  622. /* Start with 10px for base font size so other dimensions can be em based and
  623. easily calculable. */
  624. font-size: 10px;
  625. /* Allow poster to be vertially aligned. */
  626. vertical-align: middle;
  627. /* display: table-cell; */
  628. /*This works in Safari but not Firefox.*/
  629. /* Provide some basic defaults for fonts */
  630. font-weight: normal;
  631. font-style: normal;
  632. /* Avoiding helvetica: issue #376 */
  633. font-family: Arial, sans-serif;
  634. /* Turn off user selection (text highlighting) by default.
  635. The majority of player components will not be text blocks.
  636. Text areas will need to turn user selection back on. */
  637. /* user-select */
  638. -webkit-user-select: none;
  639. -moz-user-select: none;
  640. -ms-user-select: none;
  641. user-select: none;
  642. }
  643. /* Playback technology elements expand to the width/height of the containing div
  644. <video> or <object> */
  645. .video-js .vjs-tech {
  646. position: absolute;
  647. top: 0;
  648. left: 0;
  649. width: 100%;
  650. height: 100%;
  651. }
  652. /* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
  653. checking fullScreenEnabled. */
  654. .video-js:-moz-full-screen {
  655. position: absolute;
  656. }
  657. /* Fullscreen Styles */
  658. body.vjs-full-window {
  659. padding: 0;
  660. margin: 0;
  661. height: 100%;
  662. /* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html */
  663. overflow-y: auto;
  664. }
  665. .video-js.vjs-fullscreen {
  666. position: fixed;
  667. overflow: hidden;
  668. z-index: 1000;
  669. left: 0;
  670. top: 0;
  671. bottom: 0;
  672. right: 0;
  673. width: 100% !important;
  674. height: 100% !important;
  675. /* IE6 full-window (underscore hack) */
  676. _position: absolute;
  677. }
  678. .video-js:-webkit-full-screen {
  679. width: 100% !important;
  680. height: 100% !important;
  681. }
  682. .video-js.vjs-fullscreen.vjs-user-inactive {
  683. cursor: none;
  684. }
  685. /* Poster Styles */
  686. .vjs-poster {
  687. background-repeat: no-repeat;
  688. background-position: 50% 50%;
  689. background-size: contain;
  690. cursor: pointer;
  691. height: 100%;
  692. margin: 0;
  693. padding: 0;
  694. position: relative;
  695. width: 100%;
  696. }
  697. .vjs-poster img {
  698. display: block;
  699. margin: 0 auto;
  700. max-height: 100%;
  701. padding: 0;
  702. width: 100%;
  703. }
  704. /* Hide the poster when native controls are used otherwise it covers them */
  705. .video-js.vjs-using-native-controls .vjs-poster {
  706. display: none;
  707. }
  708. /* Text Track Styles */
  709. /* Overall track holder for both captions and subtitles */
  710. .video-js .vjs-text-track-display {
  711. text-align: center;
  712. position: absolute;
  713. bottom: 4em;
  714. /* Leave padding on left and right */
  715. left: 1em;
  716. right: 1em;
  717. }
  718. /* Individual tracks */
  719. .video-js .vjs-text-track {
  720. display: none;
  721. font-size: 1.4em;
  722. text-align: center;
  723. margin-bottom: 0.1em;
  724. /* Transparent black background, or fallback to all black (oldIE) */
  725. /* background-color-with-alpha */
  726. background-color: #000000;
  727. background-color: rgba(0, 0, 0, 0.5);
  728. }
  729. .video-js .vjs-subtitles {
  730. color: #ffffff /* Subtitles are white */;
  731. }
  732. .video-js .vjs-captions {
  733. color: #ffcc66 /* Captions are yellow */;
  734. }
  735. .vjs-tt-cue {
  736. display: block;
  737. }
  738. /* Hide disabled or unsupported controls */
  739. .vjs-default-skin .vjs-hidden {
  740. display: none;
  741. }
  742. .vjs-lock-showing {
  743. display: block !important;
  744. opacity: 1;
  745. visibility: visible;
  746. }
  747. /* -----------------------------------------------------------------------------
  748. The original source of this file lives at
  749. https://github.com/videojs/video.js/blob/master/src/css/video-js.less */