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