index.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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;
  34. box-sizing: border-box;
  35. z-index: 9;
  36. .input {
  37. background-color: white;
  38. border-radius: 50rpx;
  39. padding: 12rpx 30rpx;
  40. padding-right: 140rpx;
  41. }
  42. .searchBtn {
  43. position: absolute;
  44. right: 40rpx;
  45. top: 12rpx;
  46. padding: 6rpx 40rpx;
  47. background: #00C657;
  48. border-radius: 40rpx;
  49. .img {
  50. width: 24rpx;
  51. height: 24rpx;
  52. }
  53. }
  54. }
  55. .worksList {
  56. width: 100%;
  57. height: 100vh;
  58. box-sizing: border-box;
  59. padding: 20rpx;
  60. padding-top: 90rpx;
  61. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  62. .worksBox {
  63. display: flex;
  64. align-items: center;
  65. justify-content: space-between;
  66. padding: 8rpx 12rpx;
  67. box-sizing: border-box;
  68. background-color: white;
  69. border-radius: 20rpx;
  70. margin-bottom: 20rpx;
  71. .left {
  72. flex: 1;
  73. display: flex;
  74. align-items: center;
  75. .cover {
  76. width: 230rpx;
  77. height: 128rpx;
  78. border-radius: 8rpx;
  79. }
  80. .audioCover {
  81. position: relative;
  82. width: 230rpx;
  83. height: 128rpx;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. border-radius: 8rpx;
  88. overflow: hidden;
  89. background-size: cover;
  90. background-position: center;
  91. .audioPlayBg {
  92. width: 100rpx;
  93. height: 100rpx;
  94. }
  95. .audioPlayZhen {
  96. position: absolute;
  97. right: 52rpx;
  98. top: 20rpx;
  99. width: 24rpx;
  100. height: 30rpx;
  101. }
  102. .cover {
  103. position: absolute;
  104. width: 84rpx;
  105. height: 84rpx;
  106. border-radius: 50%;
  107. }
  108. }
  109. .work {
  110. margin-left: 16rpx;
  111. .title {
  112. width: 270rpx;
  113. font-size: 34rpx;
  114. font-weight: bold;
  115. margin-bottom: 12rpx;
  116. }
  117. .statistics {
  118. display: flex;
  119. align-items: center;
  120. .statistic {
  121. width: 110rpx;
  122. display: flex;
  123. align-items: center;
  124. .playImg {
  125. width: 30rpx;
  126. height: 30rpx;
  127. margin-right: 6rpx;
  128. }
  129. .num {
  130. font-size: 26rpx;
  131. color: #666666;
  132. }
  133. }
  134. }
  135. }
  136. }
  137. .goRead {
  138. padding: 6rpx 28rpx 8rpx;
  139. color: white;
  140. font-size: 32rpx;
  141. background-image: linear-gradient(270deg, #33C3FF 0%, #81C7FF 100%, #14C962 100%);
  142. box-shadow: 0 4rpx 10rpx 0 rgba(50, 197, 255, 0.46);
  143. border-radius: 50rpx;
  144. }
  145. }
  146. }
  147. .historyList {
  148. .notes {
  149. display: flex;
  150. align-items: center;
  151. justify-content: space-between;
  152. .clock{
  153. }
  154. }
  155. }
  156. }
  157. .empty {
  158. margin-top: 300rpx;
  159. }