How do you turn off light/dark mode switching for certain elements? #2106
Unanswered
tristan-white
asked this question in
Q&A
Replies: 1 comment
-
@tristan-white instead of using script, use the codeblock element like this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
How did you create the site?
Generated from
chirpy-starter
Description
I embedded a github gist like so into a post:
<script src="https://gist.github.com/tristan-white/f0712db5aa449dd4c655c1f6163f74bd.js"></script>
When the website is viewed in dark mode, it changes the background of the gist to be dark and makes the code hard to read. Is there a way I could alter this script tag so that chirpy does not change it to dark mode when changing from light mode to dark mode?
Operations you have already tried
I tried googling around. Perhaps this is a simple fix, but I couldn't find one.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions