Skip to content

Commit ffa0af9

Browse files
committed
Fix for auto mode
1 parent f833de2 commit ffa0af9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/doc/common/static/custom-jupyter-sphinx.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,42 @@ body[data-theme="dark"] {
9191
}
9292
}
9393

94+
@media (prefers-color-scheme: dark) {
95+
body[data-theme="auto"] { /* the same styles with body[data-theme="dark"] */
96+
.jupyter_container {
97+
color: white;
98+
background-color: black;
99+
}
100+
101+
.thebelab-button {
102+
color: #d0d0d0;
103+
background-color: #383838;
104+
}
105+
106+
.thebelab-button:active {
107+
color: #368ce2;
108+
}
109+
110+
#thebelab-activate-button {
111+
background-color: #383838;
112+
}
113+
114+
#thebelab-activate-button:active {
115+
color: #368ce2;
116+
}
117+
118+
.thebelab-cell .jp-OutputArea-output {
119+
color: white;
120+
background-color: black;
121+
}
122+
123+
.thebelab-cell .jp-OutputArea-output pre {
124+
color: white;
125+
background-color: black;
126+
}
127+
}
128+
}
129+
94130

95131

96132

0 commit comments

Comments
 (0)