Browse Source

docs : change all pages to default layout

pull/96/head
David DeSandro 14 years ago
parent
commit
236a5173ca
  1. 73
      _includes/elements-demo-foot.html
  2. 22
      _includes/elements-demo-head.html
  3. 48
      _layouts/default.html
  4. 2
      _posts/demos/2010-12-12-basic.html
  5. 5
      _posts/demos/2010-12-13-elements-complete.html
  6. 6
      _posts/demos/2010-12-16-elements-partial.html
  7. 2
      _posts/demos/2010-12-29-layout-modes.html
  8. 2
      _posts/demos/2010-12-30-filtering.html
  9. 2
      _posts/demos/2010-12-30-sorting.html
  10. 2
      _posts/demos/2010-12-31-relayout.html
  11. 2
      _posts/demos/2011-01-02-adding-items.html
  12. 2
      _posts/demos/2011-01-02-infinite-scroll.html
  13. 2
      _posts/demos/2011-01-11-images.html
  14. 2
      _posts/demos/2011-03-29-combination-filters.html
  15. 2
      _posts/demos/2011-05-22-category-rows.html
  16. 4
      _posts/demos/2011-06-13-hash-history.html
  17. 2
      _posts/docs/2010-12-01-introduction.mdown
  18. 2
      _posts/docs/2010-12-03-options.mdown
  19. 2
      _posts/docs/2010-12-04-methods.mdown
  20. 2
      _posts/docs/2010-12-05-layout-modes.mdown
  21. 2
      _posts/docs/2010-12-06-filtering.mdown
  22. 2
      _posts/docs/2010-12-07-sorting.mdown
  23. 2
      _posts/docs/2010-12-09-animating.mdown
  24. 2
      _posts/docs/2010-12-10-adding-items.mdown
  25. 2
      _posts/docs/2011-05-25-extending-isotope.mdown
  26. 2
      _posts/docs/2011-12-11-help.mdown
  27. 2
      _posts/docs/2011-12-20-license.mdown
  28. 2
      _posts/tests/2011-03-27-destroy01.html
  29. 2
      _posts/tests/2011-03-27-flash01.html
  30. 2
      _posts/tests/2011-03-27-no-items01.html
  31. 2
      _posts/tests/2011-04-26-item-position-data01.html
  32. 2
      _posts/tests/2011-05-13-jquery-animation01.html
  33. 2
      _posts/tests/2011-05-18-centered-masonry.html
  34. 2
      _posts/tests/2011-05-24-elements-complete-test.html
  35. 2
      _posts/tests/2011-05-31-tiny-text.html
  36. 86
      css/style.css

73
_includes/elements-demo-foot.html

@ -0,0 +1,73 @@
<script src="../{{ site.jquery_js }}"></script>
<script src="../{{ site.isotope_js }}"></script>
<script src="../js/fake-element.js"></script>
<script>
$(function(){
var $container = $('#container');
{% include random-sizes.js %}
$container.isotope({
itemSelector : '.element',
masonry : {
columnWidth : 120
},
masonryHorizontal : {
rowHeight: 120
},
cellsByRow : {
columnWidth : 240,
rowHeight : 240
},
cellsByColumn : {
columnWidth : 240,
rowHeight : 240
},
getSortData : {
symbol : function( $elem ) {
return $elem.attr('data-symbol');
},
category : function( $elem ) {
return $elem.attr('data-category');
},
number : function( $elem ) {
return parseInt( $elem.find('.number').text(), 10 );
},
weight : function( $elem ) {
return parseFloat( $elem.find('.weight').text().replace( /[\(\)]/g, '') );
},
name : function ( $elem ) {
return $elem.find('.name').text();
}
}
});
{% include option-set-buttons.js %}
// toggle variable sizes of all elements
$('#toggle-sizes').find('a').click(function(){
$container
.toggleClass('variable-sizes')
.isotope('reLayout');
return false;
});
{% include layout-change.js %}
{% include add-buttons.js %}
$('#shuffle a').click(function(){
$container.isotope('shuffle');
return false;
});
// change size of clicked element
$container.find('.element').live('click', function(){
$(this).toggleClass('large');
$container.isotope('reLayout');
});
});
</script>

22
_includes/elements-demo-head.html

@ -0,0 +1,22 @@
<section id="copy">
<p>Isotope&rsquo;s capabilities are designed to be used together cohesively. You can do it all &mdash; filter, sort, change layout modes, add items &mdash; and Isotope will handle it with ease.</p>
</section>
<section id="options" class="clearfix">
{% include filter-buttons.html %}
{% include sort-buttons.html %}
{% include layout-options.html %}
<h3>Etc</h3>
<ul id="etc" class="floated clearfix">
<li id="toggle-sizes"><a href="#toggle-sizes">Toggle variable sizes</a></li>
<li id="insert"><a href="#insert">Insert new elements</a></li>
<li id="append"><a href='#append'>Append new elements</a></li>
<!-- <li id="shuffle"><a href='#shuffle'>Shuffle</a></li> -->
</ul>
</section> <!-- #options -->

48
_layouts/default.html

@ -0,0 +1,48 @@
{% include html-head.html %}
<nav id="site-nav">
<h1><a href="../index.html">{{ site.name }}</a></h1>
<h2>Docs</h2>
<ul>
{% for doc in site.categories.docs reversed %}
{% if page.title == doc.title and page.category == 'docs' %}
<li class="current"><a href="#content">{{ doc.title }}</a>
<ul class="toc">
{% for item in page.toc %}
<li><a href="#{{ item.anchor }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</li>
{% else %}
<li><a href="..{{ doc.url }}">{{ doc.title }}</a>
{% endif %}
{% endfor %}
</ul>
<h2>Demos</h2>
<ul>
{% for demo in site.categories.demos reversed %}
{% if page.title == demo.title and page.category == 'demos' %}
<li class="current"><a href="#content">{{ demo.title }}</a></li>
{% else %}
<li><a href="..{{ demo.url }}">{{ demo.title }}</a>
{% endif %}
{% endfor %}
</ul>
</nav> <!-- #site-nav -->
<section id="content">
<h1>{{ page.title }}</h1>
{{ content }}
{% include footer.html %}
</section> <!-- #content -->
{% include html-foot.html %}

2
_posts/demos/2010-12-12-basic.html

@ -1,6 +1,6 @@
--- ---
title: Basic title: Basic
layout: demo layout: default
category: demos category: demos
related: a-intro related: a-intro
--- ---

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

@ -1,10 +1,12 @@
--- ---
title: Elements Complete title: Elements Complete
layout: elements layout: default
category: demos category: demos
related: a-intro related: a-intro
--- ---
{% include elements-demo-head.html %}
<div id="container" class="clickable clearfix"> <div id="container" class="clickable clearfix">
{% for elem_number in site.random_order %} {% for elem_number in site.random_order %}
{% assign element = site.elements[elem_number] %} {% assign element = site.elements[elem_number] %}
@ -12,3 +14,4 @@ related: a-intro
{% endfor %} {% endfor %}
</div> </div>
{% include elements-demo-foot.html %}

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

@ -1,10 +1,12 @@
--- ---
title: Elements Partial title: Elements Partial
layout: elements layout: default
category: demos category: demos
related: a-intro related: a-intro
--- ---
{% include elements-demo-head.html %}
<div id="container" class="clickable clearfix"> <div id="container" class="clickable clearfix">
{% for elem_number in site.best_of_order %} {% for elem_number in site.best_of_order %}
{% assign element = site.elements[elem_number] %} {% assign element = site.elements[elem_number] %}
@ -12,4 +14,4 @@ related: a-intro
{% endfor %} {% endfor %}
</div> </div>
{% include elements-demo-foot.html %}

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

@ -1,6 +1,6 @@
--- ---
title: Layout modes title: Layout modes
layout: demo layout: default
category: demos category: demos
related: layouts related: layouts
--- ---

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

@ -1,6 +1,6 @@
--- ---
title: Filtering title: Filtering
layout: demo layout: default
category: demos category: demos
related: filtering related: filtering
--- ---

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

@ -1,6 +1,6 @@
--- ---
title: Sorting title: Sorting
layout: demo layout: default
category: demos category: demos
related: sorting related: sorting
--- ---

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

@ -1,6 +1,6 @@
--- ---
title: reLayout title: reLayout
layout: demo layout: default
category: demos category: demos
related: methods related: methods
--- ---

2
_posts/demos/2011-01-02-adding-items.html

@ -1,6 +1,6 @@
--- ---
title: Adding items title: Adding items
layout: demo layout: default
category: demos category: demos
related: methods related: methods
--- ---

2
_posts/demos/2011-01-02-infinite-scroll.html

@ -1,6 +1,6 @@
--- ---
title: Infinite Scroll title: Infinite Scroll
layout: demo layout: default
category: demos category: demos
related: layout related: layout
infinite_scroll: true infinite_scroll: true

2
_posts/demos/2011-01-11-images.html

@ -1,6 +1,6 @@
--- ---
title: Images title: Images
layout: demo layout: default
category: demos category: demos
related: z-etc related: z-etc
photos: photos:

2
_posts/demos/2011-03-29-combination-filters.html

@ -1,6 +1,6 @@
--- ---
title: Combination filters title: Combination filters
layout: demo layout: default
category: demos category: demos
related: filtering related: filtering
schema: schema:

2
_posts/demos/2011-05-22-category-rows.html

@ -1,6 +1,6 @@
--- ---
title: Category rows title: Category rows
layout: demo layout: default
category: demos category: demos
related: layouts related: layouts
--- ---

4
_posts/demos/2011-06-13-hash-history.html

@ -1,12 +1,12 @@
--- ---
title: Hash history title: Hash history
layout: demo layout: default
category: demos category: demos
related: z-etc related: z-etc
--- ---
<section id="copy"> <section id="copy">
<p><a href="http://benalman.com/projects/jquery-bbq-plugin/">jQuery BBQ</a> by Ben Alman allows you to use hash history to save Isotope options. Try clicking a couple options then hitting the back button.</p> <p><a href="http://benalman.com/projects/jquery-bbq-plugin/">jQuery BBQ</a> by Ben Alman allows you to use hash history to save Isotope options. Try clicking a couple options then hitting the back button, or copying the URL and pasting it into a new window.</p>
</section> </section>
<section id="options" class="clearfix"> <section id="options" class="clearfix">

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

@ -2,7 +2,7 @@
title: Introduction title: Introduction
category: docs category: docs
layout: doc layout: default
related: a-intro related: a-intro
toc: toc:
- { title: Features, anchor: features } - { title: Features, anchor: features }

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

@ -2,7 +2,7 @@
title: Options title: Options
category: docs category: docs
layout: doc layout: default
body_class: option-def body_class: option-def
related: a-intro related: a-intro
toc: toc:

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

@ -2,7 +2,7 @@
title: Methods title: Methods
category: docs category: docs
layout: doc layout: default
related: methods related: methods
toc: toc:
- { title: addItems, anchor: additems } - { title: addItems, anchor: additems }

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

@ -2,7 +2,7 @@
title: Layout modes title: Layout modes
category: docs category: docs
layout: doc layout: default
body_class: option-def body_class: option-def
related: layout related: layout
toc: toc:

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

@ -2,7 +2,7 @@
title: Filtering title: Filtering
category: docs category: docs
layout: doc layout: default
related: filtering related: filtering
toc: toc:
- { title: Markup, anchor: markup } - { title: Markup, anchor: markup }

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

@ -2,7 +2,7 @@
title: Sorting title: Sorting
category: docs category: docs
layout: doc layout: default
related: sorting related: sorting
toc: toc:
- { title: Markup, anchor: markup } - { title: Markup, anchor: markup }

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

@ -2,7 +2,7 @@
title: Animating title: Animating
category: docs category: docs
layout: doc layout: default
related: animating related: animating
toc: toc:
- { title: animationEngine option, anchor: animationengine_option } - { title: animationEngine option, anchor: animationengine_option }

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

@ -2,7 +2,7 @@
title: Adding items title: Adding items
category: docs category: docs
layout: doc layout: default
related: methods related: methods
toc: toc:
- { title: addItems method, anchor: additems_method } - { title: addItems method, anchor: additems_method }

2
_posts/docs/2011-05-25-extending-isotope.mdown

@ -2,7 +2,7 @@
title: Extending Isotope title: Extending Isotope
category: docs category: docs
layout: doc layout: default
related: z-etc related: z-etc
toc: toc:
- { title: Custom layout modes, anchor: custom_layout_modes } - { title: Custom layout modes, anchor: custom_layout_modes }

2
_posts/docs/2011-12-11-help.mdown

@ -2,7 +2,7 @@
title: Help title: Help
category: docs category: docs
layout: doc layout: default
related: z-etc related: z-etc
toc: toc:
- { title: Reporting bugs and issues, anchor: reporting_bugs_and_issues } - { title: Reporting bugs and issues, anchor: reporting_bugs_and_issues }

2
_posts/docs/2011-12-20-license.mdown

@ -2,7 +2,7 @@
title: License title: License
category: docs category: docs
layout: doc layout: default
related: z-etc related: z-etc
toc: toc:
- { title: Isotope Commercial License Agreement, anchor: isotope_commercial_license_agreement } - { title: Isotope Commercial License Agreement, anchor: isotope_commercial_license_agreement }

2
_posts/tests/2011-03-27-destroy01.html

@ -1,6 +1,6 @@
--- ---
title: destroy01 title: destroy01
layout: demo layout: default
category: tests category: tests
--- ---

2
_posts/tests/2011-03-27-flash01.html

@ -1,6 +1,6 @@
--- ---
title: flash01 title: flash01
layout: demo layout: default
category: tests category: tests
--- ---

2
_posts/tests/2011-03-27-no-items01.html

@ -1,6 +1,6 @@
--- ---
title: no items01 title: no items01
layout: demo layout: default
category: tests category: tests
--- ---

2
_posts/tests/2011-04-26-item-position-data01.html

@ -1,6 +1,6 @@
--- ---
title: item position data01 title: item position data01
layout: demo layout: default
category: tests category: tests
--- ---

2
_posts/tests/2011-05-13-jquery-animation01.html

@ -1,6 +1,6 @@
--- ---
title: jquery animation01 title: jquery animation01
layout: demo layout: default
category: tests category: tests
--- ---

2
_posts/tests/2011-05-18-centered-masonry.html

@ -1,6 +1,6 @@
--- ---
title: centered masonry title: centered masonry
layout: demo layout: default
category: tests category: tests
--- ---

2
_posts/tests/2011-05-24-elements-complete-test.html

@ -1,6 +1,6 @@
--- ---
title: elements complete test title: elements complete test
layout: demo layout: default
category: tests category: tests
--- ---

2
_posts/tests/2011-05-31-tiny-text.html

@ -1,6 +1,6 @@
--- ---
title: Tiny text title: Tiny text
layout: demo layout: default
category: tests category: tests
lorem: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. lorem: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
--- ---

86
css/style.css

@ -397,7 +397,7 @@ body {
/**** Docs ****/ /**** Docs ****/
body.doc { .doc #content {
max-width: 640px; max-width: 640px;
} }
@ -406,55 +406,42 @@ body.doc {
} }
body.doc { #content {
margin-left: 220px; margin-left: 220px;
} }
.doc nav { /**** Doc page nav ****/
width: 210px;
position: fixed; #site-nav h1,
#demo-nav {
font-size: 24px;
margin-bottom: 0.5em;
font-weight: bold;
font-family: 'Helvetica Neue', Arial, sans-serif;
}
#site-nav {
width: 200px;
position: absolute;
left: 10px; left: 10px;
top: 0px; top: 0px;
padding-top: 20px; padding-top: 20px;
height: 100%; font-size: 12px;
overflow: auto;
} }
.doc nav h1 { #site-nav h1 {
margin-top: 0; margin-top: 0;
} }
@media screen and (max-width: 768px) { #site-nav h2 {
font-size: 18px;
body.doc { margin: 0 0 0.3em;
margin-left: 0px; border-top: none;
}
.doc nav {
width: auto;
position: relative;
left: auto;
top: auto;
padding-top: 0px;
height: auto;
margin-bottom: 20px;
}
} }
/**** Doc page nav ****/ #site-nav h1 a,
#docs-nav h1,
#demo-nav {
font-size: 19px;
margin-bottom: 0.5em;
font-weight: bold;
font-family: 'Helvetica Neue', Arial, sans-serif;
}
#docs-nav h1 a,
#demo-nav a { color: #4FB; } #demo-nav a { color: #4FB; }
#docs-nav h1 a:hover, #site-nav h1 a:hover,
#demo-nav a:hover { color: #4BF; } #demo-nav a:hover { color: #4BF; }
#demo-nav { #demo-nav {
@ -462,26 +449,28 @@ body.doc {
border-bottom: 1px solid #333; border-bottom: 1px solid #333;
} }
#docs-nav ul { #site-nav ul {
list-style: none; list-style: none;
margin: 0; margin: 0 0 1.0em;
font-weight: bold; font-weight: bold;
} }
#docs-nav ul a { #site-nav ul ul { margin-bottom: 0; }
#site-nav ul a {
display: block; display: block;
border: none; border: none;
padding: 1px 5px; padding: 1px 5px;
} }
#docs-nav ul .current a { #site-nav ul .current a {
background: hsla( 0, 0%, 0%, 0.3 ); background: hsla( 0, 0%, 0%, 0.3 );
color: #1BF; color: #1BF;
} }
#docs-nav ul a:hover, #site-nav ul a:hover,
#docs-nav ul .current a:hover { color: white; } #site-nav ul .current a:hover { color: white; }
#docs-nav ul .current .toc a { #site-nav ul .current .toc a {
font-size: 12px; font-size: 12px;
padding-left: 1.2em; padding-left: 1.2em;
font-weight: normal; font-weight: normal;
@ -723,17 +712,6 @@ code .nd { color: #9FAD7E; } /* CSS pseudo selector */
} }
/**** Index pages ****/
#index-list {
font-weight: 300;
font-size: 28px;
line-height: 1.4em;
list-style: none;
margin-left: 0;
}
/**** Infinite Scroll ****/ /**** Infinite Scroll ****/
#infscr-loading { #infscr-loading {

Loading…
Cancel
Save