bookshelf.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /* pages/bookshelf/bookshelf.wxss */
  2. .container {
  3. min-height: 100vh;
  4. background: #fff;
  5. align-items: flex-start;
  6. }
  7. .tabs {
  8. display: flex;
  9. padding: 20rpx 40rpx;
  10. }
  11. .tab {
  12. position: relative;
  13. font-size: 32rpx;
  14. color: #666;
  15. margin-right: 60rpx;
  16. }
  17. .tab.active {
  18. color: #333;
  19. font-weight: 500;
  20. }
  21. .tab.active::after {
  22. content: '';
  23. position: absolute;
  24. bottom: -20rpx;
  25. left: 0;
  26. width: 100%;
  27. height: 6rpx;
  28. background: linear-gradient(to right, #007aff, #af97ed);
  29. border-radius: 3rpx;
  30. }
  31. .book-list {
  32. width: 720rpx;
  33. height: calc(100vh - 100rpx);
  34. padding: 20rpx;
  35. }
  36. .book-grid {
  37. display: grid;
  38. grid-template-columns: repeat(3, 1fr);
  39. gap: 20rpx;
  40. padding: 10rpx;
  41. }
  42. .book-item {
  43. display: flex;
  44. flex-direction: column;
  45. align-items: center;
  46. }
  47. .book-cover-wrap {
  48. position: relative;
  49. width: 200rpx;
  50. height: 266rpx;
  51. margin-bottom: 16rpx;
  52. }
  53. .book-cover {
  54. width: 100%;
  55. height: 100%;
  56. border-radius: 12rpx;
  57. }
  58. .read-status {
  59. position: absolute;
  60. top: 10rpx;
  61. left: 10rpx;
  62. padding: 4rpx 12rpx;
  63. background: rgba(0, 0, 0, 0.6);
  64. color: #fff;
  65. font-size: 20rpx;
  66. border-radius: 8rpx;
  67. }
  68. .book-title {
  69. width: 200rpx;
  70. font-size: 28rpx;
  71. color: #333;
  72. text-align: center;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. white-space: nowrap;
  76. }
  77. .latest-chapter {
  78. width: 200rpx;
  79. font-size: 24rpx;
  80. color: #999;
  81. text-align: center;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. white-space: nowrap;
  85. margin-top: 8rpx;
  86. }
  87. .loading, .no-more, .empty {
  88. padding: 30rpx 0;
  89. text-align: center;
  90. color: #999;
  91. font-size: 28rpx;
  92. }
  93. .empty {
  94. padding: 100rpx 0;
  95. }