Samarth-Health-AI commited on
Commit
5d7dfd2
·
verified ·
1 Parent(s): b6c0b60

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +58 -1
src/streamlit_app.py CHANGED
@@ -289,6 +289,63 @@ st.markdown(
289
  [data-testid="stSidebar"] .stCheckbox label {
290
  color: #1f2933 !important;
291
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  /* === END NEW === */
293
 
294
  </style>
@@ -374,7 +431,7 @@ with st.sidebar:
374
  st.markdown('</div>', unsafe_allow_html=True)
375
 
376
  # Clinical Documents (card)
377
- st.markdown('<div class="sb-card">', unsafe_allow_html=True)
378
  st.markdown('<div class="sb-title">📂 Clinical Documents</div>', unsafe_allow_html=True)
379
 
380
  files = st.file_uploader(
 
289
  [data-testid="stSidebar"] .stCheckbox label {
290
  color: #1f2933 !important;
291
  }
292
+ /* === FORCE Clinical Documents widgets to WHITE, all themes === */
293
+
294
+ /* Label "Upload Records" inside Clinical Documents card */
295
+ .sb-docs [data-testid="stFileUploader"] > div:first-child {
296
+ color: #111827 !important; /* dark gray text */
297
+ font-weight: 600;
298
+ }
299
+
300
+ /* Upload box (drag-and-drop area) */
301
+ .sb-docs [data-testid="stFileUploaderDropzone"] {
302
+ background-color: #ffffff !important;
303
+ color: #111827 !important;
304
+ border-radius: 10px !important;
305
+ border: 1px solid #cbd5e0 !important;
306
+ box-shadow: 0 2px 6px rgba(0,0,0,0.08);
307
+ }
308
+
309
+ /* “Browse files” button inside upload box */
310
+ .sb-docs [data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"],
311
+ .sb-docs [data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"] > div {
312
+ background-color: #ffffff !important;
313
+ color: #111827 !important;
314
+ border: 1px solid #4b5563 !important;
315
+ border-radius: 6px !important;
316
+ box-shadow: none !important;
317
+ }
318
+
319
+ .sb-docs [data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"]:hover,
320
+ .sb-docs [data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"]:hover > div {
321
+ background-color: #f3f4f6 !important;
322
+ color: #111827 !important;
323
+ }
324
+
325
+ /* Sample Template download button in the same card */
326
+ .sb-docs [data-testid="baseButton-secondary"]:not([data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"]),
327
+ .sb-docs [data-testid="baseButton-secondary"]:not([data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"]) > div {
328
+ background-color: #ffffff !important;
329
+ color: #111827 !important;
330
+ border-radius: 8px !important;
331
+ border: 1px solid #4b5563 !important;
332
+ box-shadow: 0 2px 6px rgba(0,0,0,0.08);
333
+ }
334
+
335
+ .sb-docs [data-testid="baseButton-secondary"]:not([data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"]):hover,
336
+ .sb-docs [data-testid="baseButton-secondary"]:not([data-testid="stFileUploaderDropzone"] [data-testid="baseButton-secondary"]):hover > div {
337
+ background-color: #f3f4f6 !important;
338
+ color: #111827 !important;
339
+ }
340
+
341
+ /* "Use Sample" checkbox label */
342
+ .sb-docs .stCheckbox label {
343
+ color: #111827 !important;
344
+ }
345
+
346
+
347
+
348
+
349
  /* === END NEW === */
350
 
351
  </style>
 
431
  st.markdown('</div>', unsafe_allow_html=True)
432
 
433
  # Clinical Documents (card)
434
+ st.markdown('<div class="sb-card sb-docs">', unsafe_allow_html=True)
435
  st.markdown('<div class="sb-title">📂 Clinical Documents</div>', unsafe_allow_html=True)
436
 
437
  files = st.file_uploader(