##// END OF EJS Templates
Adjust cell background and number color after review with @minrk.
Fernando Perez -
Show More
@@ -1,40 +1,40 b''
1
1
2
2
3 .cm-s-ipython span.cm-keyword {color: #008000; font-weight: bold;}
3 .cm-s-ipython span.cm-keyword {color: #008000; font-weight: bold;}
4 .cm-s-ipython span.cm-number {color: #666666;}
4 .cm-s-ipython span.cm-number {color: #0A32C8;}
5 .cm-s-ipython span.cm-operator {color: #AA22FF; font-weight: bold;}
5 .cm-s-ipython span.cm-operator {color: #AA22FF; font-weight: bold;}
6 .cm-s-ipython span.cm-meta {color: #AA22FF;}
6 .cm-s-ipython span.cm-meta {color: #AA22FF;}
7 .cm-s-ipython span.cm-comment {color: #408080; font-style: italic;}
7 .cm-s-ipython span.cm-comment {color: #408080; font-style: italic;}
8 .cm-s-ipython span.cm-string {color: #BA2121;}
8 .cm-s-ipython span.cm-string {color: #BA2121;}
9 .cm-s-ipython span.cm-error {color: #f00;}
9 .cm-s-ipython span.cm-error {color: #f00;}
10 .cm-s-ipython span.cm-builtin {color: #008000;}
10 .cm-s-ipython span.cm-builtin {color: #008000;}
11 .cm-s-ipython span.cm-variable {color: #000000;}
11 .cm-s-ipython span.cm-variable {color: #000000;}
12
12
13 /* These classes are not currently used in the python.js mode */
13 /* These classes are not currently used in the python.js mode */
14
14
15 /*.cm-s-ipython span.cm-atom {color: #219;}*/
15 /*.cm-s-ipython span.cm-atom {color: #219;}*/
16 /*.cm-s-ipython span.cm-def {color: #00f;}*/
16 /*.cm-s-ipython span.cm-def {color: #00f;}*/
17 /*.cm-s-ipython span.cm-variable-2 {color: #05a;}*/
17 /*.cm-s-ipython span.cm-variable-2 {color: #05a;}*/
18 /*.cm-s-ipython span.cm-variable-3 {color: #0a5;}*/
18 /*.cm-s-ipython span.cm-variable-3 {color: #0a5;}*/
19 /*.cm-s-ipython span.cm-property {color: black;}*/
19 /*.cm-s-ipython span.cm-property {color: black;}*/
20 /*.cm-s-ipython span.cm-qualifier {color: #555;}*/
20 /*.cm-s-ipython span.cm-qualifier {color: #555;}*/
21 /*.cm-s-ipython span.cm-bracket {color: #cc7;}*/
21 /*.cm-s-ipython span.cm-bracket {color: #cc7;}*/
22 /*.cm-s-ipython span.cm-tag {color: #170;}*/
22 /*.cm-s-ipython span.cm-tag {color: #170;}*/
23 /*.cm-s-ipython span.cm-attribute {color: #00c;}*/
23 /*.cm-s-ipython span.cm-attribute {color: #00c;}*/
24
24
25 /* These are the old styles for our pre-themed version */
25 /* These are the old styles for our pre-themed version */
26
26
27 /*span.py-delimiter {color: #666666;}*/
27 /*span.py-delimiter {color: #666666;}*/
28 /*span.py-special {color: #666666;}*/
28 /*span.py-special {color: #666666;}*/
29 /*span.py-operator {color: #AA22FF; font-weight: bold;}*/
29 /*span.py-operator {color: #AA22FF; font-weight: bold;}*/
30 /*span.py-keyword {color: #008000; font-weight: bold;}*/
30 /*span.py-keyword {color: #008000; font-weight: bold;}*/
31 /*span.py-number {color: #666666;}*/
31 /*span.py-number {color: #666666;}*/
32 /*span.py-identifier {color: #000000;}*/
32 /*span.py-identifier {color: #000000;}*/
33 /*span.py-func {color: #000000;}*/
33 /*span.py-func {color: #000000;}*/
34 /*span.py-type {color: #008000;}*/
34 /*span.py-type {color: #008000;}*/
35 /*span.py-decorator {color: #AA22FF;}*/
35 /*span.py-decorator {color: #AA22FF;}*/
36 /*span.py-comment {color: #408080; font-style: italic;}*/
36 /*span.py-comment {color: #408080; font-style: italic;}*/
37 /*span.py-string {color: #BA2121;}*/
37 /*span.py-string {color: #BA2121;}*/
38 /*span.py-bytes {color: #BA2121;}*/
38 /*span.py-bytes {color: #BA2121;}*/
39 /*span.py-raw {color: #BA2121;}*/
39 /*span.py-raw {color: #BA2121;}*/
40 /*span.py-unicode {color: #BA2121;}*/
40 /*span.py-unicode {color: #BA2121;}*/
@@ -1,345 +1,345 b''
1 /**
1 /**
2 * Primary styles
2 * Primary styles
3 *
3 *
4 * Author: IPython Development Team
4 * Author: IPython Development Team
5 */
5 */
6
6
7
7
8 body {
8 body {
9 background-color: white;
9 background-color: white;
10 /* This makes sure that the body covers the entire window and needs to
10 /* This makes sure that the body covers the entire window and needs to
11 be in a different element than the display: box in wrapper below */
11 be in a different element than the display: box in wrapper below */
12 position: absolute;
12 position: absolute;
13 left: 0px;
13 left: 0px;
14 right: 0px;
14 right: 0px;
15 top: 0px;
15 top: 0px;
16 bottom: 0px;
16 bottom: 0px;
17 overflow: hidden;
17 overflow: hidden;
18 }
18 }
19
19
20 span#save_widget {
20 span#save_widget {
21 position: static;
21 position: static;
22 left: 0px;
22 left: 0px;
23 padding: 5px 0px;
23 padding: 5px 0px;
24 margin: 0px 0px 0px 0px;
24 margin: 0px 0px 0px 0px;
25 }
25 }
26
26
27 span#quick_help_area {
27 span#quick_help_area {
28 position: static;
28 position: static;
29 padding: 5px 0px;
29 padding: 5px 0px;
30 margin: 0px 0px 0px 0px;
30 margin: 0px 0px 0px 0px;
31 }
31 }
32
32
33 input#notebook_name {
33 input#notebook_name {
34 height: 1em;
34 height: 1em;
35 line-height: 1em;
35 line-height: 1em;
36 padding: 5px;
36 padding: 5px;
37 }
37 }
38
38
39 span#kernel_status {
39 span#kernel_status {
40 position: absolute;
40 position: absolute;
41 padding: 8px 5px 5px 5px;
41 padding: 8px 5px 5px 5px;
42 right: 10px;
42 right: 10px;
43 font-weight: bold;
43 font-weight: bold;
44 }
44 }
45
45
46
46
47 .status_idle {
47 .status_idle {
48 color: gray;
48 color: gray;
49 }
49 }
50
50
51 .status_busy {
51 .status_busy {
52 color: red;
52 color: red;
53 }
53 }
54
54
55 .status_restarting {
55 .status_restarting {
56 color: black;
56 color: black;
57 }
57 }
58
58
59 div#left_panel {
59 div#left_panel {
60 overflow-y: auto;
60 overflow-y: auto;
61 top: 0px;
61 top: 0px;
62 left: 0px;
62 left: 0px;
63 margin: 0px;
63 margin: 0px;
64 padding: 0px;
64 padding: 0px;
65 position: absolute;
65 position: absolute;
66 }
66 }
67
67
68 h3.section_header {
68 h3.section_header {
69 padding: 5px;
69 padding: 5px;
70 }
70 }
71
71
72 div.section_content {
72 div.section_content {
73 padding: 5px;
73 padding: 5px;
74 }
74 }
75
75
76 span.section_row_buttons button {
76 span.section_row_buttons button {
77 width: 70px;
77 width: 70px;
78 }
78 }
79
79
80 span.section_row_buttons a {
80 span.section_row_buttons a {
81 width: 70px;
81 width: 70px;
82 }
82 }
83
83
84 .section_row {
84 .section_row {
85 margin: 5px 0px;
85 margin: 5px 0px;
86 }
86 }
87
87
88 .section_row_buttons {
88 .section_row_buttons {
89 float: right;
89 float: right;
90 }
90 }
91
91
92 #kernel_persist {
92 #kernel_persist {
93 float: right;
93 float: right;
94 }
94 }
95
95
96 .help_string {
96 .help_string {
97 float: right;
97 float: right;
98 width: 170px;
98 width: 170px;
99 padding: 0px 5px;
99 padding: 0px 5px;
100 text-align: left;
100 text-align: left;
101 font-size: 85%;
101 font-size: 85%;
102 }
102 }
103
103
104 .help_string_label {
104 .help_string_label {
105 float: right;
105 float: right;
106 font-size: 85%;
106 font-size: 85%;
107 }
107 }
108
108
109 #autoindent_span {
109 #autoindent_span {
110 float: right;
110 float: right;
111 }
111 }
112
112
113 .checkbox_label {
113 .checkbox_label {
114 font-size: 85%;
114 font-size: 85%;
115 float: right;
115 float: right;
116 padding: 0.3em;
116 padding: 0.3em;
117 }
117 }
118
118
119 .section_row_header {
119 .section_row_header {
120 float: left;
120 float: left;
121 font-size: 85%;
121 font-size: 85%;
122 padding: 0.4em 0em;
122 padding: 0.4em 0em;
123 font-weight: bold;
123 font-weight: bold;
124 }
124 }
125
125
126 span.button_label {
126 span.button_label {
127 padding: 0.2em 1em;
127 padding: 0.2em 1em;
128 font-size: 77%;
128 font-size: 77%;
129 float: right;
129 float: right;
130 }
130 }
131
131
132 /* This is needed because FF was adding a 2px margin top and bottom. */
132 /* This is needed because FF was adding a 2px margin top and bottom. */
133 .section_row .ui-button {
133 .section_row .ui-button {
134 margin-top: 0px;
134 margin-top: 0px;
135 margin-bottom: 0px;
135 margin-bottom: 0px;
136 }
136 }
137
137
138 #download_format {
138 #download_format {
139 float: right;
139 float: right;
140 font-size: 85%;
140 font-size: 85%;
141 width: 62px;
141 width: 62px;
142 margin: 1px 5px;
142 margin: 1px 5px;
143 }
143 }
144
144
145 div#left_panel_splitter {
145 div#left_panel_splitter {
146 width: 8px;
146 width: 8px;
147 top: 0px;
147 top: 0px;
148 left: 202px;
148 left: 202px;
149 margin: 0px;
149 margin: 0px;
150 padding: 0px;
150 padding: 0px;
151 position: absolute;
151 position: absolute;
152 }
152 }
153
153
154 div#notebook_panel {
154 div#notebook_panel {
155 /* The L margin will be set in the Javascript code*/
155 /* The L margin will be set in the Javascript code*/
156 margin: 0px 0px 0px 0px;
156 margin: 0px 0px 0px 0px;
157 padding: 0px;
157 padding: 0px;
158 }
158 }
159
159
160 div#notebook {
160 div#notebook {
161 overflow-y: scroll;
161 overflow-y: scroll;
162 overflow-x: auto;
162 overflow-x: auto;
163 width: 100%;
163 width: 100%;
164 /* This spaces the cell away from the edge of the notebook area */
164 /* This spaces the cell away from the edge of the notebook area */
165 padding: 5px 5px 15px 5px;
165 padding: 5px 5px 15px 5px;
166 margin: 0px
166 margin: 0px
167 background-color: white;
167 background-color: white;
168 }
168 }
169
169
170 div#pager_splitter {
170 div#pager_splitter {
171 height: 8px;
171 height: 8px;
172 }
172 }
173
173
174 div#pager {
174 div#pager {
175 padding: 15px;
175 padding: 15px;
176 overflow: auto;
176 overflow: auto;
177 }
177 }
178
178
179 div.cell {
179 div.cell {
180 width: 100%;
180 width: 100%;
181 padding: 5px 5px 5px 0px;
181 padding: 5px 5px 5px 0px;
182 /* This acts as a spacer between cells, that is outside the border */
182 /* This acts as a spacer between cells, that is outside the border */
183 margin: 2px 0px 2px 0px;
183 margin: 2px 0px 2px 0px;
184 }
184 }
185
185
186 div.code_cell {
186 div.code_cell {
187 background-color: white;
187 background-color: white;
188 }
188 }
189
189
190 div.prompt {
190 div.prompt {
191 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
191 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
192 width: 11ex;
192 width: 11ex;
193 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
193 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
194 padding: 0.4em;
194 padding: 0.4em;
195 margin: 0px;
195 margin: 0px;
196 font-family: monospace;
196 font-family: monospace;
197 text-align:right;
197 text-align:right;
198 }
198 }
199
199
200 div.input {
200 div.input {
201 page-break-inside: avoid;
201 page-break-inside: avoid;
202 }
202 }
203
203
204 /* input_area and input_prompt must match in top border and margin for alignment */
204 /* input_area and input_prompt must match in top border and margin for alignment */
205 div.input_area {
205 div.input_area {
206 color: black;
206 color: black;
207 border: 1px solid #ddd;
207 border: 1px solid #ddd;
208 border-radius: 3px;
208 border-radius: 3px;
209 background: #f4f4f4;
209 background: #f7f7f7;
210 }
210 }
211
211
212 div.input_prompt {
212 div.input_prompt {
213 color: navy;
213 color: navy;
214 border-top: 1px solid transparent;
214 border-top: 1px solid transparent;
215 }
215 }
216
216
217 div.output {
217 div.output {
218 /* This is a spacer between the input and output of each cell */
218 /* This is a spacer between the input and output of each cell */
219 margin-top: 5px;
219 margin-top: 5px;
220 }
220 }
221
221
222 div.output_prompt {
222 div.output_prompt {
223 color: darkred;
223 color: darkred;
224 }
224 }
225
225
226 /* This class is the outer container of all output sections. */
226 /* This class is the outer container of all output sections. */
227 div.output_area {
227 div.output_area {
228 padding: 0px;
228 padding: 0px;
229 page-break-inside: avoid;
229 page-break-inside: avoid;
230 }
230 }
231
231
232 /* This class is for the output subarea inside the output_area and after
232 /* This class is for the output subarea inside the output_area and after
233 the prompt div. */
233 the prompt div. */
234 div.output_subarea {
234 div.output_subarea {
235 padding: 0.4em;
235 padding: 0.4em;
236 }
236 }
237
237
238 /* The rest of the output_* classes are for special styling of the different
238 /* The rest of the output_* classes are for special styling of the different
239 output types */
239 output types */
240
240
241 /* all text output has this class: */
241 /* all text output has this class: */
242 div.output_text {
242 div.output_text {
243 text-align: left;
243 text-align: left;
244 color: black;
244 color: black;
245 font-family: monospace;
245 font-family: monospace;
246 }
246 }
247
247
248 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
248 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
249 div.output_stream {
249 div.output_stream {
250 padding-top: 0.0em;
250 padding-top: 0.0em;
251 padding-bottom: 0.0em;
251 padding-bottom: 0.0em;
252 }
252 }
253 div.output_stdout {
253 div.output_stdout {
254 }
254 }
255 div.output_stderr {
255 div.output_stderr {
256 background: #fdd; /* very light red background for stderr */
256 background: #fdd; /* very light red background for stderr */
257 }
257 }
258
258
259 div.output_latex {
259 div.output_latex {
260 text-align: left;
260 text-align: left;
261 color: black;
261 color: black;
262 }
262 }
263
263
264 div.output_html {
264 div.output_html {
265 }
265 }
266
266
267 div.output_png {
267 div.output_png {
268 }
268 }
269
269
270 div.output_jpeg {
270 div.output_jpeg {
271 }
271 }
272
272
273 div.text_cell {
273 div.text_cell {
274 background-color: white;
274 background-color: white;
275 }
275 }
276
276
277 div.text_cell_input {
277 div.text_cell_input {
278 color: black;
278 color: black;
279 }
279 }
280
280
281 div.text_cell_render {
281 div.text_cell_render {
282 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
282 font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
283 outline: none;
283 outline: none;
284 resize: none;
284 resize: none;
285 width: inherit;
285 width: inherit;
286 border-style: none;
286 border-style: none;
287 padding: 5px;
287 padding: 5px;
288 color: black;
288 color: black;
289 }
289 }
290
290
291 .CodeMirror {
291 .CodeMirror {
292 line-height: 1.231; /* Changed from 1em to our global default */
292 line-height: 1.231; /* Changed from 1em to our global default */
293 }
293 }
294
294
295 .CodeMirror-scroll {
295 .CodeMirror-scroll {
296 height: auto; /* Changed to auto to autogrow */
296 height: auto; /* Changed to auto to autogrow */
297 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
297 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
298 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
298 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
299 overflow-y: hidden;
299 overflow-y: hidden;
300 overflow-x: auto; /* Changed from auto to remove scrollbar */
300 overflow-x: auto; /* Changed from auto to remove scrollbar */
301 }
301 }
302
302
303 /* CSS font colors for translated ANSI colors. */
303 /* CSS font colors for translated ANSI colors. */
304
304
305
305
306 .ansiblack {color: black;}
306 .ansiblack {color: black;}
307 .ansired {color: darkred;}
307 .ansired {color: darkred;}
308 .ansigreen {color: darkgreen;}
308 .ansigreen {color: darkgreen;}
309 .ansiyellow {color: brown;}
309 .ansiyellow {color: brown;}
310 .ansiblue {color: darkblue;}
310 .ansiblue {color: darkblue;}
311 .ansipurple {color: darkviolet;}
311 .ansipurple {color: darkviolet;}
312 .ansicyan {color: steelblue;}
312 .ansicyan {color: steelblue;}
313 .ansigrey {color: grey;}
313 .ansigrey {color: grey;}
314 .ansibold {font-weight: bold;}
314 .ansibold {font-weight: bold;}
315
315
316 .completions {
316 .completions {
317 position: absolute;
317 position: absolute;
318 z-index: 10;
318 z-index: 10;
319 overflow: auto;
319 overflow: auto;
320 border: 1px solid black;
320 border: 1px solid black;
321 }
321 }
322
322
323 .completions select {
323 .completions select {
324 background: white;
324 background: white;
325 outline: none;
325 outline: none;
326 border: none;
326 border: none;
327 padding: 0px;
327 padding: 0px;
328 margin: 0px;
328 margin: 0px;
329 font-family: monospace;
329 font-family: monospace;
330 }
330 }
331
331
332 @media print {
332 @media print {
333 body { overflow: visible !important; }
333 body { overflow: visible !important; }
334 .ui-widget-content { border: 0px; }
334 .ui-widget-content { border: 0px; }
335 }
335 }
336
336
337 .shortcut_key {
337 .shortcut_key {
338 display: inline-block;
338 display: inline-block;
339 width: 13ex;
339 width: 13ex;
340 text-align: right;
340 text-align: right;
341 font-family: monospace;
341 font-family: monospace;
342 }
342 }
343
343
344 .shortcut_descr {
344 .shortcut_descr {
345 }
345 }
General Comments 0
You need to be logged in to leave comments. Login now