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

Fix for when nav has too many items #63

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
added display: block/none so nav is centered until smaller logo shows
  • Loading branch information
NorseGaud committed May 27, 2019
commit 9e2a7195ae6b58216a5d8d824c765de9c02324b2
2 changes: 1 addition & 1 deletion static/scripts/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions static/scripts/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
$('nav').classList.add('nav-fixed')
$$('nav > .logo, nav > .nav-toggle').forEach(function(el) {
el.style.visibility = 'visible'
e.style.display="block"
el.classList.add('show')
el.classList.remove('hide')
})
Expand All @@ -24,6 +25,7 @@
$('nav').classList.remove('nav-fixed')
$$('nav > .logo, nav > .nav-toggle').forEach(function(el) {
el.style.visibility = 'hidden'
e.style.display="none"
el.classList.add('hide')
el.classList.remove('show')
})
Expand Down