hide mobile menu if browser is resized to full size (#937)
This commit is contained in:
parent
90c5bc26fc
commit
4da3a9d55f
2 changed files with 11 additions and 1 deletions
|
@ -229,6 +229,16 @@
|
||||||
list-style: none;
|
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 {
|
li.mobileMenuUser {
|
||||||
border-bottom: 1px solid #BBB;
|
border-bottom: 1px solid #BBB;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ const Mobile = {
|
||||||
self.toggleMenu()
|
self.toggleMenu()
|
||||||
},
|
},
|
||||||
toggleMenu: function() {
|
toggleMenu: function() {
|
||||||
$('#mobile_menu').toggle()
|
$('#mobile_menu').toggleClass('visible')
|
||||||
},
|
},
|
||||||
titleClick: function() {
|
titleClick: function() {
|
||||||
if (Active.Map) {
|
if (Active.Map) {
|
||||||
|
|
Loading…
Reference in a new issue