mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-13 09:16:06 +00:00
Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
7380ed0291 | |||
ecaf3d921f | |||
89ea6c5872 | |||
9d803067a4 | |||
0ea375643b | |||
f31957bd0d | |||
36841d4624 | |||
d41fcbbc8a | |||
5d318225f5 | |||
9b56779ca6 | |||
1bf2cdb52a | |||
f67caaba5c | |||
25d1e368d6 | |||
5c6cce1519 | |||
019842155a | |||
1860a8305b | |||
6417b4cf2a | |||
1c61bc5f16 | |||
7a7f04c716 | |||
fd56128f9b | |||
cd3b470c18 |
6
.travis.yml
Normal file
6
.travis.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
language: node_js
|
||||||
|
sudo: false
|
||||||
|
node_js:
|
||||||
|
- "8"
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -462,8 +462,11 @@ The knock-on effect of this is ugly browser-scroll bars at the bottom, so 80px o
|
|||||||
padding: 0 25px 25px;
|
padding: 0 25px 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.author-profile-image {
|
.author-profile-image,
|
||||||
|
.avatar-wrapper {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
background: color(var(--lightgrey) l(+10%));
|
background: color(var(--lightgrey) l(+10%));
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
|
|
||||||
@ -874,6 +877,7 @@ Usage (In Ghost editor):
|
|||||||
display: block;
|
display: block;
|
||||||
margin-top: -3em;
|
margin-top: -3em;
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1271,7 +1275,8 @@ Usage (In Ghost editor):
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.author-card .author-profile-image {
|
.author-card .author-profile-image,
|
||||||
|
.author-card .avatar-wrapper {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
@ -1814,78 +1819,77 @@ Usage (In Ghost editor):
|
|||||||
/* 7.6. Koenig Styles
|
/* 7.6. Koenig Styles
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
/* For Ghost 1.0 */
|
.post-content {
|
||||||
.kg-card-markdown {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
max-width: 920px;
|
max-width: 920px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-template .kg-card-markdown > p:first-child {
|
.post-template .post-content > p:first-child {
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
/* ^ .kg-card-markdown will be deprecated */
|
|
||||||
|
|
||||||
|
|
||||||
.post-template .kg-post > p:first-child {
|
|
||||||
font-size: 1.25em;
|
|
||||||
line-height: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kg-post {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
max-width: 920px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-full-content .kg-image {
|
.post-full-content .kg-image {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Preventing full-width image overlap with post image. */
|
/* Preventing full-width image overlap with post image. */
|
||||||
.post-full-image + .post-full-content .kg-post *:first-child .kg-image {
|
.post-full-image + .post-full-content .kg-content *:first-child .kg-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-full-content .kg-image-wide {
|
.post-full-content .kg-width-wide .kg-image {
|
||||||
max-width: 1040px;
|
max-width: 1040px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-full-content .kg-image-full {
|
.post-full-content .kg-width-full .kg-image {
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kg-image-card figcaption {
|
.post-content figcaption {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
margin: -1.5em auto 3em;
|
line-height: 1.6em;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-full-content .kg-image-full + figcaption {
|
.kg-image-card {
|
||||||
max-width: 840px;
|
margin: 0 0 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kg-image-card figcaption {
|
||||||
|
margin: -1.0em 0 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-embed-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
margin: 1.5em 0 3em;
|
||||||
|
min-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-embed-card figcaption {
|
||||||
|
margin: 0.5em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kg-embed-card .fluid-width-video-wrapper {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.kg-image-full + figcaption {
|
||||||
|
padding: 0 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 1040px) {
|
@media (max-width: 1040px) {
|
||||||
.post-full-content .kg-image-full {
|
.post-full-content .kg-width-full .kg-image {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1170px) {
|
|
||||||
.post-full-content .kg-image-full + figcaption {
|
|
||||||
padding: 0 11vw;
|
|
||||||
max-width: 100vw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
|
||||||
.post-full-content .kg-image-full + figcaption {
|
|
||||||
padding: 0 4vw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* 8. Author Template
|
/* 8. Author Template
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
13
package.json
13
package.json
@ -2,9 +2,9 @@
|
|||||||
"name": "casper",
|
"name": "casper",
|
||||||
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
|
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
|
||||||
"demo": "https://demo.ghost.io",
|
"demo": "https://demo.ghost.io",
|
||||||
"version": "2.3.0",
|
"version": "2.5.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=1.2.0"
|
"ghost": ">=2.0.0"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"screenshots": {
|
"screenshots": {
|
||||||
@ -12,8 +12,9 @@
|
|||||||
"mobile": "assets/screenshot-mobile.jpg"
|
"mobile": "assets/screenshot-mobile.jpg"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "gulp",
|
"dev": "gulp",
|
||||||
"zip": "gulp zip"
|
"zip": "gulp zip",
|
||||||
|
"test": "gscan ."
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Ghost Foundation",
|
"name": "Ghost Foundation",
|
||||||
@ -29,7 +30,8 @@
|
|||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ghost",
|
"ghost",
|
||||||
"theme"
|
"theme",
|
||||||
|
"ghost-theme"
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -40,6 +42,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "6.3.6",
|
"autoprefixer": "6.3.6",
|
||||||
"cssnano": "3.7.1",
|
"cssnano": "3.7.1",
|
||||||
|
"gscan": "^2.0.0",
|
||||||
"gulp": "3.9.1",
|
"gulp": "3.9.1",
|
||||||
"gulp-livereload": "3.8.1",
|
"gulp-livereload": "3.8.1",
|
||||||
"gulp-postcss": "6.1.1",
|
"gulp-postcss": "6.1.1",
|
||||||
|
4
page.hbs
4
page.hbs
@ -27,7 +27,9 @@ into the {body} of the default.hbs template --}}
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<section class="post-full-content">
|
<section class="post-full-content">
|
||||||
{{content}}
|
<div class="post-content">
|
||||||
|
{{content}}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{!-- Everything inside the #author tags pulls data from the author --}}
|
{{!-- Everything inside the #author tags pulls data from the author --}}
|
||||||
{{#author}}
|
{{#primary_author}}
|
||||||
|
|
||||||
<section class="author-card">
|
<section class="author-card">
|
||||||
{{#if profile_image}}
|
{{#if profile_image}}
|
||||||
@ -20,4 +20,4 @@
|
|||||||
<a class="author-card-button" href="{{url}}">Read More</a>
|
<a class="author-card-button" href="{{url}}">Read More</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{/author}}
|
{{/primary_author}}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
{{> "icons/facebook"}}
|
{{> "icons/facebook"}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<progress class="progress" value="0">
|
<progress id="reading-progress" class="progress" value="0">
|
||||||
<div class="progress-container">
|
<div class="progress-container">
|
||||||
<span class="progress-bar"></span>
|
<span class="progress-bar"></span>
|
||||||
</div>
|
</div>
|
||||||
|
6
post.hbs
6
post.hbs
@ -33,7 +33,9 @@ into the {body} of the default.hbs template --}}
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<section class="post-full-content">
|
<section class="post-full-content">
|
||||||
{{content}}
|
<div class="post-content">
|
||||||
|
{{content}}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{!-- Email subscribe form at the bottom of the page --}}
|
{{!-- Email subscribe form at the bottom of the page --}}
|
||||||
@ -141,7 +143,7 @@ $(document).ready(function () {
|
|||||||
$postContent.fitVids();
|
$postContent.fitVids();
|
||||||
// End fitVids
|
// End fitVids
|
||||||
|
|
||||||
var progressBar = document.querySelector('progress');
|
var progressBar = document.querySelector('#reading-progress');
|
||||||
var header = document.querySelector('.floating-header');
|
var header = document.querySelector('.floating-header');
|
||||||
var title = document.querySelector('.post-full-title');
|
var title = document.querySelector('.post-full-title');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user