Debian Codegraph @

jupyter_sphinx/css/jupyter-sphinx.css

raw
1 /* Stylesheet for jupyter-sphinx
2
3 These styles mimic the Jupyter HTML styles.
4
5 The default CSS (Cascading Style Sheet) class structure of jupyter-sphinx
6 is the following:
7
8 jupyter_container
9 code_cell (optional)
10 stderr (optional)
11 output (optional)
12
13 If the code_cell is not displayed, then there is not a jupyter_container, and
14 the output is provided without CSS.
15
16 This stylesheet attempts to override the defaults of all packaged Sphinx themes
17 to display jupter-sphinx cells in a Jupyter-like style.
18
19 If you want to adjust the styles, add additional custom CSS to override these
20 styles.
21
22 After a build, this stylesheet is loaded from ./_static/jupyter-sphinx.css .
23
24 */
25
26
27 div.jupyter_container {
28 padding: .4em;
29 margin: 0 0 .4em 0;
30 background-color: #FFFF;
31 border: 1px solid #CCC;
32 -moz-box-shadow: 2px 2px 4px rgba(87, 87, 87, 0.2);
33 -webkit-box-shadow: 2px 2px 4px rgba(87, 87, 87, 0.2);
34 box-shadow: 2px 2px 4px rgba(87, 87, 87, 0.2);
35 }
36 .jupyter_container div.code_cell {
37 border: 1px solid #cfcfcf;
38 border-radius: 2px;
39 background-color: #f7f7f7;
40 margin: 0 0;
41 overflow: auto;
42 }
43
44 .jupyter_container div.code_cell pre {
45 padding: 4px;
46 margin: 0 0;
47 background-color: #f7f7f7;
48 border: none;
49 background: none;
50 box-shadow: none;
51 -webkit-box-shadow: none; /* for nature */
52 -moz-box-shadow: none; /* for nature */
53 }
54
55 .jupyter_container div.code_cell * {
56 margin: 0 0;
57 }
58 div.jupyter_container div.highlight {
59 background-color: #f7f7f7; /* for haiku */
60 }
61 div.jupyter_container {
62 padding: 0;
63 margin: 0;
64 }
65
66 /* Prevent alabaster breaking highlight alignment */
67 div.jupyter_container .hll {
68 padding: 0;
69 margin: 0;
70 }
71
72 /* overrides for sphinx_rtd_theme */
73 .rst-content .jupyter_container div[class^='highlight'],
74 .document .jupyter_container div[class^='highlight'],
75 .rst-content .jupyter_container pre.literal-block {
76 border:none;
77 margin: 0;
78 padding: 0;
79 background: none;
80 padding: 3px;
81 background-color: transparent;
82 }
83 /* restore Mathjax CSS, as it assumes a vertical margin. */
84 .jupyter_container .MathJax_Display {
85 margin: 1em 0em;
86 text-align: center;
87 }
88 .jupyter_container .stderr {
89 background-color: #FCC;
90 border: none;
91 padding: 3px;
92 }
93 .jupyter_container .output {
94 border: none;
95 }
96 .jupyter_container div.output pre {
97 background-color: white;
98 background: none;
99 padding: 4px;
100 border: none;
101 box-shadow: none;
102 -webkit-box-shadow: none; /* for nature */
103 -moz-box-shadow: none; /* for nature */
104 }
105 .jupyter_container .code_cell td.linenos {
106 text-align: right;
107 padding: 4px 4px 4px 8px;
108 border-right: 1px solid #cfcfcf;
109 color: #999;
110 }
111 .jupyter_container .output .highlight {
112 background-color: #ffffff;
113 }
114 /* combine sequential jupyter cells,
115 by moving sequential ones up higher on y-axis */
116 div.jupyter_container + div.jupyter_container {
117 margin: -.5em 0 .4em 0;
118 }
119
120 /* Fix for sphinx_rtd_theme spacing after jupyter_container #91 */
121 .rst-content .jupyter_container {
122 margin: 0 0 24px 0;
123 }