Bartix84 commited on
Commit
c198e2b
·
verified ·
1 Parent(s): e64b7eb

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +23 -25
main.py CHANGED
@@ -29,43 +29,41 @@ st.markdown(f"""
29
  background-image: url("data:image/jpeg;base64,{encoded_img}");
30
  background-size: cover;
31
  background-repeat: no-repeat;
32
- background-attachment: fixed;
33
  }}
34
- </style>
35
- """, unsafe_allow_html=True)
36
-
37
- # -------------------------- STYLE CUSTOMIZATION-------------------------
38
-
39
- st.markdown("""
40
- <style>
41
- section[data-testid="stSidebar"] {
42
  background-color: rgba(0, 0, 50, 0.6);
43
  color: white;
44
- }
45
-
46
- h1, h2, h3, h4, h5, h6, p, label, div, span {
47
  color: white !important;
48
- }
49
- textarea {
50
  color: white !important;
51
  background-color: rgba(0, 0, 0, 0.3) !important;
52
  border: 1px solid #ccc !important;
53
  border-radius: 8px !important;
54
  padding: 0.5em !important;
55
- resize: none !important;
56
  transition: none !important;
57
- will-change: auto !important;
58
- }
59
- ::placeholder {
60
  color: #ccc !important;
61
- }
62
- pre, code {
63
  background-color: rgba(0, 0, 0, 0.4) !important;
64
  color: white !important;
65
  border-radius: 8px !important;
66
  padding: 0.5em !important;
67
- }
68
- section[data-testid="stSidebar"] div[data-testid="stButton"] > button {
 
 
 
 
 
 
 
69
  background-color: #526366 !important;
70
  color: white !important;
71
  font-weight: bold;
@@ -74,8 +72,8 @@ st.markdown("""
74
  padding: 0.6em;
75
  width: 80% !important;
76
  margin-bottom: 0.5em;
77
- }
78
- div[data-testid="stButton"] > button {
79
  background-color: #526366 !important;
80
  color: white !important;
81
  font-weight: bold;
@@ -83,7 +81,7 @@ st.markdown("""
83
  border-radius: 8px;
84
  padding: 0.6em;
85
  margin-top: 1em;
86
- }
87
  </style>
88
  """, unsafe_allow_html=True)
89
 
 
29
  background-image: url("data:image/jpeg;base64,{encoded_img}");
30
  background-size: cover;
31
  background-repeat: no-repeat;
32
+ background-attachment: scroll;
33
  }}
34
+ section[data-testid="stSidebar"] {{
 
 
 
 
 
 
 
35
  background-color: rgba(0, 0, 50, 0.6);
36
  color: white;
37
+ }}
38
+ h1, h2, h3, h4, h5, h6, p, label, div, span {{
 
39
  color: white !important;
40
+ }}
41
+ textarea {{
42
  color: white !important;
43
  background-color: rgba(0, 0, 0, 0.3) !important;
44
  border: 1px solid #ccc !important;
45
  border-radius: 8px !important;
46
  padding: 0.5em !important;
47
+ min-height: 100px !important;
48
  transition: none !important;
49
+ }}
50
+ ::placeholder {{
 
51
  color: #ccc !important;
52
+ }}
53
+ pre, code {{
54
  background-color: rgba(0, 0, 0, 0.4) !important;
55
  color: white !important;
56
  border-radius: 8px !important;
57
  padding: 0.5em !important;
58
+ }}
59
+ div[data-testid="stExpander"] {{
60
+ transition: none !important;
61
+ }}
62
+ * {{
63
+ transition: none !important;
64
+ animation: none !important;
65
+ }}
66
+ section[data-testid="stSidebar"] div[data-testid="stButton"] > button {{
67
  background-color: #526366 !important;
68
  color: white !important;
69
  font-weight: bold;
 
72
  padding: 0.6em;
73
  width: 80% !important;
74
  margin-bottom: 0.5em;
75
+ }}
76
+ div[data-testid="stButton"] > button {{
77
  background-color: #526366 !important;
78
  color: white !important;
79
  font-weight: bold;
 
81
  border-radius: 8px;
82
  padding: 0.6em;
83
  margin-top: 1em;
84
+ }}
85
  </style>
86
  """, unsafe_allow_html=True)
87