Skip to content

Commit

Permalink
Merge pull request #1122 from VijaySamant4368/hamburger
Browse files Browse the repository at this point in the history
fix: Fixed Hamburger
  • Loading branch information
apu52 authored Jul 21, 2024
2 parents 5c0c7b2 + 210539d commit 9cf953b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
17 changes: 17 additions & 0 deletions pricing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,22 @@
</div>
</div>

<script>
// const menuButton = document.getElementsByClassName('link');
function closeNav() {
let list = document.querySelector('.navLinks');
list.classList.toggle('activeHamburger');
}
// menuButton.forEach((button) => (button.onclick = () => closeNav()));


hamburger = document.querySelector('.hamburger');
hamburger.addEventListener('click', () => {
let list = document.querySelector('.navLinks');
list.classList.toggle('activeHamburger');
})
</script>
</script>

</body>
</html>
10 changes: 9 additions & 1 deletion pricing/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ header {
position: relative;
z-index: 10;
margin-right: 20px;

}

.link a {
Expand Down Expand Up @@ -169,6 +168,10 @@ header {
}

@media screen and (max-width: 1220px) {

.newNav {
text-align: center;
}
.hamburger {
display: flex;
cursor: pointer;
Expand All @@ -194,6 +197,11 @@ header {
z-index: 10;
}

.navLinks li a {
font-weight: 600;
}


#toggle {
font-size: 0.6rem;
}
Expand Down

0 comments on commit 9cf953b

Please sign in to comment.