This commit is contained in:
tangly1024
2021-10-13 13:32:35 +08:00
parent 8aefd5546a
commit 04a7b34917
3 changed files with 0 additions and 3 deletions

View File

@@ -11,7 +11,6 @@ const Container = ({ children, layout, fullWidth, tags, meta, ...customMeta }) =
const scrollS = window.scrollY
const nav = document.querySelector('#sticky-nav')
const tagsBar = document.querySelector('#tags-bar')
console.log(windowTop, scrollS)
if (scrollS >= windowTop) {
nav && nav.classList.add('-mt-16')
tagsBar && tagsBar.classList.add('-mt-32')