|
11 | 11 |
|
12 | 12 | st.set_page_config(page_title="Conflict Context", layout="wide") |
13 | 13 |
|
| 14 | +# ========================= |
| 15 | +# Sidebar styling |
| 16 | +# ========================= |
| 17 | +st.markdown( |
| 18 | + """ |
| 19 | + <style> |
| 20 | + [data-testid="stSidebar"] { background-color: #0D2B5E !important; } |
| 21 | + [data-testid="stSidebar"] * { color: white !important; } |
| 22 | + [data-testid="stSidebar"] .stDateInput input { |
| 23 | + color: #1A1A1A !important; |
| 24 | + background-color: #E4EBF4 !important; |
| 25 | + } |
| 26 | + [data-testid="stSidebarNav"] a { color: rgba(255,255,255,0.8) !important; } |
| 27 | + [data-testid="stSidebarNav"] a:hover { |
| 28 | + color: white !important; |
| 29 | + background-color: rgba(255,255,255,0.1) !important; |
| 30 | + } |
| 31 | + [data-testid="stSidebarNav"] { padding-top: 3.5rem; } |
| 32 | + [data-testid="stSidebarNav"]::before { |
| 33 | + content: "U.S. Petroleum & WTI Weekly Monitor"; |
| 34 | + display: block; position: absolute; |
| 35 | + top: 0; left: 0; right: 0; |
| 36 | + padding: 1rem 1.2rem 0.2rem 1.2rem; |
| 37 | + font-size: 1.05rem; font-weight: 600; line-height: 1.3; |
| 38 | + color: white !important; |
| 39 | + } |
| 40 | + </style> |
| 41 | + """, |
| 42 | + unsafe_allow_html=True, |
| 43 | +) |
| 44 | + |
14 | 45 |
|
15 | 46 | # ========================= |
16 | 47 | # Helper: render interpretation |
|
0 commit comments