index.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. .classBox {
  2. width: 100%;
  3. height: 100vh;
  4. .classify {
  5. position: fixed;
  6. top: 0px;
  7. left: 0px;
  8. padding: 24rpx 0rpx;
  9. width: 100%;
  10. background-color: #F2F6FC;
  11. z-index: 9;
  12. white-space: nowrap;
  13. .name {
  14. text-align: center;
  15. display: inline-block;
  16. margin: 0rpx 40rpx;
  17. padding-bottom: 4rpx;
  18. color: #777;
  19. font-weight: bold;
  20. font-size: 28rpx;
  21. }
  22. .currentClass {
  23. font-size: 34rpx;
  24. color: #333;
  25. border-bottom: 6rpx solid #00C657;
  26. }
  27. }
  28. .searchBox {
  29. position: fixed;
  30. top: 0px;
  31. left: 0px;
  32. width: 100%;
  33. padding: 4rpx 20rpx 18rpx;
  34. box-sizing: border-box;
  35. background-color: #F2F6FC;
  36. z-index: 9;
  37. .input {
  38. background-color: white;
  39. border-radius: 50rpx;
  40. padding: 12rpx 30rpx;
  41. padding-right: 140rpx;
  42. }
  43. .searchBtn {
  44. position: absolute;
  45. right: 40rpx;
  46. top: 12rpx;
  47. padding: 6rpx 40rpx;
  48. background: #00C657;
  49. border-radius: 40rpx;
  50. .img {
  51. width: 24rpx;
  52. height: 24rpx;
  53. }
  54. }
  55. }
  56. .worksList {
  57. width: 100%;
  58. height: 100vh;
  59. box-sizing: border-box;
  60. padding: 20rpx;
  61. padding-top: 102rpx;
  62. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  63. .worksBox {
  64. display: flex;
  65. align-items: center;
  66. justify-content: space-between;
  67. padding: 8rpx 12rpx;
  68. box-sizing: border-box;
  69. background-color: white;
  70. border-radius: 20rpx;
  71. margin-bottom: 20rpx;
  72. .left {
  73. flex: 1;
  74. display: flex;
  75. align-items: center;
  76. .cover {
  77. width: 230rpx;
  78. height: 128rpx;
  79. border-radius: 8rpx;
  80. }
  81. .audioCover {
  82. position: relative;
  83. width: 230rpx;
  84. height: 128rpx;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. border-radius: 8rpx;
  89. overflow: hidden;
  90. background-size: cover;
  91. background-position: center;
  92. .audioPlayBg {
  93. width: 100rpx;
  94. height: 100rpx;
  95. }
  96. .audioPlayZhen {
  97. position: absolute;
  98. right: 52rpx;
  99. top: 20rpx;
  100. width: 24rpx;
  101. height: 30rpx;
  102. }
  103. .cover {
  104. position: absolute;
  105. width: 84rpx;
  106. height: 84rpx;
  107. border-radius: 50%;
  108. }
  109. }
  110. .work {
  111. margin-left: 16rpx;
  112. .title {
  113. width: 270rpx;
  114. font-size: 34rpx;
  115. font-weight: bold;
  116. margin-bottom: 12rpx;
  117. }
  118. .statistics {
  119. display: flex;
  120. align-items: center;
  121. .statistic {
  122. width: 110rpx;
  123. display: flex;
  124. align-items: center;
  125. .playImg {
  126. width: 30rpx;
  127. height: 30rpx;
  128. margin-right: 6rpx;
  129. }
  130. .num {
  131. font-size: 26rpx;
  132. color: #666666;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. .goRead {
  139. padding: 6rpx 28rpx 8rpx;
  140. color: white;
  141. font-size: 32rpx;
  142. background-image: linear-gradient(270deg, #33C3FF 0%, #81C7FF 100%, #14C962 100%);
  143. box-shadow: 0 4rpx 10rpx 0 rgba(50, 197, 255, 0.46);
  144. border-radius: 50rpx;
  145. }
  146. }
  147. }
  148. .historyList {
  149. padding: 80rpx 30rpx 0rpx;
  150. .notes {
  151. display: flex;
  152. align-items: center;
  153. justify-content: space-between;
  154. padding: 30rpx 0rpx 14rpx;
  155. border-bottom: 1rpx solid #DDDDDD;
  156. .left {
  157. display: flex;
  158. align-items: center;
  159. font-size: 28rpx;
  160. .clock {
  161. width: 34rpx;
  162. height: 34rpx;
  163. margin-right: 16rpx;
  164. }
  165. }
  166. .delete {
  167. color: #A4A4A5;
  168. font-size: 50rpx;
  169. line-height: 40rpx;
  170. padding: 0rpx 20rpx;
  171. }
  172. }
  173. .clearHistory {
  174. padding: 20rpx 0rpx;
  175. text-align: center;
  176. font-size: 28rpx;
  177. }
  178. }
  179. }
  180. .empty {
  181. margin-top: 300rpx;
  182. }