Controls in cell section have a solid layout.

pull/37/head
Brian E. Granger 15 years ago
parent b4015cd010
commit a0c36fbe7a

@ -123,14 +123,42 @@ div.section_content {
padding: 5px;
}
#expand_cell, #collapse_cell, #insert_cell_above, #insert_cell_below,
#move_cell_up, #move_cell_down, #to_code, #to_text, #run_selected_cell,
#run_all_cells {
width: 65px;
}
.cell_section_row {
margin: 5px 0px;
}
.cell_section_row_buttons {
float: right;
}
.cell_section_row_header {
float: left;
font-size: 0.8em;
padding: 0.2em 0em;
font-weight: bold;
}
span.button_label {
padding: 0.3em 1em;
padding: 0.2em 1em;
font-size: 0.8em;
float: right;
}
/* This is needed because FF was adding a 2px margin top and bottom. */
.cell_section_row .ui-button {
margin-top: 0px;
margin-bottom: 0px;
}
.ui-button .ui-button-text {
padding: 0.3em 0.9em;
padding: 0.2em 0.8em;
font-size: 0.7em;
}

@ -53,16 +53,6 @@ $(document).ready(function () {
// $("#delete_cell").button("option", "text", false);
// $("#delete_cell").click(function () {IPython.notebook.delete_cell();});
// $("#cell_type").buttonset();
// $("#to_code").click(function () {IPython.notebook.text_to_code();});
// $("#to_text").click(function () {IPython.notebook.code_to_text();});
// $("#sort").buttonset();
// $("#sort_cells").click(function () {IPython.notebook.sort_cells();});
// $("#toggle").buttonset();
// $("#collapse").click(function () {IPython.notebook.collapse();});
// $("#expand").click(function () {IPython.notebook.expand();});
});

@ -16,7 +16,7 @@ var IPython = (function (IPython) {
TextCell.prototype.create_element = function () {
var cell = $("<div>").addClass('cell text_cell').
var cell = $("<div>").addClass('cell text_cell border-box-sizing').
append(
$("<textarea>" + this.placeholder + "</textarea>").
addClass('text_cell_input monospace-font').

Loading…
Cancel
Save