Skip to content

Commit

Permalink
Update Casper theme to 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MunGell committed May 29, 2015
1 parent 33c07a9 commit 9a3d320
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 23 deletions.
49 changes: 33 additions & 16 deletions content/themes/casper/assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ table { border-collapse: collapse; border-spacing: 0; }
/* Import the font file with the icons in it */
@font-face {
font-family: "casper-icons";
src:url("../fonts/casper-icons.eot");
src:url("../fonts/casper-icons.eot?#iefix") format("embedded-opentype"),
url("../fonts/casper-icons.woff") format("woff"),
url("../fonts/casper-icons.ttf") format("truetype"),
url("../fonts/casper-icons.svg#icons") format("svg");
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;
}
Expand Down Expand Up @@ -164,6 +164,11 @@ table { border-collapse: collapse; border-spacing: 0; }
.icon-menu:before {
content: "\f609";
}
/*
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.
*/


/* ==========================================================================
Expand Down Expand Up @@ -916,10 +921,6 @@ body.nav-opened .nav {
padding-bottom: 4rem;
border-bottom: #EBF2F6 1px solid;
word-wrap: break-word;
-moz-hyphens: auto;
-ms-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}

/* Add a little circle in the middle of the border-bottom on our .post
Expand Down Expand Up @@ -1099,6 +1100,7 @@ body:not(.post-template) .post-title {
.footnotes {
font-style: italic;
font-size: 1.3rem;
line-height: 1.6em;
}

.footnotes li {
Expand All @@ -1109,6 +1111,10 @@ body:not(.post-template) .post-title {
margin: 0;
}

.footnotes p a:last-child {
text-decoration: none;
}


/* The author credit area after the post */
.post-footer {
Expand Down Expand Up @@ -1180,8 +1186,14 @@ body:not(.post-template) .post-title {
text-decoration: none;
}

.post-footer .share a:hover {
color: #50585D;
.post-footer .share .icon-twitter:hover {
color: #55acee;
}
.post-footer .share .icon-facebook:hover {
color: #3b5998;
}
.post-footer .share .icon-google-plus:hover {
color: #dd4b39;
}


Expand Down Expand Up @@ -1322,9 +1334,6 @@ body:not(.post-template) .post-title {
7. Read More - Next/Prev Post Links
========================================================================== */

.middle {

}
.read-next {
display: -webkit-box;
display: -webkit-flex;
Expand All @@ -1335,7 +1344,6 @@ body:not(.post-template) .post-title {
-ms-flex-align: stretch;
align-items: stretch;
margin-top: 10rem;
margin-bottom: calc(-8rem - 37px);
}

.read-next-story {
Expand All @@ -1347,6 +1355,7 @@ body:not(.post-template) .post-title {
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
min-width: 50%;
text-decoration: none;
position: relative;
text-align: center;
Expand Down Expand Up @@ -1434,6 +1443,14 @@ body:not(.post-template) .post-title {
border-left: rgba(0,0,100,0.04) 1px solid;
}

/* Correctly position site-footer when next to the .read-next container */
.read-next + .site-footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: 0;
}

/* ==========================================================================
8. Third Party Elements - Embeds from other services
Expand Down Expand Up @@ -1756,7 +1773,7 @@ body:not(.post-template) .post-title {
.menu-button {
padding: 0 5px;
border-radius: 0;
border-color: transparent;
border-width: 0;
color: #2e2e2e;
background: transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion content/themes/casper/author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{#author}}
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion content/themes/casper/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{! The big featured header }}
<header class="main-header {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion content/themes/casper/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Casper",
"version": "1.2.0"
"version": "1.2.4"
}
2 changes: 1 addition & 1 deletion content/themes/casper/page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion content/themes/casper/partials/loop.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<p>{{excerpt words="26"}} <a class="read-more" href="{{url}}">&raquo;</a></p>
</section>
<footer class="post-meta">
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="Author image" nopin="nopin" />{{/if}}
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
{{author}}
{{tags prefix=" on "}}
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
Expand Down
2 changes: 1 addition & 1 deletion content/themes/casper/post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion content/themes/casper/tag.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{! If we have a tag cover, display that - else blog cover - else nothing }}
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
{{#if @blog.navigation}}
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
{{/if}}
Expand Down

0 comments on commit 9a3d320

Please sign in to comment.