From 4763655fea59e72219b10f7bf25d42762036cf8c Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Fri, 30 Sep 2011 08:00:36 -0400 Subject: [PATCH 1/2] docs : fix tests urls on index --- _posts/tests/2010-01-01-index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/tests/2010-01-01-index.html b/_posts/tests/2010-01-01-index.html index 58d2160..ccac568 100644 --- a/_posts/tests/2010-01-01-index.html +++ b/_posts/tests/2010-01-01-index.html @@ -8,7 +8,7 @@ is_index_page: true \ No newline at end of file From e205612e975caca42d2c5841b3f3e3f8a9eb2796 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Fri, 30 Sep 2011 08:26:26 -0400 Subject: [PATCH 2/2] demos : add fluid / responsive --- _posts/demos/2011-09-30-fluid-responsive.html | 141 ++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 _posts/demos/2011-09-30-fluid-responsive.html diff --git a/_posts/demos/2011-09-30-fluid-responsive.html b/_posts/demos/2011-09-30-fluid-responsive.html new file mode 100644 index 0000000..bab2543 --- /dev/null +++ b/_posts/demos/2011-09-30-fluid-responsive.html @@ -0,0 +1,141 @@ +--- +title: Fluid / responsive +layout: default +category: demos +--- + + + +
+

This hack allows you to use percentage-based widths for item elements for fluid / responsive layouts.

+ +{% highlight javascript %} + +var $container = $('#container') +// initialize Isotope +$container.isotope({ + // options... + resizable: false, // disable normal resizing + // set columnWidth to a percentage of container width + masonry: { columnWidth: $container.width() / 5 } +}); + +// update columnWidth on window resize +$(window).smartresize(function(){ + $container.isotope({ + // update columnWidth to a percentage of container width + masonry: { columnWidth: $container.width() / 5 } + }); +}); + +{% endhighlight %} + +
+ +
+ + {% include filter-buttons.html %} + + {% include sort-buttons.html %} + +

Etc

+ + + +
+ +
+ {% for elem_number in site.best_of_order %} + {% assign element = site.elements[elem_number] %} + {% include element-partial.html %} + {% endfor %} +
+ + + + + + \ No newline at end of file