diff --git a/code/backend/Admin.py b/code/backend/Admin.py index efa444865..31a4d97fe 100644 --- a/code/backend/Admin.py +++ b/code/backend/Admin.py @@ -31,14 +31,12 @@ menu_items=None, ) -MOD_PAGE_STYLE = """ - - """ -st.markdown(MOD_PAGE_STYLE, unsafe_allow_html=True) +def load_css(file_path): + with open(file_path) as f: + st.markdown(f"", unsafe_allow_html=True) + +# Load the common CSS +load_css("pages/common.css") col1, col2, col3 = st.columns([1, 2, 1]) diff --git a/code/backend/pages/common.css b/code/backend/pages/common.css new file mode 100644 index 000000000..f5f2dd332 --- /dev/null +++ b/code/backend/pages/common.css @@ -0,0 +1,20 @@ +#MainMenu {visibility: hidden;} +footer {visibility: hidden;} +header {visibility: hidden;} +.st-emotion-cache-1kyxreq{width:100%} +@media screen and (-ms-high-contrast: active), (forced-colors: active) { + section, .st-emotion-cache-ch5dnh{ + border: 2px solid WindowText;padding: 10px; + background-color: Window; + color: WindowText; + } +} +@media screen and (max-width: 1280px) { + .st-emotion-cache-1wmy9hl .st-emotion-cache-ocqkz7 { + gap: 0rem !important; + } + + .st-emotion-cache-1kyxreq{ + max-width: 200px !important; + } +}