Nischal Subedi commited on
Commit
2f0012b
·
1 Parent(s): 766e7a1
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -334,13 +334,18 @@ Answer:"""
334
  --error-text: #FF6666;
335
  }
336
 
 
 
 
 
 
337
  /* Base container improvements */
338
  .gradio-container {
339
  max-width: 900px !important; /* Slightly smaller for focused content */
340
  margin: 0 auto !important; /* Center the whole app */
341
  padding: 1.5rem !important;
342
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
343
- background-color: var(--background-secondary) !important; /* Overall background */
344
  box-shadow: none !important; /* Remove default gradio container shadow */
345
  }
346
  /* Ensure all main content sections have primary background */
@@ -756,10 +761,8 @@ Answer:"""
756
  }
757
  """
758
 
759
- # Using gr.Blocks with the specified theme and custom CSS
760
- # Note: While a theme is specified, most stylistic aspects are overridden by custom_css.
761
- # This keeps the underlying Gradio structure but allows full visual control.
762
- with gr.Blocks(theme="shivi/calm_seafoam", css=custom_css, title="Landlord-Tenant Rights Assistant") as demo:
763
  # Header Section - uses gr.Group for distinct card-like styling
764
  with gr.Group(elem_classes="app-header-wrapper"):
765
  # Markdown used for flexible styling and auto-centering via CSS
 
334
  --error-text: #FF6666;
335
  }
336
 
337
+ /* Ensure the very outer background is also set, overriding any Gradio defaults */
338
+ body, html {
339
+ background-color: var(--background-secondary) !important;
340
+ }
341
+
342
  /* Base container improvements */
343
  .gradio-container {
344
  max-width: 900px !important; /* Slightly smaller for focused content */
345
  margin: 0 auto !important; /* Center the whole app */
346
  padding: 1.5rem !important;
347
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
348
+ background-color: var(--background-secondary) !important; /* Overall background of the container */
349
  box-shadow: none !important; /* Remove default gradio container shadow */
350
  }
351
  /* Ensure all main content sections have primary background */
 
761
  }
762
  """
763
 
764
+ # Using gr.Blocks with custom CSS only to ensure no blue colors are inherited from a theme.
765
+ with gr.Blocks(css=custom_css, title="Landlord-Tenant Rights Assistant") as demo:
 
 
766
  # Header Section - uses gr.Group for distinct card-like styling
767
  with gr.Group(elem_classes="app-header-wrapper"):
768
  # Markdown used for flexible styling and auto-centering via CSS