Commit 1f84afd
authored
PIN: myst-nb>=1.3.0,<1.4.0 to fix dark mode code cells (#825)
myst-nb 1.4.0 (released 4 days ago) changed its CSS generation to use
@media (prefers-color-scheme: dark) for system dark mode detection.
Since this site does not set data-theme on the html element, users with
OS dark mode enabled see dark code cell backgrounds on the light-themed
site.
Pinning to myst-nb 1.3.0 restores the previous CSS behavior which only
activates dark mode via the explicit html[data-theme='dark'] selector.
Closes QuantEcon/quantecon-book-theme#3721 parent 7b343ce commit 1f84afd
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments