##// END OF EJS Templates
Adjusting padding of output subareas and adding @code_padding.
Brian E. Granger -
Show More
@@ -16,8 +16,8 b' div.cell {'
16 16 div.prompt {
17 17 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
18 18 min-width: 11ex;
19 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
20 padding: 0.4em;
19 /* This padding is tuned to match the padding on the CodeMirror editor. */
20 padding: @code_padding;
21 21 margin: 0px;
22 22 font-family: @monoFontFamily;
23 23 text-align: right;
@@ -33,11 +33,11 b''
33 33 .CodeMirror-lines {
34 34 /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
35 35 /* we have set a different line-height and want this to scale with that. */
36 padding: 0.4em;
36 padding: @code_padding;
37 37 }
38 38
39 39 .CodeMirror-linenumber {
40 // This is needed to fine tune the position of the line numbers because we use the 0.4em
40 // This is needed to fine tune the position of the line numbers because we use the 0.4em in @code_padding
41 41 // spacing in various places. Fine tuned to look right.
42 42 padding: 0 8px 0 4px;
43 43 }
@@ -1,6 +1,4 b''
1 1 div.output_wrapper {
2 /* This is a spacer between the input and output of each cell */
3 margin-top: 5px;
4 2 /* this position must be relative to enable descendents to be absolute within it */
5 3 position: relative;
6 4 .vbox()
@@ -27,7 +25,7 b' div.output_collapsed {'
27 25
28 26 div.out_prompt_overlay {
29 27 height: 100%;
30 padding: 0px 0.4em;
28 padding: 0px @code_padding;
31 29 position: absolute;
32 30 .corner-all;
33 31 }
@@ -89,8 +87,7 b' div.output_area pre {'
89 87 /* This class is for the output subarea inside the output_area and after
90 88 the prompt div. */
91 89 div.output_subarea {
92 padding: 0.44em 0.4em 0.4em 1px;
93 margin-left: 6px;
90 padding: @code_padding @code_padding 0.0em @code_padding;
94 91 .box-flex1();
95 92 }
96 93
@@ -108,11 +105,11 b' div.output_text {'
108 105
109 106 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
110 107 div.output_stream {
111 padding-top: 0.0em;
112 padding-bottom: 0.0em;
113 108 }
109
114 110 div.output_stdout {
115 111 }
112
116 113 div.output_stderr {
117 114 background: #fdd; /* very light red background for stderr */
118 115 }
@@ -16,6 +16,6 b' div#pager {'
16 16 line-height: @code_line_height;
17 17 color: @textColor;
18 18 background-color: @cell_background;
19 padding: 0.4em;
19 padding: @code_padding;
20 20 }
21 21 }
@@ -6,4 +6,5 b''
6 6 @border_color: darken(@cell_selected_background, 31%);
7 7 @light_border_color: darken(@cell_selected_background, 17%);
8 8 @border_width: 1px;
9 @code_padding: 0.4em;
9 10
@@ -86,8 +86,7 b' pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .j'
86 86 .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
87 87 .cm-s-ipython span.cm-meta{color:#AA22FF;}
88 88 .cm-s-ipython span.cm-tab{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);background-position:right;background-repeat:no-repeat;}
89 div.output_wrapper{margin-top:5px;position:relative;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
90 div.output_wrapper div.output:empty{margin-top:0px;}
89 div.output_wrapper{position:relative;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
91 90 div.output_scroll{height:24em;width:100%;overflow:auto;border-radius:4px;-webkit-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);-moz-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);}
92 91 div.output_collapsed{margin:0px;padding:0px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
93 92 div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
@@ -98,9 +97,8 b' div.output_area .rendered_html table{margin-left:0;margin-right:0;}'
98 97 div.output_area .rendered_html img{margin-left:0;margin-right:0;}
99 98 .output{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
100 99 div.output_area pre{font-family:monospace;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:black;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit;}
101 div.output_subarea{padding:0.44em 0.4em 0.4em 1px;margin-left:6px;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;}
100 div.output_subarea{padding:0.4em 0.4em 0em 0.4em;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;}
102 101 div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;}
103 div.output_stream{padding-top:0.0em;padding-bottom:0.0em;}
104 102 div.output_stderr{background:#fdd;}
105 103 div.output_latex{text-align:left;}
106 104 .js-error{color:darkred;}
@@ -1467,8 +1467,7 b' pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .j'
1467 1467 .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
1468 1468 .cm-s-ipython span.cm-meta{color:#AA22FF;}
1469 1469 .cm-s-ipython span.cm-tab{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);background-position:right;background-repeat:no-repeat;}
1470 div.output_wrapper{margin-top:5px;position:relative;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
1471 div.output_wrapper div.output:empty{margin-top:0px;}
1470 div.output_wrapper{position:relative;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
1472 1471 div.output_scroll{height:24em;width:100%;overflow:auto;border-radius:4px;-webkit-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);-moz-box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);box-shadow:inset 0 2px 8px rgba(0, 0, 0, 0.8);}
1473 1472 div.output_collapsed{margin:0px;padding:0px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
1474 1473 div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
@@ -1479,9 +1478,8 b' div.output_area .rendered_html table{margin-left:0;margin-right:0;}'
1479 1478 div.output_area .rendered_html img{margin-left:0;margin-right:0;}
1480 1479 .output{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;}
1481 1480 div.output_area pre{font-family:monospace;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;color:black;background-color:transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;line-height:inherit;}
1482 div.output_subarea{padding:0.44em 0.4em 0.4em 1px;margin-left:6px;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;}
1481 div.output_subarea{padding:0.4em 0.4em 0em 0.4em;-webkit-box-flex:1;-moz-box-flex:1;box-flex:1;}
1483 1482 div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;}
1484 div.output_stream{padding-top:0.0em;padding-bottom:0.0em;}
1485 1483 div.output_stderr{background:#fdd;}
1486 1484 div.output_latex{text-align:left;}
1487 1485 .js-error{color:darkred;}
General Comments 0
You need to be logged in to leave comments. Login now