Skip to content

Commit

Permalink
Merge pull request #55 from chinkung/master
Browse files Browse the repository at this point in the history
Fix main logo drawing over nav overlay
  • Loading branch information
tomanistor committed Dec 20, 2018
2 parents 60b17e6 + 0321a43 commit 6df8c33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
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.

11 changes: 10 additions & 1 deletion static/scripts/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,19 @@
$$('.nav-full, main').forEach(function(el) {
el.classList.toggle('active')
})
this.querySelector('nav-icon').classList.toggle('nav-icon')
})
})

// Fix logoBig drawing over nav when click
// on logoSmall while nav open
$('.logo').addEventListener('click', function() {
if ($('.nav-full').classList.contains('active')) {
$$('.nav-full, main').forEach(function(el) {
el.classList.toggle('active')
})
}
})

// Disable scroll when full screen nav is open
$('body').addEventListener('click', function() {
if ($('.nav-full').classList.contains('active')) {
Expand Down

0 comments on commit 6df8c33

Please sign in to comment.