liammatt5 commited on
Commit
ab6fcfb
·
verified ·
1 Parent(s): 26338b2

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +39 -6
style.css CHANGED
@@ -1,20 +1,15 @@
1
  /* Clinically Healthcare UI Design Kit Styles (Gradio-Optimized) */
2
  :root {
3
- /* Stronger, less washed-out palette */
4
  --primary-indigo: #4338CA;
5
  --secondary-cyan: #0891B2;
6
 
7
- /* Neutral background tuned for UI layering */
8
  --bg-cream: #F8FAFC;
9
 
10
- /* Stronger borders to survive Gradio tinting */
11
  --border-soft: #CBD5E1;
12
 
13
- /* High-contrast text */
14
  --text-slate: #0F172A;
15
  --text-muted: #334155;
16
 
17
- /* More vivid semantic colors */
18
  --success-green: #059669;
19
  --warning-amber: #D97706;
20
  --danger-red: #DC2626;
@@ -140,7 +135,7 @@
140
  border-bottom: 2px solid var(--border-soft);
141
  }
142
 
143
- /* Optional: improve Gradio component blending */
144
  input, textarea, select {
145
  border-color: var(--border-soft) !important;
146
  color: var(--text-slate);
@@ -149,4 +144,42 @@ input, textarea, select {
149
  input:focus, textarea:focus, select:focus {
150
  border-color: var(--primary-indigo) !important;
151
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15) !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  }
 
1
  /* Clinically Healthcare UI Design Kit Styles (Gradio-Optimized) */
2
  :root {
 
3
  --primary-indigo: #4338CA;
4
  --secondary-cyan: #0891B2;
5
 
 
6
  --bg-cream: #F8FAFC;
7
 
 
8
  --border-soft: #CBD5E1;
9
 
 
10
  --text-slate: #0F172A;
11
  --text-muted: #334155;
12
 
 
13
  --success-green: #059669;
14
  --warning-amber: #D97706;
15
  --danger-red: #DC2626;
 
135
  border-bottom: 2px solid var(--border-soft);
136
  }
137
 
138
+ /* Inputs */
139
  input, textarea, select {
140
  border-color: var(--border-soft) !important;
141
  color: var(--text-slate);
 
144
  input:focus, textarea:focus, select:focus {
145
  border-color: var(--primary-indigo) !important;
146
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15) !important;
147
+ }
148
+
149
+ /* =========================================================
150
+ 🔥 GRADIO OVERRIDE ENFORCER LAYER (IMPORTANT PART)
151
+ ========================================================= */
152
+
153
+ /* 1. Hard reset Gradio container interference */
154
+ .gradio-container {
155
+ background: var(--bg-cream) !important;
156
+ }
157
+
158
+ /* 2. FORCE header styling (highest practical CSS specificity) */
159
+ body .gradio-container div.header-box,
160
+ html body .gradio-container div.header-box,
161
+ div.gradio-container div.header-box {
162
+ background: #0B1F3B !important; /* deep navy override */
163
+ color: #FFFFFF !important;
164
+ border-bottom: 4px solid var(--primary-indigo) !important;
165
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
166
+ }
167
+
168
+ /* 3. Force all text inside header */
169
+ body .gradio-container .header-box * {
170
+ color: #FFFFFF !important;
171
+ }
172
+
173
+ /* 4. Kill any theme pseudo overlays */
174
+ .header-box::before,
175
+ .header-box::after {
176
+ background: transparent !important;
177
+ content: none !important;
178
+ }
179
+
180
+ /* 5. Prevent Gradio theme bleed on blocks */
181
+ .gr-block,
182
+ .gr-box,
183
+ .gr-panel {
184
+ background: transparent !important;
185
  }