index.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. @mixin textoverflow() {
  2. display: -webkit-box;
  3. overflow: hidden;
  4. text-overflow: ellipsis;
  5. -webkit-box-orient: vertical;
  6. -webkit-line-clamp: 1;
  7. }
  8. @keyframes rowup {
  9. 0% {
  10. -webkit-transform: translate(-50%, -50%) rotate(0deg);
  11. transform-origin: center center;
  12. }
  13. 100% {
  14. -webkit-transform: translate(-50%, -50%) rotate(360deg);
  15. transform-origin: center center;
  16. }
  17. }
  18. .imt-audio {
  19. background: #f7f7f7;
  20. width: 100%;
  21. padding: 20px 20px 20px 10px;
  22. position: relative;
  23. overflow: hidden;
  24. box-sizing: border-box;
  25. color: #666666;
  26. border-radius: 8rpx;
  27. .audio-top {
  28. display: flex;
  29. justify-content: space-between;
  30. box-sizing: border-box;
  31. width: 100%;
  32. .audio-left {
  33. width: 140rpx;
  34. position: relative;
  35. .cover {
  36. width: 120rpx;
  37. height: 120rpx;
  38. /* box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); */
  39. position: absolute;
  40. top: calc(50%);
  41. left: calc(50%);
  42. transform: translate(-50%, -50%);
  43. animation-fill-mode: forwards;
  44. -webkit-animation-fill-mode: forwards;
  45. }
  46. }
  47. .audio-right {
  48. padding-left: 20rpx;
  49. box-sizing: border-box;
  50. }
  51. }
  52. .audio-right {
  53. padding-left: 20rpx;
  54. width: calc(100% - 140rpx);
  55. }
  56. .audio-wrapper {
  57. display: flex;
  58. flex-direction: column;
  59. flex: 1;
  60. .titlebox {
  61. display: flex;
  62. margin-bottom: 10rpx;
  63. .title {
  64. font-size: 30rpx;
  65. max-width: 60%;
  66. @include textoverflow;
  67. color: #333;
  68. }
  69. .singer {
  70. margin-left: 20rpx;
  71. font-size: 28rpx;
  72. max-width: 50%;
  73. @include textoverflow;
  74. }
  75. }
  76. }
  77. .slidebox {
  78. display: flex;
  79. justify-content: space-between;
  80. width: 100%;
  81. font-size: 20rpx;
  82. color: #787878;
  83. margin-top: 6rpx;
  84. }
  85. /deep/ .uni-slider-tap-area {
  86. padding: 0;
  87. }
  88. /deep/ .uni-slider-wrapper {
  89. min-height: 0;
  90. }
  91. /deep/ .uni-slider-handle-wrapper {
  92. height: 6px;
  93. }
  94. .audio-slider {
  95. width: 100%;
  96. margin: 0;
  97. }
  98. .play {
  99. width: 80rpx;
  100. height: 80rpx;
  101. z-index: 99;
  102. background: rgba(0, 0, 0, 0.4);
  103. border-radius: 50%;
  104. position: absolute;
  105. top: 50%;
  106. left: 50%;
  107. transform: translate(-50%, -50%);
  108. &.loading {
  109. width: 60rpx;
  110. height: 60rpx;
  111. animation: rotating_theme3 2s linear infinite;
  112. }
  113. }
  114. }
  115. @keyframes rotating {
  116. 0% {
  117. transform: rotateZ(0deg)
  118. }
  119. 100% {
  120. transform: rotateZ(360deg)
  121. }
  122. }
  123. @keyframes rotating_theme3 {
  124. 0% {
  125. transform: translate(-50%, -50%) rotateZ(0deg)
  126. }
  127. 100% {
  128. transform: translate(-50%, -50%) rotateZ(360deg)
  129. }
  130. }
  131. .hItem {
  132. margin-left: 16rpx;
  133. }
  134. .extrButton {
  135. font-size: 36rpx;
  136. }
  137. .play-btns {
  138. display: flex;
  139. padding: 10px 50px 0 50px;
  140. justify-content: space-between;
  141. align-items: center;
  142. .play-speed {
  143. text-align: center;
  144. }
  145. }