index.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. padding: 0rpx 20rpx;
  17. margin-right: 40rpx;
  18. color: #666666;
  19. font-weight: bold;
  20. font-size: 28rpx;
  21. }
  22. .currentClass {
  23. font-size: 32rpx;
  24. color: #333;
  25. }
  26. }
  27. .searchBox {
  28. position: fixed;
  29. top: 0px;
  30. left: 0px;
  31. width: 100%;
  32. padding: 4rpx 20rpx;
  33. box-sizing: border-box;
  34. z-index: 9;
  35. .input {
  36. background-color: white;
  37. border-radius: 50rpx;
  38. padding: 10rpx 30rpx;
  39. padding-right: 140rpx;
  40. }
  41. .searchBtn {
  42. position: absolute;
  43. right: 40rpx;
  44. top: 13rpx;
  45. padding: 4rpx 40rpx;
  46. background: #F2F6FC;
  47. border-radius: 40rpx;
  48. .img {
  49. width: 24rpx;
  50. height: 24rpx;
  51. }
  52. }
  53. }
  54. .worksList {
  55. width: 100%;
  56. height: 100vh;
  57. box-sizing: border-box;
  58. padding: 20rpx;
  59. padding-top: 90rpx;
  60. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  61. .worksBox {
  62. display: flex;
  63. align-items: center;
  64. justify-content: space-between;
  65. padding: 28rpx 20rpx;
  66. box-sizing: border-box;
  67. background-color: white;
  68. border-radius: 20rpx;
  69. margin-bottom: 20rpx;
  70. .left {
  71. display: flex;
  72. align-items: center;
  73. justify-content: space-between;
  74. .cover {
  75. width: 144rpx;
  76. height: 80rpx;
  77. border-radius: 8rpx;
  78. }
  79. .audioCover {
  80. position: relative;
  81. width: 144rpx;
  82. height: 80rpx;
  83. display: flex;
  84. align-items: center;
  85. justify-content: center;
  86. border-radius: 8rpx;
  87. overflow: hidden;
  88. background-size: cover;
  89. background-position: center;
  90. .audioPlayBg {
  91. width: 70rpx;
  92. height: 70rpx;
  93. }
  94. .audioPlayZhen {
  95. position: absolute;
  96. right: 32rpx;
  97. top: 12rpx;
  98. width: 16rpx;
  99. height: 22rpx;
  100. }
  101. .cover {
  102. position: absolute;
  103. width: 60rpx;
  104. height: 60rpx;
  105. border-radius: 50%;
  106. }
  107. }
  108. .work {
  109. margin-left: 26rpx;
  110. .title {
  111. width: 340rpx;
  112. font-size: 32rpx;
  113. font-weight: bold;
  114. margin-bottom: 10rpx;
  115. }
  116. .statistics {
  117. display: flex;
  118. align-items: center;
  119. .statistic {
  120. display: flex;
  121. align-items: center;
  122. justify-content: space-between;
  123. margin-right: 14rpx;
  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 32rpx 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. }
  148. .empty {
  149. margin-top: 300rpx;
  150. }