Kasualdad commited on
Commit
beed4e4
·
1 Parent(s): a6449ab

Cap borders at 1px and harden 960px max-width on parent wrappers

Browse files
Files changed (1) hide show
  1. app.py +26 -1
app.py CHANGED
@@ -287,6 +287,13 @@ catalyst_theme = gr.themes.Base(
287
  # Phase 2: Targeted CSS for Layout and Catalyst Components
288
  CUSTOM_CSS = """\\
289
  /* ── Layout ────────────────────────────────────────────────────────── */
 
 
 
 
 
 
 
290
  .gradio-container {
291
  max-width: 960px !important;
292
  width: 100% !important;
@@ -319,6 +326,24 @@ html.dark, html.dark .gradio-container, .dark, .dark .gradio-container {
319
  --button-primary-text-color: #FFFFFF !important;
320
  --border-color-primary: rgba(17, 24, 39, 0.10) !important;
321
  --block-border-width: 0px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  }
323
 
324
  /* Hide Gradio chrome */
@@ -344,7 +369,7 @@ textarea::placeholder {
344
 
345
  .gradio-container input:focus, .gradio-container textarea:focus {
346
  outline: none !important;
347
- box-shadow: 0 0 0 2px var(--body-background-fill), 0 0 0 4px var(--input-border-color-focus) !important;
348
  }
349
 
350
  /* ── Your question textarea ───── */
 
287
  # Phase 2: Targeted CSS for Layout and Catalyst Components
288
  CUSTOM_CSS = """\\
289
  /* ── Layout ────────────────────────────────────────────────────────── */
290
+ body, #root, .gradio-container, .gradio-container > .main, .gradio-container .app {
291
+ max-width: 960px !important;
292
+ width: 100% !important;
293
+ margin-left: auto !important;
294
+ margin-right: auto !important;
295
+ box-sizing: border-box !important;
296
+ }
297
  .gradio-container {
298
  max-width: 960px !important;
299
  width: 100% !important;
 
326
  --button-primary-text-color: #FFFFFF !important;
327
  --border-color-primary: rgba(17, 24, 39, 0.10) !important;
328
  --block-border-width: 0px !important;
329
+ --input-border-width: 1px !important;
330
+ --input-shadow-focus: none !important;
331
+ --input-shadow: none !important;
332
+ --input-shadow-focus-dark: none !important;
333
+ --input-shadow-dark: none !important;
334
+ --block-shadow: none !important;
335
+ --block-shadow-dark: none !important;
336
+ }
337
+
338
+ /* Cap every border / outline at 1px globally */
339
+ .gradio-container, .gradio-container * {
340
+ border-width: 0 0 1px 0 !important;
341
+ outline-width: 1px !important;
342
+ }
343
+ /* Restore 1px full borders where the layout actually uses one (cards, dropdown) */
344
+ .domain-col, .domain-dropdown .dropdown-menu, .option, .gradio-container input,
345
+ .gradio-container textarea, .gradio-container select {
346
+ border-width: 1px !important;
347
  }
348
 
349
  /* Hide Gradio chrome */
 
369
 
370
  .gradio-container input:focus, .gradio-container textarea:focus {
371
  outline: none !important;
372
+ box-shadow: 0 0 0 1px var(--input-border-color-focus) !important;
373
  }
374
 
375
  /* ── Your question textarea ───── */