Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: 覆写路径颜色后,暗色模式下,:focus-within 会产生位置偏移 #9

Open
mzwlevi opened this issue Sep 25, 2022 · 0 comments

Comments

@mzwlevi
Copy link

mzwlevi commented Sep 25, 2022

测试环境:0.8.7 原生主题,未添加 css snippets
没有覆写路径颜色正常
Screen Shot 2022-09-25 at 11 47 25
Screen Shot 2022-09-25 at 11 47 05

覆写路径颜色白天模式下正常
Screen Shot 2022-09-25 at 11 47 49
夜间模式下不正常
Screen Shot 2022-09-25 at 11 48 05

会导致路径上所有使用 :focus-within 的 css 都会产生位置偏移

Screen.Recording.2022-09-25.at.12.13.51.mov

举例,使用路径上双链和标签随节点线激活高亮,位移十分明显
代码如下:

.ls-block .tag {
    color: var(--ls-block-bullet-active-color);
    font-size: 16px;
    opacity: 100%;
}

.ls-block:not(:focus-within) .tag {
    color: grey;
    font-size: 16px;
    opacity: 100%;
}

.ls-block .page-ref {
    color: var(--ls-block-bullet-active-color);
    font-size: 16px;
    opacity: 100%;
}

.ls-block:not(:focus-within) .page-ref {
    color: #106ba3;
    font-size: 16px;
    opacity: 100%;
}

没有覆写路径颜色正常

Screen.Recording.2022-09-25.at.12.05.07.mov
@mzwlevi mzwlevi changed the title 覆写路径颜色后,暗色模式下,:focus-within 会产生位置偏移 Bug report: 覆写路径颜色后,暗色模式下,:focus-within 会产生位置偏移 Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant