mirror of
https://gitee.com/qingqing-coconut-tea/RcKtFezyRAZX
synced 2026-07-21 10:32:32 +08:00
225 lines
3.5 KiB
Plaintext
225 lines
3.5 KiB
Plaintext
/* pages/article-list/article-list.wxss */
|
||
/* 文章列表样式 */
|
||
|
||
.article-list-container {
|
||
min-height: 100vh;
|
||
background-color: #f5f5f5;
|
||
}
|
||
|
||
.filter-bar {
|
||
padding: 20rpx 30rpx;
|
||
background-color: #fff;
|
||
}
|
||
|
||
.search-box {
|
||
display: flex;
|
||
align-items: center;
|
||
background-color: #f5f5f5;
|
||
border-radius: 32rpx;
|
||
padding: 16rpx 24rpx;
|
||
}
|
||
|
||
.search-input {
|
||
flex: 1;
|
||
font-size: 28rpx;
|
||
color: #333;
|
||
}
|
||
|
||
.category-scroll {
|
||
background-color: #fff;
|
||
white-space: nowrap;
|
||
padding: 0 20rpx 20rpx;
|
||
}
|
||
|
||
.category-list {
|
||
display: flex;
|
||
gap: 20rpx;
|
||
}
|
||
|
||
.category-item {
|
||
display: inline-block;
|
||
padding: 12rpx 28rpx;
|
||
font-size: 26rpx;
|
||
color: #666;
|
||
background-color: #f5f5f5;
|
||
border-radius: 28rpx;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.category-item.active {
|
||
background-color: #667eea;
|
||
color: #fff;
|
||
}
|
||
|
||
.sort-bar {
|
||
display: flex;
|
||
padding: 20rpx 30rpx;
|
||
background-color: #fff;
|
||
margin-bottom: 20rpx;
|
||
}
|
||
|
||
.sort-item {
|
||
flex: 1;
|
||
text-align: center;
|
||
font-size: 28rpx;
|
||
color: #666;
|
||
padding: 16rpx 0;
|
||
position: relative;
|
||
}
|
||
|
||
.sort-item.active {
|
||
color: #667eea;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.sort-item.active::after {
|
||
content: '';
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
width: 40rpx;
|
||
height: 4rpx;
|
||
background-color: #667eea;
|
||
border-radius: 2rpx;
|
||
}
|
||
|
||
.article-list {
|
||
padding: 0 20rpx;
|
||
}
|
||
|
||
.article-item {
|
||
background-color: #fff;
|
||
border-radius: 16rpx;
|
||
margin-bottom: 20rpx;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.article-content {
|
||
display: flex;
|
||
padding: 24rpx;
|
||
}
|
||
|
||
.article-cover {
|
||
width: 200rpx;
|
||
height: 160rpx;
|
||
border-radius: 12rpx;
|
||
margin-right: 24rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.article-info {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
}
|
||
|
||
.article-title {
|
||
font-size: 30rpx;
|
||
font-weight: bold;
|
||
color: #333;
|
||
margin-bottom: 12rpx;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
}
|
||
|
||
.article-summary {
|
||
font-size: 24rpx;
|
||
color: #999;
|
||
margin-bottom: 16rpx;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
flex: 1;
|
||
}
|
||
|
||
.article-meta {
|
||
display: flex;
|
||
gap: 24rpx;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
|
||
.meta-item {
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: 22rpx;
|
||
color: #999;
|
||
}
|
||
|
||
.meta-item .iconfont {
|
||
margin-right: 6rpx;
|
||
font-size: 24rpx;
|
||
}
|
||
|
||
.article-tags {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 12rpx;
|
||
}
|
||
|
||
.tag {
|
||
padding: 4rpx 12rpx;
|
||
font-size: 20rpx;
|
||
color: #667eea;
|
||
background-color: rgba(102, 126, 234, 0.1);
|
||
border-radius: 8rpx;
|
||
}
|
||
|
||
.article-actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
padding: 0 24rpx 20rpx;
|
||
}
|
||
|
||
.action-btn {
|
||
padding: 12rpx 20rpx;
|
||
}
|
||
|
||
.action-btn .iconfont {
|
||
font-size: 36rpx;
|
||
color: #999;
|
||
}
|
||
|
||
.action-btn .icon-favorite-fill {
|
||
color: #F56C6C;
|
||
}
|
||
|
||
.loading-more,
|
||
.no-more {
|
||
text-align: center;
|
||
padding: 30rpx;
|
||
font-size: 24rpx;
|
||
color: #999;
|
||
}
|
||
|
||
.empty-state {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 100rpx 0;
|
||
}
|
||
|
||
.empty-icon {
|
||
font-size: 120rpx;
|
||
color: #ddd;
|
||
margin-bottom: 30rpx;
|
||
}
|
||
|
||
.empty-text {
|
||
font-size: 28rpx;
|
||
color: #999;
|
||
}
|
||
|
||
/**
|
||
* @联系作者:16768118056
|
||
* @描述:(此项目非免费分享)源码百分百可用,搞定毕设不发愁,支持远程调试安装、二次开发、定制、讲解、文档类。
|
||
* @访问:https://www.notmaker.com/detail/8326a897119d4542896c863a69d7bbe7/gtt20260415,查看完整运行演示。
|
||
*/
|