-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.py
40 lines (36 loc) · 1.54 KB
/
default.py
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
import streamlit as st
def default_style():
hide_streamlit_style = """
<style>
div[data-testid="stToolbar"] {
visibility: hidden;
height: 0%;
position: fixed;
}
div[data-testid="stDecoration"] {
visibility: hidden;
height: 0%;
position: fixed;
}
div[data-testid="stStatusWidget"] {
visibility: hidden;
height: 0%;
position: fixed;
}
#MainMenu {
visibility: hidden;
height: 0%;
}
header {
visibility: hidden;
height: 0%;
}
footer {
visibility: hidden;
height: 0%;
}
</style>
"""
st.set_page_config(page_icon=":droplet:", layout="centered", initial_sidebar_state="auto")
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
st.markdown('<style>' + open('styles.css').read() + '</style>', unsafe_allow_html=True)