Pin beeper to v2

Beeper started requiring ESM syntax from v3, and it caused an error when running development workflow
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module
This commit is contained in:
Sodbileg Gansukh 2021-05-06 12:28:54 +08:00
parent 69feef6c46
commit f43f6c567f
6 changed files with 29 additions and 12 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

@ -218,7 +218,7 @@ production stylesheet in assets/built/screen.css
font-weight: 500;
}
.gh-head-menu .nav {
.gh-head .nav {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
@ -227,18 +227,18 @@ production stylesheet in assets/built/screen.css
padding: 0;
}
.gh-head-menu .nav li {
.gh-head .nav li {
margin: 0 2.5vmin 0 0;
padding: 0;
}
.gh-head-menu .nav a {
.gh-head .nav a {
display: inline-block;
padding: 5px 0;
opacity: 0.8
}
.gh-head-menu .nav a:hover {
.gh-head .nav a:hover {
opacity: 1;
}
@ -294,7 +294,9 @@ production stylesheet in assets/built/screen.css
width: 20px;
}
a.gh-head-button {
a.gh-head-button,
.gh-head .nav a[href*="#/portal/signup"],
.gh-head .nav a[href*="#/portal/account"] {
display: block;
padding: 8px 15px;
color: var(--color-darkgrey);
@ -304,8 +306,21 @@ a.gh-head-button {
line-height: 1em;
background: #fff;
border-radius: 30px;
opacity: 1;
}
.logged-in .gh-head .nav a[href*="#/portal/signup"],
.gh-head .nav a[href*="#/portal/account"] {
display: none;
}
.logged-in .gh-head .nav a[href*="#/portal/account"] {
display: block;
}
.gh-head-actions .nav li {
margin: 0 0.8vmin;
}
/* Mobile Menu Trigger
/* ---------------------------------------------------------- */

View file

@ -18,7 +18,7 @@
{{ghost_head}}
</head>
<body class="{{body_class}}">
<body class="{{body_class}}{{#if @member}} logged-in{{/if}}">
<div class="viewport">
<header id="gh-head" class="gh-head {{#if @site.cover_image}}has-cover{{/if}}">
@ -51,11 +51,13 @@
{{/if}}
</div>
{{#unless @member}}
{{!-- {{#unless @member}}
<a class="gh-head-button" href="#/portal/signup">Subscribe</a>
{{else}}
<a class="gh-head-button" href="#/portal/account">Account</a>
{{/unless}}
{{/unless}} --}}
{{navigation type="secondary"}}
</div>
</nav>
</header>

View file

@ -48,7 +48,7 @@
"devDependencies": {
"@tryghost/release-utils": "0.6.12",
"autoprefixer": "10.2.5",
"beeper": "2.1.0",
"beeper": "^2.1.0",
"cssnano": "4.1.10",
"gscan": "4.0.0",
"gulp": "4.0.2",

View file

@ -509,7 +509,7 @@ bcrypt-pbkdf@^1.0.0:
dependencies:
tweetnacl "^0.14.3"
beeper@2.1.0:
beeper@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/beeper/-/beeper-2.1.0.tgz#3151990e42de31387909fdcc2c12623eb6eefb16"
integrity sha512-85+CcymhlP0jM4fs4ZMiMRl58VthoN9NRdvi+knXiQpP2UggkSre+A9rOZ0c2g2Vh+pEF5ZAlT+k8dsJNoanAA==