src/components/layout.css
/* ==========================================================================
normalize.css v3.0.3 | MIT License | git.io/normalize | (minified)
========================================================================== */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body { margin: 0; }
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary { display: block; }
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template { display: none; }
a { background-color: transparent; }
a:active,
a:hover { outline: 0; }
abbr[title] { border-bottom: 1px dotted; }
b,
strong { font-weight: bold; }
dfn { font-style: italic; }
h1 {
font-size: 2em;
margin: 0.67em 0;
}
mark {
background: #ff0;
color: #000;
}
small { font-size: 80%; }
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup { top: -0.5em; }
sub { bottom: -0.25em; }
img { border: 0; }
svg:not(:root) { overflow: hidden; }
figure { margin: 1em 40px; }
hr {
box-sizing: content-box;
height: 0;
}
pre { overflow: auto; }
code,
kbd,
pre,
samp {
font-family: monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button { overflow: visible; }
button,
select { text-transform: none; }
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] { cursor: default; }
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input { line-height: normal; }
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { height: auto; }
input[type="search"] { -webkit-appearance: textfield; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
textarea { overflow: auto; }
optgroup { font-weight: bold; }
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th { padding: 0; }
/* ==========================================================================
Icons - Sets up the icon font and respective classes
========================================================================== */
/* Import the font file with the icons in it */
@font-face {
font-family: "casper-icons";
src: url("../fonts/casper-icons.eot?v=1");
src:
url("../fonts/casper-icons.eot?v=1#iefix") format("embedded-opentype"),
url("../fonts/casper-icons.woff?v=1") format("woff"),
url("../fonts/casper-icons.ttf?v=1") format("truetype"),
url("../fonts/casper-icons.svg?v=1#icons") format("svg");
font-weight: normal;
font-style: normal;
}
/* Apply these base styles to all icons */
[class^="icon-"]::before,
[class*=" icon-"]::before {
font-family: "casper-icons", "Open Sans", sans-serif;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
text-decoration: none !important;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Each icon is created by inserting the correct character into the
content of the :before pseudo element. Like a boss. */
.icon-ghost::before {
content: "\f600";
}
.icon-feed::before {
content: "\f601";
}
.icon-twitter::before {
content: "\f602";
font-size: 1.1em;
}
.icon-google-plus::before {
content: "\f603";
}
.icon-facebook::before {
content: "\f604";
}
.icon-stats::before {
content: "\f606";
}
.icon-location::before {
content: "\f607";
margin-left: -3px; /* Tracking fix */
}
.icon-link::before {
content: "\f608";
}
/*
IMPORTANT: When making any changes to the icon font, be sure to increment
the version number by 1 in the @font-face rule. `?v=1` becomes `?v=2`
This forces browsers to download the new font file.
*/
/* ==========================================================================
General - Setting up some base styles
========================================================================== */
html {
height: 100%;
max-height: 100%;
font-size: 62.5%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
height: 100%;
max-height: 100%;
font-family: "Merriweather", serif;
letter-spacing: 0.01rem;
font-size: 1.8rem;
line-height: 1.75em;
color: #3a4145;
-webkit-font-feature-settings: 'kern' 1;
-moz-font-feature-settings: 'kern' 1;
-o-font-feature-settings: 'kern' 1;
text-rendering: geometricPrecision;
}
::-moz-selection {
background: #d6edff;
}
::selection {
background: #d6edff;
}
h1,
h2,
h3,
h4,
h5,
h6 {
-webkit-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
-moz-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
-o-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
color: #2e2e2e;
line-height: 1.15em;
margin: 0 0 0.4em;
font-family: "Open Sans", sans-serif;
text-rendering: geometricPrecision;
}
h1 {
font-size: 5rem;
letter-spacing: -2px;
text-indent: -3px;
}
h2 {
font-size: 3.6rem;
letter-spacing: -1px;
}
h3 {
font-size: 3rem;
letter-spacing: -0.6px;
}
h4 {
font-size: 2.5rem;
}
h5 {
font-size: 2rem;
}
h6 {
font-size: 2rem;
}
a {
color: #4a4a4a;
transition: color 0.3s ease;
}
a:hover {
color: #111;
}
p,
ul,
ol,
dl {
-webkit-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
-moz-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
-o-font-feature-settings: 'liga' 1, 'onum' 1, 'kern' 1;
margin: 0 0 1.75em;
text-rendering: geometricPrecision;
}
ol,
ul {
padding-left: 3rem;
}
ol ol,
ul ul,
ul ol,
ol ul {
margin: 0 0 0.4em;
padding-left: 2em;
}
dl dt {
float: left;
width: 180px;
overflow: hidden;
clear: left;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 700;
margin-bottom: 1em;
}
dl dd {
margin-left: 200px;
margin-bottom: 1em;
}
li {
margin: 0.4em 0;
}
li li {
margin: 0;
}
li > p:last-of-type {
margin-bottom: 0;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: #efefef 1px solid;
margin: 3.2em 0;
padding: 0;
}
blockquote {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 1.75em 0 1.75em -2.2em;
padding: 0 0 0 1.75em;
border-left: #4a4a4a 0.4em solid;
}
blockquote p {
margin: 0.8em 0;
font-style: italic;
}
blockquote small {
display: inline-block;
margin: 0.8em 0 0.8em 1.5em;
font-size: 0.9em;
color: #ccc;
}
blockquote small::before { content: "\2014 \00A0"; }
blockquote cite {
font-weight: 700;
}
blockquote cite a { font-weight: normal; }
mark {
background-color: #fdffb6;
}
code,
tt {
padding: 1px 3px;
font-family: Inconsolata, monospace, sans-serif;
font-size: 0.85em;
white-space: pre-wrap;
border: #e3edf3 1px solid;
background: #f7fafb;
border-radius: 2px;
-webkit-font-feature-settings: "liga" 0;
-moz-font-feature-settings: "liga" 0;
font-feature-settings: "liga" 0;
}
pre {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0 0 1.75em;
border: #e3edf3 1px solid;
width: 100%;
padding: 10px;
font-family: Inconsolata, monospace, sans-serif;
font-size: 0.9em;
white-space: pre;
overflow: auto;
background: #f7fafb;
border-radius: 3px;
}
pre code,
pre tt {
font-size: inherit;
white-space: pre-wrap;
background: transparent;
border: none;
padding: 0;
}
kbd {
display: inline-block;
margin-bottom: 0.4em;
padding: 1px 8px;
border: #ccc 1px solid;
color: #666;
text-shadow: #fff 0 1px 0;
font-size: 0.9em;
font-weight: 700;
background: #f4f4f4;
border-radius: 4px;
box-shadow:
0 1px 0 rgba(0, 0, 0, 0.2),
0 1px 0 0 #fff inset;
}
table {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 1.75em 0;
width: 100%;
max-width: 100%;
background-color: transparent;
}
table th,
table td {
padding: 8px;
line-height: 20px;
text-align: left;
vertical-align: top;
border-top: #efefef 1px solid;
}
table th { color: #000; }
table caption + thead tr:first-child th,
table caption + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
border-top: 0;
}
table tbody + tbody { border-top: #efefef 2px solid; }
table table table { background-color: #fff; }
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
background-color: #f6f6f6;
}
table.plain tbody > tr:nth-child(odd) > td,
table.plain tbody > tr:nth-child(odd) > th {
background: transparent;
}
iframe,
.fluid-width-video-wrapper {
display: block;
margin: 1.75em 0;
}
/* When a video is inside the fitvids wrapper, drop the
margin on the iframe, cause it breaks stuff. */
.fluid-width-video-wrapper iframe {
margin: 0;
}
textarea,
select,
input:not([type="radio"]):not([type="checkbox"]) {
width: 260px;
padding: 6px 9px;
margin: 0 0 5px;
outline: 0;
font-family: 'Open Sans', sans-serif;
font-size: 1.6rem;
font-weight: 100;
line-height: 1.4em;
background: #fff;
border: #e7eef2 1px solid;
border-radius: 4px;
box-shadow: none;
-webkit-appearance: none;
}
textarea {
width: 100%;
max-width: 340px;
min-width: 250px;
height: auto;
min-height: 80px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
textarea:focus {
border: #bbc7cc 1px solid;
background: #fff;
outline: none;
outline-width: 0;
}
select {
width: 270px;
height: 30px;
line-height: 30px;
}
button {
min-height: 35px;
width: auto;
display: inline-block;
padding: 0.1rem 1.5rem;
cursor: pointer;
outline: none;
text-decoration: none;
color: #fff;
font-family: 'Open Sans', sans-serif;
font-size: 11px; /* Hacks targeting Firefox. */
line-height: 13px; /* Hacks targeting Firefox. */
font-weight: 300;
text-align: center;
letter-spacing: 1px;
text-transform: uppercase;
text-shadow: none;
border-radius: 0.3rem;
border: rgba(0, 0, 0, 0.05) 0.1em solid;
background: #5ba4e5;
}
/* ==========================================================================
Utilities - These things get used a lot
========================================================================== */
/* Clears content */
.clearfix::before,
.clearfix::after {
content: " ";
display: table;
}
.clearfix::after { clear: both; }
.clearfix { zoom: 1; }
/* Hides content */
.hidden {
text-indent: -9999px;
visibility: hidden;
display: none;
}
/* Creates a responsive wrapper that makes our content scale nicely */
.inner {
position: relative;
width: 80%;
max-width: 710px;
margin: 0 auto;
}
/* Centres vertically yo. (IE8+) */
.vertical {
display: table-cell;
vertical-align: middle;
}
/* ==========================================================================
Third Party Elements - Embeds from other services
========================================================================== */
/* Github */
.gist table {
margin: 0;
font-size: 1.4rem;
text-rendering: auto;
}
.gist td {
line-height: 1.4;
}
.gist .line-number {
min-width: 25px;
}
/* Pastebin */
.content .embedPastebin {
margin-bottom: 1.75em;
}
/* ==========================================================================
Media Queries - Smaller than 900px
========================================================================== */
@media only screen and (max-width: 900px) {
blockquote {
margin-left: 0;
}
hr {
margin: 2.4em 0;
}
ol,
ul {
padding-left: 2em;
}
h1 {
font-size: 4.5rem;
text-indent: -2px;
}
h2 {
font-size: 3.6rem;
}
h3 {
font-size: 3.1rem;
}
h4 {
font-size: 2.5rem;
}
h5 {
font-size: 2.2rem;
}
h6 {
font-size: 1.8rem;
}
}
/* ==========================================================================
Media Queries - Smaller than 500px
========================================================================== */
@media only screen and (max-width: 500px) {
hr {
margin: 1.75em 0;
}
p,
ul,
ol,
dl {
font-size: 0.95em;
margin: 0 0 2.5rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0 0 0.3em;
}
h1 {
font-size: 2.8rem;
letter-spacing: -1px;
}
h2 {
font-size: 2.4rem;
letter-spacing: 0;
}
h3 {
font-size: 2.1rem;
}
h4 {
font-size: 1.9rem;
}
h5 {
font-size: 1.8rem;
}
h6 {
font-size: 1.8rem;
}
.inner {
width: auto;
margin: 2rem auto;
}
}