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

顶栏内元素的浅色/深色自动切换 #843

Open
wants to merge 1 commit into
base: preview
Choose a base branch
from

Conversation

PolarisSdesu
Copy link

@PolarisSdesu PolarisSdesu commented Jan 31, 2024

更新 ./style.css 及 ./js/app.js,使 topbar 根据 .yya 和自定义的 .make-it-black 样式的出现自动切换顶栏内元素的浅色/深色(尚未适配深色模式主题)。

Before:
image

After:(.yya 和自定义的 .make-it-black 样式出现时)
image

@mirai-mamori mirai-mamori changed the base branch from main to preview January 31, 2024 13:31
@KotoriK
Copy link
Collaborator

KotoriK commented Feb 1, 2024

@PolarisSdesu
Copy link
Author

PolarisSdesu commented Feb 1, 2024 via email

@mirai-mamori
Copy link
Owner

@KotoriK 快完善一下

Copy link

这个 PR 已经 45 天没有任何活动了,将被标记为过时 stale 。 删除 stale 的标签或评论,否则将在 10 天内关闭。

@github-actions github-actions bot added the Stale label Mar 21, 2024
@mirai-mamori
Copy link
Owner

@KotoriK gkd

@github-actions github-actions bot removed the Stale label Mar 31, 2024
Copy link
Collaborator

@robert1chi robert1chi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete js/app.js

Copy link
Collaborator

@robert1chi robert1chi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style.css,10838~10845引起png颜色反转

@PolarisSdesu
Copy link
Author

PolarisSdesu commented May 9, 2024 via email

@robert1chi
Copy link
Collaborator

确实,计划再往后一个版本加开关

@PolarisSdesu
Copy link
Author

PolarisSdesu commented May 9, 2024 via email

@robert1chi
Copy link
Collaborator

css直接反转topbar的img有点太暴力了,这个功能交给用户选择吧

@PolarisSdesu
Copy link
Author

PolarisSdesu commented May 9, 2024 via email

@PolarisSdesu
Copy link
Author

PolarisSdesu commented May 9, 2024 via email

@robert1chi
Copy link
Collaborator

svg支持只要在function.php下面添加add_filter就行,但是考虑到XSS风险,需要解决安全问题后才能支持

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

Successfully merging this pull request may close these issues.

None yet

4 participants