Commit 0009430b by Don Mitchell

min height on droppable areas and add padding to top/bottom on hover.

parent e58193f8
...@@ -112,12 +112,14 @@ $(document).ready(function() { ...@@ -112,12 +112,14 @@ $(document).ready(function() {
accept : '.unit', accept : '.unit',
greedy: true, greedy: true,
tolerance: "pointer", tolerance: "pointer",
hoverClass: "dropover",
drop: onUnitReordered drop: onUnitReordered
}); });
$('.subsection-list > ol').droppable({ $('.subsection-list > ol').droppable({
// why don't we have a more useful class for subsections than id-holder? // why don't we have a more useful class for subsections than id-holder?
accept : '.id-holder', // '.unit, .id-holder', accept : '.id-holder', // '.unit, .id-holder',
tolerance: "pointer", tolerance: "pointer",
hoverClass: "dropover",
drop: onSubsectionReordered, drop: onSubsectionReordered,
greedy: true greedy: true
}); });
......
...@@ -643,4 +643,12 @@ input.courseware-unit-search-input { ...@@ -643,4 +643,12 @@ input.courseware-unit-search-input {
margin-top: 10px; margin-top: 10px;
font-size: 13px; font-size: 13px;
color: $darkGrey; color: $darkGrey;
}
.ui-droppable {
min-height: 22px;
&.dropover {
padding-top: 11px;
padding-bottom: 11px;
}
} }
\ No newline at end of file
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