hide mobile menu if browser is resized to full size (#937)

This commit is contained in:
Devin Howard 2016-11-28 13:53:29 -05:00 committed by GitHub
parent 90c5bc26fc
commit 4da3a9d55f
2 changed files with 11 additions and 1 deletions

View file

@ -229,6 +229,16 @@
list-style: none;
}
/*
* the mobile menu, even if it's been opened by a user, should
* not show up if they resize their browser back to full size
*/
@media only screen and (max-width : 504px) {
#mobile_menu.visible {
display: block;
}
}
li.mobileMenuUser {
border-bottom: 1px solid #BBB;
}

View file

@ -22,7 +22,7 @@ const Mobile = {
self.toggleMenu()
},
toggleMenu: function() {
$('#mobile_menu').toggle()
$('#mobile_menu').toggleClass('visible')
},
titleClick: function() {
if (Active.Map) {