video.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. /* @import url(//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css); */
  2. @import url(http://weloveiconfonts.com/api/?family=iconicfill);
  3. [class*="iconicfill-"]:before {
  4. font-family: 'IconicFill', sans-serif;
  5. }
  6. /*********************
  7. * Wrapper
  8. *********************/
  9. .js-video {
  10. position: relative;
  11. margin: 0 auto;
  12. border-radius: 8px;
  13. height: 100%;
  14. }
  15. /*********************
  16. * Elements inside js-video
  17. *********************/
  18. .video-index video {
  19. width: 100%;
  20. height: 90%;
  21. background-size: cover;
  22. background-position: center center;
  23. }
  24. .js-video button {
  25. -moz-appearance: none;
  26. -webkit-appearance: none;
  27. }
  28. /*********************
  29. * UI
  30. *********************/
  31. .playPause.ui-icon {
  32. position: absolute;
  33. top: 0px;
  34. left: 0px;
  35. right: 0;
  36. display: flex;
  37. width: 100%;
  38. justify-content: center;
  39. align-items: center;
  40. height: 90%;
  41. z-index: 100;
  42. }
  43. /*.playPause.ui-icon:after {
  44. content: '';
  45. width: 120px;
  46. height: 120px;
  47. background: rgba(0, 0, 0, 0.8);
  48. border-radius: 10px;
  49. }*/
  50. /*.playPause.ui-icon:before {
  51. font-size: 50px;
  52. color: rgba(255, 255, 255, 0.9);
  53. z-index: 2;
  54. position: relative;
  55. left: 81px;
  56. }*/
  57. /*.playPause.ui-icon.fa-pause:before, .playPause.ui-icon.fa-undo:before {
  58. margin-left: -17px;
  59. }*/
  60. .playPause.ui-icon.fa-pause {
  61. opacity: 0;
  62. }
  63. .video-index {
  64. height: 100%;
  65. }
  66. .ui {
  67. color: #fff;
  68. padding: 10px 1vw;
  69. font-size: 0;
  70. display: -webkit-flex;
  71. display: flex;
  72. }
  73. .ui > div:nth-of-type(2), .ui > div:nth-of-type(4) {
  74. padding-top: 8px;
  75. }
  76. .ui > div:nth-of-type(2) {
  77. -webkit-flex: 30 30 1px;
  78. flex: 30 30 1px;
  79. margin-right: 10px;
  80. }
  81. .ui > div:nth-of-type(1) {
  82. -webkit-flex: 1 0 60px;
  83. flex: 1 0 60px;
  84. font-size: 12px;
  85. margin-right: 10px;
  86. text-align: center;
  87. line-height: 20px;
  88. }
  89. .ui > div:nth-of-type(3) {
  90. -webkit-flex: 0 0 20px;
  91. flex: 0 0 20px;
  92. margin-right: 10px;
  93. }
  94. .ui > div:nth-of-type(4) {
  95. display: none;
  96. -webkit-flex: 0 0 60px;
  97. flex: 0 0 60px;
  98. }
  99. .timeDisplay {
  100. white-space: nowrap;
  101. }
  102. .timeDisplay i {
  103. font-style: normal;
  104. }
  105. .fullscreen {
  106. position: absolute;
  107. font-style: normal;
  108. left: 20px;
  109. bottom: 66px;
  110. display: none;
  111. width: 40px;
  112. height: 40px;
  113. text-align: center;
  114. cursor: pointer;
  115. -moz-transition: color 0.3s;
  116. -o-transition: color 0.3s;
  117. -webkit-transition: color 0.3s;
  118. transition: color 0.3s;
  119. }
  120. .fullscreen:before {
  121. font-size: 30px;
  122. line-height: 40px;
  123. color: rgba(0, 0, 0, 0.6);
  124. }
  125. .fullscreen:hover:before {
  126. color: rgba(0, 0, 0, 0.8);
  127. }
  128. .ui-icon {
  129. font-size: 20px;
  130. vertical-align: middle;
  131. width: 20px;
  132. cursor: pointer;
  133. }
  134. /*********************
  135. * Progress
  136. *********************/
  137. .progress, .volumeControl {
  138. background: rgb(255, 255, 255);
  139. width: 100%;
  140. position: relative;
  141. height: 5px;
  142. cursor: pointer;
  143. overflow: hidden;
  144. border-radius: 2px;
  145. border: 0;
  146. }
  147. .progress > * {
  148. position: absolute;
  149. top: 0;
  150. left: 0;
  151. height: 100%;
  152. }
  153. .progress-time {
  154. background-color: #19bbed;
  155. }
  156. .anim {
  157. -moz-transition: width 1000ms linear;
  158. -o-transition: width 1000ms linear;
  159. -webkit-transition: width 1000ms linear;
  160. transition: width 1000ms linear;
  161. }
  162. .progress-buffer {
  163. background-color: #cccccc;
  164. -moz-transition: width 250ms linear;
  165. -o-transition: width 250ms linear;
  166. -webkit-transition: width 250ms linear;
  167. transition: width 250ms linear;
  168. }
  169. .volumeControl {
  170. width: 90%;
  171. overflow: visible;
  172. position: relative;
  173. background: rgba(0, 0, 0, 0.3);
  174. }
  175. .volumeControl .ui-slider-handle {
  176. position: absolute;
  177. width: 9px;
  178. height: 9px;
  179. border: 0;
  180. top: -2px;
  181. background: transparent;
  182. }
  183. .volumeControl .ui-slider-handle:after {
  184. content: '';
  185. position: absolute;
  186. width: 100%;
  187. height: 100%;
  188. left: -50%;
  189. background: black;
  190. border-radius: 4px;
  191. }
  192. .volumeControl .ui-slider-handle:focus {
  193. outline: none;
  194. }
  195. .ui-icon-before {
  196. display: flex;
  197. justify-content: center;
  198. align-items: center;
  199. width: 120px;
  200. height: 120px;
  201. background: rgba(0, 0, 0, 0.8);
  202. border-radius: 50%;
  203. }
  204. .ui-icon-before:before {
  205. content: "\f04b";
  206. font-size: 50px;
  207. color: rgba(255, 255, 255, 0.8);
  208. z-index: 2;
  209. font-size: 60px;
  210. position: relative;
  211. left: 5px;
  212. }
  213. .fa-play:before {
  214. content: "";
  215. }
  216. @media screen and (max-width: 1000px) {
  217. .ui-icon-before {
  218. width: 60px;
  219. height: 60px;
  220. }
  221. .ui-icon-before:before {
  222. font-size: 35px;
  223. left: 3px;
  224. }
  225. .ui {
  226. padding: 2px 1vw;
  227. }
  228. }