Repository navigation
feat(docs): 侧边栏悬浮指示条与虚线导轨重合 - #314
Merged
Merged
Conversation
嵌套行的悬浮条原来 left: -8px,只退回 padding,落在虚线右侧 x∈[9,14], 与 x=8 的 1px dashed 导轨并排相邻。改为 left: -9px 再退回 1px 边框宽 度,条的左边缘与导轨完全对齐(实测两层深度 dx 均为 0),悬浮时该行 42px 段的虚线被条盖住,实现「悬浮行看不见左侧虚线」。 不影响其它行:::before 静止态 background: transparent,非悬浮行的虚线 段完整保留;一级条目无 children 容器祖先,left: 0 不受影响(实测仍在 x=0);active 变体的几何未动。 浏览器实测(本地构建,强制 :hover,两层深度各行): 条左边缘 == 虚线 x(dx=0),条完全覆盖 1px 虚线 一级条目悬浮 条 x=0,行为不变 版本 0.30.7 → 0.30.8。
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.
嵌套行悬浮条 left: -8px → -9px,条左边缘与 1px dashed 导轨完全对齐(两层深度实测 dx=0),悬浮时盖住当前行 42px 段的虚线;其它行 ::before 静止态透明、虚线完整保留,一级条目不受影响。版本 0.30.7 → 0.30.8。