Spaces:
Sleeping
Sleeping
Mohammed AL Sarraj commited on
Commit ·
1b025e3
1
Parent(s): 4f6e998
fix: add comprehensive mobile responsive styles — sidebar collapse, grid stacking, text sizing
Browse files- app/templates/base.html +43 -1
app/templates/base.html
CHANGED
|
@@ -102,7 +102,49 @@ tailwind.config = {
|
|
| 102 |
.section-label { font-size:11px;font-weight:600;color:#636366;text-transform:uppercase;letter-spacing:.06em; }
|
| 103 |
.sys-label, .text-sys-label { color: #1C1C1E; }
|
| 104 |
@media (max-width: 768px) {
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
.flex-1.overflow-hidden { flex: 1 1 auto; min-width: 0; }
|
| 107 |
}
|
| 108 |
.hub-back-btn {
|
|
|
|
| 102 |
.section-label { font-size:11px;font-weight:600;color:#636366;text-transform:uppercase;letter-spacing:.06em; }
|
| 103 |
.sys-label, .text-sys-label { color: #1C1C1E; }
|
| 104 |
@media (max-width: 768px) {
|
| 105 |
+
/* Hide fixed sidebars */
|
| 106 |
+
aside.fixed, aside.w-64, aside.w-72, .shrink-0.w-64 {
|
| 107 |
+
display: none !important;
|
| 108 |
+
}
|
| 109 |
+
/* Remove sidebar margin from main content */
|
| 110 |
+
main.ml-64, main.ml-72, .ml-64, .ml-72 {
|
| 111 |
+
margin-left: 0 !important;
|
| 112 |
+
}
|
| 113 |
+
/* Fix header padding */
|
| 114 |
+
header.fixed, nav.fixed {
|
| 115 |
+
padding-left: 12px !important;
|
| 116 |
+
padding-right: 12px !important;
|
| 117 |
+
}
|
| 118 |
+
/* Stack 12-col grids */
|
| 119 |
+
.grid-cols-12 > .col-span-8,
|
| 120 |
+
.grid-cols-12 > .col-span-4 {
|
| 121 |
+
grid-column: span 12 !important;
|
| 122 |
+
}
|
| 123 |
+
/* Stack 2-col grids */
|
| 124 |
+
.grid-cols-2 {
|
| 125 |
+
grid-template-columns: 1fr !important;
|
| 126 |
+
}
|
| 127 |
+
/* Fix overflowing text */
|
| 128 |
+
.max-w-3xl, .max-w-4xl, .max-w-5xl, .max-w-7xl {
|
| 129 |
+
max-width: 100% !important;
|
| 130 |
+
padding-left: 16px !important;
|
| 131 |
+
padding-right: 16px !important;
|
| 132 |
+
}
|
| 133 |
+
/* Reduce padding on sections */
|
| 134 |
+
section.p-8, div.p-8 {
|
| 135 |
+
padding: 16px !important;
|
| 136 |
+
}
|
| 137 |
+
/* Fix hero text sizes */
|
| 138 |
+
.text-4xl, .text-5xl {
|
| 139 |
+
font-size: 1.75rem !important;
|
| 140 |
+
line-height: 1.2 !important;
|
| 141 |
+
}
|
| 142 |
+
/* Flex wrapping */
|
| 143 |
+
.flex.items-center.gap-3,
|
| 144 |
+
.flex.items-center.gap-4 {
|
| 145 |
+
flex-wrap: wrap;
|
| 146 |
+
}
|
| 147 |
+
/* Flex auto for main content */
|
| 148 |
.flex-1.overflow-hidden { flex: 1 1 auto; min-width: 0; }
|
| 149 |
}
|
| 150 |
.hub-back-btn {
|