fixed: 评论区css调整

This commit is contained in:
Vaica committed 2026-01-19 00:04:42 +08:00
1 parent c7e2f77893
commit 2eaef147bb
2 files changed
+71 -14

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
# 设置控制台编码为 UTF-8,防止中文乱码
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
Write-Host "🔍 正在进行友链健康检查..." -ForegroundColor Cyan
# 运行 Node.js 检查脚本
node scripts/check_links.js
# 检查脚本退出代码
if ($LASTEXITCODE -ne 0) {
Write-Host "⚠️ 友链检查发现问题或执行失败。" -ForegroundColor Yellow
$response = Read-Host "是否继续执行 Hugo 打包?(Y/N)"
if ($response -ne 'Y' -and $response -ne 'y') {
Write-Host "❌ 已取消打包。" -ForegroundColor Red
exit
}
} else {
Write-Host "✅ 友链检查通过。" -ForegroundColor Green
}
Write-Host "🚀 开始执行 Hugo 打包..." -ForegroundColor Cyan
hugo
if ($LASTEXITCODE -eq 0) {
Write-Host "🎉 打包成功!" -ForegroundColor Green
} else {
Write-Host "❌ 打包失败,请检查错误日志。" -ForegroundColor Red
}
+43 -14
View File
@@ -2156,10 +2156,12 @@ input[type=submit] {
bottom: auto!important bottom: auto!important
} }
/* Artalk 昵称颜色增强 - 白昼模式 */
.artalk .atk-item.atk-nick, .artalk .atk-item.atk-nick,
.atk-item.atk-nick { .atk-item.atk-nick,
color: #000!important; .atk-header .atk-nick {
font-weight: 700 color: #000 !important;
font-weight: 700 !important;
} }
.artalk .atk-item.atk-nick a, .artalk .atk-item.atk-nick a,
@@ -2218,6 +2220,16 @@ input[type=submit] {
--at-color-border: #DDD !important --at-color-border: #DDD !important
} }
.artalk,
.atk-layer-wrap {
color: var(--text-content-color) !important;
}
[data-theme="dark"] .artalk,
[data-theme="dark"] .atk-layer-wrap {
color: var(--text-content-dark-color) !important;
}
.atk-content img { .atk-content img {
max-height: 1.1rem!important; max-height: 1.1rem!important;
vertical-align: middle; vertical-align: middle;
@@ -2234,6 +2246,30 @@ input[type=submit] {
color: var(--text-content-dark-color)!important; color: var(--text-content-dark-color)!important;
} }
[data-theme="dark"] .atk-content,
[data-theme="dark"] .atk-header {
color: var(--text-content-dark-color)!important;
}
[data-theme="dark"] .artalk .atk-item.atk-nick,
[data-theme="dark"] .atk-item.atk-nick,
[data-theme="dark"] .atk-header .atk-nick {
color: var(--text-content-dark-color)!important;
}
.atk-loading {
padding: 10px 14px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.86);
box-shadow: var(--card-shadow-light);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
}
.atk-loading-spinner svg circle {
stroke: var(--text-highlight-color);
}
.artalk .atk-main-editor input.atk-nick, .artalk .atk-main-editor input.atk-nick,
.artalk .atk-main-editor input.atk-email, .artalk .atk-main-editor input.atk-email,
.artalk .atk-main-editor input.atk-link { .artalk .atk-main-editor input.atk-link {
@@ -2247,8 +2283,11 @@ input[type=submit] {
} }
[data-theme="dark"] .atk-loading { [data-theme="dark"] .atk-loading {
background-color: #111827!important; background: rgba(15, 23, 42, 0.95)!important;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
} }
[data-theme="dark"] .atk-loading-spinner svg circle { [data-theme="dark"] .atk-loading-spinner svg circle {
@@ -2363,10 +2402,6 @@ img[atk-emoticon] {
background: 0 0!important background: 0 0!important
} }
.atk-content,.atk-header {
color: var(--text-content-dark-color)!important
}
.atk-ua { .atk-ua {
color: #666!important; color: #666!important;
background: var(--background-dark-color)!important background: var(--background-dark-color)!important
@@ -2377,7 +2412,6 @@ img[atk-emoticon] {
--at-color-bg: #1A1718 !important; --at-color-bg: #1A1718 !important;
--at-color-border: #332D2F !important; --at-color-border: #332D2F !important;
--at-color-meta: #666 !important; --at-color-meta: #666 !important;
--at-color-font: #BBB !important;
--at-color-bg-grey: var(--background-dark-color) !important; --at-color-bg-grey: var(--background-dark-color) !important;
--at-color-bg-grey: #332D2E!important --at-color-bg-grey: #332D2E!important
} }
@@ -2390,11 +2424,6 @@ img[atk-emoticon] {
color: #666!important color: #666!important
} }
.artalk .atk-item.atk-nick,
.atk-item.atk-nick {
color: var(--text-content-dark-color)!important
}
.atk-pinned-badge { .atk-pinned-badge {
color: var(--text-content-dark-color)!important; color: var(--text-content-dark-color)!important;
background: #666!important background: #666!important