Minor tweaks to the css to enable single cell hide/show.

pull/37/head
Brian Granger 13 years ago
parent b6c7d7965c
commit fd34f3d536

@ -27,7 +27,10 @@
display: none;
}
.ctb_show.ctb_hideshow {
/*ctb_show is added to either body or the ctb_hideshow div to show
all or one cell's toolbars.
*/
.ctb_show.ctb_hideshow, .ctb_show .ctb_hideshow {
display: block;
}

@ -62,6 +62,11 @@ var IPython = (function (IPython) {
}
})
// The default css style for the outer celltoolbar div
// (ctb_hideshow) is display: none. We add the ctb_show
// class to either 1) the body to show all cell's toolbars
// or 2) to the individual celltoolbar divs to show just one
// cell's toolbar.
CellToolbar.global_hide = function () {
$('body').removeClass('ctb_show');
@ -71,7 +76,8 @@ var IPython = (function (IPython) {
CellToolbar.global_show = function () {
$('body').addClass('ctb_show');
}
CellToolbar.prototype.hide = function () {
this.element.removeClass('ctb_show');
}

Loading…
Cancel
Save