Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling updates #41

Merged
merged 4 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ dist

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

.vs-code
# yarn v2
.yarn/cache
.yarn/unplugged
Expand Down
1 change: 1 addition & 0 deletions docs/assets/img/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/assets/script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ function scrollHandler() {
if (Math.abs(lastScrollTop - scrollTop) <= delta) return
if (scrollTop > lastScrollTop && scrollTop > headerHeight) {
header.classList.add('header-up')
header.classList.remove('header-visible')
} else if (scrollTop < lastScrollTop) {
header.classList.remove('header-up')
header.classList.add('header-visible')
}
if (scrollTop > headerHeight) {
header.classList.add('has-scroll')
} else {
header.classList.remove('has-scroll')
}
lastScrollTop = scrollTop <= 0 ? 0 : scrollTop

Expand Down
Loading
Loading