index.less 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. .worksList {
  28. width: 100%;
  29. height: 100vh;
  30. box-sizing: border-box;
  31. padding: 20rpx;
  32. padding-top: 90rpx;
  33. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  34. .worksBox {
  35. display: flex;
  36. align-items: center;
  37. justify-content: space-between;
  38. padding: 26rpx 20rpx;
  39. box-sizing: border-box;
  40. background-color: white;
  41. border-radius: 20rpx;
  42. margin-bottom: 20rpx;
  43. .left {
  44. display: flex;
  45. align-items: center;
  46. justify-content: space-between;
  47. .cover {
  48. width: 144rpx;
  49. height: 80rpx;
  50. border-radius: 8rpx;
  51. }
  52. .work {
  53. margin-left: 26rpx;
  54. .title {
  55. font-size: 32rpx;
  56. font-weight: bold;
  57. margin-bottom: 10rpx;
  58. }
  59. .statistic {
  60. display: flex;
  61. align-items: center;
  62. justify-content: space-between;
  63. .playImg {
  64. width: 34rpx;
  65. height: 28rpx;
  66. }
  67. .num {
  68. font-size: 26rpx;
  69. color: #666666;
  70. }
  71. }
  72. }
  73. }
  74. .goRead {
  75. padding: 6rpx 32rpx 8rpx;
  76. color: white;
  77. font-size: 32rpx;
  78. background-image: linear-gradient(270deg, #33C3FF 0%, #81C7FF 100%, #14C962 100%);
  79. box-shadow: 0 4rpx 10rpx 0 rgba(50, 197, 255, 0.46);
  80. border-radius: 50rpx;
  81. }
  82. }
  83. }
  84. }