mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-13 09:16:06 +00:00
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
9f9348544e | |||
840b1b9c50 | |||
cc3fca004f | |||
f8b34f9786 | |||
b9f5d591d3 | |||
a60e3e976a | |||
d9c9390e17 | |||
84f201d293 | |||
c7fdfb7479 | |||
d3483498d4 | |||
4ae190c1a6 | |||
22c83f9128 |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1025,6 +1025,11 @@ production stylesheet in assets/built/screen.css
|
|||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:is(.tag-template, .author-template) .post-card-large .post-card-excerpt {
|
||||||
|
display: block;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.post-card-meta {
|
.post-card-meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -1213,20 +1218,19 @@ html.no-infinite-scroll .pagination {
|
|||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.article {
|
.article {
|
||||||
padding: max(8vmin, 40px) 0 max(8vmin, 64px);
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-template .article {
|
.post-template .article {
|
||||||
padding-top: max(12vmin, 64px);
|
padding: max(8vmin, 40px) 0 max(8vmin, 64px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-header {
|
.post-template .article-header {
|
||||||
padding: 0 0 max(6.4vmin, 40px) 0;
|
padding: 0 0 max(6.4vmin, 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-template .article-header {
|
.page-template .article-header {
|
||||||
padding-bottom: max(3.2vmin, 28px);
|
padding: max(12vmin, 64px) 0 max(3.2vmin, 28px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-tag {
|
.article-tag {
|
||||||
@ -1342,6 +1346,11 @@ headings, text, images and lists. We deal with cards lower down. */
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remove space between full-width cards */
|
||||||
|
.gh-content > .kg-width-full + .kg-width-full:not(.kg-width-full.kg-card-hascaption + .kg-width-full) {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* [id] represents all headings h1-h6, reset all margins */
|
/* [id] represents all headings h1-h6, reset all margins */
|
||||||
.gh-content > [id] {
|
.gh-content > [id] {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -1392,6 +1401,14 @@ is the very first element in the post content */
|
|||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-template .gh-content:only-child > *:first-child:not(.kg-width-full) {
|
||||||
|
margin-top: max(12vmin, 64px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-template .gh-content > *:last-child:not(.kg-width-full) {
|
||||||
|
margin-bottom: max(12vmin, 64px);
|
||||||
|
}
|
||||||
|
|
||||||
.gh-content .kg-callout-card .kg-callout-text,
|
.gh-content .kg-callout-card .kg-callout-text,
|
||||||
.gh-content .kg-toggle-card .kg-toggle-content > ol,
|
.gh-content .kg-toggle-card .kg-toggle-content > ol,
|
||||||
.gh-content .kg-toggle-card .kg-toggle-content > ul,
|
.gh-content .kg-toggle-card .kg-toggle-content > ul,
|
||||||
@ -1524,11 +1541,9 @@ make sure they look good, and are given a bit of extra spacing. */
|
|||||||
except for when immediately preceeded by a heading */
|
except for when immediately preceeded by a heading */
|
||||||
.gh-content :not(.kg-card):not([id]) + .kg-card {
|
.gh-content :not(.kg-card):not([id]) + .kg-card {
|
||||||
margin-top: 6vmin;
|
margin-top: 6vmin;
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
.gh-content .kg-card + :not(.kg-card) {
|
.gh-content .kg-card + :not(.kg-card) {
|
||||||
margin-top: 6vmin;
|
margin-top: 6vmin;
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This keeps small embeds centered */
|
/* This keeps small embeds centered */
|
||||||
@ -2032,6 +2047,10 @@ iframe.instagram-media + script + :not([id]) {
|
|||||||
background: color-mod(var(--color-darkgrey) l(-5%));
|
background: color-mod(var(--color-darkgrey) l(-5%));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-template .site-footer {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.site-footer .inner {
|
.site-footer .inner {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 40px;
|
grid-gap: 40px;
|
||||||
|
@ -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": "5.5.2",
|
"version": "5.6.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=5.0.0"
|
"ghost": ">=5.0.0"
|
||||||
},
|
},
|
||||||
|
2
page.hbs
2
page.hbs
@ -10,6 +10,7 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
<main id="site-main" class="site-main">
|
<main id="site-main" class="site-main">
|
||||||
<article class="article {{post_class}}">
|
<article class="article {{post_class}}">
|
||||||
|
|
||||||
|
{{#match @page.show_title_and_feature_image}}
|
||||||
<header class="article-header gh-canvas">
|
<header class="article-header gh-canvas">
|
||||||
|
|
||||||
<h1 class="article-title">{{title}}</h1>
|
<h1 class="article-title">{{title}}</h1>
|
||||||
@ -34,6 +35,7 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
{{/match}}
|
||||||
|
|
||||||
<section class="gh-content gh-canvas">
|
<section class="gh-content gh-canvas">
|
||||||
{{content}}
|
{{content}}
|
||||||
|
Reference in New Issue
Block a user