-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
Fix distill darkmode #299
Fix distill darkmode #299
Conversation
Thanks so much for fixes! |
Fixes #298 (comment to link pr to issue) (no, it doesn't work |
@ivanpuhachov, just realized you made changes to I'm wondering, would it be hard to factor out these style changes into |
The problem is that |
You are right, it looks like most of distill is written using web components that encapsulate styles using shadow DOM. The styles inside shadow DOM cannot be overridden from outside using CSS, unfortunately (see discussion here). But, these styles can be overridden using javascript without directly modifying I added I hope this doesn't add much extra work and thanks again for contributing these fixes! 🙏 |
Great. Will do! |
Done! |
* updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com> [ci skip]
* updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com> [ci skip]
* updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
* updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
* updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
* updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
* updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
Fixing the issue with distill darkmode #298
I found out that the problem emerges with numerated lists, table entries, inline math equations, blockquotes (see also #280 ), footnotes, citations, hovering boxes and code highlights. Seems to be fixed now, take a look on
al-folio/blog/2021/distill/
when building locally, or online on my page: hereLet me know if something is missing. Cheers!