188 lines
2.9 KiB
Plaintext
188 lines
2.9 KiB
Plaintext
/* pages/post/post.wxss */
|
|
.container {
|
|
min-height: 100vh;
|
|
background-color: #F5F5F5;
|
|
padding: 30rpx;
|
|
}
|
|
|
|
.form-section {
|
|
background-color: #ffffff;
|
|
border-radius: 16rpx;
|
|
padding: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.form-item {
|
|
margin-bottom: 40rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.form-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
color: #333333;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.picker-value {
|
|
padding: 25rpx;
|
|
background-color: #F5F5F5;
|
|
border-radius: 12rpx;
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
}
|
|
|
|
.title-input {
|
|
width: 100%;
|
|
padding: 25rpx;
|
|
background-color: #F5F5F5;
|
|
border-radius: 12rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.content-textarea {
|
|
width: 100%;
|
|
min-height: 300rpx;
|
|
padding: 25rpx;
|
|
background-color: #F5F5F5;
|
|
border-radius: 12rpx;
|
|
font-size: 28rpx;
|
|
line-height: 1.8;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.char-count {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: -35rpx;
|
|
font-size: 24rpx;
|
|
color: #999999;
|
|
}
|
|
|
|
/* 图片上传 */
|
|
.form-label-tip {
|
|
font-size: 24rpx;
|
|
color: #999999;
|
|
font-weight: normal;
|
|
margin-left: 10rpx;
|
|
}
|
|
|
|
.image-upload-section {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.image-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.image-item {
|
|
position: relative;
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border-radius: 12rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.uploaded-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.image-delete {
|
|
position: absolute;
|
|
top: -10rpx;
|
|
right: -10rpx;
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
background: linear-gradient(135deg, #FF6B6B, #E74C3C);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4rpx 12rpx rgba(255, 107, 107, 0.4);
|
|
}
|
|
|
|
.delete-icon {
|
|
color: #ffffff;
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
}
|
|
|
|
.image-upload-btn {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border: 2rpx dashed #D0D0D0;
|
|
border-radius: 12rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10rpx;
|
|
background: linear-gradient(135deg, #F8F9FA, #E9ECEF);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.image-upload-btn:active {
|
|
background: linear-gradient(135deg, #E9ECEF, #DEE2E6);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 60rpx;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.upload-text {
|
|
font-size: 24rpx;
|
|
color: #999999;
|
|
}
|
|
|
|
.tips {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10rpx;
|
|
padding: 20rpx;
|
|
background-color: #FFF9E6;
|
|
border-radius: 12rpx;
|
|
margin-top: 40rpx;
|
|
}
|
|
|
|
.tips-icon {
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.tips-text {
|
|
flex: 1;
|
|
font-size: 24rpx;
|
|
color: #856404;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 操作区 */
|
|
.action-section {
|
|
padding: 0 30rpx;
|
|
}
|
|
|
|
.publish-btn {
|
|
width: 100%;
|
|
height: 90rpx;
|
|
line-height: 90rpx;
|
|
background: linear-gradient(135deg, #50C878, #3CB371);
|
|
color: #ffffff;
|
|
border-radius: 45rpx;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
box-shadow: 0 8rpx 24rpx rgba(80, 200, 120, 0.3);
|
|
}
|
|
|
|
.publish-btn:active {
|
|
opacity: 0.8;
|
|
}
|