index.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. .work {
  80. margin-left: 26rpx;
  81. .title {
  82. font-size: 32rpx;
  83. font-weight: bold;
  84. margin-bottom: 10rpx;
  85. }
  86. .statistics {
  87. display: flex;
  88. align-items: center;
  89. .statistic {
  90. display: flex;
  91. align-items: center;
  92. justify-content: space-between;
  93. margin-right: 14rpx;
  94. .playImg {
  95. width: 30rpx;
  96. height: 30rpx;
  97. margin-right: 6rpx;
  98. }
  99. .num {
  100. font-size: 26rpx;
  101. color: #666666;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. .goRead {
  108. padding: 6rpx 32rpx 8rpx;
  109. color: white;
  110. font-size: 32rpx;
  111. background-image: linear-gradient(270deg, #33C3FF 0%, #81C7FF 100%, #14C962 100%);
  112. box-shadow: 0 4rpx 10rpx 0 rgba(50, 197, 255, 0.46);
  113. border-radius: 50rpx;
  114. }
  115. }
  116. }
  117. }