Spaces:
Sleeping
Sleeping
Layout
Browse filesLAyout 365
app.py
CHANGED
|
@@ -14,22 +14,31 @@ logging.basicConfig(level=logging.INFO)
|
|
| 14 |
st.markdown(
|
| 15 |
"""
|
| 16 |
<style>
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
| 33 |
.streamlit-expanderContent {
|
| 34 |
max-width: 700px;
|
| 35 |
word-wrap: break-word;
|
|
@@ -37,29 +46,28 @@ st.markdown(
|
|
| 37 |
white-space: pre-wrap;
|
| 38 |
}
|
| 39 |
|
| 40 |
-
/*
|
| 41 |
label[data-baseweb="label"] {
|
| 42 |
font-size: 20px !important;
|
| 43 |
font-weight: 600;
|
| 44 |
color: #000000;
|
| 45 |
}
|
| 46 |
|
| 47 |
-
/*
|
| 48 |
div[role="combobox"] > div > div > div {
|
| 49 |
font-size: 18px !important;
|
| 50 |
}
|
| 51 |
|
| 52 |
-
/*
|
| 53 |
input[type="text"]::placeholder {
|
| 54 |
font-size: 18px !important;
|
| 55 |
}
|
| 56 |
</style>
|
| 57 |
""",
|
| 58 |
-
unsafe_allow_html=True
|
| 59 |
)
|
| 60 |
|
| 61 |
|
| 62 |
-
|
| 63 |
# Add vertical spacing between banner and help text
|
| 64 |
st.markdown("<div style='margin-top: 40px;'></div>", unsafe_allow_html=True)
|
| 65 |
|
|
|
|
| 14 |
st.markdown(
|
| 15 |
"""
|
| 16 |
<style>
|
| 17 |
+
.full-width-banner {
|
| 18 |
+
width: 100vw;
|
| 19 |
+
position: relative;
|
| 20 |
+
left: -50vw;
|
| 21 |
+
right: -50vw;
|
| 22 |
+
margin-left: 50%;
|
| 23 |
+
margin-right: 50%;
|
| 24 |
+
background-color: #0071BC; /* UN Blue */
|
| 25 |
+
padding: 15px 0;
|
| 26 |
+
text-align: center;
|
| 27 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
| 28 |
+
z-index: 1000;
|
| 29 |
+
}
|
| 30 |
+
</style>
|
| 31 |
+
<div class="full-width-banner">
|
| 32 |
+
<h1 style="color:white; margin:0;">Montreal AI Decisions (MVP)</h1>
|
| 33 |
+
</div>
|
| 34 |
+
""",
|
| 35 |
+
unsafe_allow_html=True
|
| 36 |
+
)
|
| 37 |
|
| 38 |
+
st.markdown(
|
| 39 |
+
"""
|
| 40 |
+
<style>
|
| 41 |
+
/* Fix overflow in Streamlit expanders */
|
| 42 |
.streamlit-expanderContent {
|
| 43 |
max-width: 700px;
|
| 44 |
word-wrap: break-word;
|
|
|
|
| 46 |
white-space: pre-wrap;
|
| 47 |
}
|
| 48 |
|
| 49 |
+
/* Increase font size of labels for inputs and selects */
|
| 50 |
label[data-baseweb="label"] {
|
| 51 |
font-size: 20px !important;
|
| 52 |
font-weight: 600;
|
| 53 |
color: #000000;
|
| 54 |
}
|
| 55 |
|
| 56 |
+
/* Optional: Font size inside selectbox inputs */
|
| 57 |
div[role="combobox"] > div > div > div {
|
| 58 |
font-size: 18px !important;
|
| 59 |
}
|
| 60 |
|
| 61 |
+
/* Optional: Font size of text input placeholder */
|
| 62 |
input[type="text"]::placeholder {
|
| 63 |
font-size: 18px !important;
|
| 64 |
}
|
| 65 |
</style>
|
| 66 |
""",
|
| 67 |
+
unsafe_allow_html=True
|
| 68 |
)
|
| 69 |
|
| 70 |
|
|
|
|
| 71 |
# Add vertical spacing between banner and help text
|
| 72 |
st.markdown("<div style='margin-top: 40px;'></div>", unsafe_allow_html=True)
|
| 73 |
|