master
xaoxuu 4 years ago
parent 9ab1ae6dc5
commit 3cba71753e
  1. 2
      _config.yml
  2. 1
      source/css/_layout/navbar.styl
  3. 4
      source/js/app.js

@ -7,7 +7,7 @@ info:
css:
# style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@1.7.4/css/style.css
js:
app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@1.7.4/js/app.js
# app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@1.7.4/js/app.js
# search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@1.7.4/js/search.js

@ -94,6 +94,7 @@
font-size: $fontsize-body
font-family: $fontfamily
@media screen and (max-width: $device-mobile)
padding: 0 $gap
letter-spacing: -0.5px
padding-top: 1px

@ -50,14 +50,14 @@ var customSearch;
const $coverAnchor = $('.cover-wrapper');
var showHeaderPoint = 0;
if ($coverAnchor[0]) {
showHeaderPoint = $coverAnchor[0].clientHeight - 80;
showHeaderPoint = $coverAnchor[0].clientHeight - 180;
}
var pos = document.body.scrollTop;
$(document, window).scroll(() => {
const scrollTop = $(window).scrollTop();
const del = scrollTop - pos;
pos = scrollTop;
if (scrollTop > 150) {
if (scrollTop > 180) {
$topBtn.addClass('show');
if (del > 0) {
$topBtn.removeClass('hl');

Loading…
Cancel
Save