Debian Codegraph @

src/pydata_sphinx_theme/assets/styles/extensions/_execution.scss

raw
1 /**
2 * Styles for various Sphinx execution libraries.
3 * For now, where these define output sections, we simply revert their background
4 * to be a "light theme" background. This ensures that inputs/outputs behave similarly,
5 * because the CSS is often controlled by each package.
6 * In the future, we might add dark theme support for specific packages.
7 */
8
9 /******************************************************************************
10 * Jupyter Sphinx
11 */
12
13 .bd-content div.jupyter_container {
14 // We don't want borders around the whole container, just around code cells
15 border: none;
16 background-color: unset;
17 box-shadow: none;
18
19 // Code cells should have the same style as our other code objects
20 div.output,
21 div.highlight {
22 border-radius: 0.25rem;
23 }
24
25 div.highlight {
26 background-color: var(--pst-color-surface);
27 }
28
29 // Ensure the style is the same as our code cells. Jupyter Sphinx makes it tiny.
30 .cell_input,
31 .cell_output {
32 border-radius: 0.25rem;
33
34 pre {
35 padding: 1rem;
36 }
37 }
38 }