Skip to content
Permalink
Browse files

demos: fixed content out of boxes, font-size and paddings

  • Loading branch information...
chicheng committed Jan 4, 2009
1 parent 27ea383 commit 2d86e486f80bd5cf71db837c73a51befa45c6444
@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
#draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 5px; }
#draggable, #draggable2 { width: 120px; height: 120px; padding: 0.5em; float: left; margin: 5px; }
</style>
<script type="text/javascript">
$(function() {
@@ -8,8 +8,9 @@
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
#draggable, #draggable2, #draggable3, #draggable4, #draggable5 { width: 75px; height: 80px; padding: 0.5em; float: left; margin: 5px; }
#snaptarget { height: 130px; }
#draggable, #draggable2, #draggable3, #draggable4, #draggable5 { width: 100px; height: 80px; padding: 5px; float: left; margin: 5px; font-size: .9em; }
.ui-widget-header p, .ui-widget-content p { margin: 0; }
#snaptarget { height: 140px; }
</style>
<script type="text/javascript">
$(function() {
@@ -10,7 +10,7 @@
<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: 10px; }
.demo li { margin: 3px; padding: 2px; width: 150px; }
.demo li { margin: 5px; padding: 5px; width: 150px; }
</style>
<script type="text/javascript">
$(function() {
@@ -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() {
@@ -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>
@@ -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>
@@ -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() {
@@ -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() {
@@ -12,7 +12,8 @@ <h4>Examples</h4>
<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>
@@ -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 -->
@@ -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() {

0 comments on commit 2d86e48

Please sign in to comment.
You can’t perform that action at this time.