@@ -13,39 +13,43 @@

/*----------[ tags ]------------------------------------------------------------
*/
a
{
a {
color: $link;

@include transition(color 0.3s ease-in-out 0);

&:visited
{
&:visited {
color: $visited-link;
}

&:hover,
&:active
{
&:active {
color: darken($link, 10);
}
}

blockquote, dl, ol, p, pre, table, ul
{
blockquote,
dl,
ol,
p,
pre,
table,
ul {
margin: $body-text-line-height 0;
}

blockquote
{
blockquote {
margin-left: $column-width;

color: $secondary-text-color;
}

body
{
background-color: $page-bg;
body {
color: $body-text-color;
background-color: $page-bg;

font-family: $body-text-family;

@include body-text;

/*
@@ -54,118 +58,111 @@ body
** size you feel is effective at those screen sizes. REMOVE IT if you want
** iPhone to automatically resize the text.
*/
@media (max-width: 500px)
{
@media (max-width: 500px) {
-webkit-text-size-adjust: 100%;
}
}

caption
{
caption {
font-style: italic;
}

dt
{
dt {
font-style: italic;
}

dd
{
dd {
margin: 0 0 $body-text-line-height;
}

em
{
em {
font-style: italic;
}

h1
{
h1 {
margin-bottom: $body-text-line-height * 3 - $page-heading-text-line-height;
padding: 0;
@include heading-text;

color: $heading-text-color;

@include heading-text;
}

h2
{
h2 {
margin: $body-text-line-height 0 $body-text-line-height / 2;

color: $subheading-text-color;

@include subheading-text;
}

h3
{
h3 {
margin: 0.75 * $body-text-line-height 0 0;

@include large-text;
}

h1, h2, h3
{
h1,
h2,
h3 {
// For large headings, use ligatures if available.
text-rendering: optimizeLegibility;

& + blockquote,
& + dl,
& + ol,
& + ul,
& + p
{
& + p {
margin-top: 0;
}
}

hr
{

hr {
margin: ($body-text-line-height / 2 - 0.1) auto $body-text-line-height / 2;
border-style: none;
height: 1px;

background-color: $stroke;
}

ol, ul
{
ol,
ul {
margin-left: $column-width;
}

ol
{
ol {
list-style-type: decimal;

ol
{
ol {
list-style-type: lower-alpha;

ol
{
ol {
list-style-type: lower-roman;
}
}
}

dl dl, ol ol, ul ul
{
dl dl,
ol ol,
ul ul {
margin-top: 0;
margin-bottom: 0;
}

pre
{
pre {
overflow: auto;

padding: $body-text-line-height / 2 $column-width / 2;
overflow: auto;

background-color: $accent-bg;
}

strong
{
strong {
font-weight: bold;
}

sub, sup
{
sub,
sup {
font-size: 80%;
/*
** A non-zero line-height on a sub or sup element will alter the line-height
@@ -175,105 +172,94 @@ sub, sup
line-height: 0;
}

sub
{
sub {
vertical-align: sub;
}

sup
{
sup {
vertical-align: super;
}

table
{
table {
width: 100%;
}

table, thead th
{
table,
thead th {
border-bottom: 2px solid $light-stroke;
}

td, th
{
td,
th {
padding: $vertical-nudge 0;
padding-right: $column-width;

&:first-of-type
{
&:first-of-type {
padding-left: $horizontal-nudge;
}

&:last-of-type
{
&:last-of-type {
padding-right: $horizontal-nudge;
}
}

th
{
th {
text-align: left;
}

tbody th, td
{
tbody th,
td {
border-bottom: 1px solid $light-stroke;
}

ul
{
ul {
list-style-type: disc;
}

/*----------[ non-semantic styles ]---------------------------------------------
** Purely presentational styles with non-semantic names.
*/
.align-center
{
.align-center {
margin: 0 auto;
}

.align-left
{
.align-left {
float: left;
}

.align-right
{
.align-right {
float: right;
}

/* Clearfix style from <http://nicolasgallagher.com/micro-clearfix-hack/> */
.group:before,
.group:after
{
content: "";
.group:after {
display: table;

content: '';
}

.group:after
{
.group:after {
clear: both;
}

span.keep-together
{
span.keep-together {
white-space: nowrap;
}

.reset
{
.reset {
clear: both;

margin: 0;
padding: 0;
height: 1px;

font-size: 0;
}

.spacer
{
.spacer {
padding: 0;
height: $body-text-line-height / 2;

font-size: 0;
}

This file was deleted.

@@ -26,129 +26,131 @@
** Also offer clearfix as a mixin for greater flexibility.
** Clearfix style from <http://nicolasgallagher.com/micro-clearfix-hack/>
*/
@mixin clearfix
{
@mixin clearfix {
&:before,
&:after
{
&:after {
content: "";
display: table;
}

&:after
{
&:after {
clear: both;
}
}

@mixin inline-list($spacing: 0.33em)
{
@mixin inline-list($spacing: 0.33em) {
display: inline;
margin: 0;
list-style-type: none;

li
{
li {
display: inline;
margin-right: $spacing;

&:last-of-type
{
&:last-of-type {
margin-right: 0;
}
}
}

@mixin inline-block-list($spacing: $column-width)
{
@mixin inline-block-list($spacing: $column-width) {
margin: 0;
list-style-type: none;

li
{
li {
display: inline-block;
margin-right: $spacing;

&:last-of-type
{
&:last-of-type {
margin-right: 0;
}
}
}

// Put this on a UL to get text and bullets colored differently.
@mixin colored-bullets($gutter-size: $column-width,
$bullet-character: '\2022',
$color: $secondary-text-color) {
margin-left: 0;

&, li {
list-style: none;
}

li {
padding-left: $gutter-size;
}

li:before {
display: inline-block;
margin-left: -$gutter-size;
width: $gutter-size;
font-size: 1.2em;
color: $color;
content: $bullet-character;
}
}

/*----------[ typography ]------------------------------------------------------
| Common font-size/line-height combinations.
*/
@mixin heading-text
{
@mixin heading-text {
font-size : $page-heading-text-size;
line-height : $page-heading-text-line-height;
}

@mixin subheading-text
{
@mixin subheading-text {
font-size : $subheading-text-size;
line-height : $subheading-text-line-height;
}

@mixin large-text
{
@mixin large-text {
font-size : $large-text-size;
line-height : $large-text-line-height;
}

@mixin body-text
{
@mixin body-text {
font-size : $body-text-size;
line-height : $body-text-line-height;
}

@mixin secondary-text
{
@mixin secondary-text {
font-size : $secondary-text-size;
line-height : $secondary-text-line-height;
}

@mixin small-text
{
@mixin small-text {
font-size : $small-text-size;
line-height : $small-text-line-height;
}

/*----------[ forms ]-----------------------------------------------------------
*/
@mixin placeholder-text
{
&::-webkit-input-placeholder
{
@mixin placeholder-text {
&::-webkit-input-placeholder {
@content;
}

&:-moz-placeholder
{ /* Firefox 18- */
&:-moz-placeholder { /* Firefox 18- */
@content;
}

&::-moz-placeholder
{ /* Firefox 19+ */
&::-moz-placeholder { /* Firefox 19+ */
@content;
}

&:-ms-input-placeholder
{
&:-ms-input-placeholder {
@content;
}
}

/*----------[ photos/images ]---------------------------------------------------
*/
@mixin retina
{
@mixin retina {
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5)
{
only screen and (min-device-pixel-ratio: 1.5) {
@content;
}
}
@@ -169,22 +171,19 @@
*/
@mixin retina-background($image-name, $image-width, $image-height, $type: "png",
$bg-color: transparent, $bg-repeat: no-repeat,
$bg-pos-x: center, $bg-pos-y: center)
{
$bg-pos-x: center, $bg-pos-y: center) {
$full-image-name : "#{$image-name}.#{$type}";
$retina-image-name : "#{$image-name}@2x.#{$type}";

background: $bg-color image-url($full-image-name) $bg-repeat $bg-pos-x $bg-pos-y;

@include retina
{
@include retina {
background-image: image-url($retina-image-name);
@include background-size($image-width $image-height);
}
}

@mixin retina-graphic($image, $type: "png")
{
@mixin retina-graphic($image, $type: "png") {
$img-width : image-width("#{$image}.#{$type}");
$img-height : image-height("#{$image}.#{$type}");

@@ -193,32 +192,86 @@
height: $img-height;
}

/*----------[ parallax ]--------------------------------------------------------
| Mixin to do pure-CSS parallax scrolling effects.
| From http://keithclark.co.uk/articles/pure-css-parallax-websites/
*/
@function parallax-scale-correction($translate-z, $perspective) {
@return (1 + ($translate-z * -1) / $perspective);
}

@mixin parallax($parallax-perspective: 300px) {
@include perspective($parallax-perspective);
height: 100vh;
overflow-x: hidden;
overflow-y: auto;

.parallax-group {
position: relative;
height: 100vh;
@include transform-style(preserve-3d);
@include transition(transform 0.5s);

// See what's really going on…
&.debug {
@include transform(translate3d(700px, 0, -800px) rotateY(30deg));

.parallax-layer {
@include box-shadow(0 0 0 2px #000);
@include opacity(0.9);
}
}
}

.parallax-layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;

&.fore {
@include transform(translateZ(90px) scale(parallax-scale-correction(90px, $parallax-perspective)));
z-index: 1;
}

&.base {
@include translateZ(0);
z-index: 4;
}

&.back {
@include transform(translateZ(-300px) scale(parallax-scale-correction(-300px, $parallax-perspective)));
z-index: 3;
}

&.deep {
@include transform(translateZ(-600px) scale(parallax-scale-correction(-600px, $parallax-perspective)));
z-index: 2;
}
}
}

/*----------[ animations ]------------------------------------------------------
*/
@mixin spin-keyframes
{
@include keyframes(spin)
{
from
{
@mixin spin-keyframes {
@include keyframes(spin) {
from {
@include transform(rotate(0deg));
}

to
{
to {
@include transform(rotate(359deg));
}
}
}

@mixin spin
{
@mixin spin {
@include spin-keyframes;
@include animation(spin 2s infinite linear);
}

@mixin pulse
{
@mixin pulse {
@include spin-keyframes;
@include animation(spin 2s infinite steps(8));
}
@@ -1,32 +1,30 @@
/*-----[ page ]-----------------------------------------------------------------
| Top-level styles for content. Otherwise unqualified styles should go here.
*/
.page
{
.page {
@include clearfix;

.annotation,
.fine-print,
.form-help
{
.form-help {
color: $secondary-text-color;

font-weight: normal;
font-style: italic;
}

.fine-print, .form-help
{
.fine-print,
.form-help {
margin: 0;

@include small-text;
}

.subtitle
{
.subtitle {
font-weight: normal;
}

.subheading
{
.subheading {
font-weight: bold;
}
}
@@ -1,27 +1,35 @@
/*----------[ pagination ]------------------------------------------------------
| Styles for Flickr-style pagination.
*/
.pagination
{
.pagination {
margin-top: $body-text-line-height - (2 * $vertical-nudge);

white-space-collapse: discard;

.first, .prev, .page, .next, .last
{
.first,
.prev,
.page,
.next,
.last {
display: inline-block;

margin-right: $column-width / 2;
@include border-radius(6px);

background-color: darken($greyish-white, 3);

a
{
@include border-radius(6px);

a {
display: block;

text-decoration: none;
}

a, &.current, &.gap
{
a,
&.current,
&.gap {
padding: $vertical-nudge $column-width / 2;

background-color: transparent;
}
}