Various bug fixes
This commit is contained in:
parent
3169b71163
commit
ed3147630c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -552,6 +552,12 @@ Search LOGO Login Subscribe
|
|||||||
min-height: 80px;
|
min-height: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.gh-navigation.is-stacked .gh-navigation-brand {
|
||||||
|
min-height: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
.gh-navigation.is-stacked .gh-navigation-inner {
|
.gh-navigation.is-stacked .gh-navigation-inner {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -1036,6 +1042,34 @@ Search LOGO Login Subscribe
|
|||||||
.gh-header.is-magazine .gh-header-right .gh-card:last-child .gh-card-image {
|
.gh-header.is-magazine .gh-header-right .gh-card:last-child .gh-card-image {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-header.is-magazine .gh-header-right {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-header.is-magazine .gh-header-right::before {
|
||||||
|
position: absolute;
|
||||||
|
top: calc(var(--grid-gap) / -2);
|
||||||
|
left: 0;
|
||||||
|
content: "";
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
background-color: var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-header.is-magazine .gh-header-right .gh-card::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-header.is-magazine .gh-header-right .gh-card::after {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: calc(var(--grid-gap) / -2);
|
||||||
|
content: "";
|
||||||
|
width: 1px;
|
||||||
|
height: 100%;
|
||||||
|
background-color: var(--color-border);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
@media (max-width: 991px) {
|
||||||
@ -1058,6 +1092,17 @@ Search LOGO Login Subscribe
|
|||||||
.gh-header.is-magazine .gh-card-image {
|
.gh-header.is-magazine .gh-card-image {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-header.is-magazine .gh-card::before {
|
||||||
|
display: block !important;
|
||||||
|
position: absolute;
|
||||||
|
top: calc(var(--grid-gap) / -2);
|
||||||
|
left: 0;
|
||||||
|
content: "";
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
background-color: var(--color-border);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 8.2. Highlight layout */
|
/* 8.2. Highlight layout */
|
||||||
@ -1287,7 +1332,7 @@ Search LOGO Login Subscribe
|
|||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
.gh-cta {
|
.gh-cta {
|
||||||
margin-top: 4vw;
|
margin-top: max(4vw, 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-cta-inner {
|
.gh-cta-inner {
|
||||||
@ -1347,10 +1392,10 @@ Search LOGO Login Subscribe
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
padding-bottom: 12px;
|
padding-bottom: 12px;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
font-weight: 600;
|
font-weight: 550;
|
||||||
letter-spacing: 0.025em;
|
letter-spacing: 0.025em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
border-bottom: 1px solid var(--color-dark-border);
|
border-bottom: 1px solid var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-featured-feed {
|
.gh-featured-feed {
|
||||||
@ -1454,7 +1499,7 @@ Search LOGO Login Subscribe
|
|||||||
}
|
}
|
||||||
|
|
||||||
:is(.gh-featured, .gh-cta) + .gh-container {
|
:is(.gh-featured, .gh-cta) + .gh-container {
|
||||||
margin-top: 4vw;
|
margin-top: max(4vw, 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-header.is-classic:not(.has-image) + .gh-container {
|
.gh-header.is-classic:not(.has-image) + .gh-container {
|
||||||
@ -1509,10 +1554,6 @@ Search LOGO Login Subscribe
|
|||||||
grid-column: 3 / span 12;
|
grid-column: 3 / span 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-container:not(.has-sidebar) .gh-container-title {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1199px) {
|
@media (max-width: 1199px) {
|
||||||
.gh-container-inner {
|
.gh-container-inner {
|
||||||
display: block;
|
display: block;
|
||||||
@ -1532,8 +1573,8 @@ Search LOGO Login Subscribe
|
|||||||
margin-bottom: calc(var(--grid-gap) / 2);
|
margin-bottom: calc(var(--grid-gap) / 2);
|
||||||
padding-bottom: 12px;
|
padding-bottom: 12px;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
font-weight: 500;
|
font-weight: 550;
|
||||||
letter-spacing: 0.01em;
|
letter-spacing: 0.025em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
border-bottom: 1px solid var(--color-border);
|
border-bottom: 1px solid var(--color-border);
|
||||||
}
|
}
|
||||||
@ -1846,7 +1887,7 @@ created within the Ghost editor. The main content handles
|
|||||||
headings, text, images and lists. We deal with cards lower down. */
|
headings, text, images and lists. We deal with cards lower down. */
|
||||||
|
|
||||||
.gh-content {
|
.gh-content {
|
||||||
font-size: calc(var(--content-font-size, 1.7rem) * var(--font-multiplier, 1));
|
font-size: calc(var(--content-font-size, 1.7rem) * var(--factor, 1));
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<main class="gh-main gh-outer">
|
<main class="gh-main gh-outer">
|
||||||
|
|
||||||
{{#author}}
|
{{#author}}
|
||||||
<section class="gh-archive{{#if @custom.show_sidebar}} has-sidebar{{/if}} gh-inner">
|
<section class="gh-archive{{#if @custom.show_site_in_sidebar}} has-sidebar{{/if}} gh-inner">
|
||||||
<div class="gh-archive-inner">
|
<div class="gh-archive-inner">
|
||||||
<div class="gh-archive-wrapper">
|
<div class="gh-archive-wrapper">
|
||||||
<h1 class="gh-article-title is-title">
|
<h1 class="gh-article-title is-title">
|
||||||
@ -38,6 +38,6 @@
|
|||||||
</section>
|
</section>
|
||||||
{{/author}}
|
{{/author}}
|
||||||
|
|
||||||
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_sidebar}}
|
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_site_in_sidebar}}
|
||||||
|
|
||||||
</main>
|
</main>
|
2
home.hbs
2
home.hbs
@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
{{> "components/cta"}}
|
{{> "components/cta"}}
|
||||||
|
|
||||||
{{> "components/post-list" feed="home" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_sidebar}}
|
{{> "components/post-list" feed="home" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_site_in_sidebar}}
|
@ -2,5 +2,5 @@
|
|||||||
{{!-- The tag above means: insert everything in this file into the body of the default.hbs template --}}
|
{{!-- The tag above means: insert everything in this file into the body of the default.hbs template --}}
|
||||||
|
|
||||||
<main class="gh-main">
|
<main class="gh-main">
|
||||||
{{> "components/post-list" feed="index" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_sidebar}}
|
{{> "components/post-list" feed="index" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_site_in_sidebar}}
|
||||||
</main>
|
</main>
|
@ -166,12 +166,12 @@
|
|||||||
"default": true,
|
"default": true,
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
"show_post_date": {
|
"show_publish_date": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
"show_sidebar": {
|
"show_site_in_sidebar": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
|
@ -98,7 +98,7 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
{{#if @site.paid_members_enabled}}
|
{{#if @site.paid_members_enabled}}
|
||||||
{{#unless @member.paid}}
|
{{#unless @member.paid}}
|
||||||
<button class="gh-button" data-portal="upgrade">Subscribe</button>
|
<button class="gh-button" data-portal="upgrade">Upgrade</button>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
-->{{#if @custom.show_author}}
|
-->{{#if @custom.show_author}}
|
||||||
<span class="gh-card-author">By {{#foreach authors}}{{#if @first}}{{name}}{{else}}, {{name}}{{/if}}{{/foreach}}</span>
|
<span class="gh-card-author">By {{#foreach authors}}{{#if @first}}{{name}}{{else}}, {{name}}{{/if}}{{/foreach}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if @custom.show_post_date}}
|
{{#if @custom.show_publish_date}}
|
||||||
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
||||||
{{/if}}<!--
|
{{/if}}<!--
|
||||||
--></footer>
|
--></footer>
|
||||||
|
4
tag.hbs
4
tag.hbs
@ -4,7 +4,7 @@
|
|||||||
<main class="gh-main gh-outer">
|
<main class="gh-main gh-outer">
|
||||||
|
|
||||||
{{#tag}}
|
{{#tag}}
|
||||||
<section class="gh-archive{{#if feature_image}} has-image{{/if}}{{#if @custom.show_sidebar}} has-sidebar{{/if}} gh-inner">
|
<section class="gh-archive{{#if feature_image}} has-image{{/if}}{{#if @custom.show_site_in_sidebar}} has-sidebar{{/if}} gh-inner">
|
||||||
<div class="gh-archive-inner">
|
<div class="gh-archive-inner">
|
||||||
<header class="gh-archive-wrapper">
|
<header class="gh-archive-wrapper">
|
||||||
<h1 class="gh-article-title is-title">{{name}}</h1>
|
<h1 class="gh-article-title is-title">{{name}}</h1>
|
||||||
@ -17,6 +17,6 @@
|
|||||||
</section>
|
</section>
|
||||||
{{/tag}}
|
{{/tag}}
|
||||||
|
|
||||||
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_sidebar}}
|
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_site_in_sidebar}}
|
||||||
|
|
||||||
</main>
|
</main>
|
Loading…
Reference in New Issue
Block a user