##// END OF EJS Templates
In CM3, the class that needs autogrow has changed.
Brian E. Granger -
Show More
@@ -1,502 +1,502 b''
1 1 /**
2 2 * Primary styles
3 3 *
4 4 * Author: IPython Development Team
5 5 */
6 6
7 7 @import "variables.less";
8 8
9 9
10 10 body {
11 11 background-color:@notebook_background;
12 12 }
13 13
14 14 body.notebook_app {
15 15 overflow: hidden;
16 16 }
17 17
18 18 blockquote {
19 19 border-left: 4px solid #DDD;
20 20 padding: 0 15px;
21 21 color: #777;
22 22 }
23 23
24 24 span#save_widget {
25 25 padding: 5px;
26 26 margin: 0px 0px 0px 300px;
27 27 display:inline-block;
28 28 }
29 29
30 30 span#notebook_name {
31 31 height: 1em;
32 32 line-height: 1em;
33 33 padding: 3px;
34 34 border: none;
35 35 font-size: 146.5%;
36 36 }
37 37
38 38
39 39 .ui-menubar-item .ui-button .ui-button-text {
40 40 padding: 0.4em 1.0em;
41 41 font-size: 100%;
42 42 }
43 43
44 44 .ui-menu {
45 45 -moz-box-shadow: 0px 6px 10px -1px #adadad;
46 46 -webkit-box-shadow: 0px 6px 10px -1px #adadad;
47 47 box-shadow: 0px 6px 10px -1px #adadad;
48 48 }
49 49
50 50 .ui-menu .ui-menu-item a {
51 51 border: 1px solid transparent;
52 52 padding: 2px 1.6em;
53 53 }
54 54
55 55 .ui-menu .ui-menu-item a.ui-state-focus {
56 56 margin: 0;
57 57 }
58 58
59 59 .ui-menu hr {
60 60 margin: 0.3em 0;
61 61 }
62 62
63 63 #menubar_container {
64 64 position: relative;
65 65 }
66 66
67 67 #notification_area {
68 68 position: absolute;
69 69 right: 0px;
70 70 top: 0px;
71 71 height: 25px;
72 72 padding: 3px 0px;
73 73 padding-right: 3px;
74 74 z-index: 10;
75 75 }
76 76
77 77 .notification_widget{
78 78 float : right;
79 79 right: 0px;
80 80 top: 1px;
81 81 height: 25px;
82 82 padding: 3px 6px;
83 83 z-index: 10;
84 84 }
85 85
86 86 .toolbar {
87 87 padding: 3px 15px;
88 88 border-bottom: @borderwidth @border_color solid;
89 89
90 90 button {
91 91 margin-top:2px;
92 92 margin-bottom:2px;
93 93 }
94 94
95 95
96 96 select, label {
97 97 height : 19px;
98 98 vertical-align:middle;
99 99 margin-right:2px;
100 100 margin-bottom:0;
101 101 display: inline;
102 102 font-size: 92%;
103 103 margin-left:0.3em;
104 104 margin-right:0.3em;
105 105 padding: 0px;
106 106 }
107 107 }
108 108
109 109 .toolbar select{
110 110 width:auto;
111 111 }
112 112
113 113
114 114 #ipython-main-app {
115 115 width: 100%;
116 116 position: relative;
117 117 font-size: 110%;
118 118 }
119 119
120 120 span#quick_help_area {
121 121 position: static;
122 122 padding: 5px 0px;
123 123 margin: 0px 0px 0px 0px;
124 124 }
125 125
126 126 .help_string {
127 127 float: right;
128 128 width: 170px;
129 129 padding: 0px 5px;
130 130 text-align: left;
131 131 font-size: 85%;
132 132 }
133 133
134 134 .help_string_label {
135 135 float: right;
136 136 font-size: 85%;
137 137 }
138 138
139 139 div#notebook_panel {
140 140 margin: 0px 0px 0px 0px;
141 141 padding: 0px;
142 142 }
143 143
144 144 div#notebook {
145 145 overflow-y: scroll;
146 146 overflow-x: auto;
147 147 width: 100%;
148 148 /* This spaces the cell away from the edge of the notebook area */
149 149 padding: 5px 5px 15px 5px;
150 150 margin: 0px;
151 151 }
152 152
153 153 div#pager_splitter {
154 154 height: 8px;
155 155 }
156 156
157 157 #pager_container {
158 158 position : relative;
159 159 }
160 160
161 161 div#pager {
162 162 padding: 15px;
163 163 overflow: auto;
164 164 display: none;
165 165 }
166 166
167 167 div.ui-widget-content {
168 168 border: 1px solid @border_color;
169 169 outline: none;
170 170 }
171 171
172 172 .cell {
173 173 border: 1px solid transparent;
174 174 .vbox();
175 175
176 176 &.selected {
177 177 .corner-all;
178 178 border : thin @border_color solid;
179 179 }
180 180 }
181 181
182 182 div.cell {
183 183 width: 100%;
184 184 padding: 5px 5px 5px 0px;
185 185 /* This acts as a spacer between cells, that is outside the border */
186 186 margin: 2px 0px 2px 0px;
187 187 outline: none;
188 188 }
189 189
190 190 div.code_cell {
191 191 }
192 192
193 193 /* any special styling for code cells that are currently running goes here */
194 194 div.code_cell.running {
195 195 }
196 196
197 197 div.prompt {
198 198 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
199 199 width: 11ex;
200 200 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
201 201 padding: 0.4em;
202 202 margin: 0px;
203 203 font-family: monospace;
204 204 text-align: right;
205 205 /* This has to match that of the the CodeMirror class line-height below */
206 206 line-height: 1.231;
207 207 }
208 208
209 209 div.input {
210 210 page-break-inside: avoid;
211 211 .hbox();
212 212 }
213 213
214 214 /* input_area and input_prompt must match in top border and margin for alignment */
215 215 div.input_area {
216 216 /*color: @fontBaseColor;*/
217 217 border: 1px solid @light_border_color;
218 218 .corner-all;
219 219 background: @cell_background;
220 220 }
221 221
222 222 div.input_prompt {
223 223 color: navy;
224 224 border-top: 1px solid transparent;
225 225 }
226 226
227 227 div.output_wrapper {
228 228 /* This is a spacer between the input and output of each cell */
229 229 margin-top: 5px;
230 230 margin-left: 5px;
231 231 /* FF needs explicit width to stretch */
232 232 width: 100%;
233 233 /* this position must be relative to enable descendents to be absolute within it */
234 234 position: relative;
235 235 }
236 236
237 237 /* class for the output area when it should be height-limited */
238 238 div.output_scroll {
239 239 /* ideally, this would be max-height, but FF barfs all over that */
240 240 height: 24em;
241 241 /* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */
242 242 width: 100%;
243 243
244 244 overflow: auto;
245 245 .corner-all;
246 246 box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8);
247 247 }
248 248
249 249 /* output div while it is collapsed */
250 250 div.output_collapsed {
251 251 margin-right: 5px;
252 252 }
253 253
254 254 div.out_prompt_overlay {
255 255 height: 100%;
256 256 padding: 0px;
257 257 position: absolute;
258 258 .corner-all;
259 259 }
260 260
261 261 div.out_prompt_overlay:hover {
262 262 /* use inner shadow to get border that is computed the same on WebKit/FF */
263 263 box-shadow: inset 0 0 1px #000;
264 264 background: rgba(240, 240, 240, 0.5);
265 265 }
266 266
267 267 div.output_prompt {
268 268 color: darkred;
269 269 /* 5px right shift to account for margin in parent container */
270 270 margin: 0 5px 0 -5px;
271 271 }
272 272
273 273 /* This class is the outer container of all output sections. */
274 274 div.output_area {
275 275 padding: 0px;
276 276 page-break-inside: avoid;
277 277 .hbox();
278 278 }
279 279
280 280
281 281 /* This is needed to protect the pre formating from global settings such
282 282 as that of bootstrap */
283 283 div.output_area pre {
284 284 font-family: monospace;
285 285 margin: 0;
286 286 padding: 0;
287 287 border: 0;
288 288 font-size: 100%;
289 289 vertical-align: baseline;
290 290 color: black;
291 291 }
292 292
293 293 /* This class is for the output subarea inside the output_area and after
294 294 the prompt div. */
295 295 div.output_subarea {
296 296 padding: 0.44em 0.4em 0.4em 1px;
297 297 .box-flex1();
298 298 }
299 299
300 300 /* The rest of the output_* classes are for special styling of the different
301 301 output types */
302 302
303 303 /* all text output has this class: */
304 304 div.output_text {
305 305 text-align: left;
306 306 color: @fontBaseColor;
307 307 font-family: monospace;
308 308 /* This has to match that of the the CodeMirror class line-height below */
309 309 line-height: 1.231;
310 310 }
311 311
312 312 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
313 313 div.output_stream {
314 314 padding-top: 0.0em;
315 315 padding-bottom: 0.0em;
316 316 }
317 317 div.output_stdout {
318 318 }
319 319 div.output_stderr {
320 320 background: #fdd; /* very light red background for stderr */
321 321 }
322 322
323 323 div.output_latex {
324 324 text-align: left;
325 325 }
326 326
327 327 div.output_html {
328 328 }
329 329
330 330 div.output_png {
331 331 }
332 332
333 333 div.output_jpeg {
334 334 }
335 335
336 336 div.text_cell {
337 337 padding: 5px 5px 5px 5px;
338 338 }
339 339
340 340 div.text_cell_input {
341 341 color: @fontBaseColor;
342 342 border: 1px solid @light_border_color;
343 343 .corner-all;
344 344 background: @cell_background;
345 345 }
346 346
347 347 div.text_cell_render {
348 348 /*font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;*/
349 349 outline: none;
350 350 resize: none;
351 351 width: inherit;
352 352 border-style: none;
353 353 padding: 5px;
354 354 color: @fontBaseColor;
355 355 }
356 356
357 357 /* The following gets added to the <head> if it is detected that the user has a
358 358 * monospace font with inconsistent normal/bold/italic height. See
359 359 * notebookmain.js. Such fonts will have keywords vertically offset with
360 360 * respect to the rest of the text. The user should select a better font.
361 361 * See: https://github.com/ipython/ipython/issues/1503
362 362 *
363 363 * .CodeMirror span {
364 364 * vertical-align: bottom;
365 365 * }
366 366 */
367 367
368 368 .CodeMirror {
369 369 line-height: 1.231; /* Changed from 1em to our global default */
370 height: auto; /* Changed to auto to autogrow */
370 371 }
371 372
372 373 .CodeMirror-scroll {
373 height: auto; /* Changed to auto to autogrow */
374 374 /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
375 375 /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
376 376 overflow-y: hidden;
377 377 overflow-x: auto; /* Changed from auto to remove scrollbar */
378 378 }
379 379
380 380 /* CSS font colors for translated ANSI colors. */
381 381
382 382
383 383 .ansiblack {color: @fontBaseColor;}
384 384 .ansired {color: darkred;}
385 385 .ansigreen {color: darkgreen;}
386 386 .ansiyellow {color: brown;}
387 387 .ansiblue {color: darkblue;}
388 388 .ansipurple {color: darkviolet;}
389 389 .ansicyan {color: steelblue;}
390 390 .ansigrey {color: grey;}
391 391 .ansibold {font-weight: bold;}
392 392
393 393 .completions {
394 394 position: absolute;
395 395 z-index: 10;
396 396 overflow: hidden;
397 397 border: 1px solid @border_color;
398 398 }
399 399
400 400 .completions select {
401 401 background: white;
402 402 outline: none;
403 403 border: none;
404 404 padding: 0px;
405 405 margin: 0px;
406 406 overflow: auto;
407 407 font-family: monospace;
408 408 }
409 409
410 410 option.context {
411 411 background-color: #DEF7FF;
412 412 }
413 413 option.introspection {
414 414 background-color: #EBF4EB;
415 415 }
416 416
417 417 /*fixed part of the completion*/
418 418 .completions p b {
419 419 font-weight:bold;
420 420 }
421 421
422 422 .completions p {
423 423 background: #DDF;
424 424 /*outline: none;
425 425 padding: 0px;*/
426 426 border-bottom: black solid 1px;
427 427 padding: 1px;
428 428 font-family: monospace;
429 429 }
430 430
431 431 pre.dialog {
432 432 background-color: @cell_background;
433 433 border: 1px solid #ddd;
434 434 .corner-all;
435 435 padding: 0.4em;
436 436 padding-left: 2em;
437 437 }
438 438
439 439 p.dialog {
440 440 padding : 0.2em;
441 441 }
442 442
443 443 .shortcut_key {
444 444 display: inline-block;
445 445 width: 15ex;
446 446 text-align: right;
447 447 font-family: monospace;
448 448 }
449 449
450 450 .shortcut_descr {
451 451 }
452 452
453 453 /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems
454 454 to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do.
455 455 */
456 456 pre, code, kbd, samp { white-space: pre-wrap; }
457 457
458 458 #fonttest {
459 459 font-family: monospace;
460 460 }
461 461
462 462 .js-error {
463 463 color: darkred;
464 464 }
465 465
466 466 a {
467 467 text-decoration: underline;
468 468 }
469 469
470 470 p {
471 471
472 472 margin-bottom:0;
473 473
474 474 }
475 475
476 476 a.heading-anchor:link, a.heading-anchor:visited {
477 477 text-decoration: none;
478 478 color: inherit;
479 479 }
480 480
481 481 /* raw_input styles */
482 482
483 483 div.raw_input {
484 484 padding-top: 0px;
485 485 padding-bottom: 0px;
486 486 height: 1em;
487 487 line-height: 1em;
488 488 font-family: monospace;
489 489 }
490 490 span.input_prompt {
491 491 font-family: inherit;
492 492 }
493 493 input.raw_input {
494 494 font-family: inherit;
495 495 font-size: inherit;
496 496 color: inherit;
497 497 width: auto;
498 498 margin: -2px 0px 0px 1px;
499 499 padding-left: 1px;
500 500 padding-top: 2px;
501 501 height: 1em;
502 502 }
General Comments 0
You need to be logged in to leave comments. Login now