Browse Source

docs : index gets sweet Isotoped menu

pull/14/head
David DeSandro 14 years ago
parent
commit
93d0c56133
  1. 2
      _layouts/demo.html
  2. 2
      _layouts/doc.html
  3. 1
      _posts/demos/2010-12-13-elements-complete.html
  4. 1
      _posts/demos/2010-12-16-elements-partial.html
  5. 1
      _posts/demos/2010-12-29-layout-modes.html
  6. 1
      _posts/demos/2010-12-30-filtering.html
  7. 1
      _posts/demos/2010-12-30-sorting.html
  8. 1
      _posts/demos/2010-12-31-relayout.html
  9. 1
      _posts/demos/2011-01-03-adding-items.html
  10. 5
      _posts/docs/2010-12-01-introduction.mdown
  11. 1
      _posts/docs/2010-12-02-getting-started.mdown
  12. 1
      _posts/docs/2010-12-03-options.mdown
  13. 13
      _posts/docs/2010-12-04-methods.mdown
  14. 1
      _posts/docs/2010-12-05-layout-modes.mdown
  15. 1
      _posts/docs/2010-12-06-filtering.mdown
  16. 4
      _posts/docs/2010-12-07-sorting.mdown
  17. 1
      _posts/docs/2010-12-09-animating.mdown
  18. 1
      _posts/docs/2010-12-10-adding-items.mdown
  19. 37
      css/style.css
  20. 88
      index.html

2
_layouts/demo.html

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{{ page.title }}</title>
<title>Isotope Demo: {{ page.title }}</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />

2
_layouts/doc.html

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{{ site.name }}: {{ page.title }}</title>
<title>{{ site.name }} Docs: {{ page.title }}</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />

1
_posts/demos/2010-12-13-elements-complete.html

@ -2,6 +2,7 @@
title: Elements Complete
layout: elements
category: demos
related: etc
---
<div id="demo" class="iso-container clickable">

1
_posts/demos/2010-12-16-elements-partial.html

@ -2,6 +2,7 @@
title: Elements Partial
layout: elements
category: demos
related: etc
---
<div id="demo" class="iso-container clickable">

1
_posts/demos/2010-12-29-layout-modes.html

@ -2,6 +2,7 @@
title: Layout Modes
layout: demo
category: demos
related: layouts
---
<section id="copy">

1
_posts/demos/2010-12-30-filtering.html

@ -2,6 +2,7 @@
title: Filtering
layout: demo
category: demos
related: filtering
---
<section id="options" class="clearfix">

1
_posts/demos/2010-12-30-sorting.html

@ -2,6 +2,7 @@
title: Sorting
layout: demo
category: demos
related: sorting
---
<section id="copy">

1
_posts/demos/2010-12-31-relayout.html

@ -2,6 +2,7 @@
title: reLayout
layout: demo
category: demos
related: methods
---
<section id="copy">

1
_posts/demos/2011-01-03-adding-items.html

@ -2,6 +2,7 @@
title: Adding items
layout: demo
category: demos
related: methods
---
<section id="copy">

5
_posts/docs/2010-12-01-introduction.mdown

@ -3,10 +3,13 @@
title: Introduction
category: docs
layout: doc
related: etc
---
Isotope is a layout, filtering, and sorting plugin for jQuery.
Isotope is a layout, filtering, and sorting plugin for jQuery.
Top notch performance that can handle
## Features

1
_posts/docs/2010-12-02-getting-started.mdown

@ -3,6 +3,7 @@
title: Getting Started
category: docs
layout: doc
related: etc
---

1
_posts/docs/2010-12-03-options.mdown

@ -4,6 +4,7 @@ title: Options
category: docs
layout: doc
body_class: option-def
related: etc
---

13
_posts/docs/2010-12-04-methods.mdown

@ -3,6 +3,7 @@
title: Methods
category: docs
layout: doc
related: methods
---
@ -15,7 +16,8 @@ layout: doc
{% endhighlight %}
Adds elements to the pool of item elements of the container, but does sort, filter or layout.
Adds elements to the pool of item elements of the container, but does sort, filter or layout. More details in [Adding items](adding-items.html).
## appended
@ -25,9 +27,9 @@ Adds elements to the pool of item elements of the container, but does sort, filt
{% endhighlight %}
Adds elements via `addItems` method, then triggers `layout` just for those new elements.
Adds elements via `addItems` method, then triggers `layout` just for those new elements. Useful for Infinite Scroll. More details in [Adding items](adding-items.html).
Useful for Infinite Scroll.
[**See Demo: Adding items**](../demos/adding-items.html).
## destroy
@ -47,7 +49,9 @@ Removes Isotope functionality completely. Returns element back to pre-init state
{% endhighlight %}
Appends elements to container, adds items to via `addItems` method, and then triggers `reLayout` method so new elements are properly filtered, sorted and laid-out.
Appends elements to container, adds items to via `addItems` method, and then triggers `reLayout` method so new elements are properly filtered, sorted and laid-out. More details in [Adding items](adding-items.html).
[**See Demo: Adding items**](../demos/adding-items.html).
## layout
@ -77,7 +81,6 @@ Modifies options for plugin instance.
{% endhighlight %}
Resets layout properties and lays-out every item element.
[**See Demo: reLayout**](../demos/relayout.html)

1
_posts/docs/2010-12-05-layout-modes.mdown

@ -4,6 +4,7 @@ title: Layout Modes
category: docs
layout: doc
body_class: option-def
related: layout
---

1
_posts/docs/2010-12-06-filtering.mdown

@ -3,6 +3,7 @@
title: Filtering
category: docs
layout: doc
related: filtering
---

4
_posts/docs/2010-12-07-sorting.mdown

@ -3,6 +3,7 @@
title: Sorting
category: docs
layout: doc
related: sorting
---
@ -12,7 +13,7 @@ Isotope can rearrange item elements via sorting.
## Markup
In our example, each item element has several data points that can be used for sorting.
In our example, each item element has several data points that can be used for sorting. There's the elemental symbol, number, name of the element, weight, and category.
{% highlight html %}
@ -35,7 +36,6 @@ In our example, each item element has several data points that can be used for s
{% endhighlight %}
There's the elemental symbol, number, name of the element, weight, and category.
## getSortData

1
_posts/docs/2010-12-09-animating.mdown

@ -3,6 +3,7 @@
title: Animating
category: docs
layout: doc
related: animating
---

1
_posts/docs/2010-12-10-adding-items.mdown

@ -3,6 +3,7 @@
title: Adding items
category: docs
layout: doc
related: methods
---

37
css/style.css

@ -440,9 +440,46 @@ code .nd { color: #9FAD7E; } /* CSS pseudo selector */
}
/**** Super list ****/
#super-list {
list-style: none;
margin: 0;
padding: 0;
margin-bottom: 40px;
}
#super-list li {
display: inline-block;
font-size: 28px;
line-height: 1.2em;
margin: 2px;
font-weight: 300;
}
#super-list li.feature { background: #111; }
#super-list li span,
#super-list li a {
display: block;
padding: 0.2em 0.5em;
}
#super-list li a {
color: #222;
/* font-weight: bold;*/
}
#super-list li.doc a { background: #3CF; }
#super-list li.demo a { background: #FC3; }
#super-list li a:hover,
#super-list li a.doc:hover,
#super-list li a.demo:hover {
background: white;
}
/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; visibility: hidden; }
.clearfix:after { clear: both; }
/* fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.clearfix { zoom: 1; }

88
index.html

@ -1,25 +1,99 @@
---
title: Index
layout: default
layout: nil
---
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{{ site.name }}</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
</head>
<body>
<h1>{{ page.title }}</h1>
<h1>{{ site.name }}</h1>
<h2>Docs</h2>
<ul>
<section id="options">
<h2>Filter</h2>
<ul id="filter" class="option-set floated clearfix">
<li><a href="#show-all" data-filter="*" class="selected">show all</a></li>
<li><a href="#features" data-filter=".feature">features</a></li>
<li><a href="#docs" data-filter=".doc">docs</a></li>
<li><a href="#demos" data-filter=".demo">demos</a></li>
</ul>
<h2>Sort</h2>
<ul id="sort" class="option-set floated clearfix">
<li><a href="#type" data-sort="original-order" class="selected">type</a></li>
<li><a href="#related" data-sort="related">related</a></li>
</ul>
</section>
<ul id="super-list">
<li class="feature" data-category="feature" data-related="etc"><span>Aggressively enhanced for CSS3 transforms &amp; transitions</span></li>
<li class="feature" data-category="feature" data-related="layout"><span>Dynamic, intelligent layouts</span></li>
<li class="feature" data-category="feature" data-related="filtering"><span>Reveal and hide items with filtering</span></li>
<li class="feature" data-category="feature" data-related="sorting"><span>Re-order items with sorting</span></li>
<li class="feature" data-category="feature" data-related="sorting"><span>Get sorting data from just about anything</span></li>
<li class="feature" data-category="feature" data-related="methods"><span>Built on jQuery UI's widget bridge for powerful methods</span></li>
{% for doc in site.categories.docs reversed %}
<li><a href=".{{ doc.url }}">{{ doc.title }}</a></li>
<li class="doc" data-category="doc" data-related="{{ doc.related }}"><a href=".{{ doc.url }}">Docs: {{ doc.title }}</a></li>
{% endfor %}
{% for demo in site.categories.demos reversed %}
<li class="demo" data-category="demo" data-related="{{ demo.related }}"><a href=".{{ demo.url }}">Demo: {{ demo.title }}</a></li>
{% endfor %}
</ul>
<h2>Docs</h2>
<ul>
</ul>
<h2>Demos</h2>
<ul>
{% for demo in site.categories.demos reversed %}
<li><a href=".{{ demo.url }}">{{ demo.title }}</a></li>
{% endfor %}
</ul>
</ul>
<script src="js/jquery-1.4.4.min.js"></script>
<script src="src/mini-modernizr.js"></script>
<script src="src/jquery.opto-transform.js"></script>
<script src="src/jquery.smartresize.js"></script>
<script src="src/jquery.isotope.js"></script>
<script src="src/jquery.ui.widget.js"></script>
<script>
$(function(){
$list = $('#super-list');
$list.isotope({
layoutMode : 'fitRows',
getSortData : {
related : function( $elem ) {
return $elem.attr('data-related');
}
}
});
$('#filter a').click(function(){
var filterName = $(this).attr('data-filter');
$list.isotope({ filter : filterName });
return false;
});
$('#sort a').click(function(){
var sortName = $(this).attr('data-sort');
$list.isotope({ sortBy : sortName });
return false;
});
{% include option-buttons.js %}
});
</script>
</body>
</html>
Loading…
Cancel
Save