- 在多个组件样式中添加 contain: layout style 提升渲染性能 - 移除移动端浮动按钮的拖拽功能实现 - 简化 JavaScript 中的 FAB 元素初始化逻辑 - 清理未使用的拖拽相关事件监听器绑定代码
722 lines
19 KiB
CSS
722 lines
19 KiB
CSS
/* Artalk Comments Styles */
|
|
|
|
/* Base Artalk container styles */
|
|
#artalk-container {
|
|
border-radius: 12px;
|
|
contain: layout style;
|
|
}
|
|
|
|
/* 确保评论区域适配白天/黑夜模式 */
|
|
#artalk-container .atk-main-editor {
|
|
background: var(--glass-bg);
|
|
border: var(--glass-border);
|
|
box-shadow: var(--glass-shadow);
|
|
backdrop-filter: blur(var(--glass-blur)) saturate(130%);
|
|
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
|
|
border-radius: 24px;
|
|
}
|
|
|
|
#artalk-container .atk-comment-wrap {
|
|
background: rgba(128, 128, 128, 0.03);
|
|
border: var(--glass-border);
|
|
box-shadow: var(--glass-shadow);
|
|
backdrop-filter: blur(var(--glass-blur)) saturate(130%);
|
|
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
|
|
opacity: 0.9;
|
|
transition: opacity 0.2s, background 0.3s;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
#artalk-container .atk-comment-wrap:hover {
|
|
opacity: 1;
|
|
background: rgba(128, 128, 128, 0.08);
|
|
}
|
|
|
|
#artalk-container .atk-dialog,
|
|
#artalk-container .atk-layer .atk-dialog {
|
|
background: var(--glass-bg);
|
|
color: var(--text-primary);
|
|
border: var(--glass-border);
|
|
box-shadow: var(--glass-shadow);
|
|
backdrop-filter: blur(var(--glass-blur)) saturate(130%);
|
|
-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
|
|
border-radius: 24px;
|
|
}
|
|
|
|
/* Light theme styles */
|
|
.atk-main-editor {
|
|
background: rgba(255, 255, 255, 0.85) !important;
|
|
backdrop-filter: blur(28px) saturate(180%) !important;
|
|
-webkit-backdrop-filter: blur(28px) saturate(180%) !important;
|
|
border: 1px solid rgba(108, 92, 231, 0.2) !important;
|
|
box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15) !important;
|
|
border-radius: 24px !important;
|
|
transition: all 0.3s ease !important;
|
|
}
|
|
|
|
.atk-editor, .atk-editor textarea, .atk-editor input {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
color: #1f2937;
|
|
}
|
|
|
|
.atk-main-editor:focus-within {
|
|
border-color: #6c5ce7 !important;
|
|
box-shadow: 0 12px 40px rgba(108, 92, 231, 0.3) !important;
|
|
}
|
|
|
|
.atk-header {
|
|
padding: 20px !important;
|
|
border-bottom: 1px solid rgba(128, 128, 128, 0.15) !important;
|
|
}
|
|
|
|
.atk-header-item {
|
|
color: #1f2937 !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
.atk-header-item.atk-active {
|
|
color: #6c5ce7 !important;
|
|
}
|
|
|
|
.atk-editor-plug-wrap {
|
|
padding: 0 20px 20px !important;
|
|
}
|
|
|
|
.atk-editor-textarea {
|
|
background: rgba(245, 245, 250, 0.7) !important;
|
|
color: #1f2937 !important;
|
|
border: 1px solid rgba(108, 92, 231, 0.1) !important;
|
|
border-radius: 12px !important;
|
|
padding: 15px !important;
|
|
min-height: 120px !important;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.atk-editor-textarea:focus {
|
|
border-color: #6c5ce7 !important;
|
|
box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1) !important;
|
|
}
|
|
|
|
.atk-editor-bottom {
|
|
padding: 0 20px 20px !important;
|
|
}
|
|
|
|
.atk-editor-bottom .atk-item {
|
|
color: #4b5563 !important;
|
|
}
|
|
|
|
.atk-send-btn {
|
|
background: linear-gradient(135deg, #6c5ce7, #5d4de0) !important;
|
|
border: none !important;
|
|
border-radius: 20px !important;
|
|
padding: 8px 20px !important;
|
|
font-weight: 500 !important;
|
|
transition: all 0.3s ease !important;
|
|
box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
|
|
}
|
|
|
|
.atk-send-btn:hover {
|
|
background: linear-gradient(135deg, #5d4de0, #4b3bc4) !important;
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4) !important;
|
|
}
|
|
|
|
.atk-send-btn:active {
|
|
transform: translateY(0) !important;
|
|
}
|
|
|
|
.atk-list-header {
|
|
padding: 20px !important;
|
|
border-bottom: 1px solid rgba(128, 128, 128, 0.15) !important;
|
|
}
|
|
|
|
.atk-list-header .atk-comment-count {
|
|
color: #1f2937 !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.atk-sort-select {
|
|
background: rgba(128, 128, 128, 0.08) !important;
|
|
border: 1px solid rgba(108, 92, 231, 0.15) !important;
|
|
border-radius: 20px !important;
|
|
padding: 6px 12px !important;
|
|
color: #4b5563 !important;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.atk-sort-select:hover {
|
|
background: rgba(108, 92, 231, 0.1) !important;
|
|
border-color: rgba(108, 92, 231, 0.25) !important;
|
|
}
|
|
|
|
.atk-comment-wrap {
|
|
padding: 20px !important;
|
|
border-bottom: 1px solid rgba(128, 128, 128, 0.08) !important;
|
|
background: rgba(255, 255, 255, 0.5) !important;
|
|
border-radius: 12px !important;
|
|
margin: 0 5px 10px !important;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.atk-comment-wrap:hover {
|
|
background: rgba(255, 255, 255, 0.8) !important;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
|
|
border-bottom: 1px solid rgba(108, 92, 231, 0.2) !important;
|
|
}
|
|
|
|
|
|
.atk-comment .atk-header {
|
|
padding: 0 !important;
|
|
border-bottom: none !important;
|
|
margin-bottom: 10px !important;
|
|
}
|
|
|
|
.atk-comment .atk-nick {
|
|
color: #1f2937 !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.atk-comment .atk-date {
|
|
color: #6b7280 !important;
|
|
font-size: 0.85rem !important;
|
|
}
|
|
|
|
.atk-comment .atk-content {
|
|
color: #1f2937 !important;
|
|
line-height: 1.6 !important;
|
|
}
|
|
|
|
.atk-comment .atk-content a {
|
|
color: #6c5ce7 !important;
|
|
text-decoration: underline !important;
|
|
}
|
|
|
|
.atk-comment .atk-content pre {
|
|
background: rgba(128, 128, 128, 0.05) !important;
|
|
border-radius: 12px !important;
|
|
padding: 15px !important;
|
|
border: 1px solid rgba(128, 128, 128, 0.1) !important;
|
|
}
|
|
|
|
.atk-actions .atk-action {
|
|
color: #4b5563 !important;
|
|
transition: all 0.2s ease !important;
|
|
margin-right: 15px; /* 增加回复评论组件的边距 */
|
|
}
|
|
|
|
.atk-actions .atk-action:hover {
|
|
color: #6c5ce7 !important;
|
|
}
|
|
|
|
|
|
|
|
/* Mobile specific styles */
|
|
.atk-mobile .atk-main-editor {
|
|
border-radius: 16px !important;
|
|
padding: 12px !important;
|
|
font-size: 0.95rem !important;
|
|
}
|
|
|
|
.atk-mobile .atk-header {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.atk-mobile .atk-editor-textarea {
|
|
padding: 12px !important;
|
|
min-height: 100px !important;
|
|
}
|
|
|
|
.atk-mobile .atk-editor-bottom {
|
|
padding: 0 15px 15px !important;
|
|
}
|
|
|
|
.atk-mobile .atk-list-header {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.atk-mobile .atk-comment-wrap {
|
|
padding: 15px !important;
|
|
font-size: 0.95rem !important;
|
|
margin: 0 0 8px 0 !important; /* 移除移动端容器化样式,节省宽度 */
|
|
border-radius: 0 !important; /* 移除圆角 */
|
|
box-shadow: none !important; /* 移除阴影以节省宽度 */
|
|
border-left: none !important;
|
|
border-right: none !important;
|
|
border-top: none !important;
|
|
}
|
|
|
|
.atk-mobile .atk-avatar {
|
|
width: 28px !important;
|
|
height: 28px !important;
|
|
object-fit: cover; /* 修复移动端头像拉伸问题 */
|
|
}
|
|
|
|
.atk-mobile .atk-meta {
|
|
font-size: 12px !important;
|
|
}
|
|
|
|
.atk-mobile .atk-comment .atk-content.clamped {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.atk-mobile .atk-expand-btn {
|
|
background: transparent !important;
|
|
border: none !important;
|
|
border-radius: 0 !important;
|
|
padding: 8px 0 !important;
|
|
color: #6c5ce7 !important;
|
|
font-size: 0.9rem !important;
|
|
cursor: pointer !important;
|
|
margin: 8px 0 0 0 !important;
|
|
transition: all 0.3s ease !important;
|
|
margin-right: 0 !important;
|
|
text-align: left !important;
|
|
width: 100% !important;
|
|
box-shadow: none !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
.atk-mobile .atk-expand-btn:hover {
|
|
background: transparent !important;
|
|
text-decoration: underline !important;
|
|
}
|
|
|
|
.atk-mobile .atk-expand-btn::before {
|
|
content: "展开全文";
|
|
}
|
|
|
|
.atk-mobile .atk-expand-btn[data-expanded="true"]::before {
|
|
content: "收起";
|
|
}
|
|
|
|
[data-lang="en"] .atk-mobile .atk-expand-btn::before {
|
|
content: "Expand";
|
|
}
|
|
|
|
[data-lang="en"] .atk-mobile .atk-expand-btn[data-expanded="true"]::before {
|
|
content: "Collapse";
|
|
}
|
|
|
|
[data-theme="night"] .atk-mobile .atk-expand-btn {
|
|
background: transparent !important;
|
|
color: #00cec9 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-mobile .atk-expand-btn:hover {
|
|
background: transparent !important;
|
|
}
|
|
|
|
/* Pagination styles */
|
|
.atk-pagination {
|
|
padding: 20px !important;
|
|
text-align: center !important;
|
|
}
|
|
|
|
.atk-pagination .atk-page-item {
|
|
display: inline-block !important;
|
|
margin: 0 5px !important;
|
|
padding: 8px 15px !important;
|
|
border-radius: 20px !important;
|
|
background: rgba(128, 128, 128, 0.08) !important;
|
|
color: #4b5563 !important;
|
|
transition: all 0.3s ease !important;
|
|
border: 1px solid rgba(108, 92, 231, 0.15) !important;
|
|
box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1) !important;
|
|
backdrop-filter: blur(20px) saturate(180%) !important;
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
|
|
}
|
|
|
|
.atk-pagination .atk-page-item:hover {
|
|
background: linear-gradient(135deg, #6c5ce7, #5d4de0) !important;
|
|
color: white !important;
|
|
border: 1px solid rgba(108, 92, 231, 0.3) !important;
|
|
box-shadow: 0 6px 15px rgba(108, 92, 231, 0.2) !important;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.atk-pagination .atk-page-item.atk-active {
|
|
background: linear-gradient(135deg, #6c5ce7, #5d4de0) !important;
|
|
color: white !important;
|
|
border: 1px solid rgba(108, 92, 231, 0.3) !important;
|
|
box-shadow: 0 6px 15px rgba(108, 92, 231, 0.25) !important;
|
|
}
|
|
|
|
|
|
|
|
/* Loading spinner */
|
|
.atk-loading {
|
|
text-align: center !important;
|
|
padding: 40px !important;
|
|
color: #6c5ce7 !important;
|
|
}
|
|
|
|
.atk-error-layer {
|
|
padding: 40px !important;
|
|
text-align: center !important;
|
|
color: #ef4444 !important;
|
|
}
|
|
|
|
|
|
/* 评论内容链接样式 */
|
|
.atk-comment-content a {
|
|
color: #3498db;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.atk-comment-content a:hover {
|
|
color: #2980b9;
|
|
}
|
|
|
|
/* 更圆润的输入框 */
|
|
.atk-editor-wrap .atk-editor-textarea {
|
|
border-radius: 12px !important;
|
|
padding: 12px !important;
|
|
}
|
|
|
|
/* 工具栏图标间距优化 */
|
|
.atk-editor-toolbar .atk-btn {
|
|
margin: 2px !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-editor-toolbar .atk-btn {
|
|
color: #b2bec3 !important;
|
|
filter: brightness(1.3);
|
|
}
|
|
|
|
/* 暗色模式下聚焦边框 */
|
|
.atk-dark .atk-editor-textarea:focus {
|
|
box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5) !important;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.atk-header {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.atk-editor-plug-wrap {
|
|
padding: 0 15px 15px !important;
|
|
}
|
|
|
|
.atk-editor-textarea {
|
|
padding: 12px !important;
|
|
}
|
|
|
|
.atk-editor-bottom {
|
|
padding: 0 15px 15px !important;
|
|
}
|
|
|
|
.atk-list-header {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.atk-comment-wrap {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.atk-pagination {
|
|
padding: 15px !important;
|
|
}
|
|
|
|
.atk-pagination .atk-page-item {
|
|
padding: 6px 12px !important;
|
|
margin: 0 3px !important;
|
|
font-size: 0.9rem !important;
|
|
}
|
|
|
|
/* 移动端增强样式 */
|
|
.atk-main-editor {
|
|
border-radius: 16px !important;
|
|
}
|
|
|
|
.atk-comment-wrap {
|
|
padding: 12px 0 !important;
|
|
font-size: 0.95rem !important;
|
|
margin: 0 0 8px 0 !important; /* 移除移动端容器化样式,节省宽度 */
|
|
border-radius: 0 !important; /* 移除圆角 */
|
|
box-shadow: none !important; /* 移除阴影 */
|
|
border-left: none !important;
|
|
border-right: none !important;
|
|
border-top: none !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
.atk-avatar {
|
|
width: 28px !important;
|
|
height: 28px !important;
|
|
object-fit: cover; /* 修复移动端头像拉伸问题 */
|
|
}
|
|
|
|
.atk-meta {
|
|
font-size: 12px !important;
|
|
}
|
|
|
|
/* 修复移动端输入框底色问题 */
|
|
[data-theme="night"] .atk-editor-textarea {
|
|
background: rgba(40, 40, 45, 0.5) !important;
|
|
color: #dfe6e9 !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
}
|
|
|
|
/* 完全移除评论区域的容器样式以节省宽度 */
|
|
#artalk-container {
|
|
border-radius: 0 !important;
|
|
padding: 0 !important;
|
|
background: transparent !important;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
/* 黑夜模式下移动端评论背景色优化 */
|
|
[data-theme="night"] .atk-comment-wrap {
|
|
background: rgba(40, 40, 45, 0.9) !important; /* 提高移动端黑夜模式下的背景不透明度 */
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment-wrap:hover {
|
|
background: rgba(45, 45, 50, 0.95) !important;
|
|
}
|
|
|
|
/* Night theme styles */
|
|
[data-theme="night"] .atk-main-editor {
|
|
background: rgba(30, 30, 35, 0.75) !important;
|
|
backdrop-filter: blur(28px) saturate(180%) !important;
|
|
-webkit-backdrop-filter: blur(28px) saturate(180%) !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.12) !important;
|
|
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-send-btn {
|
|
background: linear-gradient(135deg, #00cec9, #00b3ae) !important;
|
|
border: none !important;
|
|
border-radius: 20px !important;
|
|
padding: 8px 20px !important;
|
|
font-weight: 500 !important;
|
|
transition: all 0.3s ease !important;
|
|
box-shadow: 0 4px 15px rgba(0, 206, 201, 0.4);
|
|
}
|
|
|
|
[data-theme="night"] .atk-send-btn:hover {
|
|
background: linear-gradient(135deg, #00b3ae, #009690) !important;
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: 0 6px 20px rgba(0, 206, 201, 0.6) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-send-btn:active {
|
|
transform: translateY(0) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-editor,
|
|
[data-theme="night"] .atk-editor textarea,
|
|
[data-theme="night"] .atk-editor input {
|
|
background: rgba(30, 30, 35, 0.75)!important;
|
|
color: #dfe6e9 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment-wrap {
|
|
background: rgba(40, 40, 45, 0.85) !important; /* 提高背景不透明度以增强可读性 */
|
|
border: 1px solid rgba(255, 255, 255, 0.12) !important;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
|
|
transition: all 0.3s ease !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment-wrap:hover {
|
|
background: rgba(45, 45, 50, 0.95) !important; /* 提高悬停时的背景不透明度 */
|
|
border: 1px solid rgba(255, 255, 255, 0.18) !important;
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-dialog,
|
|
[data-theme="night"] .atk-layer .atk-dialog {
|
|
background: rgba(30, 30, 35, 0.85) !important;
|
|
color: #dfe6e9 !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.15) !important;
|
|
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-header-item {
|
|
color: #dfe6e9 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-editor-textarea {
|
|
color: #1f2937 !important;
|
|
background: rgba(40, 40, 45, 0.5) !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-editor-bottom .atk-item {
|
|
color: #b2bec3 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-list-header .atk-comment-count {
|
|
color: #dfe6e9 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-sort-select {
|
|
background: rgba(255, 255, 255, 0.08) !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.15) !important;
|
|
color: #b2bec3 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-nick {
|
|
color: #ffffff !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-date {
|
|
color: #a0aec0 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-content {
|
|
color: #e2e8f0 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-content a {
|
|
color: #00cec9 !important;
|
|
text-decoration: underline !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-content pre {
|
|
background: rgba(20, 20, 25, 0.7) !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
color: #e2e8f0 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-actions .atk-action {
|
|
color: #b2bec3 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-actions .atk-action:hover {
|
|
color: #00cec9 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-pagination .atk-page-item {
|
|
background: rgba(255, 255, 255, 0.08) !important;
|
|
color: #b2bec3 !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.12) !important;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
|
|
backdrop-filter: blur(28px) saturate(180%) !important;
|
|
-webkit-backdrop-filter: blur(28px) saturate(180%) !important;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
[data-theme="night"] .atk-pagination .atk-page-item:hover {
|
|
background: linear-gradient(135deg, #00cec9, #00b3ae) !important;
|
|
color: white !important;
|
|
border: 1px solid rgba(0, 206, 201, 0.3) !important;
|
|
box-shadow: 0 8px 25px rgba(0, 206, 201, 0.3) !important;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
[data-theme="night"] .atk-pagination .atk-page-item.atk-active {
|
|
background: linear-gradient(135deg, #00cec9, #00b3ae) !important;
|
|
color: white !important;
|
|
border: 1px solid rgba(0, 206, 201, 0.4) !important;
|
|
box-shadow: 0 8px 25px rgba(0, 206, 201, 0.4) !important;
|
|
}
|
|
}
|
|
|
|
/* PC端黑夜模式下的输入框颜色和列表样式修正 - 全面优化版 */
|
|
[data-theme="night"] .atk-editor-textarea {
|
|
background: rgba(30, 30, 35, 0.9) !important;
|
|
color: #e2e8f0 !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.15) !important;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-editor-textarea:focus {
|
|
border: 1px solid #00cec9 !important;
|
|
box-shadow: 0 0 0 3px rgba(0, 206, 201, 0.4) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment-wrap {
|
|
background: rgba(30, 30, 35, 0.85) !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment-wrap:hover {
|
|
background: rgba(40, 40, 45, 0.9) !important;
|
|
border: 1px solid rgba(0, 206, 201, 0.3) !important;
|
|
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-list-header {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-header {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
}
|
|
|
|
/* 优化评论底部工具栏在黑夜模式下的样式 */
|
|
[data-theme="night"] .atk-editor-bottom {
|
|
background: rgba(40, 40, 45, 0.7) !important;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
padding: 12px 20px !important;
|
|
border-radius: 0 0 12px 12px !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-editor-bottom .atk-item {
|
|
color: #b2bec3 !important;
|
|
margin-right: 12px !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-send-btn {
|
|
background: linear-gradient(135deg, #00cec9, #00b3ae) !important;
|
|
border: none !important;
|
|
border-radius: 20px !important;
|
|
padding: 8px 20px !important;
|
|
font-weight: 500 !important;
|
|
transition: all 0.3s ease !important;
|
|
box-shadow: 0 4px 15px rgba(0, 206, 201, 0.4);
|
|
}
|
|
|
|
[data-theme="night"] .atk-send-btn:hover {
|
|
background: linear-gradient(135deg, #00b3ae, #009690) !important;
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: 0 6px 20px rgba(0, 206, 201, 0.6) !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-send-btn:active {
|
|
transform: translateY(0) !important;
|
|
}
|
|
|
|
/* 优化评论列表项在黑夜模式下的样式 */
|
|
[data-theme="night"] .atk-comment {
|
|
color: #e2e8f0 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-nick {
|
|
color: #ffffff !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-date {
|
|
color: #a0aec0 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-content {
|
|
color: #e2e8f0 !important;
|
|
line-height: 1.6 !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-comment .atk-content a {
|
|
color: #00cec9 !important;
|
|
text-decoration: underline !important;
|
|
}
|
|
|
|
[data-theme="night"] .atk-actions .atk-action {
|
|
color: #b2bec3 !important;
|
|
transition: all 0.2s ease !important;
|
|
margin-right: 15px; /* 增加回复评论组件的边距 */
|
|
}
|
|
|
|
[data-theme="night"] .atk-actions .atk-action:hover {
|
|
color: #00cec9 !important;
|
|
}
|