##// END OF EJS Templates
Changed underscores in CSS names to dashes
Jonathan Frederic -
Show More
@@ -134,19 +134,18 b' var IPython = (function (IPython) {'
134 input.append(prompt).append(inner_cell);
134 input.append(prompt).append(inner_cell);
135
135
136 var widget_area = $('<div/>')
136 var widget_area = $('<div/>')
137 .addClass('widget_area')
137 .addClass('widget-area')
138 .hide();
138 .hide();
139 this.widget_area = widget_area;
139 this.widget_area = widget_area;
140 var widget_prompt = $('<div/>')
140 var widget_prompt = $('<div/>')
141 .addClass('prompt')
141 .addClass('prompt')
142 .appendTo(widget_area);
142 .appendTo(widget_area);
143 var widget_subarea = $('<div/>')
143 var widget_subarea = $('<div/>')
144 .addClass('widget_subarea')
144 .addClass('widget-subarea')
145 .appendTo(widget_area);
145 .appendTo(widget_area);
146 this.widget_subarea = widget_subarea;
146 this.widget_subarea = widget_subarea;
147 var widget_clear_buton = $('<button />')
147 var widget_clear_buton = $('<button />')
148 .addClass('close')
148 .addClass('close')
149 .addClass('widget_div_clear')
150 .html('&times;')
149 .html('&times;')
151 .click(function() {
150 .click(function() {
152 widget_area.slideUp('', function(){ widget_subarea.html(''); });
151 widget_area.slideUp('', function(){ widget_subarea.html(''); });
@@ -212,7 +212,7 b' define(["components/underscore/underscore-min",'
212 var view = this._create_view(view_name, cell_index);
212 var view = this._create_view(view_name, cell_index);
213 new_views.push(view);
213 new_views.push(view);
214 var cell = IPython.notebook.get_cell(cell_index);
214 var cell = IPython.notebook.get_cell(cell_index);
215 cell.element.find('.widget_area').find('.widget_subarea')
215 cell.element.find('.widget-area').find('.widget-subarea')
216 .append(view.$el)
216 .append(view.$el)
217 .parent().show(); // Show the widget_area (parent of widget_subarea)
217 .parent().show(); // Show the widget_area (parent of widget_subarea)
218
218
@@ -6,7 +6,7 b' require(["notebook/js/widget"], function(){'
6
6
7 render : function(){
7 render : function(){
8 this.$el = $('<div />')
8 this.$el = $('<div />')
9 .addClass('widget_container');
9 .addClass('widget-container');
10 },
10 },
11
11
12 update : function(){
12 update : function(){
@@ -1,17 +1,16 b''
1
1 div.widget-container {
2 div.widget_container {
3 .box-flex2();
2 .box-flex2();
4 .border-box-sizing();
3 .border-box-sizing();
5 }
4 }
6
5
7 div.widget_area {
6 div.widget-area {
8 page-break-inside: avoid;
7 page-break-inside: avoid;
9 .hbox();
8 .hbox();
10 }
9 }
11
10
12 /* This class is for the widget subarea inside the widget_area and after
11 /* This class is for the widget subarea inside the widget_area and after
13 the prompt div. */
12 the prompt div. */
14 div.widget_subarea {
13 div.widget-subarea {
15 padding: 0.44em 0.4em 0.4em 1px;
14 padding: 0.44em 0.4em 0.4em 1px;
16 margin-left: 6px;
15 margin-left: 6px;
17 .border-box-sizing();
16 .border-box-sizing();
General Comments 0
You need to be logged in to leave comments. Login now