docs - slightly less ugly dark mode code blocks

This commit is contained in:
Cody Glassman 2025-06-16 16:41:37 -07:00
parent f9af61f096
commit 1de86f95ac

View File

@ -17,15 +17,19 @@
padding: 0px; padding: 0px;
} }
@media (prefers-color-scheme: dark) {
/* EXAMPLE: this should serve as a template on how to conditonally apply styles for dark themes body:not([data-theme="light"]) #luadoc pre.example,
body[data-theme="dark"] #luadoc pre.example { body:not([data-theme="light"]) #luadoc pre.example code {
background-color: #2a3a49;
color: #ffffff;
}
} }
@media (prefers-color-scheme: dark) { body[data-theme="dark"] #luadoc pre.example,
body:not([data-theme="light"]) #luadoc pre.example { body[data-theme="dark"] #luadoc pre.example code {
} background-color: #2a3a49;
} */ color: #ffffff;
}
#luadoc a:not(:link) { #luadoc a:not(:link) {
font-weight: bold; font-weight: bold;