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

View File

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

View File

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

View File

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