Compare commits

...

10 Commits

5 changed files with 48 additions and 32 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1218,20 +1218,19 @@ html.no-infinite-scroll .pagination {
/* ---------------------------------------------------------- */
.article {
padding: max(8vmin, 40px) 0 max(8vmin, 64px);
word-break: break-word;
}
.page-template .article {
padding-top: max(12vmin, 64px);
.post-template .article {
padding: max(8vmin, 40px) 0 max(8vmin, 64px);
}
.article-header {
padding: 0 0 max(6.4vmin, 40px) 0;
.post-template .article-header {
padding: 0 0 max(6.4vmin, 40px);
}
.page-template .article-header {
padding-bottom: max(3.2vmin, 28px);
padding: max(12vmin, 64px) 0 max(3.2vmin, 28px);
}
.article-tag {
@ -1347,6 +1346,11 @@ headings, text, images and lists. We deal with cards lower down. */
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 */
.gh-content > [id] {
margin: 0;
@ -1397,6 +1401,14 @@ is the very first element in the post content */
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-toggle-card .kg-toggle-content > ol,
.gh-content .kg-toggle-card .kg-toggle-content > ul,
@ -1529,11 +1541,9 @@ make sure they look good, and are given a bit of extra spacing. */
except for when immediately preceeded by a heading */
.gh-content :not(.kg-card):not([id]) + .kg-card {
margin-top: 6vmin;
margin-bottom: 0;
}
.gh-content .kg-card + :not(.kg-card) {
margin-top: 6vmin;
margin-bottom: 0;
}
/* This keeps small embeds centered */
@ -2037,6 +2047,10 @@ iframe.instagram-media + script + :not([id]) {
background: color-mod(var(--color-darkgrey) l(-5%));
}
.page-template .site-footer {
margin-top: 0;
}
.site-footer .inner {
display: grid;
grid-gap: 40px;

View File

@ -2,7 +2,7 @@
"name": "casper",
"description": "A clean, minimal default theme for the Ghost publishing platform",
"demo": "https://demo.ghost.io",
"version": "5.5.3",
"version": "5.6.0",
"engines": {
"ghost": ">=5.0.0"
},

View File

@ -10,6 +10,7 @@ into the {body} tag of the default.hbs template --}}
<main id="site-main" class="site-main">
<article class="article {{post_class}}">
{{#match @page.show_title_and_feature_image}}
<header class="article-header gh-canvas">
<h1 class="article-title">{{title}}</h1>
@ -34,6 +35,7 @@ into the {body} tag of the default.hbs template --}}
{{/if}}
</header>
{{/match}}
<section class="gh-content gh-canvas">
{{content}}