Merge pull request #922 from jsit/menuhiding

Fixing menu hiding behavior when switching from mobile width to desktop width
This commit is contained in:
Nicolas Lœuillet 2014-11-03 22:42:49 +01:00
commit fa6f5db97f
2 changed files with 4 additions and 1 deletions

View file

@ -987,6 +987,9 @@ pre code {
height: auto; height: auto;
padding-top: 3em; padding-top: 3em;
} }
#links.menu--open {
display: block;
}
footer { footer {
position: static; position: static;
margin-right: 3em; margin-right: 3em;

View file

@ -8,7 +8,7 @@ $.fn.ready(function() {
========================================================================== */ ========================================================================== */
$("#menu").click(function(){ $("#menu").click(function(){
$("#links").toggle(); $("#links").toggleClass('menu--open');
if ($('#content').hasClass('opacity03')) { if ($('#content').hasClass('opacity03')) {
$('#content').removeClass('opacity03'); $('#content').removeClass('opacity03');
} }