Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed Nov 13, 2024
1 parent dae9044 commit f991c91
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .streamlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ maxUploadSize = 20
primaryColor = "#c5203e" # Red
backgroundColor = "#ffffff" # White
secondaryBackgroundColor = "#091f40" # Navy Blue
textColor = "#000000" # Black for visibility
textColor = "#000000" # Black for main content
secondaryTextColor = "#ffffff" # White for sidebar text
font = "sans serif"
27 changes: 26 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,32 @@
--red: #c5203e;
--white: #ffffff;
}
...
/* Sidebar styles */
[data-testid="stSidebarUserContent"] {
color: var(--white) !important;
}
[data-testid="stSidebarUserContent"] .stMarkdown {
color: var(--white) !important;
}
/* Make sidebar headers and text white */
[data-testid="stSidebarUserContent"] h1,
[data-testid="stSidebarUserContent"] h2,
[data-testid="stSidebarUserContent"] h3,
[data-testid="stSidebarUserContent"] h4,
[data-testid="stSidebarUserContent"] h5,
[data-testid="stSidebarUserContent"] h6,
[data-testid="stSidebarUserContent"] p,
[data-testid="stSidebarUserContent"] li {
color: var(--white) !important;
}
/* Style strong tags in sidebar */
[data-testid="stSidebarUserContent"] strong {
color: var(--white) !important;
}
</style>
""", unsafe_allow_html=True)

Expand Down

0 comments on commit f991c91

Please sign in to comment.