Skip to content

Commit 101513d

Browse files
committed
Sortable demo: Allow dropping to empty list and improve general styling
1 parent 6fb72fd commit 101513d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

demos/sortable/connect-lists.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,22 @@
1111
<script src="../../ui/sortable.js"></script>
1212
<link rel="stylesheet" href="../demos.css">
1313
<style>
14-
#sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0 0 2.5em; float: left; margin-right: 10px; }
15-
#sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; }
14+
#sortable1, #sortable2 {
15+
border: 1px solid #eee;
16+
width: 142px;
17+
min-height: 20px;
18+
list-style-type: none;
19+
margin: 0;
20+
padding: 5px 0 0 0;
21+
float: left;
22+
margin-right: 10px;
23+
}
24+
#sortable1 li, #sortable2 li {
25+
margin: 0 5px 5px 5px;
26+
padding: 5px;
27+
font-size: 1.2em;
28+
width: 120px;
29+
}
1630
</style>
1731
<script>
1832
$(function() {

0 commit comments

Comments
 (0)