216 lines
4.1 KiB
Plaintext
216 lines
4.1 KiB
Plaintext
/* pages/publish/publish.wxss - 增强版编辑器样式 */
|
|
@import '../../styles/common.wxss';
|
|
|
|
.container { padding: 84rpx 32rpx 300rpx; }
|
|
page { background: linear-gradient(180deg, #FDE4EC 0%, #FFF0F5 48%, #FFF7FA 100%); height: 100vh; overflow: hidden; }
|
|
|
|
/* ===== 输入框美化 ===== */
|
|
.input-group { margin-bottom: 36rpx; }
|
|
.input-group label {
|
|
display: block;
|
|
font-size: 26rpx;
|
|
font-weight: 500;
|
|
color: #888;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
.input {
|
|
width: 100%;
|
|
padding: 28rpx 32rpx;
|
|
background: #fff;
|
|
border-radius: 20rpx;
|
|
font-size: 28rpx;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
|
|
border: 2rpx solid transparent;
|
|
transition: all 0.3s;
|
|
}
|
|
.input:focus {
|
|
border-color: #FF6B81;
|
|
box-shadow: 0 0 0 6rpx rgba(255,107,129,0.08);
|
|
}
|
|
.textarea {
|
|
min-height: 200rpx;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ===== 日记标题输入框 ===== */
|
|
.diary-title-input {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
padding: 28rpx 32rpx;
|
|
}
|
|
|
|
/* ===== 编辑器头部(标签+计数) ===== */
|
|
.editor-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
.editor-header label {
|
|
margin-bottom: 0;
|
|
}
|
|
.char-count {
|
|
font-size: 22rpx;
|
|
color: #bbb;
|
|
}
|
|
.char-warn {
|
|
color: #ff6b6b;
|
|
font-weight: 600;
|
|
}
|
|
.img-count {
|
|
font-size: 22rpx;
|
|
color: #bbb;
|
|
}
|
|
|
|
/* ===== 日记编辑器 ===== */
|
|
.diary-editor {
|
|
min-height: 300rpx;
|
|
font-size: 30rpx;
|
|
line-height: 1.7;
|
|
padding: 28rpx 32rpx;
|
|
}
|
|
|
|
/* ===== 图片选择(可删除) ===== */
|
|
.img-picker-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
}
|
|
.img-picker-wrap {
|
|
position: relative;
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
border-radius: 16rpx;
|
|
overflow: visible;
|
|
}
|
|
.img-picker-thumb {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
border-radius: 16rpx;
|
|
background: #eee;
|
|
}
|
|
.img-picker-del {
|
|
position: absolute;
|
|
top: -12rpx;
|
|
right: -12rpx;
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
border-radius: 50%;
|
|
background: rgba(255,71,87,0.9);
|
|
color: #fff;
|
|
font-size: 22rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 2rpx 8rpx rgba(255,71,87,0.3);
|
|
z-index: 2;
|
|
}
|
|
.del-hover {
|
|
transform: scale(1.2);
|
|
background: #ff4757;
|
|
}
|
|
.img-picker-add {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
border-radius: 16rpx;
|
|
background: #fff;
|
|
border: 2rpx dashed #ddd;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6rpx;
|
|
}
|
|
.img-picker-add .add-icon {
|
|
font-size: 48rpx;
|
|
color: #ccc;
|
|
line-height: 1;
|
|
}
|
|
.img-picker-add .add-text {
|
|
font-size: 20rpx;
|
|
color: #ccc;
|
|
}
|
|
|
|
/* ===== 提交按钮 ===== */
|
|
.submit-btn {
|
|
margin-top: 40rpx;
|
|
margin-bottom: 80rpx;
|
|
}
|
|
|
|
/* ===== 封面图片选择 ===== */
|
|
.cover-pick-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
}
|
|
.cover-preview {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border-radius: 16rpx;
|
|
background: #eee;
|
|
}
|
|
.cover-pick-btn {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 16rpx;
|
|
background: #fff;
|
|
border: 2rpx dashed #ddd;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 56rpx;
|
|
color: #ccc;
|
|
}
|
|
|
|
/* ===== 背景图选择 ===== */
|
|
.bg-pick-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
flex-wrap: wrap;
|
|
}
|
|
.bg-preview {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
border-radius: 16rpx;
|
|
background: #eee;
|
|
}
|
|
.bg-pick-btn {
|
|
padding: 20rpx 32rpx;
|
|
border-radius: 16rpx;
|
|
background: #fff;
|
|
border: 2rpx dashed #ddd;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
min-height: 80rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
.bg-remove-btn {
|
|
padding: 20rpx 24rpx;
|
|
border-radius: 16rpx;
|
|
background: #fff;
|
|
border: 2rpx solid #ff6b6b;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24rpx;
|
|
color: #ff6b6b;
|
|
min-height: 80rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@import '../../styles/design.wxss';
|
|
|
|
@import '../../styles/journal.wxss';
|
|
|
|
/* 正文随输入增高,长文由外层页面滚动,避免嵌套原生输入框滚动。 */
|
|
textarea.diary-editor { min-height:420rpx; box-sizing:border-box; }
|
|
|
|
@import '../../styles/button-theme.wxss';
|
|
|
|
@import '../../styles/typography.wxss';
|