index.module.less 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. .playCreation{
  2. width: 100vw;
  3. height: 100vh;
  4. position: relative;
  5. &.landscapeScreen{
  6. width: 100vh;
  7. height: 100vw;
  8. position: absolute;
  9. top: 50%;
  10. left: 50%;
  11. transform: translate(-50%, -50%) rotate(90deg);
  12. transform-origin: center;
  13. :global{
  14. .plyr .plyr__controls__item.plyr__progress__container input{
  15. pointer-events: none;
  16. }
  17. }
  18. }
  19. &.notLoaded{
  20. :global{
  21. .plyr .plyr__controls {
  22. display: none;
  23. }
  24. }
  25. }
  26. :global {
  27. .plyr {
  28. width: 100%;
  29. height: 100%;
  30. z-index: initial;
  31. .plyr__controls{
  32. background: initial;
  33. padding: 0 20px 20px;
  34. opacity: 1 !important;
  35. transform: translateY(0) !important;
  36. pointer-events: initial !important;
  37. .plyr__controls__item.plyr__control{
  38. padding: 0;
  39. width: 18px;
  40. height: 18px;
  41. &:hover{
  42. background: initial;
  43. }
  44. .icon--pressed{
  45. width: 100%;
  46. height: 100%;
  47. background: url("../images/pause1.png") no-repeat;
  48. background-size: 100% 100%;
  49. use{
  50. display: none;
  51. }
  52. }
  53. .icon--not-pressed{
  54. width: 100%;
  55. height: 100%;
  56. background: url("../images/play1.png") no-repeat;
  57. background-size: 100% 100%;
  58. use{
  59. display: none;
  60. }
  61. }
  62. }
  63. .plyr__controls__item.plyr__progress__container{
  64. margin-left: 9px;
  65. input[type=range]{
  66. color: #73C1FF;
  67. height: 20px;
  68. }
  69. input[type="range"]::-webkit-slider-runnable-track {
  70. height: 4px;
  71. }
  72. input[type="range"]::-webkit-slider-thumb {
  73. width: 12px;
  74. height: 12px;
  75. margin-top: -4px;
  76. box-shadow: initial;
  77. }
  78. .plyr__progress__buffer{
  79. height: 4px;
  80. color: rgba(115,193,255,0.8);
  81. background-color: #fff;
  82. margin-top: -2px;
  83. }
  84. }
  85. .plyr__controls__item.plyr__time{
  86. font-weight: 500;
  87. font-size: 14px;
  88. color: #FFFFFF;
  89. display: initial;
  90. &.plyr__time--current{
  91. margin-left: 9px;
  92. }
  93. }
  94. }
  95. .plyr__tooltip{
  96. display: none;
  97. }
  98. }
  99. }
  100. .videoBox{
  101. width: 100%;
  102. height: 100%;
  103. }
  104. .audioBox{
  105. width: 100%;
  106. height: 100%;
  107. background: url("../images/audioBg.png") no-repeat;
  108. background-size: 100% 100%;
  109. position: relative;
  110. .audioBga {
  111. position: absolute;
  112. left: 0;
  113. top: 0;
  114. width: 100%;
  115. height: 82%;
  116. }
  117. .audioBga1 {
  118. position: absolute;
  119. left: 0;
  120. top: 60px;
  121. width: 146px;
  122. }
  123. .audioBga2 {
  124. width: 268px;
  125. position: absolute;
  126. right: -24px;
  127. top: 0;
  128. }
  129. :global {
  130. .plyr {
  131. position: absolute;
  132. height: initial;
  133. left: 0;
  134. bottom: 0;
  135. z-index: 2;
  136. }
  137. }
  138. .audioVisualizer{
  139. position: absolute;
  140. top: 50%;
  141. left: 50%;
  142. transform: translate(-50%,-50%);
  143. width: 370px;
  144. height: 66px;
  145. }
  146. }
  147. .playLarge{
  148. position: absolute;
  149. left: 50%;
  150. top: 50%;
  151. transform: translate(-50%, -50%);
  152. width: 48px;
  153. height: 48px;
  154. background: url("../images/midPlay.png") no-repeat;
  155. background-size: 100% 100%;
  156. z-index: 12;
  157. display: none;
  158. &.playIngShow{
  159. display: initial;
  160. }
  161. }
  162. .backBox{
  163. position: absolute;
  164. left: 30px;
  165. top: 20px;
  166. display: flex;
  167. z-index: 10;
  168. .backImg{
  169. width: 32px;
  170. height: 32px;
  171. }
  172. .musicDetail{
  173. margin-left: 10px;
  174. .musicSheetName{
  175. margin-top: 4px;
  176. font-weight: 600;
  177. font-size: 18px;
  178. color: #FFFFFF;
  179. line-height: 20px;
  180. }
  181. .username{
  182. margin-top: 2px;
  183. font-weight: 400;
  184. font-size: 12px;
  185. color: rgba(255, 255, 255, 0.7);
  186. line-height: 18px
  187. }
  188. }
  189. }
  190. .staffBox{
  191. width: 100%;
  192. height: calc(var(--staffBoxHeight) + 44px);
  193. position: absolute;
  194. bottom: 0;
  195. padding-bottom: 44px;
  196. visibility: hidden;
  197. background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  198. z-index: 1;
  199. &.staffBoxShow{
  200. visibility: initial;
  201. }
  202. .staff{
  203. width: 100%;
  204. height: 100%;
  205. padding-left: 10px;
  206. }
  207. .mask{
  208. position: absolute;
  209. z-index: 6;
  210. width: 100%;
  211. height: 100%;
  212. }
  213. }
  214. }