mediaelementplayer.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. /* Accessibility: hide screen reader texts (and prefer "top" for RTL languages).
  2. Reference: http://blog.rrwd.nl/2015/04/04/the-screen-reader-text-class-why-and-how/ */
  3. .mejs__offscreen {
  4. border: 0;
  5. clip: rect( 1px, 1px, 1px, 1px );
  6. -webkit-clip-path: inset( 50% );
  7. clip-path: inset( 50% );
  8. height: 1px;
  9. margin: -1px;
  10. overflow: hidden;
  11. padding: 0;
  12. position: absolute;
  13. width: 1px;
  14. word-wrap: normal;
  15. }
  16. .mejs__container {
  17. background: #000;
  18. box-sizing: border-box;
  19. font-family: 'Helvetica', Arial, serif;
  20. position: relative;
  21. text-align: left;
  22. text-indent: 0;
  23. vertical-align: top;
  24. }
  25. .mejs__container * {
  26. box-sizing: border-box;
  27. }
  28. /* Hide native play button and control bar from iOS to favor plugin button */
  29. .mejs__container video::-webkit-media-controls,
  30. .mejs__container video::-webkit-media-controls-panel,
  31. .mejs__container video::-webkit-media-controls-panel-container,
  32. .mejs__container video::-webkit-media-controls-start-playback-button {
  33. -webkit-appearance: none;
  34. display: none !important;
  35. }
  36. .mejs__fill-container,
  37. .mejs__fill-container .mejs__container {
  38. height: 100%;
  39. width: 100%;
  40. }
  41. .mejs__fill-container {
  42. background: transparent;
  43. margin: 0 auto;
  44. overflow: hidden;
  45. position: relative;
  46. }
  47. .mejs__container:focus {
  48. outline: none;
  49. }
  50. .mejs__iframe-overlay {
  51. height: 100%;
  52. position: absolute;
  53. width: 100%;
  54. }
  55. .mejs__embed,
  56. .mejs__embed body {
  57. background: #000;
  58. height: 100%;
  59. margin: 0;
  60. overflow: hidden;
  61. padding: 0;
  62. width: 100%;
  63. }
  64. .mejs__fullscreen {
  65. overflow: hidden !important;
  66. }
  67. .mejs__container-fullscreen {
  68. bottom: 0;
  69. left: 0;
  70. overflow: hidden;
  71. position: fixed;
  72. right: 0;
  73. top: 0;
  74. z-index: 1000;
  75. }
  76. .mejs__container-fullscreen .mejs__mediaelement,
  77. .mejs__container-fullscreen video {
  78. height: 100% !important;
  79. width: 100% !important;
  80. }
  81. /* Start: LAYERS */
  82. .mejs__background {
  83. left: 0;
  84. position: absolute;
  85. top: 0;
  86. }
  87. .mejs__mediaelement {
  88. height: 100%;
  89. left: 0;
  90. position: absolute;
  91. top: 0;
  92. width: 100%;
  93. z-index: 0;
  94. }
  95. .mejs__poster {
  96. background-position: 50% 50%;
  97. background-repeat: no-repeat;
  98. background-size: cover;
  99. left: 0;
  100. position: absolute;
  101. top: 0;
  102. z-index: 1;
  103. }
  104. :root .mejs__poster-img {
  105. display: none;
  106. }
  107. .mejs__poster-img {
  108. border: 0;
  109. padding: 0;
  110. }
  111. .mejs__overlay {
  112. -webkit-box-align: center;
  113. -webkit-align-items: center;
  114. -ms-flex-align: center;
  115. align-items: center;
  116. display: -webkit-box;
  117. display: -webkit-flex;
  118. display: -ms-flexbox;
  119. display: flex;
  120. -webkit-box-pack: center;
  121. -webkit-justify-content: center;
  122. -ms-flex-pack: center;
  123. justify-content: center;
  124. left: 0;
  125. position: absolute;
  126. top: 0;
  127. }
  128. .mejs__layer {
  129. z-index: 1;
  130. }
  131. .mejs__overlay-play {
  132. cursor: pointer;
  133. }
  134. .mejs__overlay-button {
  135. background: url('mejs-controls.svg') no-repeat;
  136. background-position: 0 -39px;
  137. height: 80px;
  138. width: 80px;
  139. }
  140. .mejs__overlay:hover > .mejs__overlay-button {
  141. background-position: -80px -39px;
  142. }
  143. .mejs__overlay-loading {
  144. height: 80px;
  145. width: 80px;
  146. }
  147. .mejs__overlay-loading-bg-img {
  148. -webkit-animation: mejs__loading-spinner 1s linear infinite;
  149. animation: mejs__loading-spinner 1s linear infinite;
  150. background: transparent url('mejs-controls.svg') -160px -40px no-repeat;
  151. display: block;
  152. height: 80px;
  153. width: 80px;
  154. z-index: 1;
  155. }
  156. @-webkit-keyframes mejs__loading-spinner {
  157. 100% {
  158. -webkit-transform: rotate(360deg);
  159. transform: rotate(360deg);
  160. }
  161. }
  162. @keyframes mejs__loading-spinner {
  163. 100% {
  164. -webkit-transform: rotate(360deg);
  165. transform: rotate(360deg);
  166. }
  167. }
  168. /* End: LAYERS */
  169. /* Start: CONTROL BAR */
  170. .mejs__controls {
  171. bottom: 0;
  172. display: -webkit-box;
  173. display: -webkit-flex;
  174. display: -ms-flexbox;
  175. display: flex;
  176. height: 40px;
  177. left: 0;
  178. list-style-type: none;
  179. margin: 0;
  180. padding: 0 10px;
  181. position: absolute;
  182. width: 100%;
  183. z-index: 3;
  184. }
  185. .mejs__controls:not([style*='display: none']) {
  186. background: rgba(255, 0, 0, 0.7);
  187. background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.35));
  188. background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
  189. }
  190. .mejs__button,
  191. .mejs__time,
  192. .mejs__time-rail {
  193. font-size: 10px;
  194. height: 40px;
  195. line-height: 10px;
  196. margin: 0;
  197. width: 32px;
  198. }
  199. .mejs__button > button {
  200. background: transparent url('mejs-controls.svg');
  201. border: 0;
  202. cursor: pointer;
  203. display: block;
  204. font-size: 0;
  205. height: 20px;
  206. line-height: 0;
  207. margin: 10px 6px;
  208. overflow: hidden;
  209. padding: 0;
  210. position: absolute;
  211. text-decoration: none;
  212. width: 20px;
  213. }
  214. /* :focus for accessibility */
  215. .mejs__button > button:focus {
  216. outline: dotted 1px #999;
  217. }
  218. .mejs__container-keyboard-inactive a,
  219. .mejs__container-keyboard-inactive a:focus,
  220. .mejs__container-keyboard-inactive button,
  221. .mejs__container-keyboard-inactive button:focus,
  222. .mejs__container-keyboard-inactive [role=slider],
  223. .mejs__container-keyboard-inactive [role=slider]:focus {
  224. outline: 0;
  225. }
  226. /* End: CONTROL BAR */
  227. /* Start: Time (Current / Duration) */
  228. .mejs__time {
  229. box-sizing: content-box;
  230. color: #fff;
  231. font-size: 11px;
  232. font-weight: bold;
  233. height: 24px;
  234. overflow: hidden;
  235. padding: 16px 6px 0;
  236. text-align: center;
  237. width: auto;
  238. }
  239. /* End: Time (Current / Duration) */
  240. /* Start: Play/Pause/Stop */
  241. .mejs__play > button {
  242. background-position: 0 0;
  243. }
  244. .mejs__pause > button {
  245. background-position: -20px 0;
  246. }
  247. .mejs__replay > button {
  248. background-position: -160px 0;
  249. }
  250. /* End: Play/Pause/Stop */
  251. /* Start: Progress Bar */
  252. .mejs__time-rail {
  253. direction: ltr;
  254. -webkit-box-flex: 1;
  255. -webkit-flex-grow: 1;
  256. -ms-flex-positive: 1;
  257. flex-grow: 1;
  258. height: 40px;
  259. margin: 0 10px;
  260. padding-top: 10px;
  261. position: relative;
  262. }
  263. .mejs__time-total,
  264. .mejs__time-buffering,
  265. .mejs__time-loaded,
  266. .mejs__time-current,
  267. .mejs__time-float,
  268. .mejs__time-hovered,
  269. .mejs__time-float-current,
  270. .mejs__time-float-corner,
  271. .mejs__time-marker {
  272. border-radius: 2px;
  273. cursor: pointer;
  274. display: block;
  275. height: 10px;
  276. position: absolute;
  277. }
  278. .mejs__time-total {
  279. background: rgba(255, 255, 255, 0.3);
  280. margin: 5px 0 0;
  281. width: 100%;
  282. }
  283. .mejs__time-buffering {
  284. -webkit-animation: buffering-stripes 2s linear infinite;
  285. animation: buffering-stripes 2s linear infinite;
  286. background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent);
  287. background: linear-gradient(-45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent);
  288. background-size: 15px 15px;
  289. width: 100%;
  290. }
  291. @-webkit-keyframes buffering-stripes {
  292. from {
  293. background-position: 0 0;
  294. }
  295. to {
  296. background-position: 30px 0;
  297. }
  298. }
  299. @keyframes buffering-stripes {
  300. from {
  301. background-position: 0 0;
  302. }
  303. to {
  304. background-position: 30px 0;
  305. }
  306. }
  307. .mejs__time-loaded {
  308. background: rgba(255, 255, 255, 0.3);
  309. }
  310. .mejs__time-current,
  311. .mejs__time-handle-content {
  312. background: rgba(255, 255, 255, 0.9);
  313. }
  314. .mejs__time-hovered {
  315. background: rgba(255, 255, 255, 0.5);
  316. z-index: 10;
  317. }
  318. .mejs__time-hovered.negative {
  319. background: rgba(0, 0, 0, 0.2);
  320. }
  321. .mejs__time-current,
  322. .mejs__time-buffering,
  323. .mejs__time-loaded,
  324. .mejs__time-hovered {
  325. left: 0;
  326. -webkit-transform: scaleX(0);
  327. -ms-transform: scaleX(0);
  328. transform: scaleX(0);
  329. -webkit-transform-origin: 0 0;
  330. -ms-transform-origin: 0 0;
  331. transform-origin: 0 0;
  332. -webkit-transition: 0.15s ease-in all;
  333. transition: 0.15s ease-in all;
  334. width: 100%;
  335. }
  336. .mejs__time-buffering {
  337. -webkit-transform: scaleX(1);
  338. -ms-transform: scaleX(1);
  339. transform: scaleX(1);
  340. }
  341. .mejs__time-hovered {
  342. -webkit-transition: height 0.1s cubic-bezier(0.44, 0, 1, 1);
  343. transition: height 0.1s cubic-bezier(0.44, 0, 1, 1);
  344. }
  345. .mejs__time-hovered.no-hover {
  346. -webkit-transform: scaleX(0) !important;
  347. -ms-transform: scaleX(0) !important;
  348. transform: scaleX(0) !important;
  349. }
  350. .mejs__time-handle,
  351. .mejs__time-handle-content {
  352. border: 4px solid transparent;
  353. cursor: pointer;
  354. left: 0;
  355. position: absolute;
  356. -webkit-transform: translateX(0);
  357. -ms-transform: translateX(0);
  358. transform: translateX(0);
  359. z-index: 11;
  360. }
  361. .mejs__time-handle-content {
  362. border: 4px solid rgba(255, 255, 255, 0.9);
  363. border-radius: 50%;
  364. height: 10px;
  365. left: -7px;
  366. top: -4px;
  367. -webkit-transform: scale(0);
  368. -ms-transform: scale(0);
  369. transform: scale(0);
  370. width: 10px;
  371. }
  372. .mejs__time-rail:hover .mejs__time-handle-content,
  373. .mejs__time-rail .mejs__time-handle-content:focus,
  374. .mejs__time-rail .mejs__time-handle-content:active {
  375. -webkit-transform: scale(1);
  376. -ms-transform: scale(1);
  377. transform: scale(1);
  378. }
  379. .mejs__time-float {
  380. background: #eee;
  381. border: solid 1px #333;
  382. bottom: 100%;
  383. color: #111;
  384. display: none;
  385. height: 17px;
  386. margin-bottom: 9px;
  387. position: absolute;
  388. text-align: center;
  389. -webkit-transform: translateX(-50%);
  390. -ms-transform: translateX(-50%);
  391. transform: translateX(-50%);
  392. width: 36px;
  393. }
  394. .mejs__time-float-current {
  395. display: block;
  396. left: 0;
  397. margin: 2px;
  398. text-align: center;
  399. width: 30px;
  400. }
  401. .mejs__time-float-corner {
  402. border: solid 5px #eee;
  403. border-color: #eee transparent transparent;
  404. border-radius: 0;
  405. display: block;
  406. height: 0;
  407. left: 50%;
  408. line-height: 0;
  409. position: absolute;
  410. top: 100%;
  411. -webkit-transform: translateX(-50%);
  412. -ms-transform: translateX(-50%);
  413. transform: translateX(-50%);
  414. width: 0;
  415. }
  416. .mejs__long-video .mejs__time-float {
  417. margin-left: -23px;
  418. width: 64px;
  419. }
  420. .mejs__long-video .mejs__time-float-current {
  421. width: 60px;
  422. }
  423. .mejs__broadcast {
  424. color: #fff;
  425. height: 10px;
  426. position: absolute;
  427. top: 15px;
  428. width: 100%;
  429. }
  430. /* End: Progress Bar */
  431. /* Start: Fullscreen */
  432. .mejs__fullscreen-button > button {
  433. background-position: -80px 0;
  434. }
  435. .mejs__unfullscreen > button {
  436. background-position: -100px 0;
  437. }
  438. /* End: Fullscreen */
  439. /* Start: Mute/Volume */
  440. .mejs__mute > button {
  441. background-position: -60px 0;
  442. }
  443. .mejs__unmute > button {
  444. background-position: -40px 0;
  445. }
  446. .mejs__volume-button {
  447. position: relative;
  448. }
  449. .mejs__volume-button > .mejs__volume-slider {
  450. -webkit-backface-visibility: hidden;
  451. background: rgba(50, 50, 50, 0.7);
  452. border-radius: 0;
  453. bottom: 100%;
  454. display: none;
  455. height: 115px;
  456. left: 50%;
  457. margin: 0;
  458. position: absolute;
  459. -webkit-transform: translateX(-50%);
  460. -ms-transform: translateX(-50%);
  461. transform: translateX(-50%);
  462. width: 25px;
  463. z-index: 1;
  464. }
  465. .mejs__volume-button:hover {
  466. border-radius: 0 0 4px 4px;
  467. }
  468. .mejs__volume-total {
  469. background: rgba(255, 255, 255, 0.5);
  470. height: 100px;
  471. left: 50%;
  472. margin: 0;
  473. position: absolute;
  474. top: 8px;
  475. -webkit-transform: translateX(-50%);
  476. -ms-transform: translateX(-50%);
  477. transform: translateX(-50%);
  478. width: 2px;
  479. }
  480. .mejs__volume-current {
  481. background: rgba(255, 255, 255, 0.9);
  482. left: 0;
  483. margin: 0;
  484. position: absolute;
  485. width: 100%;
  486. }
  487. .mejs__volume-handle {
  488. background: rgba(255, 255, 255, 0.9);
  489. border-radius: 1px;
  490. cursor: ns-resize;
  491. height: 6px;
  492. left: 50%;
  493. position: absolute;
  494. -webkit-transform: translateX(-50%);
  495. -ms-transform: translateX(-50%);
  496. transform: translateX(-50%);
  497. width: 16px;
  498. }
  499. .mejs__horizontal-volume-slider {
  500. display: block;
  501. height: 36px;
  502. position: relative;
  503. vertical-align: middle;
  504. width: 56px;
  505. }
  506. .mejs__horizontal-volume-total {
  507. background: rgba(50, 50, 50, 0.8);
  508. border-radius: 2px;
  509. font-size: 1px;
  510. height: 8px;
  511. left: 0;
  512. margin: 0;
  513. padding: 0;
  514. position: absolute;
  515. top: 16px;
  516. width: 50px;
  517. }
  518. .mejs__horizontal-volume-current {
  519. background: rgba(255, 255, 255, 0.8);
  520. border-radius: 2px;
  521. font-size: 1px;
  522. height: 100%;
  523. left: 0;
  524. margin: 0;
  525. padding: 0;
  526. position: absolute;
  527. top: 0;
  528. width: 100%;
  529. }
  530. .mejs__horizontal-volume-handle {
  531. display: none;
  532. }
  533. /* End: Mute/Volume */
  534. /* Start: Track (Captions and Chapters) */
  535. .mejs__captions-button,
  536. .mejs__chapters-button {
  537. position: relative;
  538. }
  539. .mejs__captions-button > button {
  540. background-position: -140px 0;
  541. }
  542. .mejs__chapters-button > button {
  543. background-position: -180px 0;
  544. }
  545. .mejs__captions-button > .mejs__captions-selector,
  546. .mejs__chapters-button > .mejs__chapters-selector {
  547. background: rgba(50, 50, 50, 0.7);
  548. border: solid 1px transparent;
  549. border-radius: 0;
  550. bottom: 100%;
  551. margin-right: -43px;
  552. overflow: hidden;
  553. padding: 0;
  554. position: absolute;
  555. right: 50%;
  556. visibility: visible;
  557. width: 86px;
  558. }
  559. .mejs__chapters-button > .mejs__chapters-selector {
  560. margin-right: -55px;
  561. width: 110px;
  562. }
  563. .mejs__captions-selector-list,
  564. .mejs__chapters-selector-list {
  565. list-style-type: none !important;
  566. margin: 0;
  567. overflow: hidden;
  568. padding: 0;
  569. }
  570. .mejs__captions-selector-list-item,
  571. .mejs__chapters-selector-list-item {
  572. color: #fff;
  573. cursor: pointer;
  574. display: block;
  575. list-style-type: none !important;
  576. margin: 0 0 6px;
  577. overflow: hidden;
  578. padding: 0;
  579. }
  580. .mejs__captions-selector-list-item:hover,
  581. .mejs__chapters-selector-list-item:hover {
  582. background-color: rgb(200, 200, 200) !important;
  583. background-color: rgba(255, 255, 255, 0.4) !important;
  584. }
  585. .mejs__captions-selector-input,
  586. .mejs__chapters-selector-input {
  587. clear: both;
  588. float: left;
  589. left: -1000px;
  590. margin: 3px 3px 0 5px;
  591. position: absolute;
  592. }
  593. .mejs__captions-selector-label,
  594. .mejs__chapters-selector-label {
  595. cursor: pointer;
  596. float: left;
  597. font-size: 10px;
  598. line-height: 15px;
  599. padding: 4px 10px 0;
  600. width: 100%;
  601. }
  602. .mejs__captions-selected,
  603. .mejs__chapters-selected {
  604. color: rgba(33, 248, 248, 1);
  605. }
  606. .mejs__captions-translations {
  607. font-size: 10px;
  608. margin: 0 0 5px;
  609. }
  610. .mejs__captions-layer {
  611. bottom: 0;
  612. color: #fff;
  613. font-size: 16px;
  614. left: 0;
  615. line-height: 20px;
  616. position: absolute;
  617. text-align: center;
  618. }
  619. .mejs__captions-layer a {
  620. color: #fff;
  621. text-decoration: underline;
  622. }
  623. .mejs__captions-layer[lang=ar] {
  624. font-size: 20px;
  625. font-weight: normal;
  626. }
  627. .mejs__captions-position {
  628. bottom: 15px;
  629. left: 0;
  630. position: absolute;
  631. width: 100%;
  632. }
  633. .mejs__captions-position-hover {
  634. bottom: 35px;
  635. }
  636. .mejs__captions-text,
  637. .mejs__captions-text * {
  638. background: rgba(20, 20, 20, 0.5);
  639. box-shadow: 5px 0 0 rgba(20, 20, 20, 0.5), -5px 0 0 rgba(20, 20, 20, 0.5);
  640. padding: 0;
  641. white-space: pre-wrap;
  642. }
  643. .mejs__container.mejs__hide-cues video::-webkit-media-text-track-container {
  644. display: none;
  645. }
  646. /* End: Track (Captions and Chapters) */
  647. /* Start: Error */
  648. .mejs__overlay-error {
  649. position: relative;
  650. }
  651. .mejs__overlay-error > img {
  652. left: 0;
  653. position: absolute;
  654. top: 0;
  655. z-index: -1;
  656. }
  657. .mejs__cannotplay,
  658. .mejs__cannotplay a {
  659. color: #fff;
  660. font-size: 0.8em;
  661. }
  662. .mejs__cannotplay {
  663. position: relative;
  664. }
  665. .mejs__cannotplay p,
  666. .mejs__cannotplay a {
  667. display: inline-block;
  668. padding: 0 15px;
  669. width: 100%;
  670. }
  671. /* End: Error */