Skip to content

Commit ed31476

Browse files
Various bug fixes
1 parent 3169b71 commit ed31476

File tree

10 files changed

+64
-23
lines changed

10 files changed

+64
-23
lines changed

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,12 @@ Search LOGO Login Subscribe
552552
min-height: 80px;
553553
}
554554

555+
@media (max-width: 767px) {
556+
.gh-navigation.is-stacked .gh-navigation-brand {
557+
min-height: unset;
558+
}
559+
}
560+
555561
@media (min-width: 992px) {
556562
.gh-navigation.is-stacked .gh-navigation-inner {
557563
padding: 0;
@@ -1036,6 +1042,34 @@ Search LOGO Login Subscribe
10361042
.gh-header.is-magazine .gh-header-right .gh-card:last-child .gh-card-image {
10371043
display: block;
10381044
}
1045+
1046+
.gh-header.is-magazine .gh-header-right {
1047+
position: relative;
1048+
}
1049+
1050+
.gh-header.is-magazine .gh-header-right::before {
1051+
position: absolute;
1052+
top: calc(var(--grid-gap) / -2);
1053+
left: 0;
1054+
content: "";
1055+
width: 100%;
1056+
height: 1px;
1057+
background-color: var(--color-border);
1058+
}
1059+
1060+
.gh-header.is-magazine .gh-header-right .gh-card::before {
1061+
display: none;
1062+
}
1063+
1064+
.gh-header.is-magazine .gh-header-right .gh-card::after {
1065+
position: absolute;
1066+
top: 0;
1067+
right: calc(var(--grid-gap) / -2);
1068+
content: "";
1069+
width: 1px;
1070+
height: 100%;
1071+
background-color: var(--color-border);
1072+
}
10391073
}
10401074

10411075
@media (max-width: 991px) {
@@ -1058,6 +1092,17 @@ Search LOGO Login Subscribe
10581092
.gh-header.is-magazine .gh-card-image {
10591093
display: block !important;
10601094
}
1095+
1096+
.gh-header.is-magazine .gh-card::before {
1097+
display: block !important;
1098+
position: absolute;
1099+
top: calc(var(--grid-gap) / -2);
1100+
left: 0;
1101+
content: "";
1102+
width: 100%;
1103+
height: 1px;
1104+
background-color: var(--color-border);
1105+
}
10611106
}
10621107

10631108
/* 8.2. Highlight layout */
@@ -1287,7 +1332,7 @@ Search LOGO Login Subscribe
12871332
/* ---------------------------------------------------------- */
12881333

12891334
.gh-cta {
1290-
margin-top: 4vw;
1335+
margin-top: max(4vw, 40px);
12911336
}
12921337

12931338
.gh-cta-inner {
@@ -1347,10 +1392,10 @@ Search LOGO Login Subscribe
13471392
margin-bottom: 20px;
13481393
padding-bottom: 12px;
13491394
font-size: 1.2rem;
1350-
font-weight: 600;
1395+
font-weight: 550;
13511396
letter-spacing: 0.025em;
13521397
text-transform: uppercase;
1353-
border-bottom: 1px solid var(--color-dark-border);
1398+
border-bottom: 1px solid var(--color-border);
13541399
}
13551400

13561401
.gh-featured-feed {
@@ -1454,7 +1499,7 @@ Search LOGO Login Subscribe
14541499
}
14551500

14561501
:is(.gh-featured, .gh-cta) + .gh-container {
1457-
margin-top: 4vw;
1502+
margin-top: max(4vw, 40px);
14581503
}
14591504

14601505
.gh-header.is-classic:not(.has-image) + .gh-container {
@@ -1509,10 +1554,6 @@ Search LOGO Login Subscribe
15091554
grid-column: 3 / span 12;
15101555
}
15111556

1512-
.gh-container:not(.has-sidebar) .gh-container-title {
1513-
display: none;
1514-
}
1515-
15161557
@media (max-width: 1199px) {
15171558
.gh-container-inner {
15181559
display: block;
@@ -1532,8 +1573,8 @@ Search LOGO Login Subscribe
15321573
margin-bottom: calc(var(--grid-gap) / 2);
15331574
padding-bottom: 12px;
15341575
font-size: 1.2rem;
1535-
font-weight: 500;
1536-
letter-spacing: 0.01em;
1576+
font-weight: 550;
1577+
letter-spacing: 0.025em;
15371578
text-transform: uppercase;
15381579
border-bottom: 1px solid var(--color-border);
15391580
}
@@ -1846,7 +1887,7 @@ created within the Ghost editor. The main content handles
18461887
headings, text, images and lists. We deal with cards lower down. */
18471888

18481889
.gh-content {
1849-
font-size: calc(var(--content-font-size, 1.7rem) * var(--font-multiplier, 1));
1890+
font-size: calc(var(--content-font-size, 1.7rem) * var(--factor, 1));
18501891
letter-spacing: -0.01em;
18511892
}
18521893

author.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<main class="gh-main gh-outer">
55

66
{{#author}}
7-
<section class="gh-archive{{#if @custom.show_sidebar}} has-sidebar{{/if}} gh-inner">
7+
<section class="gh-archive{{#if @custom.show_site_in_sidebar}} has-sidebar{{/if}} gh-inner">
88
<div class="gh-archive-inner">
99
<div class="gh-archive-wrapper">
1010
<h1 class="gh-article-title is-title">
@@ -38,6 +38,6 @@
3838
</section>
3939
{{/author}}
4040

41-
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_sidebar}}
41+
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_site_in_sidebar}}
4242

4343
</main>

home.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
{{> "components/cta"}}
1111

12-
{{> "components/post-list" feed="home" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_sidebar}}
12+
{{> "components/post-list" feed="home" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_site_in_sidebar}}

index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
{{!-- The tag above means: insert everything in this file into the body of the default.hbs template --}}
33

44
<main class="gh-main">
5-
{{> "components/post-list" feed="index" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_sidebar}}
5+
{{> "components/post-list" feed="index" postFeedStyle=@custom.post_feed_style showTitle=true showSidebar=@custom.show_site_in_sidebar}}
66
</main>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@
166166
"default": true,
167167
"group": "homepage"
168168
},
169-
"show_post_date": {
169+
"show_publish_date": {
170170
"type": "boolean",
171171
"default": true,
172172
"group": "homepage"
173173
},
174-
"show_sidebar": {
174+
"show_site_in_sidebar": {
175175
"type": "boolean",
176176
"default": false,
177177
"group": "homepage"

partials/components/post-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
{{else}}
9999
{{#if @site.paid_members_enabled}}
100100
{{#unless @member.paid}}
101-
<button class="gh-button" data-portal="upgrade">Subscribe</button>
101+
<button class="gh-button" data-portal="upgrade">Upgrade</button>
102102
{{/unless}}
103103
{{/if}}
104104
{{/unless}}

partials/post-card.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
-->{{#if @custom.show_author}}
2727
<span class="gh-card-author">By {{#foreach authors}}{{#if @first}}{{name}}{{else}}, {{name}}{{/if}}{{/foreach}}</span>
2828
{{/if}}
29-
{{#if @custom.show_post_date}}
29+
{{#if @custom.show_publish_date}}
3030
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
3131
{{/if}}<!--
3232
--></footer>

tag.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<main class="gh-main gh-outer">
55

66
{{#tag}}
7-
<section class="gh-archive{{#if feature_image}} has-image{{/if}}{{#if @custom.show_sidebar}} has-sidebar{{/if}} gh-inner">
7+
<section class="gh-archive{{#if feature_image}} has-image{{/if}}{{#if @custom.show_site_in_sidebar}} has-sidebar{{/if}} gh-inner">
88
<div class="gh-archive-inner">
99
<header class="gh-archive-wrapper">
1010
<h1 class="gh-article-title is-title">{{name}}</h1>
@@ -17,6 +17,6 @@
1717
</section>
1818
{{/tag}}
1919

20-
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_sidebar}}
20+
{{> "components/post-list" feed="archive" postFeedStyle=@custom.post_feed_style showTitle=false showSidebar=@custom.show_site_in_sidebar}}
2121

2222
</main>

0 commit comments

Comments
 (0)