Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile styling improvements #137

Merged
merged 4 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/theme/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Logo() {
className="text-gray-900 hover:text-brand-700 dark:text-gray-50 dark:hover:text-brand-500"
aria-label="Go to homepage"
>
<LogoSvg aria-hidden className="h-12 mb-3" />
<LogoSvg aria-hidden className="h-9 mb-2 sm:h-12 sm:mb-3" />
</Link>
);
}
2 changes: 1 addition & 1 deletion src/theme/Navbar/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function NavbarContent() {

return (
<div className="flex text-white justify-between container mx-auto p-4 navbar">
<div className="flex items-center gap-6">
<div className="flex items-center gap-4 sm:gap-6">
<NavbarMobileSidebarToggle />
<NavbarLogo />
<div className="hidden md:flex items-center gap-6">
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Navbar/MobileSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function CloseButton() {
<button
type="button"
aria-label="Close navigation bar"
className="absolute top-6 right-6 p-4 text-gray-900 hover:text-brand-700 dark:text-gray-50 dark:hover:text-brand-500 transition-colors"
className="absolute top-6 right-6 p-3 sm:p-4 text-gray-900 hover:text-brand-700 dark:text-gray-50 dark:hover:text-brand-500 transition-colors"
onClick={() => mobileSidebar.toggle()}
>
<IconClose />
Expand Down