修复暗模式下侧边栏当前章节文字被亮绿色背景遮挡 - #11
Open
hi-nikola wants to merge 1 commit into
Open
Conversation
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容 / What changed
docs/.vitepress/theme/style.css中暗模式下侧边栏当前章节高亮的视觉问题.dark .VPSidebarItem.is-active > .item .link变体,覆盖暗模式下的背景色和文字色为什么需要 / Why
暗模式下,
.VPSidebarItem.is-active仍使用var(--wb-acid)亮绿(#d8f238)作为背景,配合硬编码的color: #11130e深色文字。亮绿色在深色背景中过于刺眼,文字虽然颜色对比足够,但视觉上几乎被"灼烧"的高亮背景吞没,表现为"文字被遮住"。修复后:
var(--wb-acid-soft)深橄榄色(#2b3218),文字改用var(--wb-ink)浅色(#f3f5ed),既保留高亮识别度,又解决可读性验证方式 / Validation
npm run docs:build(build complete in 23.37s,零错误)产品事实更新 / Product fact updates