Fix an issue with the header on mobile

This commit is contained in:
Eduardo Gomez 2019-11-13 14:03:29 +01:00
parent 0a3e0a0ae4
commit d81dafb1c5
3 changed files with 11 additions and 1 deletions

View file

@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg", "desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg" "mobile": "assets/screenshot-mobile.jpg"
}, },
"version": "0.5.9" "version": "0.6.0"
} }

View file

@ -102,11 +102,13 @@ $(document).ready(() => {
} }
$openMenu.click(() => { $openMenu.click(() => {
$header.addClass('mobile-menu-opened')
$menu.addClass('opened') $menu.addClass('opened')
toggleScrollVertical() toggleScrollVertical()
}) })
$closeMenu.click(() => { $closeMenu.click(() => {
$header.removeClass('mobile-menu-opened')
$menu.removeClass('opened') $menu.removeClass('opened')
toggleScrollVertical() toggleScrollVertical()
}) })

View file

@ -12,6 +12,14 @@
padding: 20px 0; padding: 20px 0;
} }
&.mobile-menu-opened {
height: 100%;
@include respond-to('medium') {
height: auto;
}
}
&.headroom--pinned { &.headroom--pinned {
@include bs(0 4px 8px rgba(0, 0, 0, 0.05)); @include bs(0 4px 8px rgba(0, 0, 0, 0.05));
@include transform(translateY(0%)); @include transform(translateY(0%));