Skip to content

Commit 5276f47

Browse files
committed
chore: bump upstream Casper to v5.4.10
2 parents d29399f + 23f7c30 commit 5276f47

File tree

7 files changed

+592
-331
lines changed

7 files changed

+592
-331
lines changed

assets/built/global.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ production stylesheet in assets/built/screen.css
66
77
1. Global Styles
88
2. Layout
9-
3. Special Templates
10-
4. Site Header
11-
5. Site Navigation
12-
6. Post Feed
13-
7. Single Post
14-
7.1. Post Byline
15-
7.2. Members Subscribe Form
16-
7.4. Related Posts
17-
7.5. Koenig Styles
18-
7.6 Comments
19-
8. Author Template
9+
3. Site Header
10+
4. Site Navigation
11+
5. Post Feed
12+
6. Single Post
13+
6.1. Post Byline
14+
6.2. Subscribe
15+
6.3. Read More
16+
6.4. Comments
17+
7. Author Template
18+
8. Tag Template
2019
9. Error Template
21-
11. Site Footer
22-
12. Dark Mode
20+
10. Site Footer
21+
11. Dark Mode
2322
2423
*/
2524

@@ -64,6 +63,7 @@ production stylesheet in assets/built/screen.css
6463
/* ---------------------------------------------------------- */
6564

6665
.viewport {
66+
position: relative;
6767
display: flex;
6868
flex-direction: column;
6969
min-height: 100vh;
@@ -87,7 +87,7 @@ production stylesheet in assets/built/screen.css
8787
}
8888

8989

90-
/* 4. Site Header
90+
/* 3. Site Header
9191
/* ---------------------------------------------------------- */
9292

9393
.site-header {
@@ -258,14 +258,15 @@ production stylesheet in assets/built/screen.css
258258
}
259259

260260

261-
/* 5. Site Navigation
261+
/* 4. Site Navigation
262262
/* ---------------------------------------------------------- */
263263

264264
.gh-head {
265265
height: 88px;
266266
font-size: 1.6rem;
267267
line-height: 1.3em;
268268
background-color: #fff;
269+
z-index: 150;
269270
}
270271

271272
.has-cover:not(.home-template) .gh-head {
@@ -843,7 +844,7 @@ production stylesheet in assets/built/screen.css
843844
}
844845

845846

846-
/* 6. Post Feed
847+
/* 5. Post Feed
847848
/* ---------------------------------------------------------- */
848849

849850
.post-feed {
@@ -1217,7 +1218,7 @@ html.no-infinite-scroll .pagination {
12171218
}
12181219

12191220

1220-
/* 7. Single Post
1221+
/* 6. Single Post
12211222
/* ---------------------------------------------------------- */
12221223

12231224
.article {
@@ -1696,7 +1697,7 @@ iframe.instagram-media + script + :not([id]) {
16961697
}
16971698

16981699

1699-
/* 7.1. Post Byline
1700+
/* 6.1. Post Byline
17001701
/* ---------------------------------------------------------- */
17011702

17021703
.article-byline {
@@ -1759,7 +1760,7 @@ iframe.instagram-media + script + :not([id]) {
17591760
}
17601761

17611762

1762-
/* 7.3. Subscribe
1763+
/* 6.2. Subscribe
17631764
/* ---------------------------------------------------------- */
17641765

17651766
.footer-cta {
@@ -1809,7 +1810,7 @@ iframe.instagram-media + script + :not([id]) {
18091810
}
18101811

18111812

1812-
/* 7.4. Read more
1813+
/* 6.3. Read more
18131814
/* ---------------------------------------------------------- */
18141815

18151816
.read-more-wrap {
@@ -1848,7 +1849,7 @@ iframe.instagram-media + script + :not([id]) {
18481849
}
18491850
}
18501851

1851-
/* 7.6. Comments
1852+
/* 6.4. Comments
18521853
/* ---------------------------------------------------------- */
18531854
.comments {
18541855
display: flex;
@@ -1886,7 +1887,7 @@ iframe.instagram-media + script + :not([id]) {
18861887
}
18871888

18881889

1889-
/* 8. Author Template
1890+
/* 7. Author Template
18901891
/* ---------------------------------------------------------- */
18911892

18921893
.author-profile-pic {
@@ -2020,7 +2021,7 @@ iframe.instagram-media + script + :not([id]) {
20202021
}
20212022

20222023

2023-
/* 11. Site Footer
2024+
/* 10. Site Footer
20242025
/* ---------------------------------------------------------- */
20252026

20262027
.site-footer {
@@ -2107,7 +2108,7 @@ iframe.instagram-media + script + :not([id]) {
21072108
}
21082109

21092110

2110-
/* 12. Dark Mode
2111+
/* 11. Dark Mode
21112112
/* ---------------------------------------------------------- */
21122113

21132114
html.dark-mode body {
@@ -2132,8 +2133,9 @@ html.dark-mode .gh-head {
21322133
color: #fff;
21332134
}
21342135

2135-
html.dark-mode .gh-burger-box {
2136-
color: #fff;
2136+
html.dark-mode .gh-burger::before,
2137+
html.dark-mode .gh-burger::after {
2138+
background-color: #fff;
21372139
}
21382140

21392141
html.dark-mode .site-header-content {
@@ -2267,7 +2269,7 @@ html.dark-mode .gh-content table:not(.gist table) td {
22672269
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
22682270
}
22692271

2270-
html.dark-mode .gh-content input {
2272+
html.dark-mode .gh-content :is(input, textarea) {
22712273
color: color-mod(var(--color-midgrey) l(-30%));
22722274
}
22732275

@@ -2316,8 +2318,9 @@ html.dark-mode .footer-cta-title {
23162318
color: #fff;
23172319
}
23182320

2319-
html.auto-color .gh-burger-box {
2320-
color: #fff;
2321+
html.auto-color .gh-burger::before,
2322+
html.auto-color .gh-burger::after {
2323+
background-color: #fff;
23212324
}
23222325

23232326
html.auto-color .site-header-content {
@@ -2451,7 +2454,7 @@ html.dark-mode .footer-cta-title {
24512454
border: color-mod(var(--color-darkmode) l(+8%)) 1px solid;
24522455
}
24532456

2454-
html.auto-color .gh-content input {
2457+
html.auto-color .gh-content :is(input, textarea) {
24552458
color: color-mod(var(--color-midgrey) l(-30%));
24562459
}
24572460

assets/js/dropdown.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
});
1717
}
1818

19+
var windowClickListener;
1920
const makeDropdown = function () {
2021
if (mediaQuery.matches) return;
2122
const submenuItems = [];
@@ -62,11 +63,12 @@
6263
document.body.classList.toggle('is-dropdown-open');
6364
});
6465

65-
window.addEventListener('click', function (e) {
66+
windowClickListener = function (e) {
6667
if (!toggle.contains(e.target) && document.body.classList.contains('is-dropdown-open')) {
6768
document.body.classList.remove('is-dropdown-open');
6869
}
69-
});
70+
};
71+
window.addEventListener('click', windowClickListener);
7072
}
7173

7274
imagesLoaded(head, function () {
@@ -75,6 +77,7 @@
7577

7678
window.addEventListener('resize', function () {
7779
setTimeout(function () {
80+
window.removeEventListener('click', windowClickListener);
7881
nav.innerHTML = navHTML;
7982
makeDropdown();
8083
}, 1);

default.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@
7171
{{@site.title}}
7272
{{/if}}
7373
</a>
74-
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
74+
<button class="gh-search gh-icon-btn" aria-label="Search this site" data-ghost-search>{{> "icons/search"}}</button>
7575
<button class="gh-burger"></button>
7676
</div>
7777

7878
<nav class="gh-head-menu">
7979
{{navigation}}
8080
{{#unless @site.members_enabled}}
8181
{{#match @custom.navigation_layout "Stacked"}}
82-
<button class="gh-search gh-icon-btn" data-ghost-search>{{> "icons/search"}}</button>
82+
<button class="gh-search gh-icon-btn" aria-label="Search this site" data-ghost-search>{{> "icons/search"}}</button>
8383
<div class="gh-social">
8484
{{#if @site.facebook}}
8585
<a class="gh-social-link" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="me noopener">{{> "icons/facebook"}}</a>
@@ -164,7 +164,7 @@
164164
<nav class="site-footer-nav">
165165
{{navigation type="secondary"}}
166166
</nav>
167-
<div><a href="https://ghost.org/" target="_blank" rel="noopener">Powered by Ghost</a></div>
167+
<div class="gh-powered-by"><a href="https://ghost.org/" target="_blank" rel="noopener">Powered by Ghost</a></div>
168168
</div>
169169
</footer>
170170

error.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{!--
22
33
There are two error files in this theme, one for 404s and one for all other errors.
4-
This file is the latter, and handle all 400/500 errors that might occur.
4+
This file is the latter, and handles all 400/500 errors that might occur.
55
6-
Because 500 errors in particular usuall happen when a server is struggling, this
6+
Because 500 errors in particular usually happen when a server is struggling, this
77
template is as simple as possible. No template dependencies, no JS, no API calls.
88
This is to prevent rendering the error-page itself compounding the issue causing
99
the error in the first place.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"autoprefixer": "10.4.7",
5252
"beeper": "2.1.0",
5353
"cssnano": "5.1.12",
54-
"gscan": "4.34.0",
54+
"gscan": "4.36.1",
5555
"gulp": "4.0.2",
5656
"gulp-concat": "2.6.1",
5757
"gulp-livereload": "4.0.2",
@@ -184,4 +184,4 @@
184184
"@tryghost:theme"
185185
]
186186
}
187-
}
187+
}

0 commit comments

Comments
 (0)