alivideo.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /**
  2. * @fileoverview 默认皮肤的样式
  3. * @author 首作<aloysious.ld@taobao.com>
  4. * @date 2015-01-12
  5. *
  6. * 约定:
  7. * 1. 这个文件只定义所有ui组件的尺寸、在prite图中的位置(background、width、height);
  8. * 2. 与layout相关的属性(position、margin等)不在此定义,而交由js的layout模块完成;
  9. * 3. 对于复杂的ui组件,其内层的所有样式都可以在这个文件定制(如进度条、音量控制条);
  10. * 4. 在首次迭代中,这个文件开发者会手动编辑,以后与sprite图相关的属性应由代码自动化生成。
  11. */
  12. .prism-player .prism-big-play-btn {
  13. width: 90px;
  14. height: 90px;
  15. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -2px -2px;
  16. }
  17. .prism-player .prism-play-btn {
  18. width: 27px;
  19. height: 30px;
  20. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -2px -250px;
  21. }
  22. .prism-player .prism-live-display {
  23. width: 56px;
  24. height: 19px;
  25. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -186px -2px;
  26. }
  27. .prism-player .prism-play-btn.playing {
  28. width: 27px;
  29. height: 30px;
  30. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -208px -269px;
  31. }
  32. .prism-player .prism-fullscreen-btn {
  33. width: 30px;
  34. height: 30px;
  35. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -124px -190px;
  36. }
  37. .prism-player .prism-fullscreen-btn.fullscreen {
  38. width: 30px;
  39. height: 30px;
  40. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -161px -183px;
  41. }
  42. .prism-player .prism-volume {
  43. width: 33px;
  44. height: 30px;
  45. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -199px -119px;
  46. }
  47. .prism-player .prism-volume.mute {
  48. width: 33px;
  49. height: 30px;
  50. background: url("//gw.alicdn.com/tps/TB1YuE3KFXXXXaAXFXXXXXXXXXX-256-512.png") no-repeat -164px -151px;
  51. }
  52. .prism-player {
  53. background-color: #000;
  54. position: relative;
  55. /* bigPlayButton */
  56. /* controlBar */
  57. /* playButton */
  58. /* liveDisplay */
  59. /* timeDisplay */
  60. /* fullscreenButton */
  61. /* volume */
  62. /* progress */
  63. }
  64. .prism-player .prism-cover {
  65. width: 100%;
  66. height: 100%;
  67. background-color: #000;
  68. background-repeat: no-repeat;
  69. background-position: center;
  70. background-size: contain;
  71. position: absolute;
  72. top: 0;
  73. left: 0;
  74. }
  75. .prism-player .prism-controlbar {
  76. width: 100%;
  77. height: 61px;
  78. position: relative;
  79. z-index: 1;
  80. }
  81. .prism-player .prism-controlbar .prism-controlbar-bg {
  82. background-color: #262626;
  83. width: 100%;
  84. height: 50px;
  85. position: absolute;
  86. bottom: 0;
  87. left: 0;
  88. z-index: -1;
  89. }
  90. .prism-player .prism-time-display {
  91. height: 33px;
  92. line-height: 33px;
  93. color: #666666;
  94. }
  95. .prism-player .prism-time-display .current-time {
  96. color: #fff;
  97. }
  98. .prism-player .prism-progress {
  99. width: 100%;
  100. height: 6px;
  101. margin-top: 5px;
  102. background-color: #363636;
  103. position: relative;
  104. }
  105. .prism-player .prism-progress .prism-progress-loaded {
  106. position: absolute;
  107. top: 0;
  108. left: 0;
  109. width: 0;
  110. height: 100%;
  111. background-color: #7e2c1f;
  112. }
  113. .prism-player .prism-progress .prism-progress-played {
  114. position: absolute;
  115. top: 0;
  116. left: 0;
  117. width: 0;
  118. height: 100%;
  119. background-color: #ee2a10;
  120. }
  121. .prism-player .prism-progress .prism-progress-cursor {
  122. position: absolute;
  123. width: 8px;
  124. height: 8px;
  125. top: -5px;
  126. left: 0;
  127. margin-left: -8px;
  128. background-color: #5b5b5b;
  129. border: 4px solid #fff;
  130. border-radius: 8px;
  131. -webkit-box-shadow: 0 0 5px #000;
  132. box-shadow: 0 0 5px #000;
  133. overflow: hidden;
  134. -webkit-box-sizing: content-box;
  135. -moz-box-sizing: content-box;
  136. box-sizing: content-box;
  137. }
  138. :-webkit-full-screen {
  139. width: 100%!important;
  140. height: 100%!important;
  141. }
  142. :-moz-full-screen {
  143. width: 100%!important;
  144. height: 100%!important;
  145. }
  146. :-ms-full-screen {
  147. width: 100%!important;
  148. height: 100%!important;
  149. }
  150. :-ms-fullscreen {
  151. width: 100%!important;
  152. height: 100%!important;
  153. }
  154. :fullscreen {
  155. width: 100%!important;
  156. height: 100%!important;
  157. }
  158. body.prism-full-window {
  159. padding: 0;
  160. margin: 0;
  161. height: 100%;
  162. overflow-y: auto;
  163. }
  164. .prism-fullscreen {
  165. position: fixed;
  166. overflow: hidden;
  167. z-index: 99999;
  168. left: 0;
  169. top: 0;
  170. bottom: 0;
  171. right: 0;
  172. width: 100% !important;
  173. height: 100% !important;
  174. _position: absolute;
  175. }