zy.media.min.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. body {
  2. margin: 0
  3. }
  4. .zy_media {
  5. background: #000;
  6. position: relative
  7. }
  8. .zy_media video,.zy_media audio {
  9. width: 100%;
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. display: block
  14. }
  15. .zy_fullscreen {
  16. overflow: hidden
  17. }
  18. .zy_fullscreen .zy_media {
  19. position: fixed;
  20. left: 0;
  21. top: 0;
  22. right: 0;
  23. bottom: 0;
  24. z-index: 1000
  25. }
  26. .zy_fullscreen .zy_wrap,.zy_fullscreen video {
  27. width: 100%;
  28. height: 100%
  29. }
  30. .zy_wrap {
  31. width: 100%
  32. }
  33. .zy_title {
  34. height: 34px;
  35. padding-left: 10px;
  36. color: #fff;
  37. font-size: 12px;
  38. line-height: 34px;
  39. white-space: nowrap;
  40. text-overflow: ellipsis;
  41. overflow: hidden;
  42. background: rgba(0,0,0,.25);
  43. position: absolute;
  44. left: 0;
  45. right: 0;
  46. top:-35px;
  47. -webkit-transition: top .5s;
  48. transition: top .5s
  49. }
  50. .zy_media .dec_play,.zy_media .dec_loading,.zy_media .dec_error {
  51. margin: -32px 0 0 -31px;
  52. position: absolute;
  53. top: 50%;
  54. left: 50%
  55. }
  56. .zy_media .dec_play::before {
  57. width: 60px;
  58. height: 60px;
  59. content: '';
  60. border-radius: 60px;
  61. border: #e5e5e4 1px solid;
  62. display: block
  63. }
  64. .zy_media .dec_play::after {
  65. width: 0;
  66. height: 0;
  67. content: '';
  68. border-color: transparent transparent transparent #e5e5e4;
  69. border-width: 14px 20px;
  70. border-style: solid;
  71. position: absolute;
  72. top: 16px;
  73. left: 23px;
  74. z-index: 2;
  75. display: block
  76. }
  77. .zy_media .dec_loading {
  78. width: 62px;
  79. height: 62px;
  80. -webkit-animation: ani_loading .6s infinite linear;
  81. -webkit-animation-fill-mode: forwards;
  82. animation: ani_loading .6s infinite linear;
  83. animation-fill-mode: forwards
  84. }
  85. @-webkit-keyframes ani_loading {
  86. 100% {
  87. -webkit-transform: rotate(360deg)
  88. }
  89. }
  90. @keyframes ani_loading {
  91. 100% {
  92. transform: rotate(360deg)
  93. }
  94. }
  95. .zy_media .dec_loading::before {
  96. width: 7px;
  97. height: 7px;
  98. content: '';
  99. border-radius: 7px;
  100. background: #fff;
  101. opacity: .8;
  102. position: absolute;
  103. top: 25px
  104. }
  105. .zy_media .dec_loading::after {
  106. width: 48px;
  107. height: 48px;
  108. content: '';
  109. border-radius: 50px;
  110. border: 7px solid #fff;
  111. opacity: .2;
  112. display: block
  113. }
  114. .zy_media .dec_error {
  115. width: 62px;
  116. height: 62px;
  117. margin-top: -53px;
  118. margin-left: -25px;
  119. white-space: nowrap;
  120. color: #fff;
  121. font-size: 12px;
  122. text-align: center;
  123. position: absolute;
  124. top: 50%;
  125. left: 50%
  126. }
  127. .zy_controls {
  128. height: 44px;
  129. background: rgba(0,0,0,.55);
  130. position: absolute;
  131. left: 0;
  132. right: 0;
  133. bottom:-45px;
  134. -webkit-transition: bottom .5s;
  135. transition: bottom .5s;
  136. display: -webkit-box;
  137. display: box;
  138. display: -webkit-flex;
  139. display: flex
  140. }
  141. .zy_playpause_btn {
  142. width: 26px;
  143. height: 30px;
  144. margin-right:18px;
  145. padding: 13px 0 0 14px;
  146. position: relative
  147. }
  148. .zy_play::before {
  149. width: 0;
  150. height: 0;
  151. content: '';
  152. border-color: transparent transparent transparent #cbcbcb;
  153. border-width: 8px 12px;
  154. border-style: solid;
  155. display: block
  156. }
  157. .zy_pause::before,.zy_pause::after {
  158. width: 3px;
  159. height: 14px;
  160. content: '';
  161. background: #cbcbcb;
  162. position: absolute;
  163. top: 13px;
  164. left: 14px
  165. }
  166. .zy_pause::after {
  167. left: 22px
  168. }
  169. .zy_timeline {
  170. margin-right: 10px;
  171. -webkit-box-flex: 1;
  172. -webkit-flex: 1 1 auto;
  173. flex: 1 1 auto
  174. }
  175. .zy_timeline_slider {
  176. width: 100%;
  177. height: 1px;
  178. background: #999;
  179. position: relative;
  180. top: 21px;
  181. left: 0
  182. }
  183. .zy_timeline_buffering {
  184. width: 100%;
  185. height: 15px;
  186. top: -7px;
  187. background-image: -webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));
  188. background-image: -webkit-linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  189. background-image: linear-gradient(-45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  190. -webkit-background-size: 15px 15px;
  191. background-size: 15px 15px;
  192. -webkit-animation: ani_buffering 2s linear infinite;
  193. animation: ani_buffering 2s linear infinite;
  194. position: absolute
  195. }
  196. @-webkit-keyframes ani_buffering {
  197. from {
  198. background-position: 0 0
  199. }
  200. to {
  201. background-position: 30px 0
  202. }
  203. }
  204. @keyframes ani_buffering {
  205. from {
  206. background-position: 0 0
  207. }
  208. to {
  209. background-position: 30px 0
  210. }
  211. }
  212. .zy_timeline_loaded {
  213. width: 0;
  214. height: 1px;
  215. background: #e5e5e5;
  216. position: absolute;
  217. top: 0;
  218. left: 0;
  219. z-index: 1
  220. }
  221. .zy_timeline_current {
  222. width: 0;
  223. height: 1px;
  224. background: #FF3B23;
  225. position: relative;
  226. z-index: 2
  227. }
  228. .zy_timeline_handle {
  229. width: 8px;
  230. height: 8px;
  231. border-radius: 16px;
  232. background: #FF3B23;
  233. position: absolute;
  234. top: -4px;
  235. left: -4px;
  236. z-index: 3;
  237. box-shadow: 0px 0px 6px 3px #FF3B23;
  238. }
  239. .zy_time {
  240. width: auto;
  241. height: 44px;
  242. margin-right: 5px;
  243. line-height: 44px;
  244. font-size: 11px;
  245. color: #999;
  246. text-align: center
  247. }
  248. .zy_time .zy_currenttime {
  249. color: #e5e5e5
  250. }
  251. .zy_fullscreen_btn {
  252. width: 38px;
  253. height: 44px;
  254. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaBAMAAAEsY2FrAAAAElBMVEX///////////////////////+65XQCAAAABXRSTlMAHm1u3TG+li4AAAB5SURBVBgZBcGxbQNBEAQwPnCXC49TviU4UQnKx8ZP/62YVB58qQCIBwArGgAAwK4HkAUEgEXAEmBFG/AH+B0gN5BrQLwAAG4bXLOBewPXB/AGu6VtG4CeAUCdAaCcAVCcAQAAAAMAzrAD4IwdAM7PDgDOJwBt2wAA/9uDEjcL3fqtAAAAAElFTkSuQmCC);background-repeat: no-repeat;
  255. background-position: center;
  256. -webkit-background-size: 16px;
  257. background-size: 16px
  258. }
  259. .zy_unfullscreen {
  260. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaBAMAAAEsY2FrAAAAElBMVEX///////////////////////+65XQCAAAABXRSTlMAHm1u3TG+li4AAAB5SURBVBgZBcGxDcMwEAQwGtH1QuD0WiGAB8gI39z+q4SEhR8AwALAwmAwgCAIS4AV0BYg7UAWEIttwNeA1x7gO8BrQDsAAGlBDpA3kOuAeIO4eDYZAM+WAeDZGQA8nwFo2w4AAAAAANq2A9D7AKDuA0C5D4DiPgDAH9lBEChOLXSRAAAAAElFTkSuQmCC)
  261. }