搜索框样式,顶部Sticky样式

This commit is contained in:
tangly
2021-12-05 14:05:15 +08:00
parent 490f05b448
commit ee3dcc6aa7
3 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ const handleScrollDown = () => {
nav && nav.classList.replace('top-0', '-top-16')
const stickyBar = document.querySelector('#sticky-bar')
stickyBar && stickyBar.classList.replace('top-16', 'top-0')
stickyBar && stickyBar.classList.replace('top-14', 'top-0')
const tocDrawerButton = document.querySelector('#toc-drawer-button')
tocDrawerButton && tocDrawerButton.classList.replace('hidden', 'block')
@@ -124,7 +124,7 @@ const handleScrollUp = () => {
nav && nav.classList.replace('-top-16', 'top-0')
const stickyBar = document.querySelector('#sticky-bar')
stickyBar && stickyBar.classList.replace('top-0', 'top-16')
stickyBar && stickyBar.classList.replace('top-0', 'top-14')
// const tocDrawerButton = document.querySelector('#toc-drawer-button')
// tocDrawerButton && tocDrawerButton.classList.replace('block', 'hidden')