Skip to content

Commit

Permalink
corrige abertura do menu
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgimenez committed Oct 8, 2019
1 parent dc6e34b commit 0e8fcdf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions assets/js/geral.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jQuery(document).ready(function($) {
$( '.menu-logo-toggle' ).removeClass( 'open' );
csem_menu_open = false;
} else {
$( 'html, body' ).animate({
scrollTop: 0
}, 800, function(){
$( '.menu-logo-toggle' ).addClass( 'open' );
$( '.csem-open-menu' ).addClass( 'open' );
setTimeout(function(){ csem_menu_open = true }, 540 );
});
$( '.menu-logo-toggle' ).addClass( 'open' );
$( '.csem-open-menu' ).addClass( 'open' );
setTimeout(function(){ csem_menu_open = true }, 540 );
}
});
$( '#site-navigation ul li a' ).on( 'click', function(){
if ( csem_menu_open ) {
$( '.csem-open-menu' ).trigger( 'click' );
}
});
$( window ).load( function() {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ html.fp-enabled,
* GERAL - Menu Lateral com toggle
*/
.menu-logo-toggle {
position: absolute;
position: fixed;
width: 45vw;
top:0;
left:-50vw;
Expand Down

0 comments on commit 0e8fcdf

Please sign in to comment.