Commit cf3b5f1c by Filippo Valsorda

Kill some unused CSS

parent d40f0e55
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
max-width: 100%; max-width: 100%;
} }
.xblock--drag-and-drop .option.hover { background: #ccc; }
.xblock--drag-and-drop .option.fade { opacity: 0.6; } .xblock--drag-and-drop .option.fade { opacity: 0.6; }
...@@ -122,25 +121,6 @@ ...@@ -122,25 +121,6 @@
margin-bottom: auto; margin-bottom: auto;
} }
.xblock--drag-and-drop .zone.one {
height: 75px;
width: 115px;
top: 130px;
left: 200px;
}
.xblock--drag-and-drop .zone.two {
height: 120px;
width: 200px;
top: 220px;
left: 157px;
}
.xblock--drag-and-drop .zone.three {
height: 120px;
width: 200px;
bottom: 30px;
left: 157px;
}
/*** IE9 alignment fix ***/ /*** IE9 alignment fix ***/
.lt-ie10 .xblock--drag-and-drop .zone { .lt-ie10 .xblock--drag-and-drop .zone {
display: table; display: table;
......
...@@ -6,33 +6,6 @@ ...@@ -6,33 +6,6 @@
background: #fff; background: #fff;
} }
.xblock--drag-and-drop .problem-header {
display: inline-block;
margin: 0 0 15px 0;
}
.xblock--drag-and-drop .problem-progress {
display: inline-block;
padding-left: 5px;
color: #666;
font-weight: 100;
font-size: 1em;
}
.xblock--drag-and-drop .problem p {
margin-bottom: 1.41575em;
}
.xblock--drag-and-drop .drag-container {
width: 760px;
background: #ebf0f2;
position: relative;
}
.xblock--drag-and-drop .clear {
clear: both;
}
/** Draggable Items **/ /** Draggable Items **/
.xblock--drag-and-drop .items { .xblock--drag-and-drop .items {
width: 210px; width: 210px;
...@@ -45,21 +18,6 @@ ...@@ -45,21 +18,6 @@
list-style-type: none; list-style-type: none;
} }
.xblock--drag-and-drop .items .option {
width: 190px;
background: #2e83cd;
color: #fff;
position: relative;
float: left;
display: inline;
z-index: 100;
margin-bottom: 5px;
padding: 10px;
}
.xblock--drag-and-drop .option.hover { background: #ccc; }
.xblock--drag-and-drop .option.fade { opacity: 0.6; }
/*** Drop Target ***/ /*** Drop Target ***/
.xblock--drag-and-drop .target { .xblock--drag-and-drop .target {
...@@ -117,25 +75,6 @@ ...@@ -117,25 +75,6 @@
margin-bottom: auto; margin-bottom: auto;
} }
.xblock--drag-and-drop .zone.one {
height: 75px;
width: 115px;
top: 130px;
left: 200px;
}
.xblock--drag-and-drop .zone.two {
height: 120px;
width: 200px;
top: 220px;
left: 157px;
}
.xblock--drag-and-drop .zone.three {
height: 120px;
width: 200px;
bottom: 30px;
left: 157px;
}
/*** IE9 alignment fix ***/ /*** IE9 alignment fix ***/
.lt-ie10 .xblock--drag-and-drop .zone { .lt-ie10 .xblock--drag-and-drop .zone {
display: table; display: table;
...@@ -191,12 +130,6 @@ ...@@ -191,12 +130,6 @@
float: left; float: left;
} }
.xblock--drag-and-drop .drag-builder .continue {
position: absolute;
right: 0;
top: -5px;
}
.xblock--drag-and-drop .drag-builder .items { .xblock--drag-and-drop .drag-builder .items {
width: calc(100% - 515px); width: calc(100% - 515px);
margin: 10px 0 0 0; margin: 10px 0 0 0;
......
...@@ -99,8 +99,6 @@ function DragAndDropBlock(runtime, element) { ...@@ -99,8 +99,6 @@ function DragAndDropBlock(runtime, element) {
$drag.on('dragstop', clk.drag.stop); $drag.on('dragstop', clk.drag.stop);
$dropzone.on('drop', clk.drop.success); $dropzone.on('drop', clk.drop.success);
$dropzone.on('dropover', clk.drop.hover.in);
$dropzone.on('dropout', clk.drop.hover.out);
}, },
drag: { drag: {
start: function(event, ui) { start: function(event, ui) {
...@@ -126,8 +124,7 @@ function DragAndDropBlock(runtime, element) { ...@@ -126,8 +124,7 @@ function DragAndDropBlock(runtime, element) {
left: $el.css('left') left: $el.css('left')
})).done(function(data){ })).done(function(data){
if (data.correct) { if (data.correct) {
$el.removeClass('hover') $el.draggable('disable');
.draggable('disable');
if (data.final_feedback) { if (data.final_feedback) {
_fn.finish(data.final_feedback); _fn.finish(data.final_feedback);
...@@ -153,7 +150,7 @@ function DragAndDropBlock(runtime, element) { ...@@ -153,7 +150,7 @@ function DragAndDropBlock(runtime, element) {
}, },
reset: function($el) { reset: function($el) {
$el.removeClass('within-dropzone fade hover') $el.removeClass('within-dropzone fade')
.css({ .css({
top: '', top: '',
left: '' left: ''
...@@ -161,16 +158,6 @@ function DragAndDropBlock(runtime, element) { ...@@ -161,16 +158,6 @@ function DragAndDropBlock(runtime, element) {
} }
}, },
drop: { drop: {
hover: {
in: function(event, ui) {
var zone = $(event.currentTarget).data('zone');
ui.draggable.addClass('hover').data('zone', zone);
},
out: function(event, ui) {
ui.draggable.removeClass('hover');
}
},
success: function(event, ui) { success: function(event, ui) {
ui.draggable.addClass('within-dropzone'); ui.draggable.addClass('within-dropzone');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment