Skip to content

Commit

Permalink
feat(header): fix mobile menu padding
Browse files Browse the repository at this point in the history
Make sure all items are accessible.
  • Loading branch information
Vheissu committed Dec 16, 2024
1 parent a999395 commit 748bd05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion themes/aurelia-theme/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,18 @@
100% {
background-position: 0% 50%;
}
50% {
50% {
background-position: 100% 50%;
}
}

.pt-safe {
padding-top: calc(var(--nav-height) + 2rem);
}

.pb-safe {
padding-bottom: var(--nav-height);
}
}

html {
Expand Down
2 changes: 1 addition & 1 deletion themes/aurelia-theme/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h3 class="text-xs font-semibold text-gray-400 uppercase tracking-wider">{{ .tit
</div>

<!-- Mobile Menu -->
<div class="hidden md:hidden fixed inset-x-0 left-0 top-16 h-[calc(100vh-4rem)] bg-white z-40 border-t border-gray-100 w-full" id="mobile-menu">
<div class="hidden md:hidden fixed inset-x-0 left-0 top-16 h-[calc(100vh-4rem)] bg-white z-40 border-t border-gray-100 w-full overflow-y-auto pb-safe" id="mobile-menu">
<div class="h-full w-full">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="py-4 space-y-2">
Expand Down

0 comments on commit 748bd05

Please sign in to comment.