Remove trailing whitespace

This commit is contained in:
Craig Dodd 2015-04-17 11:43:36 +01:00
parent 3d685a192f
commit f06b4c163d
31 changed files with 345 additions and 345 deletions

4
404.md
View file

@ -4,7 +4,7 @@ title: "Page Not Found"
excerpt: "Page not found. Your pixels are in another canvas." excerpt: "Page not found. Your pixels are in another canvas."
sitemap: false sitemap: false
permalink: /404.html permalink: /404.html
--- ---
Sorry, but the page you were trying to view does not exist --- perhaps you can try searching for it below. Sorry, but the page you were trying to view does not exist --- perhaps you can try searching for it below.
@ -14,4 +14,4 @@ Sorry, but the page you were trying to view does not exist --- perhaps you can t
</script> </script>
<script type="text/javascript" <script type="text/javascript"
src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"> src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
</script> </script>

View file

@ -2,4 +2,4 @@ source 'https://rubygems.org'
gem 'jekyll' gem 'jekyll'
gem 'jekyll-sitemap' gem 'jekyll-sitemap'
gem 'octopress', '~> 3.0.0.rc.12' gem 'octopress', '~> 3.0.0.rc.12'

View file

@ -1,11 +1,11 @@
# Minimal Mistakes # Minimal Mistakes
**[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog. **[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog.
## Minimal Mistakes is all about: ## Minimal Mistakes is all about:
* Responsive templates. Looking good on mobile, tablet, and desktop. * Responsive templates. Looking good on mobile, tablet, and desktop.
* Gracefully degrading in older browsers. Compatible with Internet Explorer 8+ and all modern browsers. * Gracefully degrading in older browsers. Compatible with Internet Explorer 8+ and all modern browsers.
* Minimal embellishments -- content first. * Minimal embellishments -- content first.
* Optional large feature images for posts and pages. * Optional large feature images for posts and pages.
* Simple and clear permalink structure. * Simple and clear permalink structure.
@ -20,4 +20,4 @@ See a [live version of Minimal Mistakes](http://mmistakes.github.io/minimal-mist
Minimal Mistakes takes advantage of Sass and data files to make customizing easier. These features require Jekyll 2.x and will not work with older versions of Jekyll. Minimal Mistakes takes advantage of Sass and data files to make customizing easier. These features require Jekyll 2.x and will not work with older versions of Jekyll.
To learn how to install and use this theme check out the [Setup Guide](http://mmistakes.github.io/minimal-mistakes/theme-setup/) for more information. To learn how to install and use this theme check out the [Setup Guide](http://mmistakes.github.io/minimal-mistakes/theme-setup/) for more information.

View file

@ -2,7 +2,7 @@
title: Site Title title: Site Title
locale: en_US locale: en_US
url: url:
# Jekyll configuration # Jekyll configuration
@ -29,17 +29,17 @@ owner:
name: Your Name name: Your Name
avatar: bio-photo.jpg avatar: bio-photo.jpg
bio: "Describe your self." bio: "Describe your self."
email: email:
disqus-shortname: disqus-shortname:
twitter: #username twitter: #username
facebook: #username facebook: #username
google: google:
plus: #username plus: #username
analytics: analytics:
verify: verify:
ad-client: ad-client:
ad-slot: ad-slot:
bing-verify: bing-verify:
github: #username github: #username
stackoverflow: #http://stackoverflow.com/users/123456/username stackoverflow: #http://stackoverflow.com/users/123456/username
linkedin: #username linkedin: #username

View file

@ -5,7 +5,7 @@
<!-- Asynchronous Google Analytics snippet --> <!-- Asynchronous Google Analytics snippet -->
<script> <script>
var _gaq = _gaq || []; var _gaq = _gaq || [];
var pluginUrl = var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js'; '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]); _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']); _gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']);
@ -20,4 +20,4 @@
{% endif %} {% endif %}
{% if page.comments %} {% if page.comments %}
{% include _disqus_comments.html %} {% include _disqus_comments.html %}
{% endif %} {% endif %}

View file

@ -28,13 +28,13 @@
</div><!-- /.image-wrap --> </div><!-- /.image-wrap -->
{% endif %} {% endif %}
<div id="main" role="main"> <div id="main" role="main">
<div class="article-author-side"> <div class="article-author-side">
{% include _author-bio.html %} {% include _author-bio.html %}
</div> </div>
<div id="index"> <div id="index">
<h3><a href="{{ site.url}}/posts/">Recent Posts</a></h3> <h3><a href="{{ site.url}}/posts/">Recent Posts</a></h3>
{% for post in site.posts limit:5 %} {% for post in site.posts limit:5 %}
<article> <article>
{% if post.link %} {% if post.link %}
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2> <h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2>
@ -54,6 +54,6 @@
</div><!-- /.footer-wrap --> </div><!-- /.footer-wrap -->
{% include _scripts.html %} {% include _scripts.html %}
</body> </body>
</html> </html>

View file

@ -53,7 +53,7 @@
</footer> </footer>
</div><!-- /.footer-wrap --> </div><!-- /.footer-wrap -->
{% include _scripts.html %} {% include _scripts.html %}
</body> </body>
</html> </html>

View file

@ -34,7 +34,7 @@
</div> </div>
<div id="index"> <div id="index">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{% for post in site.posts %} {% for post in site.posts %}
{% unless post.next %} {% unless post.next %}
<h3>{{ post.date | date: '%Y' }}</h3> <h3>{{ post.date | date: '%Y' }}</h3>
{% else %} {% else %}
@ -63,6 +63,6 @@
</div><!-- /.footer-wrap --> </div><!-- /.footer-wrap -->
{% include _scripts.html %} {% include _scripts.html %}
</body> </body>
</html> </html>

View file

@ -71,7 +71,7 @@
</footer> </footer>
</div><!-- /.footer-wrap --> </div><!-- /.footer-wrap -->
{% include _scripts.html %} {% include _scripts.html %}
</body> </body>
</html> </html>

View file

@ -12,11 +12,11 @@ Vero laborum commodo occupy. Semiotics voluptate mumblecore pug. Cosby sweater u
## Cupidatat 90's lo-fi authentic try-hard ## Cupidatat 90's lo-fi authentic try-hard
In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's. In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's.
* Sartorial hoodie * Sartorial hoodie
* Labore viral forage * Labore viral forage
* Tote bag selvage * Tote bag selvage
* DIY exercitation et id ugh tumblr church-key * DIY exercitation et id ugh tumblr church-key
Incididunt umami sriracha, ethical fugiat VHS ex assumenda yr irure direct trade. Marfa Truffaut bicycle rights, kitsch placeat Etsy kogi asymmetrical. Beard locavore flexitarian, kitsch photo booth hoodie plaid ethical readymade leggings yr. Incididunt umami sriracha, ethical fugiat VHS ex assumenda yr irure direct trade. Marfa Truffaut bicycle rights, kitsch placeat Etsy kogi asymmetrical. Beard locavore flexitarian, kitsch photo booth hoodie plaid ethical readymade leggings yr.
@ -25,7 +25,7 @@ Aesthetic odio dolore, meggings disrupt qui readymade stumptown brunch Terry Ric
## Forage occaecat cardigan qui ## Forage occaecat cardigan qui
Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole. Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole.
> Whatever velit occaecat quis deserunt gastropub, leggings elit tousled roof party 3 wolf moon kogi pug blue bottle ea. Fashion axe shabby chic Austin quinoa pickled laborum bitters next level, disrupt deep v accusamus non fingerstache. > Whatever velit occaecat quis deserunt gastropub, leggings elit tousled roof party 3 wolf moon kogi pug blue bottle ea. Fashion axe shabby chic Austin quinoa pickled laborum bitters next level, disrupt deep v accusamus non fingerstache.
@ -41,4 +41,4 @@ Fingerstache thundercats Williamsburg, deep v scenester Banksy ennui vinyl selfi
Occupy et selvage squid, pug brunch blog nesciunt hashtag mumblecore skateboard yr kogi. Ugh small batch swag four loko. Fap post-ironic qui tote bag farm-to-table american apparel scenester keffiyeh vero, swag non pour-over gentrify authentic pitchfork. Schlitz scenester lo-fi voluptate, tote bag irony bicycle rights pariatur vero Vice freegan wayfarers exercitation nisi shoreditch. Chambray tofu vero sed. Street art swag literally leggings, Cosby sweater mixtape PBR lomo Banksy non in pitchfork ennui McSweeney's selfies. Odd Future Banksy non authentic. Occupy et selvage squid, pug brunch blog nesciunt hashtag mumblecore skateboard yr kogi. Ugh small batch swag four loko. Fap post-ironic qui tote bag farm-to-table american apparel scenester keffiyeh vero, swag non pour-over gentrify authentic pitchfork. Schlitz scenester lo-fi voluptate, tote bag irony bicycle rights pariatur vero Vice freegan wayfarers exercitation nisi shoreditch. Chambray tofu vero sed. Street art swag literally leggings, Cosby sweater mixtape PBR lomo Banksy non in pitchfork ennui McSweeney's selfies. Odd Future Banksy non authentic.
Aliquip enim artisan dolor post-ironic. Pug tote bag Marfa, deserunt pour-over Portland wolf eu odio intelligentsia american apparel ugh ea. Sunt viral et, 3 wolf moon gastropub pug id. Id fashion axe est typewriter, mlkshk Portland art party aute brunch. Sint pork belly Cosby sweater, deep v mumblecore kitsch american apparel. Try-hard direct trade tumblr sint skateboard. Adipisicing bitters excepteur biodiesel, pickled gastropub aute veniam. Aliquip enim artisan dolor post-ironic. Pug tote bag Marfa, deserunt pour-over Portland wolf eu odio intelligentsia american apparel ugh ea. Sunt viral et, 3 wolf moon gastropub pug id. Id fashion axe est typewriter, mlkshk Portland art party aute brunch. Sint pork belly Cosby sweater, deep v mumblecore kitsch american apparel. Try-hard direct trade tumblr sint skateboard. Adipisicing bitters excepteur biodiesel, pickled gastropub aute veniam.

View file

@ -59,4 +59,4 @@ And you'll get something that looks like this:
<img src="http://placehold.it/600x300.jpg"> <img src="http://placehold.it/600x300.jpg">
<img src="http://placehold.it/600x300.jpg"> <img src="http://placehold.it/600x300.jpg">
<figcaption>Three images.</figcaption> <figcaption>Three images.</figcaption>
</figure> </figure>

View file

@ -16,11 +16,11 @@ Vero laborum commodo occupy. Semiotics voluptate mumblecore pug. Cosby sweater u
## Cupidatat 90's lo-fi authentic try-hard ## Cupidatat 90's lo-fi authentic try-hard
In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's. In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's.
* Sartorial hoodie * Sartorial hoodie
* Labore viral forage * Labore viral forage
* Tote bag selvage * Tote bag selvage
* DIY exercitation et id ugh tumblr church-key * DIY exercitation et id ugh tumblr church-key
Incididunt umami sriracha, ethical fugiat VHS ex assumenda yr irure direct trade. Marfa Truffaut bicycle rights, kitsch placeat Etsy kogi asymmetrical. Beard locavore flexitarian, kitsch photo booth hoodie plaid ethical readymade leggings yr. Incididunt umami sriracha, ethical fugiat VHS ex assumenda yr irure direct trade. Marfa Truffaut bicycle rights, kitsch placeat Etsy kogi asymmetrical. Beard locavore flexitarian, kitsch photo booth hoodie plaid ethical readymade leggings yr.
@ -29,7 +29,7 @@ Aesthetic odio dolore, meggings disrupt qui readymade stumptown brunch Terry Ric
## Forage occaecat cardigan qui ## Forage occaecat cardigan qui
Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole. Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole.
> Whatever velit occaecat quis deserunt gastropub, leggings elit tousled roof party 3 wolf moon kogi pug blue bottle ea. Fashion axe shabby chic Austin quinoa pickled laborum bitters next level, disrupt deep v accusamus non fingerstache. > Whatever velit occaecat quis deserunt gastropub, leggings elit tousled roof party 3 wolf moon kogi pug blue bottle ea. Fashion axe shabby chic Austin quinoa pickled laborum bitters next level, disrupt deep v accusamus non fingerstache.
@ -47,4 +47,4 @@ Occupy et selvage squid, pug brunch blog nesciunt hashtag mumblecore skateboard
Aliquip enim artisan dolor post-ironic. Pug tote bag Marfa, deserunt pour-over Portland wolf eu odio intelligentsia american apparel ugh ea. Sunt viral et, 3 wolf moon gastropub pug id. Id fashion axe est typewriter, mlkshk Portland art party aute brunch. Sint pork belly Cosby sweater, deep v mumblecore kitsch american apparel. Try-hard direct trade tumblr sint skateboard. Adipisicing bitters excepteur biodiesel, pickled gastropub aute veniam. Aliquip enim artisan dolor post-ironic. Pug tote bag Marfa, deserunt pour-over Portland wolf eu odio intelligentsia american apparel ugh ea. Sunt viral et, 3 wolf moon gastropub pug id. Id fashion axe est typewriter, mlkshk Portland art party aute brunch. Sint pork belly Cosby sweater, deep v mumblecore kitsch american apparel. Try-hard direct trade tumblr sint skateboard. Adipisicing bitters excepteur biodiesel, pickled gastropub aute veniam.
[^1]: Texture image courtesty of [Lovetextures](http://www.lovetextures.com/) [^1]: Texture image courtesty of [Lovetextures](http://www.lovetextures.com/)

View file

@ -3,7 +3,7 @@ layout: post
title: "Sample Link Post" title: "Sample Link Post"
excerpt: "Example and code for using link posts." excerpt: "Example and code for using link posts."
tags: [sample post, link post] tags: [sample post, link post]
link: http://mademistakes.com link: http://mademistakes.com
share: true share: true
--- ---
@ -11,4 +11,4 @@ This theme supports **link posts**, made famous by John Gruber. To use, just add
> And this is how a quote looks. > And this is how a quote looks.
Some [link](http://www.mademistakes.com) can also be shown. Some [link](http://www.mademistakes.com) can also be shown.

View file

@ -118,4 +118,4 @@ end
An example of a Gist embed below. An example of a Gist embed below.
{% gist mmistakes/6589546 %} {% gist mmistakes/6589546 %}

View file

@ -40,4 +40,4 @@ To assign Billy Rick as an author for our post. You'd add the following YAML fro
{% highlight yaml %} {% highlight yaml %}
author: billy_rick author: billy_rick
{% endhighlight %} {% endhighlight %}

View file

@ -1,18 +1,18 @@
/* /*
Rules Rules
========================================================================== */ ========================================================================== */
hr { hr {
display: block; display: block;
margin: 1em 0; margin: 1em 0;
padding: 0; padding: 0;
height: 1px; height: 1px;
border: 0; border: 0;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
} }
/* /*
Figures and images Figures and images
========================================================================== */ ========================================================================== */
@ -23,13 +23,13 @@ figure {
article img { article img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
border-width: 0; border-width: 0;
vertical-align: middle; vertical-align: middle;
-ms-interpolation-mode: bicubic; -ms-interpolation-mode: bicubic;
} }
svg:not(:root) { svg:not(:root) {
overflow: hidden; overflow: hidden;
} }
/* 2 images of equal dimensions in a row */ /* 2 images of equal dimensions in a row */
@ -62,7 +62,7 @@ svg:not(:root) {
} }
} }
/* /*
Buttons Buttons
========================================================================== */ ========================================================================== */
@ -151,7 +151,7 @@ svg:not(:root) {
} }
} }
/* /*
Wells Wells
========================================================================== */ ========================================================================== */
@ -163,4 +163,4 @@ svg:not(:root) {
border: 1px solid #e3e3e3; border: 1px solid #e3e3e3;
@include rounded(4px); @include rounded(4px);
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.05)); @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.05));
} }

View file

@ -2,34 +2,34 @@
Forms Forms
========================================================================== */ ========================================================================== */
btnform { btnform {
margin: 0 0 5px 0; margin: 0 0 5px 0;
fieldset { fieldset {
margin-bottom: 5px; margin-bottom: 5px;
padding: 0; padding: 0;
border-width: 0; border-width: 0;
} }
legend { legend {
display: block; display: block;
width: 100%; width: 100%;
margin-bottom: 5px * 2; margin-bottom: 5px * 2;
*margin-left: -7px; *margin-left: -7px;
padding: 0; padding: 0;
color: $textcolor; color: $textcolor;
border: 0; border: 0;
border-bottom: 1px solid lighten($black, 80); border-bottom: 1px solid lighten($black, 80);
white-space: normal; white-space: normal;
} }
p { p {
margin-bottom: 5px / 2; margin-bottom: 5px / 2;
} }
ul { ul {
list-style-type: none; list-style-type: none;
margin: 0 0 5px 0; margin: 0 0 5px 0;
padding: 0; padding: 0;
} }
br { br {
display: none; display: none;
} }
} }
label, label,
@ -37,26 +37,26 @@ input,
button, button,
select, select,
textarea { textarea {
vertical-align: baseline; vertical-align: baseline;
*vertical-align: middle; *vertical-align: middle;
} }
input, input,
button, button,
select, select,
textarea { textarea {
font-family: $base-font; font-family: $base-font;
@include box-sizing(border-box); @include box-sizing(border-box);
} }
label { label {
display: block; display: block;
margin-bottom: 10px / 8; margin-bottom: 10px / 8;
font-weight: bold; font-weight: bold;
color: $textcolor; color: $textcolor;
cursor: pointer; cursor: pointer;
input, input,
textarea, textarea,
select { select {
display: block; display: block;
} }
} }
input, input,
@ -68,16 +68,16 @@ select {
margin-bottom: 5px / 4; margin-bottom: 5px / 4;
background-color: $white; background-color: $white;
border: 1px solid lighten($black, 80); border: 1px solid lighten($black, 80);
color: $textcolor; color: $textcolor;
&:hover { &:hover {
border-color: lighten($accentcolor, 50); border-color: lighten($accentcolor, 50);
} }
} }
.input-mini { .input-mini {
width: 60px; width: 60px;
} }
.input-small { .input-small {
width: 90px; width: 90px;
} }
input[type="image"], input[type="image"],
input[type="checkbox"], input[type="checkbox"],
@ -90,18 +90,18 @@ input[type="radio"] {
line-height: normal; line-height: normal;
cursor: pointer; cursor: pointer;
@include rounded(0); @include rounded(0);
border: 0 \9; border: 0 \9;
} }
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] { input[type="radio"] {
@include box-sizing(border-box); @include box-sizing(border-box);
padding: 0; padding: 0;
*width: 13px; *width: 13px;
*height: 13px; *height: 13px;
} }
input[type="image"] { input[type="image"] {
border: 0; border: 0;
@include box-shadow(none); @include box-shadow(none);
} }
input[type="file"] { input[type="file"] {
width: auto; width: auto;
@ -110,7 +110,7 @@ input[type="file"] {
border: initial; border: initial;
background-color: transparent; background-color: transparent;
background-color: initial; background-color: initial;
@include box-shadow(none); @include box-shadow(none);
} }
input[type="button"], input[type="button"],
input[type="reset"], input[type="reset"],
@ -118,11 +118,11 @@ input[type="submit"] {
width : auto; width : auto;
height : auto; height : auto;
cursor : pointer; cursor : pointer;
*overflow : visible; *overflow : visible;
} }
select, select,
input[type="file"] { input[type="file"] {
*margin-top : 4px; *margin-top : 4px;
} }
select { select {
width : auto; width : auto;
@ -130,40 +130,40 @@ select {
} }
select[multiple], select[multiple],
select[size] { select[size] {
height : auto; height : auto;
} }
textarea { textarea {
@include resize(vertical); @include resize(vertical);
height : auto; height : auto;
overflow : auto; overflow : auto;
vertical-align : top; vertical-align : top;
} }
input[type="hidden"] { input[type="hidden"] {
display : none; display : none;
} }
.radio, .radio,
.checkbox { .checkbox {
padding-left : 18px; padding-left : 18px;
font-weight : normal; font-weight : normal;
} }
.radio input[type="radio"], .radio input[type="radio"],
.checkbox input[type="checkbox"] { .checkbox input[type="checkbox"] {
float : left; float : left;
margin-left : -18px; margin-left : -18px;
} }
.radio.inline, .radio.inline,
.checkbox.inline { .checkbox.inline {
display : inline-block; display : inline-block;
padding-top : 5px; padding-top : 5px;
margin-bottom : 0; margin-bottom : 0;
vertical-align : middle; vertical-align : middle;
} }
.radio.inline + .radio.inline, .radio.inline + .radio.inline,
.checkbox.inline + .checkbox.inline { .checkbox.inline + .checkbox.inline {
margin-left : 10px; margin-left : 10px;
} }
/* /*
Disabled state Disabled state
========================================================================== */ ========================================================================== */
@ -174,10 +174,10 @@ input[readonly],
select[readonly], select[readonly],
textarea[readonly] { textarea[readonly] {
@include opacity(.5); @include opacity(.5);
cursor : not-allowed; cursor : not-allowed;
} }
/* /*
Focus & active state Focus & active state
========================================================================== */ ========================================================================== */
@ -185,35 +185,35 @@ input:focus,
textarea:focus { textarea:focus {
border-color : $accentcolor; border-color : $accentcolor;
outline : 0; outline : 0;
outline : thin dotted \9; outline : thin dotted \9;
} }
input[type="file"]:focus, input[type="file"]:focus,
input[type="radio"]:focus, input[type="radio"]:focus,
input[type="checkbox"]:focus, input[type="checkbox"]:focus,
select:focus { select:focus {
@include box-shadow(none); @include box-shadow(none);
} }
/* /*
Help text Help text
========================================================================== */ ========================================================================== */
.help-block, .help-block,
.help-inline { .help-inline {
color : lighten($black, 50); color : lighten($black, 50);
} }
.help-block { .help-block {
display : block; display : block;
margin-bottom : 1em; margin-bottom : 1em;
line-height : 1em; line-height : 1em;
} }
.help-inline { .help-inline {
display : inline-block; display : inline-block;
vertical-align : middle; vertical-align : middle;
padding-left : 5px; padding-left : 5px;
} }
/* /*
.form-inline .form-inline
========================================================================== */ ========================================================================== */
@ -221,17 +221,17 @@ select:focus {
.form-inline textarea, .form-inline textarea,
.form-inline select { .form-inline select {
display : inline-block; display : inline-block;
margin-bottom : 0; margin-bottom : 0;
} }
.form-inline label { .form-inline label {
display : inline-block; display : inline-block;
} }
.form-inline .radio, .form-inline .radio,
.form-inline .checkbox, .form-inline .checkbox,
.form-inline .radio { .form-inline .radio {
padding-left : 0; padding-left : 0;
margin-bottom : 0; margin-bottom : 0;
vertical-align : middle; vertical-align : middle;
} }
.form-inline .radio input[type="radio"], .form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] { .form-inline .checkbox input[type="checkbox"] {
@ -239,7 +239,7 @@ select:focus {
margin-left : 0; margin-left : 0;
margin-right : 3px; } margin-right : 3px; }
/* /*
.form-search .form-search
========================================================================== */ ========================================================================== */
@ -247,13 +247,13 @@ select:focus {
.form-search textarea, .form-search textarea,
.form-search select { .form-search select {
display : inline-block; display : inline-block;
margin-bottom : 0; margin-bottom : 0;
} }
.form-search .search-query { .form-search .search-query {
padding-left : 14px; padding-left : 14px;
padding-right : 14px; padding-right : 14px;
margin-bottom : 0; margin-bottom : 0;
@include rounded(14px); @include rounded(14px);
} }
.form-search label { .form-search label {
display : inline-block; display : inline-block;

View file

@ -2,7 +2,7 @@
Grid mixins Grid mixins
========================================================================== */ ========================================================================== */
/* /*
Define number of columns in the grid Define number of columns in the grid
Common values would be 12, 16 or 24 Common values would be 12, 16 or 24
========================================================================== */ ========================================================================== */
@ -16,7 +16,7 @@ $margin: 0;
width:$width; width:$width;
} }
/* /*
Works out the width of elements based on total number of columns and width Works out the width of elements based on total number of columns and width
number of columns being displayed. Removes 20px for margins. number of columns being displayed. Removes 20px for margins.
========================================================================== */ ========================================================================== */
@ -25,9 +25,9 @@ $margin: 0;
display:$display; display:$display;
float:$float; float:$float;
width:(100%/$grid * $cols) - ($margin * 2); width:(100%/$grid * $cols) - ($margin * 2);
} }
/* /*
Add x amount of column padding before an element Add x amount of column padding before an element
Example: @include prefix(1,12); Example: @include prefix(1,12);
========================================================================== */ ========================================================================== */
@ -36,16 +36,16 @@ $margin: 0;
margin-left:(100%/$grid * $cols); margin-left:(100%/$grid * $cols);
} }
/* /*
Add x amount of column padding after an element Add x amount of column padding after an element
Example: @include suffix(2,12); Example: @include suffix(2,12);
========================================================================== */ ========================================================================== */
@mixin suffix($grid:$def_grid,$cols:''){ @mixin suffix($grid:$def_grid,$cols:''){
margin-right:(100%/$grid * $cols); margin-right:(100%/$grid * $cols);
} }
/* /*
Remove left margin Remove left margin
Example: @include first; Example: @include first;
========================================================================== */ ========================================================================== */
@ -54,7 +54,7 @@ $margin: 0;
margin-left:0; margin-left:0;
} }
/* /*
Remove right margin Remove right margin
Example: @include last; Example: @include last;
========================================================================== */ ========================================================================== */
@ -63,7 +63,7 @@ $margin: 0;
margin-right:0; margin-right:0;
} }
/* /*
Push an element x amount of column(s) to the right Push an element x amount of column(s) to the right
Example: @include push(2,12); Example: @include push(2,12);
========================================================================== */ ========================================================================== */
@ -71,9 +71,9 @@ $margin: 0;
@mixin push($grid:$def_grid,$move:'') { @mixin push($grid:$def_grid,$move:'') {
position:relative; position:relative;
left:(100%/$grid * $move); left:(100%/$grid * $move);
} }
/* /*
Pull an element x amount of column(s) to the left Pull an element x amount of column(s) to the left
Example: @include pull(1,12); Example: @include pull(1,12);
========================================================================== */ ========================================================================== */

View file

@ -2,7 +2,7 @@
Utility mixins Utility mixins
========================================================================== */ ========================================================================== */
/* /*
Clearfix Clearfix
For clearing floats like a boss h5bp.com/q For clearing floats like a boss h5bp.com/q
========================================================================== */ ========================================================================== */
@ -22,7 +22,7 @@
} }
} }
/* /*
Webkit-style focus Webkit-style focus
========================================================================== */ ========================================================================== */
@ -34,7 +34,7 @@
outline-offset: -2px; outline-offset: -2px;
} }
/* /*
Center-align a block level element Center-align a block level element
========================================================================== */ ========================================================================== */
@ -48,7 +48,7 @@
Typography related mixins Typography related mixins
========================================================================== */ ========================================================================== */
/* /*
Maintains vertical rhythm by setting a font-sizes proportional to Maintains vertical rhythm by setting a font-sizes proportional to
line-height and bottom margin line-height and bottom margin
example: @font-size(16); example: @font-size(16);
@ -62,7 +62,7 @@
margin-bottom: 0rem + ($doc-line-height / $doc-font-size); margin-bottom: 0rem + ($doc-line-height / $doc-font-size);
} }
/* /*
Just font-size (REMs + pixel fallback) Just font-size (REMs + pixel fallback)
example: @include font-rem(16); example: @include font-rem(16);
========================================================================== */ ========================================================================== */
@ -72,7 +72,7 @@
font-size: 0rem + $size / $doc-font-size; font-size: 0rem + $size / $doc-font-size;
} }
/* /*
Just font-size (REMs + pixel fallback) and line-height Just font-size (REMs + pixel fallback) and line-height
@include font(16); @include font(16);
========================================================================== */ ========================================================================== */
@ -83,14 +83,14 @@
line-height: 0 + round($doc-line-height / $size*10000) / 10000; line-height: 0 + round($doc-line-height / $size*10000) / 10000;
} }
/* /*
Hide text overflow and end with ... Hide text overflow and end with ...
========================================================================== */ ========================================================================== */
@mixin text-overflow() { @mixin text-overflow() {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
/* Indentation variable */ /* Indentation variable */
@ -120,7 +120,7 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
background-image : -ms-linear-gradient(top, $startColor, $endColor); // IE10 background-image : -ms-linear-gradient(top, $startColor, $endColor); // IE10
background-image : -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10 background-image : -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
background-image : linear-gradient(top, $startColor, $endColor); // W3C background-image : linear-gradient(top, $startColor, $endColor); // W3C
background-repeat : repeat-x; background-repeat : repeat-x;
} }
@mixin directional($startColor : $white, $endColor : $lightergrey, $deg : 45deg) { @mixin directional($startColor : $white, $endColor : $lightergrey, $deg : 45deg) {
@ -130,7 +130,7 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
background-image : -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+ background-image : -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
background-image : -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10 background-image : -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
background-image : linear-gradient($deg, $startColor, $endColor); // W3C background-image : linear-gradient($deg, $startColor, $endColor); // W3C
background-repeat : repeat-x; background-repeat : repeat-x;
} }
// .bordered(COLOR, COLOR, COLOR, COLOR); // .bordered(COLOR, COLOR, COLOR, COLOR);
@ -138,7 +138,7 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
border-top : solid 1px $top-color; border-top : solid 1px $top-color;
border-left : solid 1px $left-color; border-left : solid 1px $left-color;
border-right : solid 1px $right-color; border-right : solid 1px $right-color;
border-bottom : solid 1px $bottom-color; border-bottom : solid 1px $bottom-color;
} }
/* ========================================================================== /* ==========================================================================
@ -147,16 +147,16 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
/* /*
Round all corners Round all corners
example: @include rounded(4px); example: @include rounded(4px);
========================================================================== */ ========================================================================== */
@mixin rounded($radius:4px) { @mixin rounded($radius:4px) {
border-radius : $radius; border-radius : $radius;
} }
/* /*
Round individual corners (top right, bottom right, bottom left, top left) Round individual corners (top right, bottom right, bottom left, top left)
example: @include border-radius(4px, 0, 0, 4px); example: @include border-radius(4px, 0, 0, 4px);
========================================================================== */ ========================================================================== */
@ -167,11 +167,11 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
border-bottom-left-radius: $bottomleft; border-bottom-left-radius: $bottomleft;
border-top-left-radius: $topleft; border-top-left-radius: $topleft;
-webkit-background-clip: padding-box; -webkit-background-clip: padding-box;
-moz-background-clip: padding; -moz-background-clip: padding;
background-clip: padding-box; background-clip: padding-box;
} }
/* /*
Box shadow Box shadow
example: @include box-shadow(HORIZONTAL VERTICAL BLUR COLOR)); example: @include box-shadow(HORIZONTAL VERTICAL BLUR COLOR));
========================================================================== */ ========================================================================== */
@ -179,10 +179,10 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
@mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) { @mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
-webkit-box-shadow: $shadow; -webkit-box-shadow: $shadow;
-moz-box-shadow: $shadow; -moz-box-shadow: $shadow;
box-shadow: $shadow; box-shadow: $shadow;
} }
/* /*
Drop shadow Drop shadow
example: @include drop-shadow(HORIZONTAL, VERTICAL, BLUR, ALPHA); example: @include drop-shadow(HORIZONTAL, VERTICAL, BLUR, ALPHA);
========================================================================== */ ========================================================================== */
@ -190,10 +190,10 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
@mixin drop-shadow($x-axis: 0, $y-axis: 1px, $blur: 2px, $alpha: 0.1) { @mixin drop-shadow($x-axis: 0, $y-axis: 1px, $blur: 2px, $alpha: 0.1) {
-webkit-box-shadow: $x-axis $y-axis $blur rgba(0, 0, 0, $alpha); -webkit-box-shadow: $x-axis $y-axis $blur rgba(0, 0, 0, $alpha);
-moz-box-shadow: $x-axis $y-axis $blur rgba(0, 0, 0, $alpha); -moz-box-shadow: $x-axis $y-axis $blur rgba(0, 0, 0, $alpha);
box-shadow: $x-axis $y-axis $blur rgba(0, 0, 0, $alpha); box-shadow: $x-axis $y-axis $blur rgba(0, 0, 0, $alpha);
} }
/* /*
Text shadow Text shadow
example: @include text-shadow(0 2px 3px rgba(0,0,0,.25)); example: @include text-shadow(0 2px 3px rgba(0,0,0,.25));
========================================================================== */ ========================================================================== */
@ -201,20 +201,20 @@ $indent-var: 0rem + ($doc-line-height / $doc-font-size);
@mixin text-shadow($shadow: 0 2px 3px rgba(0,0,0,.25)) { @mixin text-shadow($shadow: 0 2px 3px rgba(0,0,0,.25)) {
text-shadow: $shadow; } text-shadow: $shadow; }
/* /*
Opacity Opacity
example: @include opacity(0.5); // 50% opacity example: @include opacity(0.5); // 50% opacity
========================================================================== */ ========================================================================== */
@mixin opacity($opacity: 0.5) { @mixin opacity($opacity: 0.5) {
opacity: $opacity; opacity: $opacity;
} }
/* ========================================================================== /* ==========================================================================
Transformations Transformations
========================================================================== */ ========================================================================== */
/* /*
@include rotate(VALUEdeg); @include rotate(VALUEdeg);
========================================================================== */ ========================================================================== */
@ -223,10 +223,10 @@ text-shadow: $shadow; }
-moz-transform: rotate($deg); -moz-transform: rotate($deg);
-ms-transform: rotate($deg); -ms-transform: rotate($deg);
-o-transform: rotate($deg); -o-transform: rotate($deg);
transform: rotate($deg); transform: rotate($deg);
} }
/* /*
@include scale(VALUE); @include scale(VALUE);
========================================================================== */ ========================================================================== */
@ -235,10 +235,10 @@ text-shadow: $shadow; }
-moz-transform: scale($ratio); -moz-transform: scale($ratio);
-ms-transform: scale($ratio); -ms-transform: scale($ratio);
-o-transform: scale($ratio); -o-transform: scale($ratio);
transform: scale($ratio); transform: scale($ratio);
} }
/* /*
@include skew(VALUE, VALUE); @include skew(VALUE, VALUE);
========================================================================== */ ========================================================================== */
@ -247,10 +247,10 @@ text-shadow: $shadow; }
-moz-transform: skew($x, $y); -moz-transform: skew($x, $y);
-ms-transform: skew($x, $y); -ms-transform: skew($x, $y);
-o-transform: skew($x, $y); -o-transform: skew($x, $y);
transform: skew($x, $y); transform: skew($x, $y);
} }
/* /*
@include transition(PROPERTY DURATION DELAY(OPTIONAL) TIMING-FINCTION); @include transition(PROPERTY DURATION DELAY(OPTIONAL) TIMING-FINCTION);
========================================================================== */ ========================================================================== */
@ -259,10 +259,10 @@ text-shadow: $shadow; }
-moz-transition: $transition; -moz-transition: $transition;
-ms-transition: $transition; -ms-transition: $transition;
-o-transition: $transition; -o-transition: $transition;
transition: $transition; transition: $transition;
} }
/* /*
@include translate(VALUE, VALUE); @include translate(VALUE, VALUE);
========================================================================== */ ========================================================================== */
@ -271,7 +271,7 @@ text-shadow: $shadow; }
-moz-transform: translate($x, $y); -moz-transform: translate($x, $y);
-ms-transform: translate($x, $y); -ms-transform: translate($x, $y);
-o-transform: translate($x, $y); -o-transform: translate($x, $y);
transform: translate($x, $y); transform: translate($x, $y);
} }
@mixin translate3d($x: 0, $y: 0, $z: 0) { @mixin translate3d($x: 0, $y: 0, $z: 0) {
@ -279,7 +279,7 @@ text-shadow: $shadow; }
-moz-transform: translate($x, $y, $z); -moz-transform: translate($x, $y, $z);
-ms-transform: translate($x, $y, $z); -ms-transform: translate($x, $y, $z);
-o-transform: translate($x, $y, $z); -o-transform: translate($x, $y, $z);
transform: translate($x, $y, $z); transform: translate($x, $y, $z);
} }
@mixin animation($name, $duration: 300ms, $delay: 0, $ease: ease) { @mixin animation($name, $duration: 300ms, $delay: 0, $ease: ease) {
@ -292,15 +292,15 @@ text-shadow: $shadow; }
Background Background
========================================================================== */ ========================================================================== */
/* /*
@include background-alpha(VALUE VALUE); @include background-alpha(VALUE VALUE);
========================================================================== */ ========================================================================== */
@mixin background-alpha($color: $white, $alpha: 1) { @mixin background-alpha($color: $white, $alpha: 1) {
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha); background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
} }
/* /*
@include background-size(VALUE VALUE); @include background-size(VALUE VALUE);
========================================================================== */ ========================================================================== */
@ -308,10 +308,10 @@ text-shadow: $shadow; }
-webkit-background-size: $size; -webkit-background-size: $size;
-moz-background-size: $size; -moz-background-size: $size;
-o-background-size: $size; -o-background-size: $size;
background-size: $size; background-size: $size;
} }
/* /*
Box-sizing Box-sizing
example: @include box-sizing(VALUE); //(border-box, padding-box, content-box) example: @include box-sizing(VALUE); //(border-box, padding-box, content-box)
========================================================================== */ ========================================================================== */
@ -320,7 +320,7 @@ text-shadow: $shadow; }
-webkit-box-sizing: $boxsize; -webkit-box-sizing: $boxsize;
-moz-box-sizing: $boxsize; -moz-box-sizing: $boxsize;
-ms-box-sizing: $boxsize; -ms-box-sizing: $boxsize;
box-sizing: $boxsize; box-sizing: $boxsize;
} }
/* ========================================================================== /* ==========================================================================
@ -330,10 +330,10 @@ text-shadow: $shadow; }
@mixin hide-text() { @mixin hide-text() {
text-indent: 100%; text-indent: 100%;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
} }
/* /*
Hide from visual and speaking browsers Hide from visual and speaking browsers
========================================================================== */ ========================================================================== */
@ -342,15 +342,15 @@ text-shadow: $shadow; }
visibility: hidden; visibility: hidden;
} }
/* /*
Hide but maintain layout Hide but maintain layout
========================================================================== */ ========================================================================== */
@mixin invisible() { @mixin invisible() {
visibility: hidden; visibility: hidden;
} }
/* /*
Resize Resize
example: @include resize(VALUE); //(none, both, horizontal, vertical, inherit) example: @include resize(VALUE); //(none, both, horizontal, vertical, inherit)
@ -358,19 +358,19 @@ text-shadow: $shadow; }
@mixin resize($direction: both) { @mixin resize($direction: both) {
resize: $direction; resize: $direction;
overflow: auto; overflow: auto;
} }
/* /*
Hidden but available to speaking browsers Hidden but available to speaking browsers
========================================================================== */ ========================================================================== */
@mixin visuallyhidden() { @mixin visuallyhidden() {
overflow: hidden; overflow: hidden;
position: absolute; position: absolute;
clip: rect(0 0 0 0); clip: rect(0 0 0 0);
height: 1px; height: 1px;
width: 1px; width: 1px;
margin: -1px; margin: -1px;
padding: 0; padding: 0;
border: 0; } border: 0; }

View file

@ -8,7 +8,7 @@ body {
color: $text-color; color: $text-color;
} }
/* /*
Header Header
========================================================================== */ ========================================================================== */
@ -79,7 +79,7 @@ body {
white-space: nowrap; white-space: nowrap;
border-bottom: 0 solid transparent; border-bottom: 0 solid transparent;
} }
a { a {
display: block; display: block;
padding: 10px 0; padding: 10px 0;
decoration: none; decoration: none;
@ -165,11 +165,11 @@ $button-size: 1.5rem;
} }
} }
// Style the toggle menu link and hide it // Style the toggle menu link and hide it
.nav .navtoogle { .nav .navtoogle {
@include font-rem(18); @include font-rem(18);
font-weight: normal; font-weight: normal;
background-color: $black; background-color: $black;
color: $white; color: $white;
border: none; border: none;
cursor: pointer; cursor: pointer;
@media #{$small} { @media #{$small} {
@ -206,7 +206,7 @@ $button-size: 1.5rem;
} }
} }
// Displaying the menu when the user has clicked on the button // Displaying the menu when the user has clicked on the button
.js .nav .active + ul { .js .nav .active + ul {
max-height: 30em; max-height: 30em;
overflow: hidden; overflow: hidden;
-webkit-transition: max-height .4s; -webkit-transition: max-height .4s;
@ -548,7 +548,7 @@ $button-size: 1.5rem;
margin: 1em 0; margin: 1em 0;
li { li {
display: inline; display: inline;
a { a {
border-bottom: 0 solid transparent; border-bottom: 0 solid transparent;
&:hover { &:hover {
border-bottom: 0 solid transparent; border-bottom: 0 solid transparent;
@ -574,7 +574,7 @@ $button-size: 1.5rem;
li { li {
display: inline-block; display: inline-block;
} }
$social: $social:
(facebook, $facebook-color), (facebook, $facebook-color),
(flickr, $flickr-color), (flickr, $flickr-color),
(foursquare, $foursquare-color), (foursquare, $foursquare-color),
@ -590,7 +590,7 @@ $button-size: 1.5rem;
@each $socialnetwork, $color in $social { @each $socialnetwork, $color in $social {
.#{$socialnetwork} { .#{$socialnetwork} {
background: $color; background: $color;
} }
} }
a { a {
display: block; display: block;
@ -634,7 +634,7 @@ $button-size: 1.5rem;
h4, h4,
h5, h5,
h6, h6,
span { span {
@include font-rem(14); @include font-rem(14);
} }
footer { footer {
@ -679,7 +679,7 @@ $button-size: 1.5rem;
} }
} }
/* /*
Browser upgrade alert Browser upgrade alert
========================================================================== */ ========================================================================== */
@ -699,7 +699,7 @@ $button-size: 1.5rem;
} }
} }
} }
/* /*
Google search form Google search form
========================================================================== */ ========================================================================== */

View file

@ -2,22 +2,22 @@
Site wide styles Site wide styles
========================================================================== */ ========================================================================== */
/* /*
Selection Selection
========================================================================== */ ========================================================================== */
::-moz-selection { ::-moz-selection {
background-color: lighten($basecolor, 65%); background-color: lighten($basecolor, 65%);
color: $basecolor; color: $basecolor;
text-shadow: none; text-shadow: none;
} }
::selection { ::selection {
background-color: lighten($basecolor, 65%); background-color: lighten($basecolor, 65%);
color: $basecolor; color: $basecolor;
text-shadow: none; text-shadow: none;
} }
/* /*
Global classes Global classes
========================================================================== */ ========================================================================== */
@ -63,10 +63,10 @@
} }
} }
/* /*
Global transition Global transition
========================================================================== */ ========================================================================== */
b, i, strong, em, blockquote, p, q, span, figure, img, h1, h2, header, input, a { b, i, strong, em, blockquote, p, q, span, figure, img, h1, h2, header, input, a {
@include transition(all .2s ease); @include transition(all .2s ease);
} }

View file

@ -2,7 +2,7 @@
Typography Typography
========================================================================== */ ========================================================================== */
/* /*
Headings Headings
========================================================================== */ ========================================================================== */
@ -28,30 +28,30 @@ h6 {
@include font-size(14); @include font-size(14);
} }
/* /*
Links Links
========================================================================== */ ========================================================================== */
a { a {
text-decoration: none; text-decoration: none;
color: $link-color; color: $link-color;
&:visited { &:visited {
color: $linkcolorvisited; color: $linkcolorvisited;
} }
&:hover { &:hover {
color: $linkcolorhover; color: $linkcolorhover;
} }
&:focus { &:focus {
outline: thin dotted; outline: thin dotted;
color: $linkcolorfocus; color: $linkcolorfocus;
} }
&:hover, &:hover,
&:active { &:active {
outline: 0; outline: 0;
} }
} }
/* /*
Figure captions Figure captions
========================================================================== */ ========================================================================== */
@ -62,7 +62,7 @@ figcaption {
color: lighten($text-color, 10); color: lighten($text-color, 10);
} }
/* /*
Feature image captions Feature image captions
========================================================================== */ ========================================================================== */
@ -89,7 +89,7 @@ figcaption {
} }
} }
/* /*
Notices Notices
========================================================================== */ ========================================================================== */
@ -103,7 +103,7 @@ figcaption {
@include rounded(3px); @include rounded(3px);
} }
/* /*
Blockquotes Blockquotes
========================================================================== */ ========================================================================== */
@ -115,7 +115,7 @@ blockquote {
font-style: italic; font-style: italic;
} }
/* /*
Footnotes Footnotes
========================================================================== */ ========================================================================== */
@ -126,7 +126,7 @@ blockquote {
} }
} }
/* /*
Paragraphs Paragraphs
========================================================================== */ ========================================================================== */
@ -141,7 +141,7 @@ p {
} }
} }
/* /*
Code snippets Code snippets
========================================================================== */ ========================================================================== */
@ -149,7 +149,7 @@ tt, code, kbd, samp, pre {
font-family: $code-font; font-family: $code-font;
} }
p, p,
li { li {
code { code {
@include font-rem(12); @include font-rem(12);
line-height: 1.5; line-height: 1.5;

View file

@ -2,7 +2,7 @@
Sass variables Sass variables
========================================================================== */ ========================================================================== */
/* /*
Typography Typography
========================================================================== */ ========================================================================== */
@ -14,7 +14,7 @@ $heading-font: 'PT Sans Narrow', sans-serif;
$code-font: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace; $code-font: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
$alt-font: $base-font; $alt-font: $base-font;
/* /*
Colors Colors
========================================================================== */ ========================================================================== */
@ -23,8 +23,8 @@ $body-color : $bodycolor;
$textcolor : #333332; $textcolor : #333332;
$text-color : $textcolor; $text-color : $textcolor;
$border-color : $text-color; $border-color : $text-color;
$basecolor : #343434; $basecolor : #343434;
$compcolor : spin($basecolor, 180); $compcolor : spin($basecolor, 180);
$bordercolor : $basecolor; $bordercolor : $basecolor;
$white : #fff; $white : #fff;
$black : #111; $black : #111;
@ -58,12 +58,12 @@ $linkcolorhover : darken($linkcolor, 10);
$linkcolorvisited : lighten($linkcolorhover, 20); $linkcolorvisited : lighten($linkcolorhover, 20);
$linkcolorfocus : darken($linkcolorvisited, 10); $linkcolorfocus : darken($linkcolorvisited, 10);
/* /*
Breakpoints Breakpoints
========================================================================== */ ========================================================================== */
$micro : "only screen and (min-width: 30em)"; $micro : "only screen and (min-width: 30em)";
$small : "only screen and (min-width: 37.5em)"; $small : "only screen and (min-width: 37.5em)";
$medium : "only screen and (min-width: 48em)"; $medium : "only screen and (min-width: 48em)";
$large : "only screen and (min-width: 62em)"; $large : "only screen and (min-width: 62em)";
$x-large : "only screen and (min-width: 86.375em)"; $x-large : "only screen and (min-width: 86.375em)";

View file

@ -43,4 +43,4 @@ $mfp-caption-subtitle-color: #BDBDBD; // Caption sub
.mfp-counter { font-family: $alt-font; } // Caption font family .mfp-counter { font-family: $alt-font; } // Caption font family
// A11y // A11y
$mfp-use-visuallyhidden: false; $mfp-use-visuallyhidden: false;

View file

@ -66,7 +66,7 @@ $mfp-caption-title-color: #F3F3F3 !default;
$mfp-caption-subtitle-color: #BDBDBD !default; $mfp-caption-subtitle-color: #BDBDBD !default;
// A11y // A11y
$mfp-use-visuallyhidden: false !default; // Hide content from browsers, but make it available for screen readers $mfp-use-visuallyhidden: false !default; // Hide content from browsers, but make it available for screen readers
@ -129,7 +129,7 @@ $mfp-use-visuallyhidden: false !default; // Hide content from brows
// Remove vertical centering when popup has class `mfp-align-top` // Remove vertical centering when popup has class `mfp-align-top`
.mfp-align-top { .mfp-align-top {
.mfp-container { .mfp-container {
&:before { &:before {
display: none; display: none;
} }
@ -401,7 +401,7 @@ button {
&:before, &:before,
.mfp-b { .mfp-b {
margin-left: 25px; margin-left: 25px;
border-right: 27px solid $mfp-controls-border-color; border-right: 27px solid $mfp-controls-border-color;
} }
} }

View file

@ -6,5 +6,5 @@ modified:
excerpt: excerpt:
tags: [] tags: []
image: image:
feature: feature:
--- ---

View file

@ -15,11 +15,11 @@ Minimal Mistakes is responsive Jekyll theme with large featured images and solid
## Minimal Mistakes is all about: ## Minimal Mistakes is all about:
* Responsive templates. Looking good on mobile, tablet, and desktop. * Responsive templates. Looking good on mobile, tablet, and desktop.
* Gracefully degrading in older browsers. Compatible with Internet Explorer 8+ and all modern browsers. * Gracefully degrading in older browsers. Compatible with Internet Explorer 8+ and all modern browsers.
* Minimal embellishments -- content first. * Minimal embellishments -- content first.
* Optional large feature images for posts and pages. * Optional large feature images for posts and pages.
* Simple and clear permalink structure. * Simple and clear permalink structure.
* [Custom 404 page](http://mmistakes.github.io/minimal-mistakes/404.html) to get you started. * [Custom 404 page](http://mmistakes.github.io/minimal-mistakes/404.html) to get you started.
* Support for Disqus Comments * Support for Disqus Comments
<a markdown="0" href="{{ site.url }}/theme-setup" class="btn">Install Minimal Mistakes Theme</a> <a markdown="0" href="{{ site.url }}/theme-setup" class="btn">Install Minimal Mistakes Theme</a>

View file

@ -501,4 +501,4 @@
<glyph horiz-adv-x="1792" /> <glyph horiz-adv-x="1792" />
<glyph horiz-adv-x="1792" /> <glyph horiz-adv-x="1792" />
</font> </font>
</defs></svg> </defs></svg>

Before

Width:  |  Height:  |  Size: 248 KiB

After

Width:  |  Height:  |  Size: 248 KiB

View file

@ -10,7 +10,7 @@ var changeClass = function (r,className1,className2) {
r.className = r.className.replace(new RegExp("(?:^|\\s+)" + className2 + "(?:\\s+|$)"),' '+className1+' '); r.className = r.className.replace(new RegExp("(?:^|\\s+)" + className2 + "(?:\\s+|$)"),' '+className1+' ');
} }
return r.className; return r.className;
}; };
// Creating our button in JS for smaller screens // Creating our button in JS for smaller screens
var menuElements = document.getElementById('site-nav'); var menuElements = document.getElementById('site-nav');
menuElements.insertAdjacentHTML('afterBegin','<button type="button" role="button" id="menutoggle" class="navtoogle navicon-lines-button x" aria-hidden="true"><span class="navicon-lines"></span>menu</button>'); menuElements.insertAdjacentHTML('afterBegin','<button type="button" role="button" id="menutoggle" class="navtoogle navicon-lines-button x" aria-hidden="true"><span class="navicon-lines"></span>menu</button>');
@ -60,8 +60,8 @@ $(document).ready(function() {
tError: '<a href="%url%">Image #%curr%</a> could not be loaded.', tError: '<a href="%url%">Image #%curr%</a> could not be loaded.',
}, },
removalDelay: 300, // Delay in milliseconds before popup is removed removalDelay: 300, // Delay in milliseconds before popup is removed
// Class that is added to body when popup is open. // Class that is added to body when popup is open.
// make it unique to apply your CSS animations just to this exact popup // make it unique to apply your CSS animations just to this exact popup
mainClass: 'mfp-fade' mainClass: 'mfp-fade'
}); });
}); });

View file

@ -5,9 +5,9 @@
/*>>core*/ /*>>core*/
/** /**
* *
* Magnific Popup Core JS file * Magnific Popup Core JS file
* *
*/ */
@ -29,7 +29,7 @@ var CLOSE_EVENT = 'Close',
/** /**
* Private vars * Private vars
*/ */
var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this' var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this'
MagnificPopup = function(){}, MagnificPopup = function(){},
@ -97,15 +97,15 @@ var _mfpOn = function(name, f) {
v = ['ms','O','Moz','Webkit']; // 'v' for vendor v = ['ms','O','Moz','Webkit']; // 'v' for vendor
if( s['transition'] !== undefined ) { if( s['transition'] !== undefined ) {
return true; return true;
} }
while( v.length ) { while( v.length ) {
if( v.pop() + 'Transition' in s ) { if( v.pop() + 'Transition' in s ) {
return true; return true;
} }
} }
return false; return false;
}; };
@ -119,12 +119,12 @@ MagnificPopup.prototype = {
constructor: MagnificPopup, constructor: MagnificPopup,
/** /**
* Initializes Magnific Popup plugin. * Initializes Magnific Popup plugin.
* This function is triggered only once when $.fn.magnificPopup or $.magnificPopup is executed * This function is triggered only once when $.fn.magnificPopup or $.magnificPopup is executed
*/ */
init: function() { init: function() {
var appVersion = navigator.appVersion; var appVersion = navigator.appVersion;
mfp.isIE7 = appVersion.indexOf("MSIE 7.") !== -1; mfp.isIE7 = appVersion.indexOf("MSIE 7.") !== -1;
mfp.isIE8 = appVersion.indexOf("MSIE 8.") !== -1; mfp.isIE8 = appVersion.indexOf("MSIE 8.") !== -1;
mfp.isLowIE = mfp.isIE7 || mfp.isIE8; mfp.isLowIE = mfp.isIE7 || mfp.isIE8;
mfp.isAndroid = (/android/gi).test(appVersion); mfp.isAndroid = (/android/gi).test(appVersion);
@ -151,7 +151,7 @@ MagnificPopup.prototype = {
var i; var i;
if(data.isObj === false) { if(data.isObj === false) {
// convert jQuery collection to array to avoid conflicts later // convert jQuery collection to array to avoid conflicts later
mfp.items = data.items.toArray(); mfp.items = data.items.toArray();
@ -178,8 +178,8 @@ MagnificPopup.prototype = {
mfp.updateItemHTML(); mfp.updateItemHTML();
return; return;
} }
mfp.types = []; mfp.types = [];
_wrapClasses = ''; _wrapClasses = '';
if(data.mainEl && data.mainEl.length) { if(data.mainEl && data.mainEl.length) {
mfp.ev = data.mainEl.eq(0); mfp.ev = data.mainEl.eq(0);
@ -198,7 +198,7 @@ MagnificPopup.prototype = {
mfp.st = $.extend(true, {}, $.magnificPopup.defaults, data ); mfp.st = $.extend(true, {}, $.magnificPopup.defaults, data );
mfp.fixedContentPos = mfp.st.fixedContentPos === 'auto' ? !mfp.probablyMobile : mfp.st.fixedContentPos; mfp.fixedContentPos = mfp.st.fixedContentPos === 'auto' ? !mfp.probablyMobile : mfp.st.fixedContentPos;
if(mfp.st.modal) { if(mfp.st.modal) {
@ -207,7 +207,7 @@ MagnificPopup.prototype = {
mfp.st.showCloseBtn = false; mfp.st.showCloseBtn = false;
mfp.st.enableEscapeKey = false; mfp.st.enableEscapeKey = false;
} }
// Building markup // Building markup
// main containers are created only once // main containers are created only once
@ -259,7 +259,7 @@ MagnificPopup.prototype = {
_wrapClasses += ' mfp-align-top'; _wrapClasses += ' mfp-align-top';
} }
if(mfp.fixedContentPos) { if(mfp.fixedContentPos) {
mfp.wrap.css({ mfp.wrap.css({
@ -268,7 +268,7 @@ MagnificPopup.prototype = {
overflowY: mfp.st.overflowY overflowY: mfp.st.overflowY
}); });
} else { } else {
mfp.wrap.css({ mfp.wrap.css({
top: _window.scrollTop(), top: _window.scrollTop(),
position: 'absolute' position: 'absolute'
}); });
@ -280,7 +280,7 @@ MagnificPopup.prototype = {
}); });
} }
if(mfp.st.enableEscapeKey) { if(mfp.st.enableEscapeKey) {
// Close on ESC key // Close on ESC key
@ -299,7 +299,7 @@ MagnificPopup.prototype = {
if(!mfp.st.closeOnContentClick) { if(!mfp.st.closeOnContentClick) {
_wrapClasses += ' mfp-auto-cursor'; _wrapClasses += ' mfp-auto-cursor';
} }
if(_wrapClasses) if(_wrapClasses)
mfp.wrap.addClass(_wrapClasses); mfp.wrap.addClass(_wrapClasses);
@ -307,7 +307,7 @@ MagnificPopup.prototype = {
// this triggers recalculation of layout, so we get it once to not to trigger twice // this triggers recalculation of layout, so we get it once to not to trigger twice
var windowHeight = mfp.wH = _window.height(); var windowHeight = mfp.wH = _window.height();
var windowStyles = {}; var windowStyles = {};
if( mfp.fixedContentPos ) { if( mfp.fixedContentPos ) {
@ -328,8 +328,8 @@ MagnificPopup.prototype = {
} }
} }
var classesToadd = mfp.st.mainClass; var classesToadd = mfp.st.mainClass;
if(mfp.isIE7) { if(mfp.isIE7) {
classesToadd += ' mfp-ie7'; classesToadd += ' mfp-ie7';
@ -345,16 +345,16 @@ MagnificPopup.prototype = {
// remove scrollbar, add margin e.t.c // remove scrollbar, add margin e.t.c
$('html').css(windowStyles); $('html').css(windowStyles);
// add everything to DOM // add everything to DOM
mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || _body ); mfp.bgOverlay.add(mfp.wrap).prependTo( mfp.st.prependTo || _body );
// Save last focused element // Save last focused element
mfp._lastFocusedEl = document.activeElement; mfp._lastFocusedEl = document.activeElement;
// Wait for next cycle to allow CSS transition // Wait for next cycle to allow CSS transition
setTimeout(function() { setTimeout(function() {
if(mfp.content) { if(mfp.content) {
mfp._addClassToMFP(READY_CLASS); mfp._addClassToMFP(READY_CLASS);
mfp._setFocus(); mfp._setFocus();
@ -362,7 +362,7 @@ MagnificPopup.prototype = {
// if content is not defined (not loaded e.t.c) we add class only for BG // if content is not defined (not loaded e.t.c) we add class only for BG
mfp.bgOverlay.addClass(READY_CLASS); mfp.bgOverlay.addClass(READY_CLASS);
} }
// Trap the focus in popup // Trap the focus in popup
_document.on('focusin' + EVENT_NS, mfp._onFocusIn); _document.on('focusin' + EVENT_NS, mfp._onFocusIn);
@ -421,7 +421,7 @@ MagnificPopup.prototype = {
} }
$('html').css(windowStyles); $('html').css(windowStyles);
} }
_document.off('keyup' + EVENT_NS + ' focusin' + EVENT_NS); _document.off('keyup' + EVENT_NS + ' focusin' + EVENT_NS);
mfp.ev.off(EVENT_NS); mfp.ev.off(EVENT_NS);
@ -441,14 +441,14 @@ MagnificPopup.prototype = {
if(mfp._lastFocusedEl) { if(mfp._lastFocusedEl) {
$(mfp._lastFocusedEl).focus(); // put tab focus back $(mfp._lastFocusedEl).focus(); // put tab focus back
} }
mfp.currItem = null; mfp.currItem = null;
mfp.content = null; mfp.content = null;
mfp.currTemplate = null; mfp.currTemplate = null;
mfp.prevHeight = 0; mfp.prevHeight = 0;
_mfpTrigger(AFTER_CLOSE_EVENT); _mfpTrigger(AFTER_CLOSE_EVENT);
}, },
updateSize: function(winHeight) { updateSize: function(winHeight) {
if(mfp.isIOS) { if(mfp.isIOS) {
@ -485,17 +485,17 @@ MagnificPopup.prototype = {
item = mfp.parseEl( mfp.index ); item = mfp.parseEl( mfp.index );
} }
var type = item.type; var type = item.type;
_mfpTrigger('BeforeChange', [mfp.currItem ? mfp.currItem.type : '', type]); _mfpTrigger('BeforeChange', [mfp.currItem ? mfp.currItem.type : '', type]);
// BeforeChange event works like so: // BeforeChange event works like so:
// _mfpOn('BeforeChange', function(e, prevType, newType) { }); // _mfpOn('BeforeChange', function(e, prevType, newType) { });
mfp.currItem = item; mfp.currItem = item;
if(!mfp.currTemplate[type]) { if(!mfp.currTemplate[type]) {
var markup = mfp.st[type] ? mfp.st[type].markup : false; var markup = mfp.st[type] ? mfp.st[type].markup : false;
@ -514,7 +514,7 @@ MagnificPopup.prototype = {
if(_prevContentType && _prevContentType !== item.type) { if(_prevContentType && _prevContentType !== item.type) {
mfp.container.removeClass('mfp-'+_prevContentType+'-holder'); mfp.container.removeClass('mfp-'+_prevContentType+'-holder');
} }
var newContent = mfp['get' + type.charAt(0).toUpperCase() + type.slice(1)](item, mfp.currTemplate[type]); var newContent = mfp['get' + type.charAt(0).toUpperCase() + type.slice(1)](item, mfp.currTemplate[type]);
mfp.appendContent(newContent, type); mfp.appendContent(newContent, type);
@ -522,7 +522,7 @@ MagnificPopup.prototype = {
_mfpTrigger(CHANGE_EVENT, item); _mfpTrigger(CHANGE_EVENT, item);
_prevContentType = item.type; _prevContentType = item.type;
// Append container back after its content changed // Append container back after its content changed
mfp.container.prepend(mfp.contentContainer); mfp.container.prepend(mfp.contentContainer);
@ -535,7 +535,7 @@ MagnificPopup.prototype = {
*/ */
appendContent: function(newContent, type) { appendContent: function(newContent, type) {
mfp.content = newContent; mfp.content = newContent;
if(newContent) { if(newContent) {
if(mfp.st.showCloseBtn && mfp.st.closeBtnInside && if(mfp.st.showCloseBtn && mfp.st.closeBtnInside &&
mfp.currTemplate[type] === true) { mfp.currTemplate[type] === true) {
@ -558,7 +558,7 @@ MagnificPopup.prototype = {
/** /**
* Creates Magnific Popup data object based on given data * Creates Magnific Popup data object based on given data
* @param {int} index Index of item to parse * @param {int} index Index of item to parse
@ -612,11 +612,11 @@ MagnificPopup.prototype = {
if(!options) { if(!options) {
options = {}; options = {};
} }
var eName = 'click.magnificPopup'; var eName = 'click.magnificPopup';
options.mainEl = el; options.mainEl = el;
if(options.items) { if(options.items) {
options.isObj = true; options.isObj = true;
el.off(eName).on(eName, eHandler); el.off(eName).on(eName, eHandler);
@ -651,7 +651,7 @@ MagnificPopup.prototype = {
} }
} }
} }
if(e.type) { if(e.type) {
e.preventDefault(); e.preventDefault();
@ -660,7 +660,7 @@ MagnificPopup.prototype = {
e.stopPropagation(); e.stopPropagation();
} }
} }
options.el = $(e.mfpEl); options.el = $(e.mfpEl);
if(options.delegate) { if(options.delegate) {
@ -829,14 +829,14 @@ $.magnificPopup = {
modules: [], modules: [],
open: function(options, index) { open: function(options, index) {
_checkInstance(); _checkInstance();
if(!options) { if(!options) {
options = {}; options = {};
} else { } else {
options = $.extend(true, {}, options); options = $.extend(true, {}, options);
} }
options.isObj = true; options.isObj = true;
options.index = index || 0; options.index = index || 0;
@ -851,16 +851,16 @@ $.magnificPopup = {
if(module.options) { if(module.options) {
$.magnificPopup.defaults[name] = module.options; $.magnificPopup.defaults[name] = module.options;
} }
$.extend(this.proto, module.proto); $.extend(this.proto, module.proto);
this.modules.push(name); this.modules.push(name);
}, },
defaults: { defaults: {
// Info about options is in docs: // Info about options is in docs:
// http://dimsemenov.com/plugins/magnific-popup/documentation.html#options // http://dimsemenov.com/plugins/magnific-popup/documentation.html#options
disableOn: 0, disableOn: 0,
key: null, key: null,
@ -871,12 +871,12 @@ $.magnificPopup = {
preloader: true, preloader: true,
focus: '', // CSS selector of input to focus after popup is opened focus: '', // CSS selector of input to focus after popup is opened
closeOnContentClick: false, closeOnContentClick: false,
closeOnBgClick: true, closeOnBgClick: true,
closeBtnInside: true, closeBtnInside: true,
showCloseBtn: true, showCloseBtn: true,
@ -885,13 +885,13 @@ $.magnificPopup = {
modal: false, modal: false,
alignTop: false, alignTop: false,
removalDelay: 0, removalDelay: 0,
prependTo: null, prependTo: null,
fixedContentPos: 'auto', fixedContentPos: 'auto',
fixedBgPos: 'auto', fixedBgPos: 'auto',
overflowY: 'auto', overflowY: 'auto',
@ -938,9 +938,9 @@ $.fn.magnificPopup = function(options) {
} else { } else {
// clone options obj // clone options obj
options = $.extend(true, {}, options); options = $.extend(true, {}, options);
/* /*
* As Zepto doesn't support .data() method for objects * As Zepto doesn't support .data() method for objects
* and it works only in normal browsers * and it works only in normal browsers
* we assign "options" object directly to the DOM element. FTW! * we assign "options" object directly to the DOM element. FTW!
*/ */
@ -982,7 +982,7 @@ console.log('Test #2:', performance.now() - start);
var INLINE_NS = 'inline', var INLINE_NS = 'inline',
_hiddenClass, _hiddenClass,
_inlinePlaceholder, _inlinePlaceholder,
_lastInlineElement, _lastInlineElement,
_putInlineElementsBack = function() { _putInlineElementsBack = function() {
if(_lastInlineElement) { if(_lastInlineElement) {
@ -1130,14 +1130,14 @@ $.magnificPopup.registerModule(AJAX_NS, {
/*>>ajax*/ /*>>ajax*/
/*>>image*/ /*>>image*/
var _imgInterval, var _imgInterval,
_getTitle = function(item) { _getTitle = function(item) {
if(item.data && item.data.title !== undefined) if(item.data && item.data.title !== undefined)
return item.data.title; return item.data.title;
var src = mfp.st.image.titleSrc; var src = mfp.st.image.titleSrc;
@ -1168,7 +1168,7 @@ $.magnificPopup.registerModule('image', {
'</figure>'+ '</figure>'+
'</div>', '</div>',
cursor: 'mfp-zoom-out-cur', cursor: 'mfp-zoom-out-cur',
titleSrc: 'title', titleSrc: 'title',
verticalFit: true, verticalFit: true,
tError: '<a href="%url%">The image</a> could not be loaded.' tError: '<a href="%url%">The image</a> could not be loaded.'
}, },
@ -1213,13 +1213,13 @@ $.magnificPopup.registerModule('image', {
}, },
_onImageHasSize: function(item) { _onImageHasSize: function(item) {
if(item.img) { if(item.img) {
item.hasSize = true; item.hasSize = true;
if(_imgInterval) { if(_imgInterval) {
clearInterval(_imgInterval); clearInterval(_imgInterval);
} }
item.isCheckingImgSize = false; item.isCheckingImgSize = false;
_mfpTrigger('ImageHasSize', item); _mfpTrigger('ImageHasSize', item);
@ -1227,7 +1227,7 @@ $.magnificPopup.registerModule('image', {
if(item.imgHidden) { if(item.imgHidden) {
if(mfp.content) if(mfp.content)
mfp.content.removeClass('mfp-loading'); mfp.content.removeClass('mfp-loading');
item.imgHidden = false; item.imgHidden = false;
} }
@ -1280,7 +1280,7 @@ $.magnificPopup.registerModule('image', {
if(item) { if(item) {
if (item.img[0].complete) { if (item.img[0].complete) {
item.img.off('.mfploader'); item.img.off('.mfploader');
if(item === mfp.currItem){ if(item === mfp.currItem){
mfp._onImageHasSize(item); mfp._onImageHasSize(item);
@ -1291,7 +1291,7 @@ $.magnificPopup.registerModule('image', {
item.loaded = true; item.loaded = true;
_mfpTrigger('ImageLoadComplete'); _mfpTrigger('ImageLoadComplete');
} }
else { else {
// if image complete check fails 200 times (20 sec), we assume that there was an error. // if image complete check fails 200 times (20 sec), we assume that there was an error.
@ -1338,7 +1338,7 @@ $.magnificPopup.registerModule('image', {
img = item.img[0]; img = item.img[0];
if(img.naturalWidth > 0) { if(img.naturalWidth > 0) {
item.hasSize = true; item.hasSize = true;
} else if(!img.width) { } else if(!img.width) {
item.hasSize = false; item.hasSize = false;
} }
} }
@ -1370,7 +1370,7 @@ $.magnificPopup.registerModule('image', {
item.imgHidden = true; item.imgHidden = true;
template.addClass('mfp-loading'); template.addClass('mfp-loading');
mfp.findImageSize(item); mfp.findImageSize(item);
} }
return template; return template;
} }
@ -1387,7 +1387,7 @@ var hasMozTransform,
if(hasMozTransform === undefined) { if(hasMozTransform === undefined) {
hasMozTransform = document.createElement('p').style.MozTransform !== undefined; hasMozTransform = document.createElement('p').style.MozTransform !== undefined;
} }
return hasMozTransform; return hasMozTransform;
}; };
$.magnificPopup.registerModule('zoom', { $.magnificPopup.registerModule('zoom', {
@ -1407,7 +1407,7 @@ $.magnificPopup.registerModule('zoom', {
var zoomSt = mfp.st.zoom, var zoomSt = mfp.st.zoom,
ns = '.zoom', ns = '.zoom',
image; image;
if(!zoomSt.enabled || !mfp.supportsTransition) { if(!zoomSt.enabled || !mfp.supportsTransition) {
return; return;
} }
@ -1443,7 +1443,7 @@ $.magnificPopup.registerModule('zoom', {
mfp.content.css('visibility', 'hidden'); mfp.content.css('visibility', 'hidden');
// Basically, all code below does is clones existing image, puts in on top of the current one and animated it // Basically, all code below does is clones existing image, puts in on top of the current one and animated it
image = mfp._getItemToZoom(); image = mfp._getItemToZoom();
if(!image) { if(!image) {
@ -1451,8 +1451,8 @@ $.magnificPopup.registerModule('zoom', {
return; return;
} }
animatedImg = getElToAnimate(image); animatedImg = getElToAnimate(image);
animatedImg.css( mfp._getOffset() ); animatedImg.css( mfp._getOffset() );
mfp.wrap.append(animatedImg); mfp.wrap.append(animatedImg);
@ -1467,7 +1467,7 @@ $.magnificPopup.registerModule('zoom', {
animatedImg.remove(); animatedImg.remove();
image = animatedImg = null; image = animatedImg = null;
_mfpTrigger('ZoomAnimationEnded'); _mfpTrigger('ZoomAnimationEnded');
}, 16); // avoid blink when switching images }, 16); // avoid blink when switching images
}, duration); // this timeout equals animation duration }, duration); // this timeout equals animation duration
@ -1491,12 +1491,12 @@ $.magnificPopup.registerModule('zoom', {
} }
animatedImg = getElToAnimate(image); animatedImg = getElToAnimate(image);
} }
animatedImg.css( mfp._getOffset(true) ); animatedImg.css( mfp._getOffset(true) );
mfp.wrap.append(animatedImg); mfp.wrap.append(animatedImg);
mfp.content.css('visibility', 'hidden'); mfp.content.css('visibility', 'hidden');
setTimeout(function() { setTimeout(function() {
animatedImg.css( mfp._getOffset() ); animatedImg.css( mfp._getOffset() );
}, 16); }, 16);
@ -1511,7 +1511,7 @@ $.magnificPopup.registerModule('zoom', {
animatedImg.remove(); animatedImg.remove();
} }
image = null; image = null;
} }
}); });
}, },
@ -1543,7 +1543,7 @@ $.magnificPopup.registerModule('zoom', {
/* /*
Animating left + top + width/height looks glitchy in Firefox, but perfect in Chrome. And vice-versa. Animating left + top + width/height looks glitchy in Firefox, but perfect in Chrome. And vice-versa.
*/ */
@ -1574,11 +1574,11 @@ $.magnificPopup.registerModule('zoom', {
var IFRAME_NS = 'iframe', var IFRAME_NS = 'iframe',
_emptyPage = '//about:blank', _emptyPage = '//about:blank',
_fixIframeBugs = function(isShowing) { _fixIframeBugs = function(isShowing) {
if(mfp.currTemplate[IFRAME_NS]) { if(mfp.currTemplate[IFRAME_NS]) {
var el = mfp.currTemplate[IFRAME_NS].find('iframe'); var el = mfp.currTemplate[IFRAME_NS].find('iframe');
if(el.length) { if(el.length) {
// reset src after the popup is closed to avoid "video keeps playing after popup is closed" bug // reset src after the popup is closed to avoid "video keeps playing after popup is closed" bug
if(!isShowing) { if(!isShowing) {
el[0].src = _emptyPage; el[0].src = _emptyPage;
@ -1605,8 +1605,8 @@ $.magnificPopup.registerModule(IFRAME_NS, {
// we don't care and support only one default type of URL by default // we don't care and support only one default type of URL by default
patterns: { patterns: {
youtube: { youtube: {
index: 'youtube.com', index: 'youtube.com',
id: 'v=', id: 'v=',
src: '//www.youtube.com/embed/%id%?autoplay=1' src: '//www.youtube.com/embed/%id%?autoplay=1'
}, },
vimeo: { vimeo: {
@ -1631,7 +1631,7 @@ $.magnificPopup.registerModule(IFRAME_NS, {
_fixIframeBugs(); // iframe if removed _fixIframeBugs(); // iframe if removed
} else if(newType === IFRAME_NS) { } else if(newType === IFRAME_NS) {
_fixIframeBugs(true); // iframe is showing _fixIframeBugs(true); // iframe is showing
} }
}// else { }// else {
// iframe source is switched, don't do anything // iframe source is switched, don't do anything
//} //}
@ -1645,7 +1645,7 @@ $.magnificPopup.registerModule(IFRAME_NS, {
getIframe: function(item, template) { getIframe: function(item, template) {
var embedSrc = item.src; var embedSrc = item.src;
var iframeSt = mfp.st.iframe; var iframeSt = mfp.st.iframe;
$.each(iframeSt.patterns, function() { $.each(iframeSt.patterns, function() {
if(embedSrc.indexOf( this.index ) > -1) { if(embedSrc.indexOf( this.index ) > -1) {
if(this.id) { if(this.id) {
@ -1659,7 +1659,7 @@ $.magnificPopup.registerModule(IFRAME_NS, {
return false; // break; return false; // break;
} }
}); });
var dataObj = {}; var dataObj = {};
if(iframeSt.srcAction) { if(iframeSt.srcAction) {
dataObj[iframeSt.srcAction] = embedSrc; dataObj[iframeSt.srcAction] = embedSrc;
@ -1716,7 +1716,7 @@ $.magnificPopup.registerModule('gallery', {
supportsFastClick = Boolean($.fn.mfpFastClick); supportsFastClick = Boolean($.fn.mfpFastClick);
mfp.direction = true; // true - next, false - prev mfp.direction = true; // true - next, false - prev
if(!gSt || !gSt.enabled ) return false; if(!gSt || !gSt.enabled ) return false;
_wrapClasses += ' mfp-gallery'; _wrapClasses += ' mfp-gallery';
@ -1755,16 +1755,16 @@ $.magnificPopup.registerModule('gallery', {
_mfpOn('BuildControls' + ns, function() { _mfpOn('BuildControls' + ns, function() {
if(mfp.items.length > 1 && gSt.arrows && !mfp.arrowLeft) { if(mfp.items.length > 1 && gSt.arrows && !mfp.arrowLeft) {
var markup = gSt.arrowMarkup, var markup = gSt.arrowMarkup,
arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS), arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS); arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
var eName = supportsFastClick ? 'mfpFastClick' : 'click'; var eName = supportsFastClick ? 'mfpFastClick' : 'click';
arrowLeft[eName](function() { arrowLeft[eName](function() {
mfp.prev(); mfp.prev();
}); });
arrowRight[eName](function() { arrowRight[eName](function() {
mfp.next(); mfp.next();
}); });
// Polyfill for :before and :after (adds elements with classes mfp-a and mfp-b) // Polyfill for :before and :after (adds elements with classes mfp-a and mfp-b)
if(mfp.isIE7) { if(mfp.isIE7) {
@ -1784,21 +1784,21 @@ $.magnificPopup.registerModule('gallery', {
mfp._preloadTimeout = setTimeout(function() { mfp._preloadTimeout = setTimeout(function() {
mfp.preloadNearbyImages(); mfp.preloadNearbyImages();
mfp._preloadTimeout = null; mfp._preloadTimeout = null;
}, 16); }, 16);
}); });
_mfpOn(CLOSE_EVENT+ns, function() { _mfpOn(CLOSE_EVENT+ns, function() {
_document.off(ns); _document.off(ns);
mfp.wrap.off('click'+ns); mfp.wrap.off('click'+ns);
if(mfp.arrowLeft && supportsFastClick) { if(mfp.arrowLeft && supportsFastClick) {
mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick(); mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick();
} }
mfp.arrowRight = mfp.arrowLeft = null; mfp.arrowRight = mfp.arrowLeft = null;
}); });
}, },
next: function() { next: function() {
mfp.direction = true; mfp.direction = true;
mfp.index = _getLoopedId(mfp.index + 1); mfp.index = _getLoopedId(mfp.index + 1);
@ -1963,11 +1963,11 @@ $.magnificPopup.registerModule(RETINA_NS, {
* *
* To unbind: * To unbind:
* $('.your-el').destroyMfpFastClick(); * $('.your-el').destroyMfpFastClick();
* *
* *
* Note that it's a very basic and simple implementation, it blocks ghost click on the same element where it was bound. * Note that it's a very basic and simple implementation, it blocks ghost click on the same element where it was bound.
* If you need something more advanced, use plugin by FT Labs https://github.com/ftlabs/fastclick * If you need something more advanced, use plugin by FT Labs https://github.com/ftlabs/fastclick
* *
*/ */
(function() { (function() {
@ -2046,4 +2046,4 @@ $.magnificPopup.registerModule(RETINA_NS, {
})(); })();
/*>>fastclick*/ /*>>fastclick*/
_checkInstance(); })(window.jQuery || window.Zepto); _checkInstance(); })(window.jQuery || window.Zepto);

View file

@ -29,7 +29,7 @@ If you want to use Minimal Mistakes with an existing Jekyll site follow these st
3. Run `bundle install` to install all dependencies (Jekyll, [Jekyll-Sitemap](https://github.com/jekyll/jekyll-sitemap), [Octopress](https://github.com/octopress/octopress), etc) 3. Run `bundle install` to install all dependencies (Jekyll, [Jekyll-Sitemap](https://github.com/jekyll/jekyll-sitemap), [Octopress](https://github.com/octopress/octopress), etc)
4. Remove demo posts/pages and replace with your own posts, pages, and any other content you want to move over. 4. Remove demo posts/pages and replace with your own posts, pages, and any other content you want to move over.
5. Update posts' and pages' YAML to match variables used by Minimal Mistakes. Full details below. 5. Update posts' and pages' YAML to match variables used by Minimal Mistakes. Full details below.
6. Update `_config.yml` and add navigation links. Full details below. 6. Update `_config.yml` and add navigation links. Full details below.
**Pro-tip:** Delete the `gh-pages` branch after cloning and start fresh by branching off `master`. There is a bunch of garbage in `gh-pages` used for the theme's demo site that I'm guessing you won't want. **Pro-tip:** Delete the `gh-pages` branch after cloning and start fresh by branching off `master`. There is a bunch of garbage in `gh-pages` used for the theme's demo site that I'm guessing you won't want.
{: .notice} {: .notice}
@ -88,7 +88,7 @@ minimal-mistakes/
├── images/ # images for posts and pages ├── images/ # images for posts and pages
├── 404.md # 404 page ├── 404.md # 404 page
├── feed.xml # Atom feed template ├── feed.xml # Atom feed template
├── index.md # sample homepage. lists 5 latest posts ├── index.md # sample homepage. lists 5 latest posts
├── posts/ # sample post index page. lists all posts in reverse chronology ├── posts/ # sample post index page. lists all posts in reverse chronology
└── theme-setup/ # theme setup page. safe to remove └── theme-setup/ # theme setup page. safe to remove
{% endhighlight %} {% endhighlight %}
@ -119,7 +119,7 @@ Examples:
url: http://mmistakes.github.io/minimal-mistakes url: http://mmistakes.github.io/minimal-mistakes
url: http://localhost:4000 url: http://localhost:4000
url: //cooldude.github.io url: //cooldude.github.io
url: url:
{% endhighlight %} {% endhighlight %}
#### Google Analytics and Webmaster Tools #### Google Analytics and Webmaster Tools
@ -135,7 +135,7 @@ To set what links appear in the top navigation edit `_data/navigation.yml`. Use
url: /portfolio/ url: /portfolio/
- title: Made Mistakes - title: Made Mistakes
url: http://mademistakes.com url: http://mademistakes.com
{% endhighlight %} {% endhighlight %}
--- ---
@ -328,4 +328,4 @@ Found a bug or aren't quite sure how something works? By all means Ping me on Tw
## License ## License
This theme is free and open source software, distributed under the MIT License. So feel free to use this Jekyll theme on your site without linking back to me or including a disclaimer. This theme is free and open source software, distributed under the MIT License. So feel free to use this Jekyll theme on your site without linking back to me or including a disclaimer.