增加回复可见功能
This commit is contained in:
@@ -4017,6 +4017,169 @@ a.post-title:visited {
|
||||
color: var(--j13-green-hover);
|
||||
}
|
||||
|
||||
.article-editor-tools .article-tool-btn--reply {
|
||||
color: #c27803;
|
||||
}
|
||||
|
||||
.article-editor-tools .article-tool-btn--reply:hover,
|
||||
.article-editor-tools .article-tool-btn--reply.active {
|
||||
background: rgba(194, 120, 3, 0.1);
|
||||
color: #a16207;
|
||||
}
|
||||
|
||||
.dark .article-editor-tools .article-tool-btn--reply {
|
||||
color: #e8b84a;
|
||||
}
|
||||
|
||||
.dark .article-editor-tools .article-tool-btn--reply:hover,
|
||||
.dark .article-editor-tools .article-tool-btn--reply.active {
|
||||
background: rgba(232, 184, 74, 0.12);
|
||||
color: #f0c85a;
|
||||
}
|
||||
|
||||
/* 回复可见内容区块(阅读态) */
|
||||
.post-detail-content reply-only,
|
||||
.post-detail-content .post-reply-only {
|
||||
display: block;
|
||||
margin: 16px 0;
|
||||
border-radius: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only--visible {
|
||||
border: none;
|
||||
border-left: 3px solid rgba(194, 120, 3, 0.5);
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding: 2px 0 2px 14px;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__badge {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only--locked {
|
||||
position: relative;
|
||||
border: 1px solid rgba(194, 120, 3, 0.28);
|
||||
border-left: 3px solid rgba(194, 120, 3, 0.65);
|
||||
border-radius: 8px;
|
||||
background: var(--j13-bg-surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__locked-wrap {
|
||||
position: relative;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px 14px;
|
||||
padding: 12px 14px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
background: rgba(194, 120, 3, 0.12);
|
||||
color: #c27803;
|
||||
border: none;
|
||||
margin: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-text {
|
||||
flex: 1 1 160px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-title {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--color-text-1);
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-desc {
|
||||
margin: 2px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--color-text-3);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-btn {
|
||||
padding: 6px 14px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: #c27803;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-btn:hover {
|
||||
background: #a16207;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-link {
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
color: #c27803;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.post-detail-content .post-reply-only__gate-link:hover {
|
||||
color: #a16207;
|
||||
}
|
||||
|
||||
.dark .post-detail-content .post-reply-only--visible {
|
||||
border-left-color: rgba(232, 184, 74, 0.55);
|
||||
}
|
||||
|
||||
.dark .post-detail-content .post-reply-only--locked {
|
||||
border-color: rgba(232, 184, 74, 0.3);
|
||||
border-left-color: rgba(232, 184, 74, 0.6);
|
||||
}
|
||||
|
||||
.dark .post-detail-content .post-reply-only__gate-icon {
|
||||
background: rgba(232, 184, 74, 0.14);
|
||||
color: #e8b84a;
|
||||
}
|
||||
|
||||
.dark .post-detail-content .post-reply-only__gate-btn {
|
||||
background: #c27803;
|
||||
}
|
||||
|
||||
.dark .post-detail-content .post-reply-only__gate-link {
|
||||
color: #e8b84a;
|
||||
}
|
||||
|
||||
.post-members-only__unwrap-btn {
|
||||
margin-left: 0;
|
||||
padding: 2px 8px;
|
||||
@@ -7418,6 +7581,118 @@ button.profile-stat:hover strong {
|
||||
box-shadow: inset 0 0 0 1px rgba(24, 160, 88, 0.28);
|
||||
}
|
||||
|
||||
/* 编辑态:回复可见区块 */
|
||||
.editor-reply-only.post-reply-only--visible {
|
||||
border: none;
|
||||
border-left: 3px solid rgba(194, 120, 3, 0.55);
|
||||
background: rgba(194, 120, 3, 0.05);
|
||||
border-radius: 0 8px 8px 0;
|
||||
overflow: hidden;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
padding: 6px 12px;
|
||||
border-bottom: none;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: #c27803;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__badge-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__badge-actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__unwrap-btn {
|
||||
margin-left: 0;
|
||||
padding: 2px 8px;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: transparent;
|
||||
color: var(--color-text-3);
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__unwrap-btn:hover {
|
||||
color: #c27803;
|
||||
background: rgba(194, 120, 3, 0.1);
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__remove-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 2px 8px;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: transparent;
|
||||
color: var(--color-text-3);
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__remove-btn:hover {
|
||||
color: #c0392b;
|
||||
background: rgba(192, 57, 43, 0.08);
|
||||
}
|
||||
|
||||
.editor-reply-only--empty .post-reply-only__remove-btn {
|
||||
color: #c0392b;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__body {
|
||||
padding: 0 12px 12px;
|
||||
min-height: 48px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.editor-reply-only .post-reply-only__body p.is-empty::before,
|
||||
.editor-reply-only .post-reply-only__body[data-placeholder]:empty::before {
|
||||
content: attr(data-placeholder);
|
||||
color: var(--color-text-4);
|
||||
font-style: italic;
|
||||
pointer-events: none;
|
||||
float: left;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.dark .editor-reply-only.post-reply-only--visible {
|
||||
border-left-color: rgba(232, 184, 74, 0.55);
|
||||
background: rgba(232, 184, 74, 0.06);
|
||||
}
|
||||
|
||||
.dark .editor-reply-only .post-reply-only__badge {
|
||||
color: #e8b84a;
|
||||
}
|
||||
|
||||
.editor-reply-only {
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.editor-reply-only--selected {
|
||||
background: rgba(194, 120, 3, 0.08);
|
||||
box-shadow: inset 0 0 0 1px rgba(194, 120, 3, 0.3);
|
||||
}
|
||||
|
||||
.article-editor-status {
|
||||
position: relative;
|
||||
z-index: 30;
|
||||
|
||||
Reference in New Issue
Block a user