- Remove duplicate home link in mobile nav - Remove overflow-hidden clipping main content - Improve mobile menu scrolling and spacing - Make top-header currencies wrap on small screens - Reduce site-header height on mobile - Add global mobile CSS overrides for tables, padding, fonts
This commit is contained in:
1 parent
bef458dbf8
commit
eba61d2fb9
6 files changed
+61
-10
No files matched your search
@@ -970,3 +970,54 @@ tbody tr:hover {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Mobile responsive overrides ──────────────────────────── */
|
||||
@media (max-width: 48rem) {
|
||||
h1 {
|
||||
font-size: clamp(1.25rem, 5vw, var(--size-heading-h1, 30px));
|
||||
}
|
||||
h2 {
|
||||
font-size: clamp(1.1rem, 4vw, var(--size-heading-h2, 22px));
|
||||
}
|
||||
.hero {
|
||||
padding: 1.25rem 1rem;
|
||||
}
|
||||
.card {
|
||||
padding: 0.85rem 1rem;
|
||||
}
|
||||
.admin-card {
|
||||
padding: 0.85rem;
|
||||
}
|
||||
.admin-filter-bar input,
|
||||
.admin-filter-bar select {
|
||||
min-width: 140px;
|
||||
}
|
||||
.admin-page td,
|
||||
.admin-page th {
|
||||
white-space: nowrap;
|
||||
padding: 0.5rem 0.6rem;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.stat-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
||||
}
|
||||
.btn {
|
||||
font-size: 13px;
|
||||
padding: 0.4rem 0.85rem;
|
||||
}
|
||||
.content-card-head {
|
||||
padding: 0.7rem 0.85rem;
|
||||
}
|
||||
.content-card-body {
|
||||
padding: 0.85rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* make tables scroll on small screens */
|
||||
@media (max-width: 640px) {
|
||||
table {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -91,9 +91,9 @@ export default async function RootLayout({ children }: { children: ReactNode })
|
||||
<TopHeader />
|
||||
<SiteHeader />
|
||||
<Navigation />
|
||||
<main className="overflow-hidden">
|
||||
<div className="mx-auto mt-10 grid max-w-7xl grid-cols-12 gap-x-3 gap-y-8 p-6 md:mt-0">
|
||||
<div className="col-span-12">{children}</div>
|
||||
<main>
|
||||
<div className="mx-auto mt-6 grid max-w-7xl grid-cols-12 gap-x-3 gap-y-6 px-4 py-4 md:mt-0 md:p-6">
|
||||
<div className="col-span-12 min-w-0">{children}</div>
|
||||
</div>
|
||||
</main>
|
||||
<SiteFooter />
|
||||
|
||||
Reference in new issue
Block a user