##// 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 div.prompt {
16 div.prompt {
17 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
17 /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
18 min-width: 11ex;
18 min-width: 11ex;
19 /* This 0.4em is tuned to match the padding on the CodeMirror editor. */
19 /* This padding is tuned to match the padding on the CodeMirror editor. */
20 padding: 0.4em;
20 padding: @code_padding;
21 margin: 0px;
21 margin: 0px;
22 font-family: @monoFontFamily;
22 font-family: @monoFontFamily;
23 text-align: right;
23 text-align: right;
@@ -33,11 +33,11 b''
33 .CodeMirror-lines {
33 .CodeMirror-lines {
34 /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
34 /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
35 /* we have set a different line-height and want this to scale with that. */
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 .CodeMirror-linenumber {
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 // spacing in various places. Fine tuned to look right.
41 // spacing in various places. Fine tuned to look right.
42 padding: 0 8px 0 4px;
42 padding: 0 8px 0 4px;
43 }
43 }
@@ -1,6 +1,4 b''
1 div.output_wrapper {
1 div.output_wrapper {
2 /* This is a spacer between the input and output of each cell */
3 margin-top: 5px;
4 /* this position must be relative to enable descendents to be absolute within it */
2 /* this position must be relative to enable descendents to be absolute within it */
5 position: relative;
3 position: relative;
6 .vbox()
4 .vbox()
@@ -27,7 +25,7 b' div.output_collapsed {'
27
25
28 div.out_prompt_overlay {
26 div.out_prompt_overlay {
29 height: 100%;
27 height: 100%;
30 padding: 0px 0.4em;
28 padding: 0px @code_padding;
31 position: absolute;
29 position: absolute;
32 .corner-all;
30 .corner-all;
33 }
31 }
@@ -89,8 +87,7 b' div.output_area pre {'
89 /* This class is for the output subarea inside the output_area and after
87 /* This class is for the output subarea inside the output_area and after
90 the prompt div. */
88 the prompt div. */
91 div.output_subarea {
89 div.output_subarea {
92 padding: 0.44em 0.4em 0.4em 1px;
90 padding: @code_padding @code_padding 0.0em @code_padding;
93 margin-left: 6px;
94 .box-flex1();
91 .box-flex1();
95 }
92 }
96
93
@@ -108,11 +105,11 b' div.output_text {'
108
105
109 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
106 /* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */
110 div.output_stream {
107 div.output_stream {
111 padding-top: 0.0em;
112 padding-bottom: 0.0em;
113 }
108 }
109
114 div.output_stdout {
110 div.output_stdout {
115 }
111 }
112
116 div.output_stderr {
113 div.output_stderr {
117 background: #fdd; /* very light red background for stderr */
114 background: #fdd; /* very light red background for stderr */
118 }
115 }
@@ -16,6 +16,6 b' div#pager {'
16 line-height: @code_line_height;
16 line-height: @code_line_height;
17 color: @textColor;
17 color: @textColor;
18 background-color: @cell_background;
18 background-color: @cell_background;
19 padding: 0.4em;
19 padding: @code_padding;
20 }
20 }
21 }
21 }
@@ -6,4 +6,5 b''
6 @border_color: darken(@cell_selected_background, 31%);
6 @border_color: darken(@cell_selected_background, 31%);
7 @light_border_color: darken(@cell_selected_background, 17%);
7 @light_border_color: darken(@cell_selected_background, 17%);
8 @border_width: 1px;
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 .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
86 .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
87 .cm-s-ipython span.cm-meta{color:#AA22FF;}
87 .cm-s-ipython span.cm-meta{color:#AA22FF;}
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;}
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%;}
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%;}
90 div.output_wrapper div.output:empty{margin-top:0px;}
91 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);}
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 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%;}
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 div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
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 div.output_area .rendered_html img{margin-left:0;margin-right:0;}
97 div.output_area .rendered_html img{margin-left:0;margin-right:0;}
99 .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%;}
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 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;}
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 div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;}
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 div.output_stderr{background:#fdd;}
102 div.output_stderr{background:#fdd;}
105 div.output_latex{text-align:left;}
103 div.output_latex{text-align:left;}
106 .js-error{color:darkred;}
104 .js-error{color:darkred;}
@@ -1467,8 +1467,7 b' pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .j'
1467 .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
1467 .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;}
1468 .cm-s-ipython span.cm-meta{color:#AA22FF;}
1468 .cm-s-ipython span.cm-meta{color:#AA22FF;}
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;}
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%;}
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%;}
1471 div.output_wrapper div.output:empty{margin-top:0px;}
1472 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);}
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 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%;}
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 div.out_prompt_overlay{height:100%;padding:0px 0.4em;position:absolute;border-radius:4px;}
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 div.output_area .rendered_html img{margin-left:0;margin-right:0;}
1478 div.output_area .rendered_html img{margin-left:0;margin-right:0;}
1480 .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%;}
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 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;}
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 div.output_text{text-align:left;color:#000000;font-family:monospace;line-height:1.231em;}
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 div.output_stderr{background:#fdd;}
1483 div.output_stderr{background:#fdd;}
1486 div.output_latex{text-align:left;}
1484 div.output_latex{text-align:left;}
1487 .js-error{color:darkred;}
1485 .js-error{color:darkred;}
General Comments 0
You need to be logged in to leave comments. Login now