File size: 816 Bytes
f4f26b2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
button_style = """
<style>
div.stButton > button:first-child {
background-color: rgb(255, 75, 75);
color: rgb(255, 255, 255);
}
div.stButton > button:hover {
background-color: rgb(255, 75, 75);
color: rgb(255, 255, 255);
}
div.stButton > button:active {
background-color: rgb(255, 75, 75);
color: rgb(255, 255, 255);
}
div.stButton > button:focus {
background-color: rgb(255, 75, 75);
color: rgb(255, 255, 255);
}
.css-1cpxqw2:focus:not(:active) {
background-color: rgb(255, 75, 75);
border-color: rgb(255, 75, 75);
color: rgb(255, 255, 255);
}
"""
style = """
<style>
#MainMenu {
visibility: hidden;
}
footer {
visibility: hidden;
}
header {
visibility: hidden;
}
</style>
"""
def apply_prod_style(st):
return st.markdown(style, unsafe_allow_html=True) |