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