🩹 Fix main content alignment under menu overlay

pull/236/head
James Panther 2022-06-28 09:47:30 +10:00
parent 495cbc683d
commit c0494b25a4
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
4 changed files with 8 additions and 10 deletions

View File

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
### Fixed
- Main content misaligned when hamburger menu is opened at large viewport sizes
## [2.3.0] - 2022-06-27
### Added

View File

@ -1018,8 +1018,7 @@ body button {
/* Hamburger menu */
body:has(#menu-controller:checked) {
position: fixed;
overflow-y: scroll;
overflow-y: hidden;
}
#menu-button:has(#menu-controller:checked) {
@ -1772,11 +1771,6 @@ body:has(#menu-controller:checked) {
margin-bottom: 0px;
}
.mx-4 {
margin-left: 1rem;
margin-right: 1rem;
}
.mb-3 {
margin-bottom: 0.75rem;
}

View File

@ -23,7 +23,7 @@ body button {
/* Hamburger menu */
body:has(#menu-controller:checked) {
@apply fixed overflow-y-scroll;
@apply overflow-y-hidden;
}
#menu-button:has(#menu-controller:checked) {
@apply invisible;

View File

@ -34,10 +34,10 @@
</div>
<div
id="menu-wrapper"
class="fixed inset-0 z-30 invisible w-screen h-screen px-6 py-6 overflow-auto transition-opacity opacity-0 cursor-default sm:px-14 md:px-24 lg:px-32 sm:py-10 sm:pt-10 bg-neutral-100/50 backdrop-blur-sm dark:bg-neutral-900/50"
class="fixed inset-0 z-30 invisible w-screen h-screen m-auto overflow-auto transition-opacity opacity-0 cursor-default bg-neutral-100/50 backdrop-blur-sm dark:bg-neutral-900/50"
>
<ul
class="flex flex-col m-auto mx-4 overflow-visible list-none ltr:text-right rtl:text-left max-w-7xl"
class="flex flex-col w-full px-6 py-6 mx-auto overflow-visible list-none ltr:text-right rtl:text-left max-w-7xl sm:px-14 md:px-24 lg:px-32 sm:py-10 sm:pt-10"
>
<li class="mb-1">
<span class="cursor-pointer hover:text-primary-600 dark:hover:text-primary-400"