AIEcosystem commited on
Commit
1adc360
·
verified ·
1 Parent(s): 6688219

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +19 -25
src/streamlit_app.py CHANGED
@@ -380,34 +380,28 @@ st.set_page_config(layout="wide", page_title="NER & Topic Report App")
380
  st.markdown(
381
  """
382
  <style>
383
- /* Overall app container - Ensure pure white background */
384
- .main {
385
- background-color: #FFFFFF; /* Pure White */
386
- color: #000000; /* Black text for maximum contrast */
387
- }
388
- .stApp {
389
- background-color: #FFFFFF; /* Pure White */
390
- }
391
- /* Text Area background and text color (input fields) */
392
- .stTextArea textarea {
393
- background-color: #FFFFFF; /* Pure White input background */
394
- color: #000000; /* Black text for input */
395
- border: 1px solid #888888; /* Keep a visible grey border */
396
  }
397
- /* Button styling (Kept blue for visibility, but you can change this) */
398
- .stButton > button {
399
- background-color: #007bff; /* Blue button */
400
- color: #FFFFFF; /* White text for contrast */
401
- border: none;
402
- padding: 10px 20px;
403
- border-radius: 5px;
404
  }
405
- /* Expander header and content background - Change to white */
406
- .streamlit-expanderHeader, .streamlit-expanderContent {
407
- background-color: #FFFFFF; /* Pure White */
408
- color: #000000; /* Black text */
409
- border: 1px solid #CCCCCC; /* Add a light border to separate it */
410
  }
 
411
  </style>
412
  """,
413
  unsafe_allow_html=True
 
380
  st.markdown(
381
  """
382
  <style>
383
+ /* ... (Keep your existing styles for main, stApp, stTextArea, stButton) ... */
384
+
385
+ /* --- FIX: Tab Label Colors for Visibility --- */
386
+ /* Target the container for the tab labels (the buttons) */
387
+ [data-testid="stConfigurableTabs"] button {
388
+ color: #333333 !important; /* Dark gray for inactive tabs */
389
+ background-color: #f0f0f0; /* Light gray background for inactive tabs */
390
+ border: 1px solid #cccccc;
 
 
 
 
 
391
  }
392
+
393
+ /* Target the ACTIVE tab label */
394
+ [data-testid="stConfigurableTabs"] button[aria-selected="true"] {
395
+ color: #FFFFFF !important; /* White text for active tab */
396
+ background-color: #007bff; /* Blue background for active tab */
397
+ border-bottom: 2px solid #007bff; /* Optional: adds an accent line */
 
398
  }
399
+
400
+ /* Expander header color fix (since you overwrote it to white) */
401
+ .streamlit-expanderHeader {
402
+ color: #007bff; /* Blue text for Expander header */
 
403
  }
404
+
405
  </style>
406
  """,
407
  unsafe_allow_html=True