index.module.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. .plyr__control.plyr__control--overlaid{
  31. width: 48px;
  32. height: 48px;
  33. background: url("../images/midPlay.png") no-repeat;
  34. background-size: 100% 100%;
  35. .plyr__sr-only, svg{
  36. display: none;
  37. }
  38. }
  39. .plyr__controls{
  40. background: initial;
  41. padding: 0 20px 13px;
  42. .plyr__controls__item.plyr__control{
  43. padding: 0;
  44. width: 18px;
  45. height: 18px;
  46. &:hover{
  47. background: initial;
  48. }
  49. .icon--pressed{
  50. width: 100%;
  51. height: 100%;
  52. background: url("../images/pause1.png") no-repeat;
  53. background-size: 100% 100%;
  54. use{
  55. display: none;
  56. }
  57. }
  58. .icon--not-pressed{
  59. width: 100%;
  60. height: 100%;
  61. background: url("../images/play1.png") no-repeat;
  62. background-size: 100% 100%;
  63. use{
  64. display: none;
  65. }
  66. }
  67. }
  68. .plyr__controls__item.plyr__progress__container{
  69. margin-left: 9px;
  70. input[type=range]{
  71. color: #73C1FF;
  72. height: 20px;
  73. }
  74. input[type="range"]::-webkit-slider-runnable-track {
  75. height: 4px;
  76. }
  77. input[type="range"]::-webkit-slider-thumb {
  78. width: 12px;
  79. height: 12px;
  80. margin-top: -4px;
  81. }
  82. .plyr__progress__buffer{
  83. height: 4px;
  84. color: rgba(115,193,255,0.8);
  85. background-color: #fff;
  86. margin-top: -2px;
  87. }
  88. }
  89. .plyr__controls__item.plyr__time{
  90. font-weight: 500;
  91. font-size: 14px;
  92. color: #FFFFFF;
  93. display: initial;
  94. &.plyr__time--current{
  95. margin-left: 9px;
  96. }
  97. }
  98. }
  99. .plyr__tooltip{
  100. display: none;
  101. }
  102. }
  103. }
  104. .videoBox{
  105. width: 100%;
  106. height: 100%;
  107. }
  108. .audioBox{
  109. width: 100%;
  110. height: 100%;
  111. background: url("../images/audioBg.png") no-repeat;
  112. background-size: 100% 100%;
  113. position: relative;
  114. .audioBga{
  115. width: 100%;
  116. height: 100%;
  117. overflow: hidden;
  118. }
  119. :global {
  120. .plyr {
  121. position: absolute;
  122. height: initial;
  123. left: 0;
  124. bottom: 0;
  125. }
  126. }
  127. .audioVisualizer{
  128. position: absolute;
  129. top: 50%;
  130. left: 50%;
  131. transform: translate(-50%,-50%);
  132. width: 370px;
  133. height: 66px;
  134. }
  135. }
  136. .backBox{
  137. position: absolute;
  138. left: 30px;
  139. top: 20px;
  140. display: flex;
  141. z-index: 10;
  142. .backImg{
  143. width: 32px;
  144. height: 32px;
  145. }
  146. .musicDetail{
  147. margin-left: 10px;
  148. .musicSheetName{
  149. margin-top: 4px;
  150. font-weight: 600;
  151. font-size: 18px;
  152. color: #FFFFFF;
  153. line-height: 20px;
  154. }
  155. .username{
  156. margin-top: 2px;
  157. font-weight: 400;
  158. font-size: 12px;
  159. color: rgba(255, 255, 255, 0.7);
  160. line-height: 18px
  161. }
  162. }
  163. }
  164. }