feat: responsive mobile layout and touch optimizations
This commit is contained in:
@@ -382,4 +382,77 @@ header nav a:hover::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile Responsiveness */
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
--header-height: 3.5rem;
|
||||
/* Compact header on mobile */
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 14px;
|
||||
/* Slightly smaller base font */
|
||||
}
|
||||
|
||||
/* Layout Adjustments */
|
||||
header {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
header nav a {
|
||||
margin-left: 1rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 1rem;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Typography Scaling */
|
||||
h1 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
/* Card Adjustments */
|
||||
.card {
|
||||
padding: 1.25rem;
|
||||
border-radius: var(--radius-md);
|
||||
/* Slightly smaller radius */
|
||||
}
|
||||
|
||||
/* Stack flex containers if needed (general util) */
|
||||
.flex-col-mobile {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
|
||||
/* Touch Targets */
|
||||
.btn,
|
||||
a,
|
||||
input,
|
||||
select {
|
||||
min-height: 44px;
|
||||
/* Compliance with touch target guidelines */
|
||||
}
|
||||
|
||||
/* Horizontal scroll for wide tables */
|
||||
.table-container {
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
margin-left: -1rem;
|
||||
margin-right: -1rem;
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user