abir-hr196 commited on
Commit
21f5d8b
·
1 Parent(s): 423afa9
Files changed (1) hide show
  1. app.py +22 -7
app.py CHANGED
@@ -10,23 +10,38 @@ custom_css = """
10
  --martian-gray-medium: #2A2A2A;
11
  }
12
 
13
- /* FORCE DARK MODE EVERYWHERE */
14
- .gradio-container, .gradio-container *, body, html {
 
 
 
 
 
 
15
  background-color: var(--martian-black) !important;
16
- color: #E0E0E0 !important;
17
  color-scheme: dark !important;
18
  }
19
 
20
- /* Force dark backgrounds on all elements */
21
- div, section, .block, .panel, .form, .input-wrap {
 
 
22
  background-color: var(--martian-black) !important;
23
  }
24
 
25
- /* Force text colors */
26
- h1, h2, h3, h4, h5, h6, p, span, label, div, strong {
 
 
27
  color: #E0E0E0 !important;
28
  }
29
 
 
 
 
 
 
 
30
  /* TABS - Bigger and bolder */
31
  .tab-nav {
32
  border-bottom: 2px solid var(--martian-gray-dark) !important;
 
10
  --martian-gray-medium: #2A2A2A;
11
  }
12
 
13
+ /* FORCE DARK MODE - But preserve styled boxes */
14
+ .gradio-container,
15
+ body,
16
+ html,
17
+ .contain,
18
+ .app,
19
+ #root,
20
+ .main {
21
  background-color: var(--martian-black) !important;
 
22
  color-scheme: dark !important;
23
  }
24
 
25
+ /* Only force black on main structural elements, not everything */
26
+ .gradio-container > div,
27
+ .contain > div,
28
+ .app > div {
29
  background-color: var(--martian-black) !important;
30
  }
31
 
32
+ /* Text should NOT have backgrounds */
33
+ h1, h2, h3, h4, h5, h6, p, span, label, strong, text, div > p, div > span {
34
+ background: transparent !important;
35
+ background-color: transparent !important;
36
  color: #E0E0E0 !important;
37
  }
38
 
39
+ /* Ensure inline styled divs keep their backgrounds */
40
+ div[style*="background"],
41
+ section[style*="background"] {
42
+ /* Keep their inline styles - don't override */
43
+ }
44
+
45
  /* TABS - Bigger and bolder */
46
  .tab-nav {
47
  border-bottom: 2px solid var(--martian-gray-dark) !important;