history.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /* pages/history/history.wxss */
  2. page {
  3. padding: 0;
  4. margin: 0;
  5. }
  6. .container {
  7. min-height: 100vh;
  8. background: #f5f5f5;
  9. display: flex;
  10. flex-direction: column;
  11. padding-bottom: 120rpx;
  12. padding-top: 0;
  13. margin-top: 0;
  14. }
  15. .history-grid {
  16. display: flex;
  17. flex-wrap: wrap;
  18. padding: 0 15rpx 20rpx 15rpx;
  19. flex: 1;
  20. margin-top: 0;
  21. }
  22. .history-item {
  23. display: flex;
  24. flex-direction: column;
  25. background: #fff;
  26. border-radius: 12rpx;
  27. overflow: hidden;
  28. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  29. transition: transform 0.2s ease;
  30. width: 345rpx;
  31. margin: 0 5rpx 20rpx 5rpx;
  32. }
  33. .history-item:active {
  34. transform: scale(0.98);
  35. }
  36. .cover {
  37. width: 100%;
  38. height: 400rpx;
  39. border-radius: 0;
  40. }
  41. .book-info {
  42. display: flex;
  43. flex-direction: column;
  44. padding: 20rpx;
  45. min-height: 140rpx;
  46. }
  47. .book-title {
  48. font-size: 28rpx;
  49. font-weight: bold;
  50. color: #333;
  51. margin-bottom: 8rpx;
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. display: -webkit-box;
  55. -webkit-line-clamp: 2;
  56. -webkit-box-orient: vertical;
  57. line-height: 1.4;
  58. min-height: 78rpx;
  59. }
  60. .author {
  61. font-size: 24rpx;
  62. color: #999;
  63. margin-bottom: 8rpx;
  64. overflow: hidden;
  65. text-overflow: ellipsis;
  66. white-space: nowrap;
  67. }
  68. .time {
  69. font-size: 22rpx;
  70. color: #bbb;
  71. margin-top: auto;
  72. }
  73. .empty {
  74. text-align: center;
  75. padding: 200rpx 40rpx;
  76. font-size: 28rpx;
  77. color: #999;
  78. flex: 1;
  79. }
  80. .loading {
  81. text-align: center;
  82. padding: 200rpx 40rpx;
  83. font-size: 28rpx;
  84. color: #999;
  85. flex: 1;
  86. }
  87. .footer {
  88. position: fixed;
  89. bottom: 0;
  90. left: 0;
  91. right: 0;
  92. background: #fff;
  93. padding: 20rpx 30rpx;
  94. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  95. border-top: 1rpx solid #e0e0e0;
  96. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  97. }
  98. .clear-btn {
  99. width: 100%;
  100. height: 88rpx;
  101. line-height: 88rpx;
  102. text-align: center;
  103. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  104. color: #fff;
  105. border-radius: 16rpx;
  106. font-size: 30rpx;
  107. font-weight: 500;
  108. border: none;
  109. box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3);
  110. }
  111. .clear-btn::after {
  112. border: none;
  113. }
  114. .clear-btn:active {
  115. transform: scale(0.98);
  116. box-shadow: 0 2rpx 12rpx rgba(102, 126, 234, 0.4);
  117. }