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; font-weight: 500;
} }
.gh-head .nav { .gh-head-menu .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 .nav li { .gh-head-menu .nav li {
margin: 0 2.5vmin 0 0; margin: 0 2.5vmin 0 0;
padding: 0; padding: 0;
} }
.gh-head .nav a { .gh-head-menu .nav a {
display: inline-block; display: inline-block;
padding: 5px 0; padding: 5px 0;
opacity: 0.8 opacity: 0.8
} }
.gh-head .nav a:hover { .gh-head-menu .nav a:hover {
opacity: 1; opacity: 1;
} }
@ -294,9 +294,7 @@ 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);
@ -306,21 +304,8 @@ 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}}{{#if @member}} logged-in{{/if}}"> <body class="{{body_class}}">
<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,13 +51,11 @@
{{/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==