Skip to content

Commit

Permalink
fix nav links do not reappear after resizing (#1502)
Browse files Browse the repository at this point in the history
* fix nav links do not reppear after resizing

* fix nav links do not reappear after resizing #1502

* fixed overlay display issues

* fix overlay display bug
  • Loading branch information
aastha-cse committed May 31, 2024
1 parent 72ad1fd commit 063e1ea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 8 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,14 @@ h2 a {
display: none;
}

#navmenu.opens {
display: block;
}

#overlay.blurs{
display: block;
}

#navmenu > li {
float: none;
border-bottom: 1px solid #ccc;
Expand Down
14 changes: 10 additions & 4 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,16 @@ $(function(){
})

// show mobile menu
$('#nav-button, #overlay').click(function () {
$('#navmenu').toggle()
$('#overlay').toggle()
})
$('#nav-button').click(function () {
$('#navmenu').toggleClass('opens');
$('#overlay').toggleClass('blurs');
});

// close mobile menu
$('#overlay').click(function () {
$('#navmenu').removeClass('opens');
$('#overlay').removeClass('blurs');
});

// dropdown menu

Expand Down

0 comments on commit 063e1ea

Please sign in to comment.