diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-01-04 09:20:45 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-01-04 09:20:45 +0000 |
commit | 2d86e486f80bd5cf71db837c73a51befa45c6444 (patch) | |
tree | d26a0d73281cfed1b841557023d4bad3a69b2df8 /demos/sortable | |
parent | 27ea38395e5e853ae401303d3ec7dfe6bc83393a (diff) | |
download | jquery-ui-2d86e486f80bd5cf71db837c73a51befa45c6444.tar.gz jquery-ui-2d86e486f80bd5cf71db837c73a51befa45c6444.zip |
demos: fixed content out of boxes, font-size and paddings
Diffstat (limited to 'demos/sortable')
-rw-r--r-- | demos/sortable/connectwith.html | 2 | ||||
-rw-r--r-- | demos/sortable/delay.html | 46 | ||||
-rw-r--r-- | demos/sortable/distance.html (renamed from demos/sortable/delaydistance.html) | 105 | ||||
-rw-r--r-- | demos/sortable/droponempty.html | 4 | ||||
-rw-r--r-- | demos/sortable/droppable.html | 4 | ||||
-rw-r--r-- | demos/sortable/index.html | 3 | ||||
-rw-r--r-- | demos/sortable/items.html | 4 | ||||
-rw-r--r-- | demos/sortable/placeholder.html | 2 |
8 files changed, 101 insertions, 69 deletions
diff --git a/demos/sortable/connectwith.html b/demos/sortable/connectwith.html index 1ec246c71..7bd49972c 100644 --- a/demos/sortable/connectwith.html +++ b/demos/sortable/connectwith.html @@ -9,7 +9,7 @@ <link type="text/css" href="../demos.css" rel="stylesheet" /> <style type="text/css"> .demo ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; } - .demo li { margin: 3px; padding: 2px; width: 120px; } + .demo li { margin: 5px; padding: 5px; font-size: 1.2em; width: 120px; } </style> <script type="text/javascript"> $(function() { diff --git a/demos/sortable/delay.html b/demos/sortable/delay.html new file mode 100644 index 000000000..27f5151dc --- /dev/null +++ b/demos/sortable/delay.html @@ -0,0 +1,46 @@ +<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Sortable - Delay / Distance Demo</title>
+ <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3pre.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.sortable.js"></script>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <style type="text/css">
+ .demo ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 15px; }
+ .demo li { margin: 5px; padding: 5px; font-size: 1.2em; }
+ </style>
+ <script type="text/javascript">
+ $(function() {
+ $(".demo ul:eq(0)").sortable({
+ delay: 1000
+ });
+ });
+ </script>
+</head>
+<body>
+<div class="demo">
+
+<p>Delay of 1000ms</p>
+
+<ul>
+ <li class="ui-state-default">Item 1</li>
+ <li class="ui-state-default">Item 2</li>
+ <li class="ui-state-default">Item 3</li>
+ <li class="ui-state-default">Item 4</li>
+ <li class="ui-state-default">Item 5</li>
+</ul>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+
+</p>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>
diff --git a/demos/sortable/delaydistance.html b/demos/sortable/distance.html index a696a4c3b..0d0a89448 100644 --- a/demos/sortable/delaydistance.html +++ b/demos/sortable/distance.html @@ -1,59 +1,46 @@ -<!doctype html> -<html lang="en"> -<head> - <title>jQuery UI Sortable - Delay / Distance Demo</title> - <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" /> - <script type="text/javascript" src="../../jquery-1.3pre.js"></script> - <script type="text/javascript" src="../../ui/ui.core.js"></script> - <script type="text/javascript" src="../../ui/ui.sortable.js"></script> - <link type="text/css" href="../demos.css" rel="stylesheet" /> - <style type="text/css"> - .demo ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 15px; } - .demo li { margin: 3px; padding: 2px; } - </style> - <script type="text/javascript"> - $(function() { - $(".demo ul:eq(0)").sortable({ - delay: 1000 - }); - $(".demo ul:eq(1)").sortable({ - distance: 50 - }); - }); - </script> -</head> -<body> -<div class="demo"> - -<p>Delay of 1000ms</p> - -<ul> - <li class="ui-state-default">Item 1</li> - <li class="ui-state-default">Item 2</li> - <li class="ui-state-default">Item 3</li> - <li class="ui-state-default">Item 4</li> - <li class="ui-state-default">Item 5</li> -</ul> - -<p>Distance of 50px</p> - -<ul> - <li class="ui-state-default">Item 1</li> - <li class="ui-state-default">Item 2</li> - <li class="ui-state-default">Item 3</li> - <li class="ui-state-default">Item 4</li> - <li class="ui-state-default">Item 5</li> -</ul> - -</div><!-- End demo --> - -<div class="demo-description"> - -<p> - -</p> - -</div><!-- End demo-description --> - -</body> -</html> +<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Sortable - Delay / Distance Demo</title>
+ <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3pre.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.sortable.js"></script>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <style type="text/css">
+ .demo ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 15px; }
+ .demo li { margin: 5px; padding: 5px; font-size: 1.2em; }
+ </style>
+ <script type="text/javascript">
+ $(function() {
+ $(".demo ul:eq(0)").sortable({
+ distance: 50
+ });
+ });
+ </script>
+</head>
+<body>
+<div class="demo">
+
+<p>Distance of 50px</p>
+
+<ul>
+ <li class="ui-state-default">Item 1</li>
+ <li class="ui-state-default">Item 2</li>
+ <li class="ui-state-default">Item 3</li>
+ <li class="ui-state-default">Item 4</li>
+ <li class="ui-state-default">Item 5</li>
+</ul>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>
+
+</p>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>
diff --git a/demos/sortable/droponempty.html b/demos/sortable/droponempty.html index fc5b845f3..d6656f868 100644 --- a/demos/sortable/droponempty.html +++ b/demos/sortable/droponempty.html @@ -8,8 +8,8 @@ <script type="text/javascript" src="../../ui/ui.sortable.js"></script> <link type="text/css" href="../demos.css" rel="stylesheet" /> <style type="text/css"> - .demo ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 133px;} - .demo li { margin: 3px; padding: 2px; width: 120px; } + .demo ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 143px;} + .demo li { margin: 5px; padding: 5px; font-size: 1.2em; width: 120px; } </style> <script type="text/javascript"> $(function() { diff --git a/demos/sortable/droppable.html b/demos/sortable/droppable.html index 1bb6e17b7..5e7d27c44 100644 --- a/demos/sortable/droppable.html +++ b/demos/sortable/droppable.html @@ -10,8 +10,8 @@ <link type="text/css" href="../demos.css" rel="stylesheet" /> <style type="text/css"> #sortable { list-style-type: none; margin: 0; padding: 0; } - #sortable li { margin: 3px; padding: 2px; width: 150px; } - #droppable { height: 60px; margin-bottom: 10px; float: right; width: 200px; } + #sortable li { margin: 5px; padding: 5px; font-size: 1.2em; width: 150px; } + #droppable { height: 80px; margin-bottom: 10px; padding: 5px; float: right; width: 200px; } </style> <script type="text/javascript"> $(function() { diff --git a/demos/sortable/index.html b/demos/sortable/index.html index c5da08b9d..d8a714f1f 100644 --- a/demos/sortable/index.html +++ b/demos/sortable/index.html @@ -12,7 +12,8 @@ <li class="demo-config-on"><a href="default.html">Default Sortable</a></li> <li><a href="floating.html">Floating</a></li> <li><a href="placeholder.html">Placeholder</a></li> - <li><a href="delaydistance.html">Delay / Distance</a></li> + <li><a href="delay.html">Delay</a></li> + <li><a href="distance.html">Distance</a></li> <li><a href="items.html">Excluding items</a></li> <li><a href="connectwith.html">Connecting two lists</a></li> <li><a href="droponempty.html">Dropping on empty lists</a></li> diff --git a/demos/sortable/items.html b/demos/sortable/items.html index 77c243d63..030c5e7fe 100644 --- a/demos/sortable/items.html +++ b/demos/sortable/items.html @@ -9,7 +9,7 @@ <link type="text/css" href="../demos.css" rel="stylesheet" /> <style type="text/css"> #sortable, #sortable2 { list-style-type: none; margin: 0; padding: 0; } - #sortable li, #sortable2 li { margin: 3px; padding: 2px; } + .demo li { margin: 5px; padding: 3px; font-size: 1.2em; } </style> <script type="text/javascript"> $(function() { @@ -32,7 +32,6 @@ <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li> <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li> <li class="ui-state-default">Item 4</li> - <li class="ui-state-default">Item 5</li> </ul> <p>Keep the items as valid targets, but non-draggable, using the 'cancel' option</p> @@ -42,7 +41,6 @@ <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li> <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li> <li class="ui-state-default">Item 4</li> - <li class="ui-state-default">Item 5</li> </ul> </div><!-- End demo --> diff --git a/demos/sortable/placeholder.html b/demos/sortable/placeholder.html index be183eb41..5ee70e01c 100644 --- a/demos/sortable/placeholder.html +++ b/demos/sortable/placeholder.html @@ -9,7 +9,7 @@ <link type="text/css" href="../demos.css" rel="stylesheet" /> <style type="text/css"> #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } - #sortable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; } + #sortable li { margin: 5px; padding: 5px; font-size: 1.2em; } </style> <script type="text/javascript"> $(function() { |