##// END OF EJS Templates
merge box-flex1 class into .output-area css definition
Matthias BUSSONNIER -
Show More
@@ -345,7 +345,7 b' var IPython = (function (IPython) {'
345
345
346
346
347 OutputArea.prototype.append_html = function (html, element) {
347 OutputArea.prototype.append_html = function (html, element) {
348 var toinsert = $("<div/>").addClass("box-flex1 output_subarea output_html rendered_html");
348 var toinsert = $("<div/>").addClass("output_subarea output_html rendered_html");
349 toinsert.append(html);
349 toinsert.append(html);
350 element.append(toinsert);
350 element.append(toinsert);
351 };
351 };
@@ -353,7 +353,7 b' var IPython = (function (IPython) {'
353
353
354 OutputArea.prototype.append_javascript = function (js, container) {
354 OutputArea.prototype.append_javascript = function (js, container) {
355 // We just eval the JS code, element appears in the local scope.
355 // We just eval the JS code, element appears in the local scope.
356 var element = $("<div/>").addClass("box-flex1 output_subarea");
356 var element = $("<div/>").addClass("output_subarea");
357 container.append(element);
357 container.append(element);
358 // Div for js shouldn't be drawn, as it will add empty height to the area.
358 // Div for js shouldn't be drawn, as it will add empty height to the area.
359 container.hide();
359 container.hide();
@@ -376,7 +376,7 b' var IPython = (function (IPython) {'
376
376
377
377
378 OutputArea.prototype.append_text = function (data, element, extra_class) {
378 OutputArea.prototype.append_text = function (data, element, extra_class) {
379 var toinsert = $("<div/>").addClass("box-flex1 output_subarea output_text");
379 var toinsert = $("<div/>").addClass("output_subarea output_text");
380 // escape ANSI & HTML specials in plaintext:
380 // escape ANSI & HTML specials in plaintext:
381 data = utils.fixConsole(data);
381 data = utils.fixConsole(data);
382 data = utils.fixCarriageReturn(data);
382 data = utils.fixCarriageReturn(data);
@@ -390,7 +390,7 b' var IPython = (function (IPython) {'
390
390
391
391
392 OutputArea.prototype.append_svg = function (svg, element) {
392 OutputArea.prototype.append_svg = function (svg, element) {
393 var toinsert = $("<div/>").addClass("box-flex1 output_subarea output_svg");
393 var toinsert = $("<div/>").addClass("output_subarea output_svg");
394 toinsert.append(svg);
394 toinsert.append(svg);
395 element.append(toinsert);
395 element.append(toinsert);
396 };
396 };
@@ -424,7 +424,7 b' var IPython = (function (IPython) {'
424
424
425
425
426 OutputArea.prototype.append_png = function (png, element) {
426 OutputArea.prototype.append_png = function (png, element) {
427 var toinsert = $("<div/>").addClass("box-flex1 output_subarea output_png");
427 var toinsert = $("<div/>").addClass("output_subarea output_png");
428 var img = $("<img/>").attr('src','data:image/png;base64,'+png);
428 var img = $("<img/>").attr('src','data:image/png;base64,'+png);
429 this._dblclick_to_reset_size(img);
429 this._dblclick_to_reset_size(img);
430 toinsert.append(img);
430 toinsert.append(img);
@@ -433,7 +433,7 b' var IPython = (function (IPython) {'
433
433
434
434
435 OutputArea.prototype.append_jpeg = function (jpeg, element) {
435 OutputArea.prototype.append_jpeg = function (jpeg, element) {
436 var toinsert = $("<div/>").addClass("box-flex1 output_subarea output_jpeg");
436 var toinsert = $("<div/>").addClass("output_subarea output_jpeg");
437 var img = $("<img/>").attr('src','data:image/jpeg;base64,'+jpeg);
437 var img = $("<img/>").attr('src','data:image/jpeg;base64,'+jpeg);
438 this._dblclick_to_reset_size(img);
438 this._dblclick_to_reset_size(img);
439 toinsert.append(img);
439 toinsert.append(img);
@@ -444,7 +444,7 b' var IPython = (function (IPython) {'
444 OutputArea.prototype.append_latex = function (latex, element) {
444 OutputArea.prototype.append_latex = function (latex, element) {
445 // This method cannot do the typesetting because the latex first has to
445 // This method cannot do the typesetting because the latex first has to
446 // be on the page.
446 // be on the page.
447 var toinsert = $("<div/>").addClass("box-flex1 output_subarea output_latex");
447 var toinsert = $("<div/>").addClass("output_subarea output_latex");
448 toinsert.append(latex);
448 toinsert.append(latex);
449 element.append(toinsert);
449 element.append(toinsert);
450 };
450 };
@@ -56,12 +56,18 b''
56 box-flex: 0;
56 box-flex: 0;
57 }
57 }
58
58
59 .box-flex1, .box-flex {
59 .box-flex1 {
60 -webkit-box-flex: 1;
60 -webkit-box-flex: 1;
61 -moz-box-flex: 1;
61 -moz-box-flex: 1;
62 box-flex: 1;
62 box-flex: 1;
63 }
63 }
64
64
65 .box-flex {
66 .box-flex1();
67 }
68
69
70
65 .box-flex2 {
71 .box-flex2 {
66 -webkit-box-flex: 2;
72 -webkit-box-flex: 2;
67 -moz-box-flex: 2;
73 -moz-box-flex: 2;
@@ -294,6 +294,7 b' div.output_area pre {'
294 the prompt div. */
294 the prompt div. */
295 div.output_subarea {
295 div.output_subarea {
296 padding: 0.44em 0.4em 0.4em 1px;
296 padding: 0.44em 0.4em 0.4em 1px;
297 .box-flex1();
297 }
298 }
298
299
299 /* The rest of the output_* classes are for special styling of the different
300 /* The rest of the output_* classes are for special styling of the different
General Comments 0
You need to be logged in to leave comments. Login now