Show More
@@ -1,358 +1,358 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 | visibility: hidden; |
|
49 | visibility: hidden; | |
50 | } |
|
50 | } | |
51 |
|
51 | |||
52 | .status_busy { |
|
52 | .status_busy { | |
53 | color: red; |
|
53 | color: red; | |
54 | } |
|
54 | } | |
55 |
|
55 | |||
56 | .status_restarting { |
|
56 | .status_restarting { | |
57 | color: black; |
|
57 | color: black; | |
58 | } |
|
58 | } | |
59 |
|
59 | |||
60 | div#left_panel { |
|
60 | div#left_panel { | |
61 | overflow-y: auto; |
|
61 | overflow-y: auto; | |
62 | top: 0px; |
|
62 | top: 0px; | |
63 | left: 0px; |
|
63 | left: 0px; | |
64 | margin: 0px; |
|
64 | margin: 0px; | |
65 | padding: 0px; |
|
65 | padding: 0px; | |
66 | position: absolute; |
|
66 | position: absolute; | |
67 | } |
|
67 | } | |
68 |
|
68 | |||
69 | div.section_header { |
|
69 | div.section_header { | |
70 | padding: 5px; |
|
70 | padding: 5px; | |
71 | } |
|
71 | } | |
72 |
|
72 | |||
73 | div.section_header h3 { |
|
73 | div.section_header h3 { | |
74 | display: inline; |
|
74 | display: inline; | |
75 | } |
|
75 | } | |
76 |
|
76 | |||
77 | div.section_content { |
|
77 | div.section_content { | |
78 | padding: 5px; |
|
78 | padding: 5px; | |
79 | } |
|
79 | } | |
80 |
|
80 | |||
81 | span.section_row_buttons button { |
|
81 | span.section_row_buttons button { | |
82 | width: 70px; |
|
82 | width: 70px; | |
83 | } |
|
83 | } | |
84 |
|
84 | |||
85 | span.section_row_buttons a { |
|
85 | span.section_row_buttons a { | |
86 | width: 70px; |
|
86 | width: 70px; | |
87 | } |
|
87 | } | |
88 |
|
88 | |||
89 | .section_row { |
|
89 | .section_row { | |
90 | margin: 5px 0px; |
|
90 | margin: 5px 0px; | |
91 | } |
|
91 | } | |
92 |
|
92 | |||
93 | .section_row_buttons { |
|
93 | .section_row_buttons { | |
94 | float: right; |
|
94 | float: right; | |
95 | } |
|
95 | } | |
96 |
|
96 | |||
97 | #kernel_persist { |
|
97 | #kernel_persist { | |
98 | float: right; |
|
98 | float: right; | |
99 | } |
|
99 | } | |
100 |
|
100 | |||
101 | .help_string { |
|
101 | .help_string { | |
102 | float: right; |
|
102 | float: right; | |
103 | width: 170px; |
|
103 | width: 170px; | |
104 | padding: 0px 5px; |
|
104 | padding: 0px 5px; | |
105 | text-align: left; |
|
105 | text-align: left; | |
106 | font-size: 85%; |
|
106 | font-size: 85%; | |
107 | } |
|
107 | } | |
108 |
|
108 | |||
109 | .help_string_label { |
|
109 | .help_string_label { | |
110 | float: right; |
|
110 | float: right; | |
111 | font-size: 85%; |
|
111 | font-size: 85%; | |
112 | } |
|
112 | } | |
113 |
|
113 | |||
114 | #autoindent_span { |
|
114 | #autoindent_span { | |
115 | float: right; |
|
115 | float: right; | |
116 | } |
|
116 | } | |
117 |
|
117 | |||
118 | .checkbox_label { |
|
118 | .checkbox_label { | |
119 | font-size: 85%; |
|
119 | font-size: 85%; | |
120 | float: right; |
|
120 | float: right; | |
121 | padding: 0.3em; |
|
121 | padding: 0.3em; | |
122 | } |
|
122 | } | |
123 |
|
123 | |||
124 | .section_row_header { |
|
124 | .section_row_header { | |
125 | float: left; |
|
125 | float: left; | |
126 | font-size: 85%; |
|
126 | font-size: 85%; | |
127 | padding: 0.4em 0em; |
|
127 | padding: 0.4em 0em; | |
128 | font-weight: bold; |
|
128 | font-weight: bold; | |
129 | } |
|
129 | } | |
130 |
|
130 | |||
131 | span.button_label { |
|
131 | span.button_label { | |
132 | padding: 0.2em 1em; |
|
132 | padding: 0.2em 1em; | |
133 | font-size: 77%; |
|
133 | font-size: 77%; | |
134 | float: right; |
|
134 | float: right; | |
135 | } |
|
135 | } | |
136 |
|
136 | |||
137 | /* This is needed because FF was adding a 2px margin top and bottom. */ |
|
137 | /* This is needed because FF was adding a 2px margin top and bottom. */ | |
138 | .section_row .ui-button { |
|
138 | .section_row .ui-button { | |
139 | margin-top: 0px; |
|
139 | margin-top: 0px; | |
140 | margin-bottom: 0px; |
|
140 | margin-bottom: 0px; | |
141 | } |
|
141 | } | |
142 |
|
142 | |||
143 | #download_format { |
|
143 | #download_format { | |
144 | float: right; |
|
144 | float: right; | |
145 | font-size: 85%; |
|
145 | font-size: 85%; | |
146 | width: 62px; |
|
146 | width: 62px; | |
147 | margin: 1px 5px; |
|
147 | margin: 1px 5px; | |
148 | } |
|
148 | } | |
149 |
|
149 | |||
150 | div#left_panel_splitter { |
|
150 | div#left_panel_splitter { | |
151 | width: 8px; |
|
151 | width: 8px; | |
152 | top: 0px; |
|
152 | top: 0px; | |
153 | left: 202px; |
|
153 | left: 202px; | |
154 | margin: 0px; |
|
154 | margin: 0px; | |
155 | padding: 0px; |
|
155 | padding: 0px; | |
156 | position: absolute; |
|
156 | position: absolute; | |
157 | } |
|
157 | } | |
158 |
|
158 | |||
159 | div#notebook_panel { |
|
159 | div#notebook_panel { | |
160 | /* The L margin will be set in the Javascript code*/ |
|
160 | /* The L margin will be set in the Javascript code*/ | |
161 | margin: 0px 0px 0px 0px; |
|
161 | margin: 0px 0px 0px 0px; | |
162 | padding: 0px; |
|
162 | padding: 0px; | |
163 | } |
|
163 | } | |
164 |
|
164 | |||
165 | div#notebook { |
|
165 | div#notebook { | |
166 | overflow-y: scroll; |
|
166 | overflow-y: scroll; | |
167 | overflow-x: auto; |
|
167 | overflow-x: auto; | |
168 | width: 100%; |
|
168 | width: 100%; | |
169 | /* This spaces the cell away from the edge of the notebook area */ |
|
169 | /* This spaces the cell away from the edge of the notebook area */ | |
170 | padding: 5px 5px 15px 5px; |
|
170 | padding: 5px 5px 15px 5px; | |
171 | margin: 0px |
|
171 | margin: 0px | |
172 | background-color: white; |
|
172 | background-color: white; | |
173 | } |
|
173 | } | |
174 |
|
174 | |||
175 | div#pager_splitter { |
|
175 | div#pager_splitter { | |
176 | height: 8px; |
|
176 | height: 8px; | |
177 | } |
|
177 | } | |
178 |
|
178 | |||
179 | div#pager { |
|
179 | div#pager { | |
180 | padding: 15px; |
|
180 | padding: 15px; | |
181 | overflow: auto; |
|
181 | overflow: auto; | |
182 | } |
|
182 | } | |
183 |
|
183 | |||
184 | div.cell { |
|
184 | div.cell { | |
185 | width: 100%; |
|
185 | width: 100%; | |
186 | padding: 5px 5px 5px 0px; |
|
186 | padding: 5px 5px 5px 0px; | |
187 | /* This acts as a spacer between cells, that is outside the border */ |
|
187 | /* This acts as a spacer between cells, that is outside the border */ | |
188 | margin: 2px 0px 2px 0px; |
|
188 | margin: 2px 0px 2px 0px; | |
189 | } |
|
189 | } | |
190 |
|
190 | |||
191 | div.code_cell { |
|
191 | div.code_cell { | |
192 | background-color: white; |
|
192 | background-color: white; | |
193 | } |
|
193 | } | |
194 | /* any special styling for code cells that are currently running goes here */ |
|
194 | /* any special styling for code cells that are currently running goes here */ | |
195 | div.code_cell.running { |
|
195 | div.code_cell.running { | |
196 | } |
|
196 | } | |
197 |
|
197 | |||
198 | div.prompt { |
|
198 | div.prompt { | |
199 | /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ |
|
199 | /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ | |
200 | width: 11ex; |
|
200 | width: 11ex; | |
201 | /* This 0.4em is tuned to match the padding on the CodeMirror editor. */ |
|
201 | /* This 0.4em is tuned to match the padding on the CodeMirror editor. */ | |
202 | padding: 0.4em; |
|
202 | padding: 0.4em; | |
203 | margin: 0px; |
|
203 | margin: 0px; | |
204 | font-family: monospace; |
|
204 | font-family: monospace; | |
205 | text-align:right; |
|
205 | text-align:right; | |
206 | } |
|
206 | } | |
207 |
|
207 | |||
208 | div.input { |
|
208 | div.input { | |
209 | page-break-inside: avoid; |
|
209 | page-break-inside: avoid; | |
210 | } |
|
210 | } | |
211 |
|
211 | |||
212 | /* input_area and input_prompt must match in top border and margin for alignment */ |
|
212 | /* input_area and input_prompt must match in top border and margin for alignment */ | |
213 | div.input_area { |
|
213 | div.input_area { | |
214 | color: black; |
|
214 | color: black; | |
215 | border: 1px solid #ddd; |
|
215 | border: 1px solid #ddd; | |
216 | border-radius: 3px; |
|
216 | border-radius: 3px; | |
217 | background: #f7f7f7; |
|
217 | background: #f7f7f7; | |
218 | } |
|
218 | } | |
219 |
|
219 | |||
220 | div.input_prompt { |
|
220 | div.input_prompt { | |
221 | color: navy; |
|
221 | color: navy; | |
222 | border-top: 1px solid transparent; |
|
222 | border-top: 1px solid transparent; | |
223 | } |
|
223 | } | |
224 |
|
224 | |||
225 | div.output { |
|
225 | div.output { | |
226 | /* This is a spacer between the input and output of each cell */ |
|
226 | /* This is a spacer between the input and output of each cell */ | |
227 | margin-top: 5px; |
|
227 | margin-top: 5px; | |
228 | } |
|
228 | } | |
229 |
|
229 | |||
230 | div.output_prompt { |
|
230 | div.output_prompt { | |
231 | color: darkred; |
|
231 | color: darkred; | |
232 | } |
|
232 | } | |
233 |
|
233 | |||
234 | /* This class is the outer container of all output sections. */ |
|
234 | /* This class is the outer container of all output sections. */ | |
235 | div.output_area { |
|
235 | div.output_area { | |
236 | padding: 0px; |
|
236 | padding: 0px; | |
237 | page-break-inside: avoid; |
|
237 | page-break-inside: avoid; | |
238 | } |
|
238 | } | |
239 |
|
239 | |||
240 | /* This class is for the output subarea inside the output_area and after |
|
240 | /* This class is for the output subarea inside the output_area and after | |
241 | the prompt div. */ |
|
241 | the prompt div. */ | |
242 | div.output_subarea { |
|
242 | div.output_subarea { | |
243 | padding: 0.4em; |
|
243 | padding: 0.4em 6.1em 0.4em 0.4em; | |
244 | } |
|
244 | } | |
245 |
|
245 | |||
246 | /* The rest of the output_* classes are for special styling of the different |
|
246 | /* The rest of the output_* classes are for special styling of the different | |
247 | output types */ |
|
247 | output types */ | |
248 |
|
248 | |||
249 | /* all text output has this class: */ |
|
249 | /* all text output has this class: */ | |
250 | div.output_text { |
|
250 | div.output_text { | |
251 | text-align: left; |
|
251 | text-align: left; | |
252 | color: black; |
|
252 | color: black; | |
253 | font-family: monospace; |
|
253 | font-family: monospace; | |
254 | } |
|
254 | } | |
255 |
|
255 | |||
256 | /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */ |
|
256 | /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */ | |
257 | div.output_stream { |
|
257 | div.output_stream { | |
258 | padding-top: 0.0em; |
|
258 | padding-top: 0.0em; | |
259 | padding-bottom: 0.0em; |
|
259 | padding-bottom: 0.0em; | |
260 | } |
|
260 | } | |
261 | div.output_stdout { |
|
261 | div.output_stdout { | |
262 | } |
|
262 | } | |
263 | div.output_stderr { |
|
263 | div.output_stderr { | |
264 | background: #fdd; /* very light red background for stderr */ |
|
264 | background: #fdd; /* very light red background for stderr */ | |
265 | } |
|
265 | } | |
266 |
|
266 | |||
267 | div.output_latex { |
|
267 | div.output_latex { | |
268 | text-align: left; |
|
268 | text-align: left; | |
269 | color: black; |
|
269 | color: black; | |
270 | } |
|
270 | } | |
271 |
|
271 | |||
272 | div.output_html { |
|
272 | div.output_html { | |
273 | } |
|
273 | } | |
274 |
|
274 | |||
275 | div.output_png { |
|
275 | div.output_png { | |
276 | } |
|
276 | } | |
277 |
|
277 | |||
278 | div.output_jpeg { |
|
278 | div.output_jpeg { | |
279 | } |
|
279 | } | |
280 |
|
280 | |||
281 | div.text_cell { |
|
281 | div.text_cell { | |
282 | background-color: white; |
|
282 | background-color: white; | |
283 | } |
|
283 | } | |
284 |
|
284 | |||
285 | div.text_cell_input { |
|
285 | div.text_cell_input { | |
286 | color: black; |
|
286 | color: black; | |
287 | } |
|
287 | } | |
288 |
|
288 | |||
289 | div.text_cell_render { |
|
289 | div.text_cell_render { | |
290 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; |
|
290 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; | |
291 | outline: none; |
|
291 | outline: none; | |
292 | resize: none; |
|
292 | resize: none; | |
293 | width: inherit; |
|
293 | width: inherit; | |
294 | border-style: none; |
|
294 | border-style: none; | |
295 | padding: 5px; |
|
295 | padding: 5px; | |
296 | color: black; |
|
296 | color: black; | |
297 | } |
|
297 | } | |
298 |
|
298 | |||
299 | .CodeMirror { |
|
299 | .CodeMirror { | |
300 | line-height: 1.231; /* Changed from 1em to our global default */ |
|
300 | line-height: 1.231; /* Changed from 1em to our global default */ | |
301 | } |
|
301 | } | |
302 |
|
302 | |||
303 | .CodeMirror-scroll { |
|
303 | .CodeMirror-scroll { | |
304 | height: auto; /* Changed to auto to autogrow */ |
|
304 | height: auto; /* Changed to auto to autogrow */ | |
305 | /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/ |
|
305 | /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/ | |
306 | /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/ |
|
306 | /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/ | |
307 | overflow-y: hidden; |
|
307 | overflow-y: hidden; | |
308 | overflow-x: auto; /* Changed from auto to remove scrollbar */ |
|
308 | overflow-x: auto; /* Changed from auto to remove scrollbar */ | |
309 | } |
|
309 | } | |
310 |
|
310 | |||
311 | /* CSS font colors for translated ANSI colors. */ |
|
311 | /* CSS font colors for translated ANSI colors. */ | |
312 |
|
312 | |||
313 |
|
313 | |||
314 | .ansiblack {color: black;} |
|
314 | .ansiblack {color: black;} | |
315 | .ansired {color: darkred;} |
|
315 | .ansired {color: darkred;} | |
316 | .ansigreen {color: darkgreen;} |
|
316 | .ansigreen {color: darkgreen;} | |
317 | .ansiyellow {color: brown;} |
|
317 | .ansiyellow {color: brown;} | |
318 | .ansiblue {color: darkblue;} |
|
318 | .ansiblue {color: darkblue;} | |
319 | .ansipurple {color: darkviolet;} |
|
319 | .ansipurple {color: darkviolet;} | |
320 | .ansicyan {color: steelblue;} |
|
320 | .ansicyan {color: steelblue;} | |
321 | .ansigrey {color: grey;} |
|
321 | .ansigrey {color: grey;} | |
322 | .ansibold {font-weight: bold;} |
|
322 | .ansibold {font-weight: bold;} | |
323 |
|
323 | |||
324 | .completions { |
|
324 | .completions { | |
325 | position: absolute; |
|
325 | position: absolute; | |
326 | z-index: 10; |
|
326 | z-index: 10; | |
327 | overflow: auto; |
|
327 | overflow: auto; | |
328 | border: 1px solid black; |
|
328 | border: 1px solid black; | |
329 | } |
|
329 | } | |
330 |
|
330 | |||
331 | .completions select { |
|
331 | .completions select { | |
332 | background: white; |
|
332 | background: white; | |
333 | outline: none; |
|
333 | outline: none; | |
334 | border: none; |
|
334 | border: none; | |
335 | padding: 0px; |
|
335 | padding: 0px; | |
336 | margin: 0px; |
|
336 | margin: 0px; | |
337 | font-family: monospace; |
|
337 | font-family: monospace; | |
338 | } |
|
338 | } | |
339 |
|
339 | |||
340 | @media print { |
|
340 | @media print { | |
341 | body { overflow: visible !important; } |
|
341 | body { overflow: visible !important; } | |
342 | .ui-widget-content { border: 0px; } |
|
342 | .ui-widget-content { border: 0px; } | |
343 | } |
|
343 | } | |
344 |
|
344 | |||
345 | .shortcut_key { |
|
345 | .shortcut_key { | |
346 | display: inline-block; |
|
346 | display: inline-block; | |
347 | width: 13ex; |
|
347 | width: 13ex; | |
348 | text-align: right; |
|
348 | text-align: right; | |
349 | font-family: monospace; |
|
349 | font-family: monospace; | |
350 | } |
|
350 | } | |
351 |
|
351 | |||
352 | .shortcut_descr { |
|
352 | .shortcut_descr { | |
353 | } |
|
353 | } | |
354 |
|
354 | |||
355 | /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems |
|
355 | /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems | |
356 | to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. |
|
356 | to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. | |
357 | */ |
|
357 | */ | |
358 | pre, code, kbd, samp { white-space: pre-wrap; } |
|
358 | pre, code, kbd, samp { white-space: pre-wrap; } |
General Comments 0
You need to be logged in to leave comments.
Login now