You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pydata_sphinx_theme/assets/styles/extensions/_notebooks.scss
+32
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,38 @@ div.nblast.container {
52
52
margin-bottom: 1rem;
53
53
}
54
54
55
+
// Override nbsphinx's colors for notebook cell prompts because they do not have
56
+
// sufficient contrast. Colors chosen from accessible-pygments
57
+
// a11y-high-contrast-{light,dark} themes.
58
+
59
+
// Notebook cell input line number. Replace nbsphinx's low contrast blue with
60
+
// higher contrast blues.
61
+
.nbinput.container.promptpre {
62
+
html[data-theme="light"] & {
63
+
// Copied from accessible-pygments [a11y-high-contrast-light](https://github.com/Quansight-Labs/accessible-pygments/tree/main/a11y_pygments/a11y_high_contrast_light)
64
+
color: #005b82;
65
+
}
66
+
67
+
html[data-theme="dark"] & {
68
+
// Copied from accessible-pygments [a11y-high-contrast-dark](https://github.com/Quansight-Labs/accessible-pygments/tree/main/a11y_pygments/a11y_high_contrast_dark)
69
+
color: #00e0e0;
70
+
}
71
+
}
72
+
73
+
// Notebook cell output line number. Replace nbsphinx's low contrast red with
74
+
// higher contrast red / orange.
75
+
.nboutput.container.promptpre {
76
+
html[data-theme="light"] & {
77
+
// Copied from accessible-pygments [a11y-high-contrast-light](https://github.com/Quansight-Labs/accessible-pygments/tree/main/a11y_pygments/a11y_high_contrast_light)
78
+
color: #a12236;
79
+
}
80
+
81
+
html[data-theme="dark"] & {
82
+
// Copied from accessible-pygments [a11y-high-contrast-dark](https://github.com/Quansight-Labs/accessible-pygments/tree/main/a11y_pygments/a11y_high_contrast_dark)
0 commit comments