videogular.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. /**
  2. * @license Videogular v0.7.0 http://videogular.com
  3. * Two Fucking Developers http://twofuckingdevelopers.com
  4. * License: MIT
  5. */
  6. @font-face {
  7. font-family: 'icomoon';
  8. src: url('fonts/icomoon.eot');
  9. src: url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
  10. url('fonts/icomoon.woff') format('woff'),
  11. url('fonts/icomoon.ttf') format('truetype'),
  12. url('fonts/icomoon.svg#icomoon') format('svg');
  13. font-weight: normal;
  14. font-style: normal;
  15. }
  16. videogular {
  17. width: 100%;
  18. height: 100%;
  19. position: relative;
  20. background-color: #000000;
  21. display: block;
  22. flex-direction: column;
  23. -webkit-touch-callout: none;
  24. -webkit-user-select: none;
  25. -khtml-user-select: none;
  26. -moz-user-select: moz-none;
  27. -ms-user-select: none;
  28. user-select: none;
  29. }
  30. videogular button {
  31. cursor: pointer;
  32. }
  33. videogular.fullscreen {
  34. position: absolute;
  35. left: 0;
  36. top: 0;
  37. }
  38. videogular vg-video {
  39. width: 100%;
  40. height: 100%;
  41. max-width: 100%;
  42. max-height: 100%;
  43. display: block;
  44. }
  45. videogular video {
  46. width: 100%;
  47. height: 100%;
  48. max-width: 100%;
  49. max-height: 100%;
  50. }
  51. videogular .iconButton {
  52. color: #FFFFFF;
  53. font-family: 'icomoon';
  54. speak: none;
  55. font-style: normal;
  56. font-weight: normal;
  57. font-variant: normal;
  58. text-transform: none;
  59. line-height: 1;
  60. -webkit-font-smoothing: antialiased;
  61. background: none;
  62. padding: 6px;
  63. border: none;
  64. }
  65. videogular .iconButton:focus {
  66. border: 1px solid white;
  67. }
  68. /*****************/
  69. /* Poster plugin */
  70. /*****************/
  71. videogular vg-poster-image {
  72. width: 100%;
  73. height: 100%;
  74. max-width: 100%;
  75. max-height: 100%;
  76. position: absolute;
  77. display: block;
  78. z-index: 1;
  79. top: 0;
  80. }
  81. videogular vg-poster-image img {
  82. width: auto;
  83. height: auto;
  84. max-width: 100%;
  85. max-height: 100%;
  86. top: 0;
  87. bottom: 0;
  88. right: 0;
  89. left: 0;
  90. margin: auto;
  91. position: absolute;
  92. }
  93. /**********************/
  94. /* OverlayPlay plugin */
  95. /**********************/
  96. videogular vg-overlay-play {
  97. width: 100%;
  98. height: 100%;
  99. max-width: 100%;
  100. max-height: 100%;
  101. position: absolute;
  102. z-index: 2;
  103. top: 0;
  104. }
  105. videogular vg-overlay-play .play:before {
  106. content: "\e000";
  107. }
  108. videogular vg-overlay-play .overlayPlayContainer {
  109. font-size: 100px;
  110. width: 100%;
  111. height: 100%;
  112. max-width: 100%;
  113. max-height: 100%;
  114. position: absolute;
  115. display: table;
  116. cursor: pointer;
  117. zoom: 1;
  118. filter: alpha(opacity=60);
  119. opacity: 0.6;
  120. }
  121. videogular vg-overlay-play .overlayPlayContainer div {
  122. vertical-align: middle;
  123. text-align: center;
  124. display: table-cell;
  125. }
  126. /*********************/
  127. /* Controlbar plugin */
  128. /*********************/
  129. videogular vg-controls {
  130. width: 100%;
  131. height: 50px;
  132. display: block;
  133. position: absolute;
  134. z-index: 3;
  135. top: calc(100% - 50px);
  136. }
  137. videogular vg-controls #controls-container {
  138. width: 100%;
  139. height: 50px;
  140. background-color: #000000;
  141. position: absolute;
  142. display: table;
  143. zoom: 1;
  144. filter: alpha(opacity=50);
  145. opacity: 0.5;
  146. }
  147. videogular vg-play-pause-button {
  148. display: table-cell;
  149. width: 50px;
  150. vertical-align: middle;
  151. text-align: center;
  152. cursor: pointer;
  153. }
  154. videogular vg-timedisplay {
  155. color: #FFFFFF;
  156. display: table-cell;
  157. font-family: Arial;
  158. font-size: 18px;
  159. width: 75px;
  160. vertical-align: middle;
  161. text-align: center;
  162. cursor: default;
  163. }
  164. videogular .vgTimeDisplay {
  165. display: table-cell;
  166. font-family: Arial;
  167. font-size: 18px;
  168. width: auto;
  169. }
  170. videogular vg-scrubbar {
  171. width: auto;
  172. display: table-cell;
  173. cursor: pointer;
  174. }
  175. videogular vg-scrubbar :focus vg-scrubBarCurrentTime {
  176. border-right: 6px black groove;
  177. }
  178. videogular vg-scrubBarCurrentTime {
  179. background-color: #FFFFFF;
  180. width: 100%;
  181. height: 50px;
  182. display: block;
  183. cursor: pointer;
  184. }
  185. videogular vg-volume {
  186. display: table-cell;
  187. width: 50px;
  188. vertical-align: middle;
  189. text-align: center;
  190. cursor: pointer;
  191. }
  192. videogular vg-volumebar {
  193. width: 50px;
  194. height: 100px;
  195. top: -100px;
  196. margin-left: -25px;
  197. vertical-align: middle;
  198. text-align: center;
  199. position: absolute;
  200. cursor: pointer;
  201. }
  202. /* IE10 hack */
  203. @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  204. videogular vg-volumebar {
  205. zoom: 1;
  206. filter: alpha(opacity=50);
  207. opacity: 0.5;
  208. }
  209. }
  210. videogular vg-fullscreenButton {
  211. display: table-cell;
  212. width: 50px;
  213. vertical-align: middle;
  214. text-align: center;
  215. cursor: pointer;
  216. }
  217. videogular vg-volumebar .verticalVolumeBar {
  218. width: 50px;
  219. height: 100px;
  220. background-color: #000000;
  221. position: absolute;
  222. }
  223. videogular vg-volumebar .volumeBackground {
  224. width: 20px;
  225. height: 70px;
  226. left: 15px;
  227. top: 15px;
  228. background-color: #222222;
  229. position: absolute;
  230. }
  231. videogular vg-volumebar .volumeValue {
  232. width: 20px;
  233. height: 100%;
  234. background-color: #FFFFFF;
  235. position: absolute;
  236. }
  237. videogular vg-volumebar .volumeClickArea {
  238. width: 20px;
  239. height: 100%;
  240. position: absolute;
  241. }
  242. videogular vg-controls .hide-animation {
  243. animation: hideControlsAnimationFrames ease-out 0.5s;
  244. animation-iteration-count: 1;
  245. animation-fill-mode: forwards; /*when the spec is finished*/
  246. -webkit-animation: hideControlsAnimationFrames ease-out 0.5s;
  247. -webkit-animation-iteration-count: 1;
  248. -webkit-animation-fill-mode: forwards; /*Chrome 16+, Safari 4+*/
  249. -moz-animation: hideControlsAnimationFrames ease-out 0.5s;
  250. -moz-animation-iteration-count: 1;
  251. -moz-animation-fill-mode: forwards; /*FF 5+*/
  252. -o-animation: hideControlsAnimationFrames ease-out 0.5s;
  253. -o-animation-iteration-count: 1;
  254. -o-animation-fill-mode: forwards; /*Not implemented yet*/
  255. -ms-animation: hideControlsAnimationFrames ease-out 0.5s;
  256. -ms-animation-iteration-count: 1;
  257. -ms-animation-fill-mode: forwards; /*IE 10+*/
  258. }
  259. @keyframes hideControlsAnimationFrames {
  260. 0% {
  261. opacity: 0.5;
  262. }
  263. 100% {
  264. opacity: 0;
  265. }
  266. }
  267. @-moz-keyframes hideControlsAnimationFrames {
  268. 0% {
  269. opacity: 0.5;
  270. }
  271. 100% {
  272. opacity: 0;
  273. }
  274. }
  275. @-webkit-keyframes hideControlsAnimationFrames {
  276. 0% {
  277. opacity: 0.5;
  278. }
  279. 100% {
  280. opacity: 0;
  281. }
  282. }
  283. @-o-keyframes hideControlsAnimationFrames {
  284. 0% {
  285. opacity: 0.5;
  286. }
  287. 100% {
  288. opacity: 0;
  289. }
  290. }
  291. @-ms-keyframes hideControlsAnimationFrames {
  292. 0% {
  293. opacity: 0.5;
  294. }
  295. 100% {
  296. opacity: 0;
  297. }
  298. }
  299. videogular vg-controls .show-animation {
  300. animation: showControlsAnimationFrames ease-out 0.5s;
  301. animation-iteration-count: 1;
  302. animation-fill-mode: forwards; /*when the spec is finished*/
  303. -webkit-animation: showControlsAnimationFrames ease-out 0.5s;
  304. -webkit-animation-iteration-count: 1;
  305. -webkit-animation-fill-mode: forwards; /*Chrome 16+, Safari 4+*/
  306. -moz-animation: showControlsAnimationFrames ease-out 0.5s;
  307. -moz-animation-iteration-count: 1;
  308. -moz-animation-fill-mode: forwards; /*FF 5+*/
  309. -o-animation: showControlsAnimationFrames ease-out 0.5s;
  310. -o-animation-iteration-count: 1;
  311. -o-animation-fill-mode: forwards; /*Not implemented yet*/
  312. -ms-animation: showControlsAnimationFrames ease-out 0.5s;
  313. -ms-animation-iteration-count: 1;
  314. -ms-animation-fill-mode: forwards; /*IE 10+*/
  315. }
  316. @keyframes showControlsAnimationFrames {
  317. 0% {
  318. opacity: 0;
  319. }
  320. 100% {
  321. opacity: 0.5;
  322. }
  323. }
  324. @-moz-keyframes showControlsAnimationFrames {
  325. 0% {
  326. opacity: 0;
  327. }
  328. 100% {
  329. opacity: 0.5;
  330. }
  331. }
  332. @-webkit-keyframes showControlsAnimationFrames {
  333. 0% {
  334. opacity: 0;
  335. }
  336. 100% {
  337. opacity: 0.5;
  338. }
  339. }
  340. @-o-keyframes showControlsAnimationFrames {
  341. 0% {
  342. opacity: 0;
  343. }
  344. 100% {
  345. opacity: 0.5;
  346. }
  347. }
  348. @-ms-keyframes showControlsAnimationFrames {
  349. 0% {
  350. opacity: 0;
  351. }
  352. 100% {
  353. opacity: 0.5;
  354. }
  355. }
  356. /* Controlbar icons */
  357. videogular vg-play-pause-button .play:before {
  358. content: "\e000";
  359. }
  360. videogular vg-play-pause-button .pause:before {
  361. content: "\e001";
  362. }
  363. videogular vg-mutebutton {
  364. width: 50px;
  365. display: block;
  366. }
  367. videogular vg-mutebutton .level3:before {
  368. content: "\e002";
  369. }
  370. videogular vg-mutebutton .level2:before {
  371. content: "\e003";
  372. }
  373. videogular vg-mutebutton .level1:before {
  374. content: "\e004";
  375. }
  376. videogular vg-mutebutton .level0:before {
  377. content: "\e005";
  378. }
  379. videogular vg-mutebutton .mute:before {
  380. content: "\e006";
  381. }
  382. videogular vg-fullscreenButton .enter:before {
  383. content: "\e007";
  384. }
  385. videogular vg-fullscreenButton .exit:before {
  386. content: "\e008";
  387. }
  388. /********************/
  389. /* Buffering plugin */
  390. /********************/
  391. videogular vg-buffering {
  392. width: 100%;
  393. height: 100%;
  394. position: absolute;
  395. z-index: 4;
  396. top: 0;
  397. }
  398. videogular vg-buffering .bufferingContainer {
  399. width: 100%;
  400. position: absolute;
  401. cursor: pointer;
  402. top: 50%;
  403. margin-top: -50px;
  404. zoom: 1;
  405. filter: alpha(opacity=60);
  406. opacity: 0.6;
  407. }
  408. /* Loading Spinner
  409. * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/
  410. */
  411. videogular vg-buffering .loadingSpinner {
  412. background-color: rgba(0, 0, 0, 0);
  413. border: 5px solid rgba(255, 255, 255, 1);
  414. opacity: .9;
  415. border-top: 5px solid rgba(0, 0, 0, 0);
  416. border-left: 5px solid rgba(0, 0, 0, 0);
  417. border-radius: 50px;
  418. box-shadow: 0 0 35px #FFFFFF;
  419. width: 50px;
  420. height: 50px;
  421. margin: 0 auto;
  422. -moz-animation: spin .5s infinite linear;
  423. -webkit-animation: spin .5s infinite linear;
  424. }
  425. videogular vg-buffering .loadingSpinner .stop {
  426. -webkit-animation-play-state: paused;
  427. -moz-animation-play-state: paused;
  428. }
  429. @-moz-keyframes spin {
  430. 0% {
  431. -moz-transform: rotate(0deg);
  432. }
  433. 100% {
  434. -moz-transform: rotate(360deg);
  435. }
  436. }
  437. @-moz-keyframes spinoff {
  438. 0% {
  439. -moz-transform: rotate(0deg);
  440. }
  441. 100% {
  442. -moz-transform: rotate(-360deg);
  443. }
  444. }
  445. @-webkit-keyframes spin {
  446. 0% {
  447. -webkit-transform: rotate(0deg);
  448. }
  449. 100% {
  450. -webkit-transform: rotate(360deg);
  451. }
  452. }
  453. @-webkit-keyframes spinoff {
  454. 0% {
  455. -webkit-transform: rotate(0deg);
  456. }
  457. 100% {
  458. -webkit-transform: rotate(-360deg);
  459. }
  460. }
  461. /**********************/
  462. /* IMA ads plugin */
  463. /**********************/
  464. videogular vg-ima-ads {
  465. width: 100%;
  466. height: 100%;
  467. position: absolute;
  468. z-index: 5;
  469. top: 0;
  470. display: none;
  471. }