diff --git a/index.html b/index.html index de35a27..a64c23a 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + DApp Connect @@ -25,7 +25,11 @@ @@ -270,6 +274,6 @@ - + diff --git a/src/main.js b/src/main.js index 427bc27..205ca39 100644 --- a/src/main.js +++ b/src/main.js @@ -44,6 +44,7 @@ function isInViewport(element) { } document.querySelector('#burger').addEventListener('click', menuVisibility); +document.querySelector('.button--close').addEventListener('click', menuVisibility); window.addEventListener('resize', function () { if(window.innerWidth > 768) { document.querySelector('body').classList.remove('body-noScroll') diff --git a/src/styles.css b/src/styles.css index 8a090d1..b0051ea 100644 --- a/src/styles.css +++ b/src/styles.css @@ -9,7 +9,7 @@ @tailwind utilities; .menu-item:hover ul { - display: block; + @apply block } .menu-item:hover img { @@ -25,7 +25,6 @@ } #code br { - display: block; content: ""; - margin-top: 0; -} + @apply block mt-0 +} \ No newline at end of file