DawnC commited on
Commit
eeadf3f
1 Parent(s): 482e9e8

Update styles.py

Browse files
Files changed (1) hide show
  1. styles.py +29 -0
styles.py CHANGED
@@ -1157,4 +1157,33 @@ def get_css_styles():
1157
 
1158
  }
1159
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1160
  """
 
1157
 
1158
  }
1159
 
1160
+ /* Responsive styles */
1161
+ @media (max-width: 768px) {
1162
+ .container { width: 100% !important; padding: 10px !important; }
1163
+ .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
1164
+ .tab-nav { display: flex; flex-wrap: nowrap; }
1165
+ .tab-nav button {
1166
+ white-space: nowrap;
1167
+ padding: clamp(8px, 2vw, 16px) !important;
1168
+ }
1169
+ .image-container img {
1170
+ max-width: 100% !important;
1171
+ height: auto !important;
1172
+ }
1173
+ .flex-container { flex-direction: column !important; }
1174
+ .upload-box { min-height: 120px !important; }
1175
+ .gradio-group { margin: 8px 0 !important; }
1176
+
1177
+ /* Improve touch targets */
1178
+ button, select, input[type="checkbox"] {
1179
+ min-height: 44px !important;
1180
+ min-width: 44px !important;
1181
+ }
1182
+
1183
+ /* Responsive typography */
1184
+ h1 { font-size: clamp(1.8rem, 4vw, 2.5em) !important; }
1185
+ h2 { font-size: clamp(1rem, 2vw, 1.2em) !important; }
1186
+ p { font-size: clamp(0.8rem, 1.5vw, 0.9em) !important; }
1187
+ }
1188
+
1189
  """