use hbox mixin instead of class

this will allow dynamic css in nbviewer like vbox-ing for low res
without JS or change in html
This commit is contained in:
Matthias BUSSONNIER 2013-04-14 15:12:07 +02:00
parent 29b2d7ff95
commit 947c32bfc4
2 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,7 @@ var IPython = (function (IPython) {
this.celltoolbar = new IPython.CellToolbar(this);
var input = $('<div></div>').addClass('input hbox');
var input = $('<div></div>').addClass('input');
var vbox = $('<div/>').addClass('vbox box-flex1')
input.append($('<div/>').addClass('prompt input_prompt'));
vbox.append(this.celltoolbar.element);

View File

@ -207,6 +207,7 @@ div.prompt {
div.input {
page-break-inside: avoid;
.hbox();
}
/* input_area and input_prompt must match in top border and margin for alignment */