| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- /* pages/bookshelf/bookshelf.wxss */
- .container {
- min-height: 100vh;
- background: #fff;
- align-items: flex-start;
- }
- .tabs {
- display: flex;
- padding: 20rpx 40rpx;
- }
- .tab {
- position: relative;
- font-size: 32rpx;
- color: #666;
- margin-right: 60rpx;
- }
- .tab.active {
- color: #333;
- font-weight: 500;
- }
- .tab.active::after {
- content: '';
- position: absolute;
- bottom: -20rpx;
- left: 0;
- width: 100%;
- height: 6rpx;
- background: linear-gradient(to right, #007aff, #af97ed);
- border-radius: 3rpx;
- }
- .book-list {
- width: 720rpx;
- height: calc(100vh - 100rpx);
- padding: 20rpx;
- }
- .book-grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 20rpx;
- padding: 10rpx;
- }
- .book-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .book-cover-wrap {
- position: relative;
- width: 200rpx;
- height: 266rpx;
- margin-bottom: 16rpx;
- }
- .book-cover {
- width: 100%;
- height: 100%;
- border-radius: 12rpx;
- }
- .read-status {
- position: absolute;
- top: 10rpx;
- left: 10rpx;
- padding: 4rpx 12rpx;
- background: rgba(0, 0, 0, 0.6);
- color: #fff;
- font-size: 20rpx;
- border-radius: 8rpx;
- }
- .book-title {
- width: 200rpx;
- font-size: 28rpx;
- color: #333;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .latest-chapter {
- width: 200rpx;
- font-size: 24rpx;
- color: #999;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin-top: 8rpx;
- }
- .loading, .no-more, .empty {
- padding: 30rpx 0;
- text-align: center;
- color: #999;
- font-size: 28rpx;
- }
- .empty {
- padding: 100rpx 0;
- }
|