Skip to content

Commit

Permalink
adjust mobile menu styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahongsf committed Apr 25, 2024
1 parent 553b4ec commit 9951233
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions src/components/global/page-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ const PageHeader = async () => {
</div>
{globalMessageConfig && <GlobalMessage {...globalMessageConfig}/>}
<div className="relative bg-fog-light">
<div className="centered min-h-50 pr-24 lg:rs-py-2 lg:pr-0">
<div className="flex w-full justify-between">
<Lockup {...siteSettingsConfig} {...lockupSettingsConfig}/>
<div className="w-full border-b-2">
<div className="centered min-h-50 pr-24 rs-py-2 lg:pr-0">
<div className="flex w-full justify-between">
<Lockup {...siteSettingsConfig} {...lockupSettingsConfig}/>
</div>
</div>
</div>

Expand Down
10 changes: 5 additions & 5 deletions src/components/menu/main-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const MainMenu = ({ menuItems }: Props) => {
>
<button
ref={buttonRef}
className="flex flex-col items-center lg:hidden absolute top-5 right-10 group"
className="flex flex-col items-center lg:hidden absolute top-5 right-10 rs-py-2 group"
onClick={toggleMenu}
aria-expanded={menuOpen}
aria-labelledby={navId}
Expand Down Expand Up @@ -117,7 +117,7 @@ const MainMenu = ({ menuItems }: Props) => {
/>
))}

<li className="mb-0 pb-0">
<li className="hidden lg:block mb-0 pb-0">
<Link id="search" href="/search" className="h-full inline-block no-underline border-b-[4px] border-transparent px-5 pt-5 pb-10 border-b-[4px] hocus:border-spirited-light">
<MagnifyingGlassIcon width={25} className="text-archway-dark" />
</Link>
Expand Down Expand Up @@ -210,10 +210,10 @@ const MenuItem = ({
);

const chevronBtnStyles = clsx(
"shrink-0 relative right-10 lg:right-0 text-black bg-transparent lg:bg-transparent rounded-full lg:rounded-none lg:pr-5 lg:pb-6 lg:pl-2 lg:group-focus:border-b lg:group-hover:border-b-[4px] lg:group-focus:border-spirited-light lg:group-hover:border-spirited-light",
"shrink-0 relative pr-10 lg:right-0 text-black bg-transparent lg:bg-transparent lg:pr-5 lg:pb-6 lg:pl-2 lg:group-focus:border-b lg:group-hover:border-b-[4px] lg:group-focus:border-spirited-light lg:group-hover:border-spirited-light",
// Top menu item styles.
{
"lg:border-l-0 lg:border-b-[4px]": level === 0,
"border-b-[4px]": level === 0,
"border-spirited-light": level === 0 && isCurrent,
"border-transparent lg:border-spirited-light":
level === 0 && !isCurrent && inTrail,
Expand Down Expand Up @@ -242,7 +242,7 @@ const MenuItem = ({
{ "lg:border-b-0 first:border-t-0 lg:mr-10 lg:last:mr-0": level === 0 }
)}
>
<div className="group flex justify-between lg:justify-end">
<div className="group flex lg:justify-end">
<Link
id={linkId}
href={url || "#"}
Expand Down

0 comments on commit 9951233

Please sign in to comment.