index.module.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. .audioPlayer {
  2. background-color: #fff;
  3. }
  4. .playerHeader {
  5. display: flex;
  6. align-items: center;
  7. justify-content: space-between;
  8. padding: 10px 15px 0;
  9. .musicInfo {
  10. display: flex;
  11. align-items: center;
  12. .cover {
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. width: 42px;
  17. height: 42px;
  18. background: #3D465A;
  19. box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.09);
  20. border-radius: 50%;
  21. transition: opacity .3s;
  22. animation: rotateImg 6s linear infinite;
  23. &.imgRotate {
  24. animation-play-state: paused;
  25. }
  26. }
  27. .musicBg {
  28. width: 28px;
  29. height: 28px;
  30. border-radius: 50%;
  31. overflow: hidden;
  32. }
  33. .musicName {
  34. padding-left: 10px;
  35. font-size: 16px;
  36. font-weight: 500;
  37. color: #131415;
  38. line-height: 22px;
  39. text-shadow: 0px 2px 13px rgba(0, 0, 0, 0.09);
  40. max-width: 140px;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. white-space: nowrap;
  44. }
  45. }
  46. .controls {
  47. .icon {
  48. font-size: 18px;
  49. margin: 0 11px;
  50. }
  51. .iconMenu {
  52. font-size: 20px;
  53. }
  54. }
  55. }
  56. .playerFooter {
  57. --van-slider-bar-height: 4px;
  58. --van-slider-active-background: #C8E7FF;
  59. --van-slider-inactive-background: rgba(0, 0, 0, 0.09);
  60. --van-slider-button-width: 10px;
  61. --van-slider-button-height: 10px;
  62. --van-slider-button-background: #269EFE;
  63. --van-slider-button-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.09);
  64. padding: 14px 15px calc(14px + env(safe-area-inset-bottom));
  65. display: flex;
  66. align-items: center;
  67. :global {
  68. .van-slider__button-wrapper--right {
  69. border: 4px solid rgba(38, 158, 254, 0.19);
  70. border-radius: 50%;
  71. }
  72. .van-slider__button {
  73. // border: 4px solid rgba(38, 158, 254, 0.19);
  74. }
  75. }
  76. .playerTimer {
  77. margin-left: 15px;
  78. flex-shrink: 0;
  79. font-size: 12px;
  80. font-weight: 500;
  81. color: #AAAAAA;
  82. line-height: 17px;
  83. text-shadow: 0px 2px 13px rgba(0, 0, 0, 0.09);
  84. }
  85. }
  86. .songPopup {
  87. border-radius: 12px 12px 0px 0px;
  88. background: #F8F9FC;
  89. }
  90. .songContainer {
  91. background: #FFFFFF;
  92. border-radius: 16px;
  93. min-height: 408px;
  94. max-height: 408px;
  95. overflow-x: hidden;
  96. overflow-y: auto;
  97. margin: 14px 12px calc(14px + env(safe-area-inset-bottom));
  98. .songTitle {
  99. position: sticky;
  100. top: 0;
  101. z-index: 10;
  102. background-color: #fff;
  103. display: flex;
  104. align-items: center;
  105. font-size: 17px;
  106. font-weight: 600;
  107. color: #333333;
  108. line-height: 24px;
  109. padding: 12px 14px;
  110. &::before {
  111. content: '';
  112. width: 4px;
  113. height: 14px;
  114. border-radius: 2px;
  115. background: linear-gradient(to bottom, #259CFE, #47CEFF);
  116. margin-right: 6px;
  117. }
  118. }
  119. .songCellGroup {}
  120. .songCell {
  121. margin: 25px 7px;
  122. padding: 10px 7px;
  123. border-radius: 12px;
  124. width: auto;
  125. &.active {
  126. background: #F1F5FD;
  127. .songName {
  128. color: #1CACF1
  129. }
  130. }
  131. &:first-child {
  132. margin-top: 0;
  133. }
  134. :global {
  135. .van-cell__value {
  136. display: flex;
  137. align-items: center;
  138. justify-content: flex-end;
  139. }
  140. }
  141. .songImg {
  142. width: 28px;
  143. height: 27px;
  144. border-radius: 10px;
  145. overflow: hidden;
  146. margin-right: 10px;
  147. flex-shrink: 0;
  148. }
  149. .songName {
  150. max-width: 180px;
  151. overflow: hidden;
  152. text-overflow: ellipsis;
  153. white-space: nowrap;
  154. font-size: 16px;
  155. font-weight: 500;
  156. color: #131415;
  157. line-height: 22px;
  158. }
  159. .iconSong {
  160. font-size: 20px;
  161. }
  162. }
  163. }
  164. @keyframes rotateImg {
  165. 100% {
  166. transform: rotate(360deg);
  167. }
  168. }