| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- /* pages/history/history.wxss */
- page {
- padding: 0;
- margin: 0;
- }
- .container {
- min-height: 100vh;
- background: #f5f5f5;
- display: flex;
- flex-direction: column;
- padding-bottom: 120rpx;
- padding-top: 0;
- margin-top: 0;
- }
- .history-grid {
- display: flex;
- flex-wrap: wrap;
- padding: 0 15rpx 20rpx 15rpx;
- flex: 1;
- margin-top: 0;
- }
- .history-item {
- display: flex;
- flex-direction: column;
- background: #fff;
- border-radius: 12rpx;
- overflow: hidden;
- box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
- transition: transform 0.2s ease;
- width: 345rpx;
- margin: 0 5rpx 20rpx 5rpx;
- }
- .history-item:active {
- transform: scale(0.98);
- }
- .cover {
- width: 100%;
- height: 400rpx;
- border-radius: 0;
- }
- .book-info {
- display: flex;
- flex-direction: column;
- padding: 20rpx;
- min-height: 140rpx;
- }
- .book-title {
- font-size: 28rpx;
- font-weight: bold;
- color: #333;
- margin-bottom: 8rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- line-height: 1.4;
- min-height: 78rpx;
- }
- .author {
- font-size: 24rpx;
- color: #999;
- margin-bottom: 8rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .time {
- font-size: 22rpx;
- color: #bbb;
- margin-top: auto;
- }
- .empty {
- text-align: center;
- padding: 200rpx 40rpx;
- font-size: 28rpx;
- color: #999;
- flex: 1;
- }
- .loading {
- text-align: center;
- padding: 200rpx 40rpx;
- font-size: 28rpx;
- color: #999;
- flex: 1;
- }
- .footer {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- background: #fff;
- padding: 20rpx 30rpx;
- padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
- border-top: 1rpx solid #e0e0e0;
- box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
- }
- .clear-btn {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: #fff;
- border-radius: 16rpx;
- font-size: 30rpx;
- font-weight: 500;
- border: none;
- box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3);
- }
- .clear-btn::after {
- border: none;
- }
- .clear-btn:active {
- transform: scale(0.98);
- box-shadow: 0 2rpx 12rpx rgba(102, 126, 234, 0.4);
- }
|