Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- 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 |
-
/*
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
background-color: #
|
| 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 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
color: #FFFFFF; /* White text for
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
border-radius: 5px;
|
| 404 |
}
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
color: #
|
| 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
|