mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 12:25:17 -04:00
docs - slightly less ugly dark mode code blocks
This commit is contained in:
parent
f9af61f096
commit
1de86f95ac
@ -17,15 +17,19 @@
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
|
||||
/* EXAMPLE: this should serve as a template on how to conditonally apply styles for dark themes
|
||||
body[data-theme="dark"] #luadoc pre.example {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body:not([data-theme="light"]) #luadoc pre.example,
|
||||
body:not([data-theme="light"]) #luadoc pre.example code {
|
||||
background-color: #2a3a49;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body:not([data-theme="light"]) #luadoc pre.example {
|
||||
}
|
||||
} */
|
||||
body[data-theme="dark"] #luadoc pre.example,
|
||||
body[data-theme="dark"] #luadoc pre.example code {
|
||||
background-color: #2a3a49;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#luadoc a:not(:link) {
|
||||
font-weight: bold;
|
||||
|
Loading…
x
Reference in New Issue
Block a user