Revert "Pin beeper to v2"

This reverts commit f43f6c567f.
This commit is contained in:
Sodbileg Gansukh 2021-05-06 15:48:36 +08:00
parent f43f6c567f
commit 5013c91f1a
6 changed files with 12 additions and 29 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 .nav {
.gh-head-menu .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 .nav li {
.gh-head-menu .nav li {
margin: 0 2.5vmin 0 0;
padding: 0;
}
.gh-head .nav a {
.gh-head-menu .nav a {
display: inline-block;
padding: 5px 0;
opacity: 0.8
}
.gh-head .nav a:hover {
.gh-head-menu .nav a:hover {
opacity: 1;
}
@ -294,9 +294,7 @@ production stylesheet in assets/built/screen.css
width: 20px;
}
a.gh-head-button,
.gh-head .nav a[href*="#/portal/signup"],
.gh-head .nav a[href*="#/portal/account"] {
a.gh-head-button {
display: block;
padding: 8px 15px;
color: var(--color-darkgrey);
@ -306,21 +304,8 @@ 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}}{{#if @member}} logged-in{{/if}}">
<body class="{{body_class}}">
<div class="viewport">
<header id="gh-head" class="gh-head {{#if @site.cover_image}}has-cover{{/if}}">
@ -51,13 +51,11 @@
{{/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}} --}}
{{navigation type="secondary"}}
{{/unless}}
</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==