diff --git a/_scss/header/_navbar.scss b/_scss/header/_navbar.scss index ade38b6..ad6a09b 100644 --- a/_scss/header/_navbar.scss +++ b/_scss/header/_navbar.scss @@ -84,7 +84,7 @@ .nav__items { height: calc(100vh - 64px); max-height: 700px; - overflow-y: scroll; + list-style: none; .subscribe-button { list-style: none; padding: 14px 30px; @@ -169,4 +169,4 @@ @extend .mobile-nav-trigger; background-image: url('../img/closebutton-01.svg'); } -} \ No newline at end of file +} diff --git a/index.html b/index.html index 53ecd9e..8ca9032 100644 --- a/index.html +++ b/index.html @@ -2,8 +2,8 @@ - - + + Python Joinville @@ -16,7 +16,7 @@

Menu

@@ -290,5 +290,11 @@
+ + + diff --git a/js/index.js b/js/index.js index d574f84..4b96ae9 100644 --- a/js/index.js +++ b/js/index.js @@ -1,6 +1,3 @@ -import 'scss/index.scss'; -import ScrollTo from 'storm-scroll-to'; - class MobileNavManager { constructor() { this.mobileNav = document.querySelector('#mobile-nav'); @@ -51,9 +48,6 @@ class MobileNavManager { } this.mobileNav.classList.toggle('opened'); this.handleFocus(); - if (e.currentTarget.classList.contains('scroll')) { - e.preventDefault(); - } } get isOpened() { @@ -63,8 +57,11 @@ class MobileNavManager { document.addEventListener('DOMContentLoaded', () => { new MobileNavManager(); - ScrollTo.init('.scroll', { - offset: 120, - focus: false, - }); -}); \ No newline at end of file + + $('.nav__item .nav__anchor').click(function() { + var offset = $($(this).attr('href')).offset() + $('body').stop().animate({ + 'scrollTop': offset.top - $('.header__nav').height() + }, 900); + }) +});