index.module.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .audioWrap {
  2. width: 100%;
  3. height: 518px;
  4. background-color: #fff;
  5. }
  6. .audioContainer {
  7. position: relative;
  8. display: flex;
  9. align-items: center;
  10. justify-content: center;
  11. height: 100%;
  12. padding: 0 0 78px 0;
  13. &>div {
  14. flex: 1;
  15. }
  16. .audio {
  17. position: absolute;
  18. top: 0;
  19. opacity: 0;
  20. }
  21. .tempVudio {
  22. position: absolute;
  23. top: 0;
  24. right: 0;
  25. bottom: 80px;
  26. left: 0;
  27. padding: 0;
  28. }
  29. canvas {
  30. width: 100%;
  31. height: 100%;
  32. }
  33. }
  34. .controls {
  35. // border-radius: 0 0 16px 16px !important;
  36. position: absolute;
  37. bottom: 0;
  38. left: 0;
  39. right: 0;
  40. width: 100%;
  41. background: rgba(0, 0, 0, 0.6);
  42. backdrop-filter: blur(26px);
  43. height: 80px;
  44. padding: 0 24px 0 24px !important;
  45. transition: all 0.3s;
  46. display: flex;
  47. align-items: center;
  48. .time {
  49. display: flex;
  50. justify-content: space-between;
  51. color: #fff;
  52. padding: 4px 12px 4px 18px;
  53. font-size: 24px;
  54. font-weight: 600;
  55. line-height: 33px;
  56. min-width: 150px;
  57. .line {
  58. font-size: 12px;
  59. }
  60. :global {
  61. .plyr__time {
  62. font-size: max(22px, 12Px);
  63. }
  64. .plyr__time+.plyr__time:before {
  65. content: '';
  66. margin-right: 0;
  67. }
  68. }
  69. }
  70. }
  71. .actions {
  72. display: flex;
  73. justify-content: space-between;
  74. height: 100%;
  75. color: #fff;
  76. font-size: 12px;
  77. align-items: center;
  78. .actionWrap {
  79. display: flex;
  80. align-items: center;
  81. }
  82. .actionBtn {
  83. display: flex;
  84. width: 36px;
  85. height: 36px;
  86. padding: 0;
  87. background: transparent;
  88. cursor: pointer;
  89. &>img {
  90. width: 100%;
  91. height: 100%;
  92. }
  93. }
  94. .iconReplay {
  95. width: 36px;
  96. height: 36px;
  97. background-color: transparent;
  98. cursor: pointer;
  99. margin-left: 12px;
  100. margin-right: 12px;
  101. &>img {
  102. width: 100%;
  103. height: 100%;
  104. }
  105. }
  106. .actionBtn,
  107. .actionBtnSpeed,
  108. .iconReplay {
  109. width: 48px;
  110. height: 48px;
  111. flex-shrink: 0;
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. border-radius: 6px;
  116. &>img {
  117. width: 36px;
  118. height: 36px;
  119. }
  120. &:hover {
  121. transition: background .1s ease;
  122. background-color: rgba(255, 255, 255, 0.15);
  123. }
  124. }
  125. .iconDownload {
  126. width: 48px;
  127. height: 48px;
  128. margin-left: 14px;
  129. border-radius: 6px;
  130. background-color: transparent;
  131. cursor: pointer;
  132. transition: background .1s ease;
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. &>img {
  137. width: 36px;
  138. height: 36px;
  139. }
  140. &:hover {
  141. transition: background .1s ease;
  142. background-color: rgba(255, 255, 255, 0.15);
  143. }
  144. }
  145. }
  146. .slider {
  147. width: 100%;
  148. padding: 0 8px 0 12px;
  149. :global {
  150. .n-slider .n-slider-rail .n-slider-rail__fill,
  151. .n-slider .n-slider-handles .n-slider-handle-wrapper {
  152. transition: all .2s;
  153. }
  154. }
  155. }
  156. .sectionAnimate {
  157. // opacity: 0;
  158. pointer-events: none;
  159. margin-bottom: -80px;
  160. // transform: translateY(100%);
  161. transition: all .3s;
  162. }