Show More
@@ -27,7 +27,10 b'' | |||||
27 | display: none; |
|
27 | display: none; | |
28 | } |
|
28 | } | |
29 |
|
29 | |||
30 | .ctb_show.ctb_hideshow { |
|
30 | /*ctb_show is added to either body or the ctb_hideshow div to show | |
|
31 | all or one cell's toolbars. | |||
|
32 | */ | |||
|
33 | .ctb_show.ctb_hideshow, .ctb_show .ctb_hideshow { | |||
31 | display: block; |
|
34 | display: block; | |
32 | } |
|
35 | } | |
33 |
|
36 |
@@ -62,6 +62,11 b' var IPython = (function (IPython) {' | |||||
62 | } |
|
62 | } | |
63 | }) |
|
63 | }) | |
64 |
|
64 | |||
|
65 | // The default css style for the outer celltoolbar div | |||
|
66 | // (ctb_hideshow) is display: none. We add the ctb_show | |||
|
67 | // class to either 1) the body to show all cell's toolbars | |||
|
68 | // or 2) to the individual celltoolbar divs to show just one | |||
|
69 | // cell's toolbar. | |||
65 |
|
70 | |||
66 | CellToolbar.global_hide = function () { |
|
71 | CellToolbar.global_hide = function () { | |
67 | $('body').removeClass('ctb_show'); |
|
72 | $('body').removeClass('ctb_show'); | |
@@ -72,6 +77,7 b' var IPython = (function (IPython) {' | |||||
72 | $('body').addClass('ctb_show'); |
|
77 | $('body').addClass('ctb_show'); | |
73 | } |
|
78 | } | |
74 |
|
79 | |||
|
80 | ||||
75 | CellToolbar.prototype.hide = function () { |
|
81 | CellToolbar.prototype.hide = function () { | |
76 | this.element.removeClass('ctb_show'); |
|
82 | this.element.removeClass('ctb_show'); | |
77 | } |
|
83 | } |
General Comments 0
You need to be logged in to leave comments.
Login now