Fixes 447 - Hide mobile nav with css rather than js.

Also, removing random unused class.
This commit is contained in:
Anthony Mayer 2014-11-28 22:57:30 -08:00
parent 4b2326e105
commit dbf640ce2b
3 changed files with 3 additions and 7 deletions

View file

@ -25,10 +25,6 @@ Template[getTemplate('mobile_nav')].events({
} }
}); });
Template[getTemplate('mobile_nav')].rendered = function () {
$('.mobile-nav .dropdown-menu').hide();
};
Template[getTemplate('mobile_nav')].events({ Template[getTemplate('mobile_nav')].events({
'click .dropdown-top-level': function (e) { 'click .dropdown-top-level': function (e) {
e.preventDefault(); e.preventDefault();

View file

@ -100,6 +100,7 @@ $mobile-nav-width: 200px;
padding: 10px; padding: 10px;
} }
.dropdown-menu{ .dropdown-menu{
display: none;
background: #333; background: #333;
li{ li{
padding: 10px; padding: 10px;

View file

@ -83,6 +83,7 @@
} }
} }
} }
.search{ .search{
position: relative; position: relative;
.search-field{ .search-field{
@ -99,6 +100,7 @@
background: white; background: white;
&:focus{ &:focus{
outline:none; outline:none;
width: 200px;
} }
} }
&.empty{ &.empty{
@ -108,9 +110,6 @@
background: white; background: white;
} }
} }
.search-clear{
display: none;
}
} }
} }