Spaces:
Sleeping
Sleeping
Update sidebar and text styling for better contrast and readability
Browse files- src/streamlit_app.py +45 -6
src/streamlit_app.py
CHANGED
@@ -26,7 +26,7 @@ st.markdown("""
|
|
26 |
/* Headers */
|
27 |
h1, h2, h3 {
|
28 |
font-family: 'Inter', sans-serif;
|
29 |
-
color: #
|
30 |
font-weight: 600;
|
31 |
margin-bottom: 1.2rem;
|
32 |
}
|
@@ -60,11 +60,33 @@ st.markdown("""
|
|
60 |
/* Markdown text */
|
61 |
p, li {
|
62 |
font-family: 'Inter', sans-serif;
|
63 |
-
color: #
|
64 |
line-height: 1.8;
|
65 |
font-size: 1rem;
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
/* Custom containers */
|
69 |
.warm-container {
|
70 |
background-color: #FFFFFF;
|
@@ -81,7 +103,7 @@ st.markdown("""
|
|
81 |
margin: 1.2rem 0;
|
82 |
background-color: #FFF8E8;
|
83 |
border-left: 4px solid #F4A261;
|
84 |
-
color: #
|
85 |
}
|
86 |
|
87 |
/* Resource styling */
|
@@ -89,6 +111,7 @@ st.markdown("""
|
|
89 |
margin-bottom: 2rem;
|
90 |
padding-bottom: 1rem;
|
91 |
border-bottom: 1px solid #E0D5C8;
|
|
|
92 |
}
|
93 |
|
94 |
.resource-item:last-child {
|
@@ -97,19 +120,35 @@ st.markdown("""
|
|
97 |
|
98 |
.resource-title {
|
99 |
font-weight: 600;
|
100 |
-
color: #
|
101 |
margin-bottom: 0.5rem;
|
102 |
}
|
103 |
|
104 |
.resource-link {
|
105 |
-
color: #
|
106 |
-
text-decoration:
|
107 |
font-weight: 500;
|
108 |
}
|
109 |
|
110 |
.resource-link:hover {
|
111 |
color: #7A8B73;
|
112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
</style>
|
114 |
""", unsafe_allow_html=True)
|
115 |
|
|
|
26 |
/* Headers */
|
27 |
h1, h2, h3 {
|
28 |
font-family: 'Inter', sans-serif;
|
29 |
+
color: #2D2D2D; /* Darker text for better contrast */
|
30 |
font-weight: 600;
|
31 |
margin-bottom: 1.2rem;
|
32 |
}
|
|
|
60 |
/* Markdown text */
|
61 |
p, li {
|
62 |
font-family: 'Inter', sans-serif;
|
63 |
+
color: #2D2D2D; /* Darker text for better contrast */
|
64 |
line-height: 1.8;
|
65 |
font-size: 1rem;
|
66 |
}
|
67 |
|
68 |
+
/* Sidebar styling */
|
69 |
+
.css-1d391kg, .css-1p05t8e { /* Sidebar containers */
|
70 |
+
background-color: #FFFFFF !important;
|
71 |
+
}
|
72 |
+
|
73 |
+
.css-1d391kg p, .css-1p05t8e p { /* Sidebar text */
|
74 |
+
color: #2D2D2D;
|
75 |
+
}
|
76 |
+
|
77 |
+
.css-1d391kg a, .css-1p05t8e a { /* Sidebar links */
|
78 |
+
color: #2D2D2D;
|
79 |
+
text-decoration: underline;
|
80 |
+
}
|
81 |
+
|
82 |
+
.css-1d391kg h1, .css-1p05t8e h1 { /* Sidebar headers */
|
83 |
+
color: #2D2D2D;
|
84 |
+
}
|
85 |
+
|
86 |
+
.css-1d391kg .stMarkdown, .css-1p05t8e .stMarkdown { /* Sidebar markdown */
|
87 |
+
color: #2D2D2D;
|
88 |
+
}
|
89 |
+
|
90 |
/* Custom containers */
|
91 |
.warm-container {
|
92 |
background-color: #FFFFFF;
|
|
|
103 |
margin: 1.2rem 0;
|
104 |
background-color: #FFF8E8;
|
105 |
border-left: 4px solid #F4A261;
|
106 |
+
color: #2D2D2D;
|
107 |
}
|
108 |
|
109 |
/* Resource styling */
|
|
|
111 |
margin-bottom: 2rem;
|
112 |
padding-bottom: 1rem;
|
113 |
border-bottom: 1px solid #E0D5C8;
|
114 |
+
color: #2D2D2D;
|
115 |
}
|
116 |
|
117 |
.resource-item:last-child {
|
|
|
120 |
|
121 |
.resource-title {
|
122 |
font-weight: 600;
|
123 |
+
color: #2D2D2D;
|
124 |
margin-bottom: 0.5rem;
|
125 |
}
|
126 |
|
127 |
.resource-link {
|
128 |
+
color: #2D2D2D;
|
129 |
+
text-decoration: underline;
|
130 |
font-weight: 500;
|
131 |
}
|
132 |
|
133 |
.resource-link:hover {
|
134 |
color: #7A8B73;
|
135 |
}
|
136 |
+
|
137 |
+
/* Expander styling */
|
138 |
+
.streamlit-expanderHeader {
|
139 |
+
background-color: #FFFFFF;
|
140 |
+
color: #2D2D2D;
|
141 |
+
}
|
142 |
+
|
143 |
+
/* Remove default Streamlit themes */
|
144 |
+
.st-emotion-cache-1gulkj5, .st-emotion-cache-1rat1s6 {
|
145 |
+
background-color: #FFFFFF !important;
|
146 |
+
}
|
147 |
+
|
148 |
+
/* Override any theme-specific text colors */
|
149 |
+
.st-emotion-cache-1rat1s6 * {
|
150 |
+
color: #2D2D2D !important;
|
151 |
+
}
|
152 |
</style>
|
153 |
""", unsafe_allow_html=True)
|
154 |
|