Files
sundynix-plant-mp/pages/profile/posts/index.wxss
T
2026-02-14 08:32:47 +08:00

171 lines
2.9 KiB
Plaintext

.posts-page {
background: #F4F6F0;
height: 100vh;
padding: 32rpx 32rpx 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
overflow: hidden;
}
.sub-scroll {
flex: 1;
height: 0; /* Crucial for scrolling in flex layout */
width: 100%;
}
.posts-list {
position: relative;
padding-bottom: 60rpx;
}
/* Timeline Line */
.posts-list::before {
content: '';
position: absolute;
top: 40rpx;
bottom: 40rpx;
left: 112rpx; /* Adjust based on time width */
width: 2rpx;
background: #E0E0E0;
z-index: 0;
}
.my-post-card {
display: flex;
gap: 32rpx;
margin-bottom: 48rpx;
position: relative;
z-index: 1;
}
/* Time Column */
.my-post-time {
width: 100rpx;
flex-shrink: 0;
font-size: 26rpx;
color: #90A4AE;
font-weight: 700;
text-align: right;
padding-top: 28rpx;
position: relative;
}
/* Timeline Dot */
.my-post-time::after {
content: '';
position: absolute;
top: 40rpx;
right: -24rpx; /* Center on line */
width: 16rpx;
height: 16rpx;
background: #fff;
border: 4rpx solid #CFD8DC;
border-radius: 50%;
z-index: 2;
box-shadow: 0 0 0 4rpx #F4F6F0; /* Outline mask */
}
/* Highlight dot for today/recent? Optional */
/* Content Card */
.my-post-content-wrap {
flex: 1;
background: #fff;
border-radius: 28rpx;
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.03);
padding: 32rpx;
position: relative;
overflow: hidden;
transition: all 0.2s;
}
.my-post-content-wrap:active {
transform: scale(0.98);
}
/* Post Text */
.post-text {
font-size: 30rpx;
color: #374151;
line-height: 1.6;
margin-bottom: 24rpx;
display: block;
min-height: 48rpx;
margin-top: 8rpx;
}
/* Status Tags - Corner Style */
.status-tag {
position: absolute;
top: 0;
right: 0;
padding: 8rpx 20rpx;
font-size: 22rpx;
font-weight: 700;
border-bottom-left-radius: 24rpx;
z-index: 10;
box-shadow: -4rpx 4rpx 12rpx rgba(0,0,0,0.05);
}
.status-tag.pending {
background: #FFF8E1;
color: #F57C00;
}
.status-tag.success {
background: #E8F5E9;
color: #388E3C;
}
/* Images */
.my-post-images {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
margin-bottom: 24rpx;
}
/* Footer */
.my-post-footer {
display: flex;
align-items: center;
border-top: 2rpx solid #F9FAFB;
padding-top: 24rpx;
margin-top: 12rpx;
}
.footer-item {
display: flex;
align-items: center;
gap: 8rpx;
font-size: 24rpx;
color: #9CA3AF;
margin-right: 32rpx;
}
/* Empty State */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 160rpx 0;
}
.empty-text {
font-size: 28rpx;
color: #B0BEC5;
margin-top: 24rpx;
}
/* Hide Scrollbar Globally */
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
display: none;
}