Skip to content

Commit

Permalink
Fix an issue with the header on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Gomez committed Nov 13, 2019
1 parent 0a3e0a0 commit d81dafb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg"
},
"version": "0.5.9"
"version": "0.6.0"
}
2 changes: 2 additions & 0 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ $(document).ready(() => {
}

$openMenu.click(() => {
$header.addClass('mobile-menu-opened')
$menu.addClass('opened')
toggleScrollVertical()
})

$closeMenu.click(() => {
$header.removeClass('mobile-menu-opened')
$menu.removeClass('opened')
toggleScrollVertical()
})
Expand Down
8 changes: 8 additions & 0 deletions src/sass/components/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
padding: 20px 0;
}

&.mobile-menu-opened {
height: 100%;

@include respond-to('medium') {
height: auto;
}
}

&.headroom--pinned {
@include bs(0 4px 8px rgba(0, 0, 0, 0.05));
@include transform(translateY(0%));
Expand Down

0 comments on commit d81dafb

Please sign in to comment.