Comments (3)
是啊 要麽向disqus 那樣自動去檢查背景色 然後選擇加載css
要麽像 utterances 那樣,提供一個function 讓主題去調用黑暗模式
@media 這種判斷 挺一刀切
from waline.
很多主题自带了手动切换暗黑模式的按钮,这种情况的确不太适合用媒体查询去判断。但是这种情况下主题增加的 class 是什么 waline 也不清楚,所以也不太好预设进来。目前的情况估计只能先这样了,如果你比较介意的话可以把 CSS 复写一下。
from waline.
我覺得可以學twikoo那樣
不用啥元素都給它顔色
就直接使用主題的就行,向 p 標簽那些
而waline只需要在一些‘需要的元素’上面,像 評論框border顔色
選用一個在暗色下和亮色下都能顯示清楚的顔色就行
這樣就不用特意去匹配夜間模式,也不用使用 media 這種一刀切的適配
from waline.
Related Issues (20)
- [Bug]: 客户端与nextjs存在冲突,导致IDE报红 || [Bug]: There is a conflict between the client and nextjs, causing the IDE to report red HOT 2
- [Bug]: 客户端登录后的默认头像没有遵循服务器配置(问题仍在,详细代码帖出) || [Bug]: The default avatar after client login does not follow the server configuration (the problem is still there, the detailed code will be posted) HOT 1
- [Bug]: 使用暗色主题后评论的显示问题 || [Bug]: Display problem of comments after using dark theme HOT 2
- [Bug]: 配置Turnstile报错 || [Bug]: Error reporting when configuring Turnstile
- [Bug]: 邮件提醒通知无法提醒博主 || [Bug]: Email reminder notification cannot remind bloggers HOT 8
- [Bug]: 邮件提醒里的超链接错误,导致不能通过邮件直达评论地址 || [Bug]: The hyperlink in the email reminder is wrong, resulting in the comment address not being directly accessible via email.
- [Bug]: 更新浏览数量与查询浏览数量参数不一致 || [Bug]: The parameters for updating the number of views and querying the number of views are inconsistent HOT 1
- [Bug]: Issues in current publish ci
- [Bug]: 文档中给出的 React 示例代码有一处小错误 || [Bug]: There is a small error in the React sample code given in the documentation
- [Bug]: 修改用户评论内容会连带修改用户头像、昵称及网址 || [Bug]: Modifying the user's comment content will also modify the user's avatar, nickname and website. HOT 1
- [Feature]: 添加在CloudFlare Pages部署 || [Feature]: Added in CloudFlare Pages deployment HOT 1
- 导出文件 umd 移除确认 || Export file umd removal confirmation HOT 2
- [Bug]: Unexpected token 'export' HOT 3
- [Bug]: 使用HTTP3时获取到的协议异常 || [Bug]: Protocol exception obtained when using HTTP3 HOT 5
- [Bug]: 其他页面 pageview 异常 || [Bug]: Pageview exception on other pages HOT 3
- [Feature]: 更好地支持自定义用户系统 || [Feature]: Better Support custom user system HOT 2
- [Bug]: 管理后台无法拉取评论 || [Bug]: The management background cannot pull comments HOT 7
- [Bug]: Docker部署后,注册登录管理界面,每次刷新都会退出,并且看不到新注册用户和评论 || [Bug]: After Docker deployment, registration and login management interface will exit every time it is refreshed, and newly registered users and comments cannot be seen. HOT 1
- [Bug]: 3.0 版本的 @waline/client 的 exports 问题 || [Bug]: Issue with exports of @waline/client in version 3.0 HOT 2
- [Feature]: cdnjs 中添加 mjs 文件 || [Feature]: Add mjs file to cdnjs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waline.