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

scrollbar 轨道颜色与代码块及主题不匹配 #111

Open
Erzbir opened this issue May 7, 2024 · 2 comments
Open

scrollbar 轨道颜色与代码块及主题不匹配 #111

Erzbir opened this issue May 7, 2024 · 2 comments

Comments

@Erzbir
Copy link
Contributor

Erzbir commented May 7, 2024

截屏2024-05-08 00 04 54
@Erzbir Erzbir changed the title scrollbar 颜色和其轨道颜色于代码块及主题不匹配 scrollbar 颜色和其轨道颜色与代码块及主题不匹配 May 7, 2024
@Erzbir Erzbir changed the title scrollbar 颜色和其轨道颜色与代码块及主题不匹配 scrollbar 轨道颜色与代码块及主题不匹配 May 7, 2024
@guqing
Copy link
Owner

guqing commented May 8, 2024

滚动条的颜色估计不好和代码块一样,代码块背景色是可以使用 https://github.com/halo-sigs/plugin-highlightjs 修改的,并不是颜色变量

@Erzbir
Copy link
Contributor Author

Erzbir commented May 8, 2024

滚动条的颜色估计不好和代码块一样,代码块背景色是可以使用 https://github.com/halo-sigs/plugin-highlightjs 修改的,并不是颜色变量

能否设置多级选择器, 让代码块的滚动条样式不受影响, 或者类似下面的做法:

scrollbar-color: #86898C var(--hljs-theme-background);

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

2 participants