video-js.css 20 KB

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