Restructuring.

pull/56/head
Glen Cheney 11 years ago
parent 060c3315ee
commit 6f992ae755

@ -3,6 +3,63 @@ destination: ./_site
plugins: ./_plugins
layouts: ./_layouts
include: ['.htaccess']
exclude: []
exclude: ['./css/*']
permalink: /:title
items:
- groups: [ photography ]
date: 2010-09-14
title: Baseball
img: img/baseball.png
- groups: [ wallpaper, 3d ]
date: 2011-08-14
title: Tennis
img: img/tennis-ball.png
description: '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.'
- groups: [ wallpaper, 3d ]
date: 2009-05-27
title: iMac
img: img/imac.png
- groups: [ graphics ]
date: 2012-05-14
title: Master Chief
img: img/master-chief.png
description: '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.'
- groups: [ wallpaper, 3d ]
date: 2009-09-14
title: Eightfold
img: img/es-blue.png
- groups: [ photography ]
date: 2012-03-14
title: Pumpkin
img: img/pumpkin.png
description: '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.'
- groups: [ wallpaper, 3d ]
date: 2013-05-19
title: Vestride
img: img/vestride-red.png
- groups: [ graphics ]
date: 2013-02-01
title: Newegg
img: img/newegg.png
description: '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.'
- groups: [ wallpaper ]
date: 2000-01-01
title: Arc
img: img/eightfoldarc.png
- groups: [ photography ]
date: 2012-07-04
title: Ground
img: img/ground.png
- groups: [ wallpaper ]
date: 2011-08-12
title: Grass
img: img/grassy-hills.png
description: '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.'
- groups: [ wallpaper, 3d ]
date: 2013-05-19
title: Vestride
img: img/vestride-classy.png
permalink: /:title

@ -0,0 +1,8 @@
<ul>
<li>11.3.12 - Replaced layout system with <a href="http://masonry.desandro.com/">masonry</a>. Items can now be different sizes! Added addtional examples.</li>
<li>10.24.12 - Better handling of grid item dimensions. Added a minimal markup page.</li>
<li>9.20.12 - Added <code>destroy</code> method</li>
<li>9.18.12 - Added sorting ability and made plugin responsive. Updated to Modernizr 2.6.2</li>
<li>7.21.12 - Rewrote plugin in more object oriented structure. Added custom events. Updated to Modernizr 2.6.1</li>
<li>7.3.12 - Removed dependency on the css file and now apply the css with javascript</li>
</ul>

@ -22,7 +22,8 @@
<link rel="stylesheet" href="{{ site.url }}/css/prism.css" />
<link rel="stylesheet" href="{{ site.url }}/css/style.css" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Poly:400,400italic" />
<link rel="stylesheet" href="{{ site.url }}/css/shuffle-styles.css" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,700">
{% if page.extraCSS %}
{% for href in page.extraCSS %}
<link rel="stylesheet" href="{{ href }}" />

@ -0,0 +1,10 @@
{% comment %} Ghetto conversion to JSON {% endcomment %}
{% capture groups %}["{{ item.groups | join: "," }}"]{% endcapture %}
<div class="item item--h2" data-groups='{{ groups }}' data-date-created="{{ item.date }}" data-title="{{ item.title }}">
<img src="{{ item.img }}" alt="" height="145" width="230" />
<div class="item__details">
<span class="item__title">{{ item.title }}</span>
<a href="#">Graphic Design</a>
{% if item.description %}<p>{{ item.description }}</p>{% endif %}
</div>
</div>

@ -0,0 +1,23 @@
/*=============================================*\
Some styles to show off masonry layout
\*=============================================*/
.item {
width: 230px;
height: 200px;
overflow: hidden;
margin-top: 20px;
margin-right: 20px;
}
.item.w2 {
width: 480px;
}
.item.w2.h2 img {
width: 100%;
height: auto;
}
.item.h2 {
height: 420px;
}

@ -1,442 +1,458 @@
/*=============================================*\
$Some styles to show off masonry layout
\*=============================================*/
.item {
width: 230px;
height: 200px;
overflow: hidden;
margin-top: 20px;
margin-right: 20px;
}
.item.w2 {
width: 480px;
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
.item.w2.h2 img {
width: 100%;
height: auto;
}
/**
* Correct `inline-block` display not defined in IE 8/9.
*/
.item.h2 {
height: 420px;
audio,
canvas,
video {
display: inline-block;
}
/*=============================================*\
$Structure
\*=============================================*/
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
body {
margin: 0;
background-color: #0F0F0F;
color: #F0F0F0;
font-family: 'Poly', serif;
audio:not([controls]) {
display: none;
height: 0;
}
.container-main {
width: 1000px;
margin: 0 auto;
}
/**
* Address styling not present in IE 8/9.
*/
main {
display: block;
[hidden] {
display: none;
}
/* ==========================================================================
Base
========================================================================== */
/*=============================================*\
$General Styles
\*=============================================*/
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
::-moz-selection{ background: rgb(10, 170, 200); color:#fff; text-shadow: none; }
::selection { background:rgb(10, 170, 200); color:#fff; text-shadow: none; }
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
h1 {
font-weight: 400;
font-size: 60px;
margin: 0 0 20px;
text-shadow: 0 1px #000;
color: #0aaacb;
/**
* Remove default margin.
*/
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
body {
margin: 0;
}
h1.special {
font-size: 200px;
}
/* ==========================================================================
Links
========================================================================== */
h2 {
color: #0aaacb;
font-size: 30px;
margin: 20px 0;
}
/**
* Address `outline` inconsistency between Chrome and other browsers.
*/
h3 {
color: #0AAAC8;
a:focus {
outline: thin dotted;
}
section {
margin: 40px 0;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
p strong {
color: #e6db74;
a:active,
a:hover {
outline: 0;
}
a {
color: #0AAAC8;
text-decoration: none;
/* ==========================================================================
Typography
========================================================================== */
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}
a:visited { color: #0AAAC8;}
a:hover { color: #F0F0F0; text-decoration: underline; }
a:focus { outline: thin dotted; }
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari 5, and Chrome.
*/
pre[rel]::before {
content: attr(rel);
display: block;
margin-bottom: 10px;
font-weight: bolder;
font-size: 16px;
font-family: 'Poly', serif;
text-decoration: underline;
color: #0AAAC8;
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/*=============================================*\
$Header
\*=============================================*/
header h1 {margin-bottom: 0; line-height: 0.9;}
header p {margin-top: 0;}
/**
* Address styling not present in IE 8/9, Safari 5, and Chrome.
*/
/*=============================================*\
$Download options
\*=============================================*/
.downloads a {
position: relative;
margin: 0 15px 0 0;
color: #F0F0F0;
padding: 5px 15px;
border: 1px solid #454545;
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
*/
background-color: #333333;
background-image: -webkit-linear-gradient(top, #333333, #242424);
background-image: -moz-linear-gradient(top, #333333, #242424);
background-image: -ms-linear-gradient(top, #333333, #242424);
background-image: -o-linear-gradient(top, #333333, #242424);
background-image: linear-gradient(top, #333333, #242424);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#333333', EndColorStr='#242424');
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari 5 and Chrome.
*/
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-ms-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
dfn {
font-style: italic;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.downloads a:hover {
text-decoration: none;
color: #0AAAC8;
border-color: #0AAAC8;
}
/**
* Address styling not present in IE 8/9.
*/
.downloads a:hover::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(10, 170, 200, .15);
mark {
background: #ff0;
color: #000;
}
/*=============================================*\
$Filter options
\*=============================================*/
.filter {
position: relative;
font-size: 17px;
margin: 20px 0;
}
/**
* Correct font family set oddly in Safari 5 and Chrome.
*/
.filter-container {
float: left;
background-color: #2D2D2D;
width: 230px;
box-sizing: border-box;
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
.filter .label {
margin: 3px 5px 0 15px;
}
/**
* Improve readability of pre-formatted text in all browsers.
*/
.filter .label:first-child {
margin-left: 0;
pre {
white-space: pre-wrap;
}
.control-group {
margin: 0;
padding: 0;
list-style: none;
}
/**
* Set consistent quote types.
*/
.control-group + .control-group {
margin-left: 40px;
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
.control-group li {
display: block;
position: relative;
margin: 0;
color: #F0F0F0;
float: left;
padding: 5px;
border: 1px solid #454545;
font-size: 12px;
background-color: #333333;
background-image: -webkit-linear-gradient(top, #333333, #242424);
background-image: -moz-linear-gradient(top, #333333, #242424);
background-image: -ms-linear-gradient(top, #333333, #242424);
background-image: -o-linear-gradient(top, #333333, #242424);
background-image: linear-gradient(to bottom, #333333, #242424);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#333333', EndColorStr='#242424');
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
.control-group li:first-child {
border-radius: 5px 0 0 5px;
sup {
top: -0.5em;
}
.control-group li:last-child {
border-radius: 0 5px 5px 0;
sub {
bottom: -0.25em;
}
.control-group li:hover,
.control-group li.active {
cursor: pointer;
color: #0AAAC8;
border-color: #0AAAC8;
}
/* ==========================================================================
Embedded content
========================================================================== */
.control-group .active {
background-color: #242424;
background-image: -webkit-linear-gradient(top, #242424, #333333);
background-image: -moz-linear-gradient(top, #242424, #333333);
background-image: -ms-linear-gradient(top, #242424, #333333);
background-image: -o-linear-gradient(top, #242424, #333333);
background-image: linear-gradient(to bottom, #242424, #333333);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#242424', EndColorStr='#333333');
}
/**
* Remove border when inside `a` element in IE 8/9.
*/
.control-group li:hover::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(10, 170, 200, .15);
img {
border: 0;
}
.filter .search {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
font-size: 16px;
margin-top: 0;
padding: 4px 0;
border-radius: 20px;
border: 1px solid gray;
/**
* Correct overflow displayed oddly in IE 9.
*/
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
svg:not(:root) {
overflow: hidden;
}
.filter .search:focus {
border-color: rgba(82, 168, 236, 0.8);
outline: 0;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
/* ==========================================================================
Figures
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari 5.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/*=============================================*\
$Grid items
\*=============================================*/
/**
* Define consistent border, margin, and padding.
*/
#grid .item {
background-color: #2D2D2D;
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
#grid .item-details {
overflow: hidden;
text-overflow: clip;
white-space: nowrap;
padding: 14px;
}
/**
* 1. Correct `color` not being inherited in IE 8/9.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
#grid .item-details p {
white-space: normal;
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
#grid .item p.rfloat {
margin: 0;
padding: 5px;
width: 230px;
}
/**
* 1. Correct font family not being inherited in all browsers.
* 2. Correct font size not being inherited in all browsers.
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
*/
#grid .item-details a {
margin-top: 2px;
font-size: 12px;
float: right;
button,
input,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 2 */
margin: 0; /* 3 */
}
#grid .item-details a:before {
content: '[';
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
#grid .item-details a:after {
content: ']';
button,
input {
line-height: normal;
}
#grid .item:before {
content: 'Date: ' attr(data-date-created);
position: absolute;
top: 0;
right: 0;
text-shadow:
1px 0 rgba(0, 0, 0, .75),
0 1px rgba(0, 0, 0, .75),
0 -1px rgba(0, 0, 0, .75),
-1px 0 rgba(0, 0, 0, .75);
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
* Correct `select` style inheritance in Firefox 4+ and Opera.
*/
button,
select {
text-transform: none;
}
#grid .item.w2:not(.h2):before {
right: 250px;
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/* IE opacity fix */
.lt-ie9 #grid .item.concealed:before {
content: none;
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* 1. Address box sizing set to `content-box` in IE 8/9.
* 2. Remove excess padding in IE 8/9.
*/
/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
.lfloat { float: left; }
.rfloat { float: right; }
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
@media only screen and (max-width: 860px) {
.home header h1.special {
font-size: 150px;
}
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
.home .container {
width: auto;
margin: auto;
}
/**
* Remove inner padding and search cancel button in Safari 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
.home .container-main {
padding: 15px;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
.home .downloads a {
display: block;
margin: 0;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
.home .filter .label {
float: none;
margin: 10px 0 0 0;
}
/**
* 1. Remove default vertical scrollbar in IE 8/9.
* 2. Improve readability and alignment in all browsers.
*/
.home .filter .label:first-child {
margin: 0;
}
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
.home .control-group,
.home .control-group li {
float: none;
margin: 0;
display: block;
}
/* ==========================================================================
Tables
========================================================================== */
.home .control-group li {
font-size: initial;
padding-top: 10px;
padding-bottom: 10px;
}
/**
* Remove most spacing between table cells.
*/
.home .control-group + .control-group {
margin: 10px 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
.home .control-group li:first-child {
border-radius: 5px 5px 0 0;
}
/*=============================================*\
Structure
\*=============================================*/
.home .control-group li:last-child {
border-radius: 0 0 5px 5px;
}
body {
font-family: 'Ubuntu', sans-serif;
}
/*
Some colors from Flat UI
Firm/Turquiose: #1ABC9C;
Success/Emerald: #2ECC71;
Info/River: #3498DB;
Amethyst: #9B59B6;
Night/Wet Asphalt: #34495E;
Bright/Sunflower: #F1C40F;
Bright/Organge: #F39C12;
Carrot: #E67E22;
Alizarin: #E74C3C;
Clouds: #ECF0F1;
Concrete: #95A5A6;
*/
.home .filter .search {
display: block;
width: 100%;
}
h1 {
color: #2ECC71;
font-weight: 300;
font-size: 3em;
}
/* 2 widths + 1 margin - 1px + padding-left + padding-right */
@media only screen and (max-width: 509px) {
.home #grid .item {
width: 100%;
}
.home #grid .item img {
text-align: center;
width: 100%;
height: auto;
}
.home #grid .item:before {
top: 14px;
right: 14px;
content: attr(data-date-created);
}
/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.home #grid .item-details {
text-align: left;
}
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
@media only screen and (max-width: 480px) {
.home header h1.special {
font-size: 100px;
}
.clearfix:after {
clear: both;
}
@media only screen and (max-width: 320px) {
.home header h1.special {
font-size: 60px;
}
}
/*
* For IE 6/7 only
* Include this rule to trigger hasLayout and contain floats.
*/
.clearfix {
*zoom: 1;
}

@ -4,7 +4,7 @@ title: jQuery Shuffle Plugin
bodyClass: home
extraJS: [ "homepage.js" ]
---
<div class="container container-main">
<div>
<header>
<h1 class="special">Shuffle</h1>
<p>Categorize, sort, and filter a responsive grid of items</p>
@ -40,8 +40,12 @@ extraJS: [ "homepage.js" ]
<input class="search label" type="search" placeholder="Search..." />
</div>
<div id="grid" class="clearfix">
<div class="item" data-groups='["photography"]' data-date-created="2010-09-14" data-title="Baseball">
<div id="grid" class="container">
{% for item in site.items %}
{% assign item = item %}
{% include picture-item.html %}
{% endfor %}
<!-- <div class="item" data-groups='["photography"]' data-date-created="2010-09-14" data-title="Baseball">
<img src="img/baseball.png" alt="" height="145" width="230" />
<div class="item-details">
<span class="title">Baseball</span>
@ -135,7 +139,7 @@ extraJS: [ "homepage.js" ]
<span class="title">Vestride</span>
<a href="#">3D Render, Wallpaper</a>
</div>
</div>
</div> -->
</div>
</section>
@ -391,14 +395,6 @@ $('.filter .search').on('keyup change', function() {
<section>
<h2>Changes</h2>
<ul>
<li>11.3.12 - Replaced layout system with <a href="http://masonry.desandro.com/">masonry</a>. Items can now be different sizes! Added addtional examples.</li>
<li>10.24.12 - Better handling of grid item dimensions. Added a minimal markup page.</li>
<li>9.20.12 - Added <code>destroy</code> method</li>
<li>9.18.12 - Added sorting ability and made plugin responsive. Updated to Modernizr 2.6.2</li>
<li>7.21.12 - Rewrote plugin in more object oriented structure. Added custom events. Updated to Modernizr 2.6.1</li>
<li>7.3.12 - Removed dependency on the css file and now apply the css with javascript</li>
</ul>
{% include changelog.html %}
</section>
</div>

Loading…
Cancel
Save