refactor: 重构slideshow-box组件,移除帖子标签 fix: 修复item-bottom组件中QR码加载状态显示问题 style: 调整多个页面的CSS样式,包括字体大小和间距 perf: 优化save.js文件同步逻辑,支持更多模板格式 docs: 更新组件文档和注释 chore: 添加bi组件相关文件并配置监听同步 test: 更新测试用例以适应组件变更
315 lines
8.9 KiB
Plaintext
315 lines
8.9 KiB
Plaintext
#edit {
|
|
margin: 0 auto;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.edit-head {
|
|
width: 100%;
|
|
height: 60px;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 1) -41%, rgba(238, 248, 249, 1) 96%);
|
|
margin-bottom: 20px;
|
|
|
|
.edit-head-container {
|
|
width: 1200px;
|
|
margin: 0 auto;
|
|
.icon {
|
|
width: 135px;
|
|
height: 33px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
background-color: #d35110;
|
|
border-radius: 50%;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.title {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 18px;
|
|
color: #000000;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 13px;
|
|
color: #aaaaaa;
|
|
}
|
|
|
|
.avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.edit-container {
|
|
width: 890px;
|
|
background-color: rgba(255, 255, 255, 1);
|
|
border: 1px solid rgba(233, 238, 242, 1);
|
|
border-radius: 10px;
|
|
margin: 0 auto;
|
|
|
|
.title-box {
|
|
position: relative;
|
|
.title-input {
|
|
width: 100%;
|
|
height: 100px;
|
|
border: none;
|
|
outline: none;
|
|
border-radius: 10px 10px 0 0;
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 24px;
|
|
padding: 0 36px;
|
|
border-bottom: 1px solid #ebebeb;
|
|
}
|
|
|
|
.sum {
|
|
position: absolute;
|
|
bottom: 5px;
|
|
right: 5px;
|
|
color: #555;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.editor-toolbar {
|
|
height: 36px;
|
|
background-color: rgba(251, 251, 251, 1);
|
|
padding-left: 35px;
|
|
.toolbar-item {
|
|
.icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
cursor: pointer;
|
|
height: 100%;
|
|
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-size: 14px;
|
|
color: #000000;
|
|
line-height: 23px;
|
|
margin-right: 50px;
|
|
position: relative;
|
|
|
|
.file {
|
|
opacity: 0; /* 隐藏输入框 */
|
|
background: transparent;
|
|
border: none;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
|
|
&::after {
|
|
content: "";
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
}
|
|
|
|
&.expression.pitch {
|
|
.emoji-box-mask {
|
|
display: block;
|
|
}
|
|
|
|
.emoji-box {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.emoji-box-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
background-color: rgba(0, 0, 0, 0.20392157);
|
|
display: none;
|
|
}
|
|
|
|
.emoji-box {
|
|
width: 582px;
|
|
border-radius: 8px;
|
|
background-color: #fff;
|
|
filter: drop-shadow(0 0 11px rgba(0, 0, 0, 0.1));
|
|
top: 45px;
|
|
position: absolute;
|
|
z-index: 1;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border: 1px solid #ebebeb;
|
|
display: none;
|
|
flex-wrap: wrap;
|
|
font-size: 22px;
|
|
padding: 8px;
|
|
|
|
&::after {
|
|
content: "";
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 8px solid transparent;
|
|
border-right: 8px solid transparent;
|
|
border-bottom: 8px solid #ffffff;
|
|
position: absolute;
|
|
top: -8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.emoji-icon {
|
|
margin: 5px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-input {
|
|
min-height: 509px;
|
|
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
|
font-size: 15px;
|
|
color: #555555;
|
|
line-height: 26px;
|
|
outline: none;
|
|
padding: 36px 36px 20px;
|
|
white-space: break-spaces;
|
|
position: relative;
|
|
max-height: 80vh;
|
|
overflow: auto;
|
|
|
|
&.empty:before {
|
|
content: "输入正文";
|
|
pointer-events: none;
|
|
position: absolute;
|
|
top: 36px;
|
|
left: 36px;
|
|
color: rgba(117, 117, 117, 1);
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: 220px;
|
|
}
|
|
|
|
h2 {
|
|
color: #000000;
|
|
font-size: 18px;
|
|
line-height: 30px;
|
|
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.blue {
|
|
color: #026277;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.fill {
|
|
width: 100%;
|
|
height: 26px;
|
|
}
|
|
}
|
|
|
|
.tags-list {
|
|
padding: 0 36px;
|
|
margin-bottom: 10px;
|
|
flex-wrap: wrap;
|
|
.tag-item {
|
|
margin-bottom: 10px;
|
|
height: 32px;
|
|
line-height: 32px;
|
|
background-color: rgba(246, 246, 246, 1);
|
|
border-radius: 73px;
|
|
padding: 0 14px;
|
|
font-size: 14px;
|
|
color: #606060;
|
|
margin-right: 10px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.action-buttons {
|
|
border-top: 1px solid #ebebeb;
|
|
padding: 0 36px;
|
|
justify-content: space-between;
|
|
|
|
.left-section {
|
|
.icon-pitch {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 1px solid #797979;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
font-size: 14px;
|
|
color: #333;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.right-section {
|
|
height: 102px;
|
|
.draft-btn,
|
|
.publish-btn {
|
|
font-size: 14px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.draft-btn {
|
|
width: 100px;
|
|
height: 42px;
|
|
line-height: 42px;
|
|
background-color: rgba(242, 242, 242, 0.698039215686274);
|
|
color: #7f7f7f;
|
|
font-size: 14px;
|
|
margin-right: 15px;
|
|
|
|
.icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 6px;
|
|
}
|
|
}
|
|
.publish-btn {
|
|
width: 150px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 16px;
|
|
color: #000000;
|
|
background-color: rgba(80, 227, 194, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|