mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-16 10:46:06 +00:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
046d53e885 | |||
e49664eca4 | |||
21bdffbd8a | |||
ea33b00c0a | |||
17c9fe6c55 | |||
5adeaa458b | |||
5013c91f1a | |||
f43f6c567f | |||
69feef6c46 | |||
4708987c39 | |||
a4eb58f8e7 | |||
5ad96f7c12 | |||
6ac55407b3 | |||
b0e21fe0f7 |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -68,6 +68,10 @@ production stylesheet in assets/built/screen.css
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.viewport > main {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Full width page blocks */
|
/* Full width page blocks */
|
||||||
.outer {
|
.outer {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -539,6 +543,7 @@ body:not(.gh-head-open) .gh-burger:hover .gh-burger-inner::after {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 220px;
|
min-height: 220px;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-card-image-link {
|
.post-card-image-link {
|
||||||
@ -787,6 +792,7 @@ make sure this only happens on large viewports / desktop-ish devices.
|
|||||||
|
|
||||||
.article {
|
.article {
|
||||||
padding: 8vmin 0;
|
padding: 8vmin 0;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-header {
|
.article-header {
|
||||||
@ -831,6 +837,7 @@ make sure this only happens on large viewports / desktop-ish devices.
|
|||||||
display: block;
|
display: block;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
@ -978,7 +985,6 @@ is the very first element in the post content */
|
|||||||
.gh-content pre {
|
.gh-content pre {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 16px 20px;
|
padding: 16px 20px;
|
||||||
border: 1px solid color-mod(var(--color-darkgrey) l(-20%));
|
|
||||||
color: var(--color-wash);
|
color: var(--color-wash);
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
@ -1036,7 +1042,7 @@ except for when immediately preceeded by a heading */
|
|||||||
|
|
||||||
|
|
||||||
/* Captions */
|
/* Captions */
|
||||||
.kg-card figcaption {
|
figcaption {
|
||||||
padding: 1.5rem 1.5rem 0;
|
padding: 1.5rem 1.5rem 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: rgba(0,0,0,0.5);
|
color: rgba(0,0,0,0.5);
|
||||||
@ -1044,9 +1050,12 @@ except for when immediately preceeded by a heading */
|
|||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
line-height: 1.4em;
|
line-height: 1.4em;
|
||||||
}
|
}
|
||||||
.kg-card figcaption strong {
|
figcaption strong {
|
||||||
color: rgba(0,0,0,0.8);
|
color: rgba(0,0,0,0.8);
|
||||||
}
|
}
|
||||||
|
figcaption a {
|
||||||
|
color: var(--ghost-accent-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Highly specific styles for traditional Instagram embeds */
|
/* Highly specific styles for traditional Instagram embeds */
|
||||||
@ -1827,6 +1836,16 @@ html.dark-mode .gh-content h6 {
|
|||||||
color: rgba(255, 255, 255, 0.9);
|
color: rgba(255, 255, 255, 0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html.dark-mode .gh-content pre {
|
||||||
|
background: color-mod(var(--color-darkgrey) l(-8%));
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark-mode .gh-content :not(pre) > code {
|
||||||
|
background: color-mod(var(--color-darkgrey) l(+6%));
|
||||||
|
border-color: color-mod(var(--color-darkmode) l(+8%));
|
||||||
|
color: var(--color-wash);
|
||||||
|
}
|
||||||
|
|
||||||
html.dark-mode .post-full-content a {
|
html.dark-mode .post-full-content a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
box-shadow: inset 0 -1px 0 #fff;
|
box-shadow: inset 0 -1px 0 #fff;
|
||||||
|
@ -31,13 +31,13 @@
|
|||||||
<div class="author-profile-location">📍 {{location}}</div>
|
<div class="author-profile-location">📍 {{location}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if website}}
|
{{#if website}}
|
||||||
<span ></span><a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a></span>
|
<span><a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if twitter}}
|
{{#if twitter}}
|
||||||
<span ></span><a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{twitter_url}}</a></span>
|
<span><a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{twitter_url}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if facebook}}
|
{{#if facebook}}
|
||||||
<span ></span><a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{facebook_url}}</a></span>
|
<span><a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{facebook_url}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#unless @member}}
|
{{#unless @member}}
|
||||||
<a class="gh-head-button" href="#/portal">Subscribe</a>
|
<a class="gh-head-button" href="#/portal/signup">Subscribe</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a class="gh-head-button" href="#/portal/account">Account</a>
|
<a class="gh-head-button" href="#/portal/account">Account</a>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
@ -80,7 +80,9 @@ function zipper(done) {
|
|||||||
'**',
|
'**',
|
||||||
'!node_modules', '!node_modules/**',
|
'!node_modules', '!node_modules/**',
|
||||||
'!dist', '!dist/**',
|
'!dist', '!dist/**',
|
||||||
'!yarn-error.log'
|
'!yarn-error.log',
|
||||||
|
'!yarn.lock',
|
||||||
|
'!gulpfile.js'
|
||||||
]),
|
]),
|
||||||
zip(filename),
|
zip(filename),
|
||||||
dest('dist/')
|
dest('dist/')
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "casper",
|
"name": "casper",
|
||||||
"description": "A clean, minimal default theme for the Ghost publishing platform",
|
"description": "A clean, minimal default theme for the Ghost publishing platform",
|
||||||
"demo": "https://demo.ghost.io",
|
"demo": "https://demo.ghost.io",
|
||||||
"version": "4.0.3",
|
"version": "4.1.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=4.0.0",
|
"ghost": ">=4.0.0",
|
||||||
"ghost-api": "v4"
|
"ghost-api": "v4"
|
||||||
|
5
page.hbs
5
page.hbs
@ -21,8 +21,11 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
{{img_url feature_image size="xl"}} 2000w"
|
{{img_url feature_image size="xl"}} 2000w"
|
||||||
sizes="(min-width: 1400px) 1400px, 92vw"
|
sizes="(min-width: 1400px) 1400px, 92vw"
|
||||||
src="{{img_url feature_image size="xl"}}"
|
src="{{img_url feature_image size="xl"}}"
|
||||||
alt="{{title}}"
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
||||||
/>
|
/>
|
||||||
|
{{#if feature_image_caption}}
|
||||||
|
<figcaption>{{feature_image_caption}}</figcaption>
|
||||||
|
{{/if}}
|
||||||
</figure>
|
</figure>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</header>
|
</header>
|
||||||
|
@ -14,7 +14,7 @@ which templates loop over to generate a list of posts. --}}
|
|||||||
{{img_url feature_image size="xl"}} 2000w"
|
{{img_url feature_image size="xl"}} 2000w"
|
||||||
sizes="(max-width: 1000px) 400px, 800px"
|
sizes="(max-width: 1000px) 400px, 800px"
|
||||||
src="{{img_url feature_image size="m"}}"
|
src="{{img_url feature_image size="m"}}"
|
||||||
alt="{{title}}"
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
5
post.hbs
5
post.hbs
@ -59,8 +59,11 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
{{img_url feature_image size="xl"}} 2000w"
|
{{img_url feature_image size="xl"}} 2000w"
|
||||||
sizes="(min-width: 1400px) 1400px, 92vw"
|
sizes="(min-width: 1400px) 1400px, 92vw"
|
||||||
src="{{img_url feature_image size="xl"}}"
|
src="{{img_url feature_image size="xl"}}"
|
||||||
alt="{{title}}"
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
||||||
/>
|
/>
|
||||||
|
{{#if feature_image_caption}}
|
||||||
|
<figcaption>{{feature_image_caption}}</figcaption>
|
||||||
|
{{/if}}
|
||||||
</figure>
|
</figure>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</header>
|
</header>
|
||||||
|
8
tag.hbs
8
tag.hbs
@ -7,7 +7,7 @@
|
|||||||
<div class="post-feed">
|
<div class="post-feed">
|
||||||
|
|
||||||
{{#tag}}
|
{{#tag}}
|
||||||
<header class="post-card post-card-large">
|
<section class="post-card post-card-large">
|
||||||
{{#if feature_image}}
|
{{#if feature_image}}
|
||||||
<div class="post-card-image-link">
|
<div class="post-card-image-link">
|
||||||
{{!-- This is a responsive image, it loads different sizes depending on device
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<div class="post-card-primary-tag">Tagged</div>
|
<div class="post-card-primary-tag">Tagged</div>
|
||||||
<h2 class="post-card-title">{{name}}</h2>
|
<h2 class="post-card-title">{{name}}</h2>
|
||||||
</header>
|
</header>
|
||||||
<section class="post-card-excerpt">
|
<div class="post-card-excerpt">
|
||||||
<p>
|
<p>
|
||||||
{{#if description}}
|
{{#if description}}
|
||||||
{{description}}
|
{{description}}
|
||||||
@ -38,11 +38,11 @@
|
|||||||
A collection of {{plural ../pagination.total empty='zero posts' singular='% post' plural='% posts'}}
|
A collection of {{plural ../pagination.total empty='zero posts' singular='% post' plural='% posts'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>{{!--/.post-card-content--}}
|
</div>{{!--/.post-card-content--}}
|
||||||
|
|
||||||
</header>
|
</section>
|
||||||
{{/tag}}
|
{{/tag}}
|
||||||
|
|
||||||
{{#foreach posts}}
|
{{#foreach posts}}
|
||||||
|
Reference in New Issue
Block a user