mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-13 01:06:06 +00:00
Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
ede6b03afa | |||
31025f2f15 | |||
dfd94ece96 | |||
8f6f4a962b | |||
c4f631b28d | |||
dd9d027709 | |||
1a3dd91f81 | |||
01c46dd225 | |||
c1443a6e04 | |||
cd4563935a | |||
53c6d32849 | |||
2f45eda1ca | |||
cfbb7842a9 | |||
6f5138dcd2 | |||
6c04f651aa | |||
f81730e108 | |||
c06a731384 | |||
2773ac926a | |||
cc59624ba4 | |||
6b42e9535c | |||
bc38e7df61 | |||
ab2a8261d7 | |||
ffea9590ea | |||
d32e9db4cb | |||
88666559f6 | |||
c94651d8fb |
@ -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;
|
||||
}
|
||||
@ -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.
|
||||
*/
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
@ -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
|
||||
@ -1099,6 +1100,7 @@ body:not(.post-template) .post-title {
|
||||
.footnotes {
|
||||
font-style: italic;
|
||||
font-size: 1.3rem;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
.footnotes li {
|
||||
@ -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 {
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
@ -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 {
|
||||
@ -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;
|
||||
@ -1432,8 +1441,19 @@ body:not(.post-template) .post-title {
|
||||
/* if there are two posts without covers, put a border between them */
|
||||
.read-next-story.no-cover + .read-next-story.no-cover {
|
||||
border-left: rgba(0,0,100,0.04) 1px solid;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 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
|
||||
@ -1756,7 +1776,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;
|
||||
}
|
||||
|
@ -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}}
|
||||
|
@ -40,8 +40,9 @@
|
||||
{{! Ghost outputs important scripts and data with this tag }}
|
||||
{{ghost_foot}}
|
||||
|
||||
{{! The main JavaScript file for Casper }}
|
||||
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
|
||||
{{! The main JavaScript file for Casper }}
|
||||
<script type="text/javascript" src="{{asset "js/index.js"}}"></script>
|
||||
|
||||
</body>
|
||||
|
@ -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}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "Casper",
|
||||
"version": "1.2.0"
|
||||
"version": "1.2.5"
|
||||
}
|
||||
|
2
page.hbs
2
page.hbs
@ -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}}
|
||||
|
@ -13,7 +13,7 @@
|
||||
<p>{{excerpt words="26"}} <a class="read-more" href="{{url}}">»</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>
|
||||
|
4
post.hbs
4
post.hbs
@ -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}}
|
||||
@ -58,7 +58,7 @@
|
||||
|
||||
<section class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="icon-twitter" href="https://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
|
||||
<a class="icon-twitter" href="https://twitter.com/intent/tweet?text={{encode title}}&url={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||
<span class="hidden">Twitter</span>
|
||||
</a>
|
||||
|
2
tag.hbs
2
tag.hbs
@ -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}}
|
||||
|
Reference in New Issue
Block a user