From 77888f85201ebfb2063bfe42b6a09ab9d967c230 2013-10-27 15:11:44 From: Matthias BUSSONNIER Date: 2013-10-27 15:11:44 Subject: [PATCH] remove more hard coded layout --- diff --git a/IPython/html/static/notebook/js/celltoolbar.js b/IPython/html/static/notebook/js/celltoolbar.js index fa3b6e1..9c43f0d 100644 --- a/IPython/html/static/notebook/js/celltoolbar.js +++ b/IPython/html/static/notebook/js/celltoolbar.js @@ -34,7 +34,7 @@ var IPython = (function (IPython) { CellToolbar.prototype.create_element = function () { - this.inner_element = $('
').addClass('celltoolbar hbox reverse') + this.inner_element = $('
').addClass('celltoolbar') this.element = $('
').addClass('ctb_hideshow') .append(this.inner_element); }; diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index 91886df..99c8ffa 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -57,7 +57,7 @@ var IPython = (function (IPython) { this.prompt_overlay.hide(); this.wrapper.addClass('output_wrapper'); - this.element.addClass('output vbox'); + this.element.addClass('output'); this.collapse_button.addClass("btn output_collapsed"); this.collapse_button.attr('title', 'click to expand output'); diff --git a/IPython/html/static/notebook/less/celltoolbar.less b/IPython/html/static/notebook/less/celltoolbar.less index 38c5583..4c1ef6b 100644 --- a/IPython/html/static/notebook/less/celltoolbar.less +++ b/IPython/html/static/notebook/less/celltoolbar.less @@ -10,6 +10,8 @@ width:100%; -webkit-box-pack: end; height:22px; + .hbox(); + .reverse(); } diff --git a/IPython/html/static/notebook/less/outputarea.less b/IPython/html/static/notebook/less/outputarea.less index 59cf48c..bdc0943 100644 --- a/IPython/html/static/notebook/less/outputarea.less +++ b/IPython/html/static/notebook/less/outputarea.less @@ -26,6 +26,10 @@ div.output_area { /* This is needed to protect the pre formating from global settings such as that of bootstrap */ +.output { + .vbox(); +} + div.output_area pre { font-family: @monoFontFamily; margin: 0; @@ -112,4 +116,4 @@ input.raw_input { p.p-space { margin-bottom: 10px; -} \ No newline at end of file +} diff --git a/IPython/nbconvert/templates/html_basic.tpl b/IPython/nbconvert/templates/html_basic.tpl index 96637a6..fd97f03 100644 --- a/IPython/nbconvert/templates/html_basic.tpl +++ b/IPython/nbconvert/templates/html_basic.tpl @@ -2,7 +2,7 @@ {% block codecell %} -
+
{{ super() }}
{%- endblock codecell %} @@ -15,7 +15,7 @@ {% block output_group %}
-
+
{{ super() }}