video.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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{ height: 100%;}
  64. .ui {
  65. color: #fff;
  66. padding: 10px 1vw;
  67. font-size: 0;
  68. display: -webkit-flex;
  69. display: flex;
  70. }
  71. .ui > div:nth-of-type(2), .ui > div:nth-of-type(4) {
  72. padding-top: 8px;
  73. }
  74. .ui > div:nth-of-type(2) {
  75. -webkit-flex: 30 30 1px;
  76. flex: 30 30 1px;
  77. margin-right: 10px;
  78. }
  79. .ui > div:nth-of-type(1) {
  80. -webkit-flex: 1 0 60px;
  81. flex: 1 0 60px;
  82. font-size: 12px;
  83. margin-right: 10px;
  84. text-align: center;
  85. line-height: 20px;
  86. }
  87. .ui > div:nth-of-type(3) {
  88. -webkit-flex: 0 0 20px;
  89. flex: 0 0 20px;
  90. margin-right: 10px;
  91. }
  92. .ui > div:nth-of-type(4) {
  93. display: none;
  94. -webkit-flex: 0 0 60px;
  95. flex: 0 0 60px;
  96. }
  97. .timeDisplay {
  98. white-space: nowrap;
  99. }
  100. .timeDisplay i {
  101. font-style: normal;
  102. }
  103. .fullscreen {
  104. position: absolute;
  105. font-style: normal;
  106. left: 20px;
  107. bottom: 66px;
  108. display: none;
  109. width: 40px;
  110. height: 40px;
  111. text-align: center;
  112. cursor: pointer;
  113. -moz-transition: color 0.3s;
  114. -o-transition: color 0.3s;
  115. -webkit-transition: color 0.3s;
  116. transition: color 0.3s;
  117. }
  118. .fullscreen:before {
  119. font-size: 30px;
  120. line-height: 40px;
  121. color: rgba(0, 0, 0, 0.6);
  122. }
  123. .fullscreen:hover:before {
  124. color: rgba(0,0,0, 0.8);
  125. }
  126. .ui-icon {
  127. font-size: 20px;
  128. vertical-align: middle;
  129. width: 20px;
  130. cursor: pointer;
  131. }
  132. /*********************
  133. * Progress
  134. *********************/
  135. .progress, .volumeControl {
  136. background: rgb(255, 255, 255);
  137. width: 100%;
  138. position: relative;
  139. height: 5px;
  140. cursor: pointer;
  141. overflow: hidden;
  142. border-radius: 2px;
  143. border: 0;
  144. }
  145. .progress > * {
  146. position: absolute;
  147. top: 0;
  148. left: 0;
  149. height: 100%;
  150. }
  151. .progress-time {
  152. background-color: #19bbed;
  153. }
  154. .anim {
  155. -moz-transition: width 1000ms linear;
  156. -o-transition: width 1000ms linear;
  157. -webkit-transition: width 1000ms linear;
  158. transition: width 1000ms linear;
  159. }
  160. .progress-buffer {
  161. background-color:#cccccc;
  162. -moz-transition: width 250ms linear;
  163. -o-transition: width 250ms linear;
  164. -webkit-transition: width 250ms linear;
  165. transition: width 250ms linear;
  166. }
  167. .volumeControl {
  168. width: 90%;
  169. overflow: visible;
  170. position: relative;
  171. background: rgba(0, 0, 0, 0.3);
  172. }
  173. .volumeControl .ui-slider-handle {
  174. position: absolute;
  175. width: 9px;
  176. height: 9px;
  177. border: 0;
  178. top: -2px;
  179. background: transparent;
  180. }
  181. .volumeControl .ui-slider-handle:after {
  182. content: '';
  183. position: absolute;
  184. width: 100%;
  185. height: 100%;
  186. left: -50%;
  187. background: black;
  188. border-radius: 4px;
  189. }
  190. .volumeControl .ui-slider-handle:focus {
  191. outline: none;
  192. }
  193. .ui-icon-before{display: flex;justify-content: center;align-items: center;width: 120px;height: 120px;background:rgba(0, 0, 0, 0.8);border-radius:50%;}
  194. .ui-icon-before:before{
  195. content:"\f04b";
  196. font-size: 50px;
  197. color: rgba(255, 255, 255, 0.8);
  198. z-index: 2;
  199. font-size: 60px;
  200. position: relative;
  201. left: 5px;
  202. }
  203. .fa-play:before{ content:""; }
  204. @media screen and (max-width: 600px){
  205. .ui-icon-before{width: 60px;height: 60px;}
  206. .ui-icon-before:before{
  207. font-size: 35px;
  208. left: 3px;
  209. }
  210. .ui{padding: 2px 1vw;}
  211. }