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

更改高亮块的实现方式 #12951

Open
TCOTC opened this issue Oct 27, 2024 · 1 comment
Open

更改高亮块的实现方式 #12951

TCOTC opened this issue Oct 27, 2024 · 1 comment

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Oct 27, 2024

  • 目前思源的块高亮是通过更改元素的背景色实现的,存在很多缺陷
  • Improve the styling of the selected blocks #12837 通过 CSS 解决的方式无法完全覆盖到所有情况,还需要每个主题单独适配,过于复杂
  • Notion 的方案操作 DOM 过于频繁,并且也无法完全覆盖到所有情况,样式问题比较多(FlowUs也是)

看到 Wolai 的方案相当完美,给一个单独的元素设置半透明的背景色,下面的元素都能正确叠加颜色:

default.webm
@Vanessa219
Copy link
Member

改进列表下 av

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