index.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. .classBox {
  2. width: 100%;
  3. height: 100vh;
  4. }
  5. .classBox .classify {
  6. position: fixed;
  7. top: 0px;
  8. left: 0px;
  9. padding: 24rpx 0rpx;
  10. width: 100%;
  11. background-color: #F2F6FC;
  12. z-index: 9;
  13. white-space: nowrap;
  14. }
  15. .classBox .classify .name {
  16. text-align: center;
  17. display: inline-block;
  18. padding: 0rpx 20rpx;
  19. margin-right: 40rpx;
  20. color: #666666;
  21. font-weight: bold;
  22. font-size: 28rpx;
  23. }
  24. .classBox .classify .currentClass {
  25. font-size: 32rpx;
  26. color: #333;
  27. }
  28. .classBox .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. }
  37. .classBox .searchBox .input {
  38. background-color: white;
  39. border-radius: 50rpx;
  40. padding: 10rpx 30rpx;
  41. padding-right: 140rpx;
  42. }
  43. .classBox .searchBox .searchBtn {
  44. position: absolute;
  45. right: 40rpx;
  46. top: 13rpx;
  47. padding: 4rpx 40rpx;
  48. background: #F2F6FC;
  49. border-radius: 40rpx;
  50. }
  51. .classBox .searchBox .searchBtn .img {
  52. width: 24rpx;
  53. height: 24rpx;
  54. }
  55. .classBox .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. }
  63. .classBox .worksList .worksBox {
  64. display: flex;
  65. align-items: center;
  66. justify-content: space-between;
  67. padding: 26rpx 20rpx;
  68. box-sizing: border-box;
  69. background-color: white;
  70. border-radius: 20rpx;
  71. margin-bottom: 20rpx;
  72. }
  73. .classBox .worksList .worksBox .left {
  74. display: flex;
  75. align-items: center;
  76. justify-content: space-between;
  77. }
  78. .classBox .worksList .worksBox .left .cover {
  79. width: 144rpx;
  80. height: 80rpx;
  81. border-radius: 8rpx;
  82. }
  83. .classBox .worksList .worksBox .left .work {
  84. margin-left: 26rpx;
  85. }
  86. .classBox .worksList .worksBox .left .work .title {
  87. font-size: 32rpx;
  88. font-weight: bold;
  89. margin-bottom: 10rpx;
  90. }
  91. .classBox .worksList .worksBox .left .work .statistic {
  92. display: flex;
  93. align-items: center;
  94. justify-content: space-between;
  95. }
  96. .classBox .worksList .worksBox .left .work .statistic .playImg {
  97. width: 34rpx;
  98. height: 28rpx;
  99. }
  100. .classBox .worksList .worksBox .left .work .statistic .num {
  101. font-size: 26rpx;
  102. color: #666666;
  103. }
  104. .classBox .worksList .worksBox .goRead {
  105. padding: 6rpx 32rpx 8rpx;
  106. color: white;
  107. font-size: 32rpx;
  108. background-image: linear-gradient(270deg, #33C3FF 0%, #81C7FF 100%, #14C962 100%);
  109. box-shadow: 0 4rpx 10rpx 0 rgba(50, 197, 255, 0.46);
  110. border-radius: 50rpx;
  111. }