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;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.gh-navigation.is-stacked .gh-navigation-brand {
|
||||
min-height: unset;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.gh-navigation.is-stacked .gh-navigation-inner {
|
||||
padding: 0;
|
||||
@ -1036,6 +1042,34 @@ Search LOGO Login Subscribe
|
||||
.gh-header.is-magazine .gh-header-right .gh-card:last-child .gh-card-image {
|
||||
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) {
|
||||
@ -1058,6 +1092,17 @@ Search LOGO Login Subscribe
|
||||
.gh-header.is-magazine .gh-card-image {
|
||||
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 */
|
||||
@ -1287,7 +1332,7 @@ Search LOGO Login Subscribe
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
.gh-cta {
|
||||
margin-top: 4vw;
|
||||
margin-top: max(4vw, 40px);
|
||||
}
|
||||
|
||||
.gh-cta-inner {
|
||||
@ -1347,10 +1392,10 @@ Search LOGO Login Subscribe
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 12px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 600;
|
||||
font-weight: 550;
|
||||
letter-spacing: 0.025em;
|
||||
text-transform: uppercase;
|
||||
border-bottom: 1px solid var(--color-dark-border);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.gh-featured-feed {
|
||||
@ -1454,7 +1499,7 @@ Search LOGO Login Subscribe
|
||||
}
|
||||
|
||||
:is(.gh-featured, .gh-cta) + .gh-container {
|
||||
margin-top: 4vw;
|
||||
margin-top: max(4vw, 40px);
|
||||
}
|
||||
|
||||
.gh-header.is-classic:not(.has-image) + .gh-container {
|
||||
@ -1509,10 +1554,6 @@ Search LOGO Login Subscribe
|
||||
grid-column: 3 / span 12;
|
||||
}
|
||||
|
||||
.gh-container:not(.has-sidebar) .gh-container-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 1199px) {
|
||||
.gh-container-inner {
|
||||
display: block;
|
||||
@ -1532,8 +1573,8 @@ Search LOGO Login Subscribe
|
||||
margin-bottom: calc(var(--grid-gap) / 2);
|
||||
padding-bottom: 12px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.01em;
|
||||
font-weight: 550;
|
||||
letter-spacing: 0.025em;
|
||||
text-transform: uppercase;
|
||||
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. */
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<main class="gh-main gh-outer">
|
||||
|
||||
{{#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-wrapper">
|
||||
<h1 class="gh-article-title is-title">
|
||||
@ -38,6 +38,6 @@
|
||||
</section>
|
||||
{{/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>
|
2
home.hbs
2
home.hbs
@ -9,4 +9,4 @@
|
||||
|
||||
{{> "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 --}}
|
||||
|
||||
<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>
|
@ -166,12 +166,12 @@
|
||||
"default": true,
|
||||
"group": "homepage"
|
||||
},
|
||||
"show_post_date": {
|
||||
"show_publish_date": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"group": "homepage"
|
||||
},
|
||||
"show_sidebar": {
|
||||
"show_site_in_sidebar": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"group": "homepage"
|
||||
|
@ -98,7 +98,7 @@
|
||||
{{else}}
|
||||
{{#if @site.paid_members_enabled}}
|
||||
{{#unless @member.paid}}
|
||||
<button class="gh-button" data-portal="upgrade">Subscribe</button>
|
||||
<button class="gh-button" data-portal="upgrade">Upgrade</button>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
|
@ -26,7 +26,7 @@
|
||||
-->{{#if @custom.show_author}}
|
||||
<span class="gh-card-author">By {{#foreach authors}}{{#if @first}}{{name}}{{else}}, {{name}}{{/if}}{{/foreach}}</span>
|
||||
{{/if}}
|
||||
{{#if @custom.show_post_date}}
|
||||
{{#if @custom.show_publish_date}}
|
||||
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
||||
{{/if}}<!--
|
||||
--></footer>
|
||||
|
4
tag.hbs
4
tag.hbs
@ -4,7 +4,7 @@
|
||||
<main class="gh-main gh-outer">
|
||||
|
||||
{{#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">
|
||||
<header class="gh-archive-wrapper">
|
||||
<h1 class="gh-article-title is-title">{{name}}</h1>
|
||||
@ -17,6 +17,6 @@
|
||||
</section>
|
||||
{{/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>
|
Loading…
Reference in New Issue
Block a user