Commit
·
dbbe9b1
1
Parent(s):
0da7a7f
teste Fix: light mode
Browse files- app.py +1 -1
- logos/styles/base.css +7 -0
- logos/styles/dark.css +41 -1
- logos/styles/light.css +58 -40
app.py
CHANGED
@@ -140,7 +140,7 @@ class ChatbotApp:
|
|
140 |
st.markdown(text.strip(), unsafe_allow_html=True)
|
141 |
|
142 |
# Captura o input do usuário
|
143 |
-
user_input = st.chat_input("Digite sua pergunta")
|
144 |
if user_input:
|
145 |
# Exibe a mensagem do usuário
|
146 |
with st.chat_message("user"):
|
|
|
140 |
st.markdown(text.strip(), unsafe_allow_html=True)
|
141 |
|
142 |
# Captura o input do usuário
|
143 |
+
user_input = st.chat_input(placeholder="Digite sua pergunta...")
|
144 |
if user_input:
|
145 |
# Exibe a mensagem do usuário
|
146 |
with st.chat_message("user"):
|
logos/styles/base.css
CHANGED
@@ -37,6 +37,13 @@ a {
|
|
37 |
font-weight: 700;
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
.stDecoration {
|
41 |
display: none;
|
42 |
}
|
|
|
37 |
font-weight: 700;
|
38 |
}
|
39 |
|
40 |
+
|
41 |
+
.stTextInput > label {
|
42 |
+
font-family: "sicoob-sans-bold", "Source Sans Pro", sans-serif !important;
|
43 |
+
font-weight: 700;
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
.stDecoration {
|
48 |
display: none;
|
49 |
}
|
logos/styles/dark.css
CHANGED
@@ -60,6 +60,7 @@
|
|
60 |
background-color: #002530;
|
61 |
border-radius: 10px;
|
62 |
border: 1px solid #7DB61C;
|
|
|
63 |
}
|
64 |
|
65 |
[data-testid="stChatInput"] > div > div > div > textarea:focus {
|
@@ -153,4 +154,43 @@ hr {
|
|
153 |
.stChatMessage:has([data-testid="stChatMessageAvatarUser"]) {
|
154 |
background-color: #002530 !important;
|
155 |
border-radius: 10px;
|
156 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
background-color: #002530;
|
61 |
border-radius: 10px;
|
62 |
border: 1px solid #7DB61C;
|
63 |
+
overflow: hidden;
|
64 |
}
|
65 |
|
66 |
[data-testid="stChatInput"] > div > div > div > textarea:focus {
|
|
|
154 |
.stChatMessage:has([data-testid="stChatMessageAvatarUser"]) {
|
155 |
background-color: #002530 !important;
|
156 |
border-radius: 10px;
|
157 |
+
}
|
158 |
+
|
159 |
+
[data-testid="stTextInputRootElement"] > div {
|
160 |
+
background-color: transparent;
|
161 |
+
}
|
162 |
+
|
163 |
+
[data-testid="stTextInputRootElement"] {
|
164 |
+
background-color: #002530;
|
165 |
+
border-radius: 10px;
|
166 |
+
border: 1px solid #49479D;
|
167 |
+
color: #FAFAFA !important;
|
168 |
+
}
|
169 |
+
|
170 |
+
.stTextInput > label {
|
171 |
+
color: #FAFAFA !important;
|
172 |
+
}
|
173 |
+
|
174 |
+
.stTextInput > div > div > input {
|
175 |
+
color: #FAFAFA !important;
|
176 |
+
}
|
177 |
+
|
178 |
+
[data-testid="stTextInputRootElement"]:hover {
|
179 |
+
border: 1px solid #7DB61C;
|
180 |
+
}
|
181 |
+
|
182 |
+
.stFormSubmitButton > button {
|
183 |
+
background-color: #7DB61C;
|
184 |
+
color: #FAFAFA;
|
185 |
+
}
|
186 |
+
|
187 |
+
.stFormSubmitButton > button:hover {
|
188 |
+
background-color: #7DB61C;
|
189 |
+
border-color: #49479D;
|
190 |
+
color: #49479D;
|
191 |
+
}
|
192 |
+
|
193 |
+
.stFormSubmitButton > button:active , .stFormSubmitButton > button:focus, .stFormSubmitButton > button:focus-visible, .stFormSubmitButton > button:focus:not(:active) {
|
194 |
+
background-color: #49479D;
|
195 |
+
border-color: #7DB61C;
|
196 |
+
color: #FAFAFA;
|
logos/styles/light.css
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
.stMain, .stAppHeader, .st-emotion-cache-hzygls {
|
2 |
-
background-color:
|
3 |
}
|
4 |
|
5 |
.stAppHeader, .st-emotion-cache-hzygls, .stBottomBlockContainer {
|
6 |
-
background-color: #
|
7 |
}
|
8 |
|
9 |
[data-testid="stChatInputSubmitButton"] {
|
@@ -26,7 +26,7 @@
|
|
26 |
}
|
27 |
|
28 |
[data-testid="stChatInputSubmitButton"] > svg {
|
29 |
-
fill: #
|
30 |
}
|
31 |
|
32 |
[data-testid="stChatInputSubmitButton"]:hover {
|
@@ -41,12 +41,12 @@
|
|
41 |
|
42 |
.stButton > button:hover {
|
43 |
background-color: #003641;
|
44 |
-
border-color: #
|
45 |
-
color: #
|
46 |
}
|
47 |
|
48 |
.stButton > button:active , .stButton > button:focus, .stButton > button:focus-visible, .stButton > button:focus:not(:active) {
|
49 |
-
background-color: #
|
50 |
border-color: #003641;
|
51 |
color: #FAFAFA;
|
52 |
}
|
@@ -56,31 +56,37 @@
|
|
56 |
background-color: transparent;
|
57 |
}
|
58 |
|
|
|
|
|
|
|
|
|
|
|
59 |
[data-testid="stChatInput"] > div > div {
|
60 |
border: none;
|
61 |
border-radius: 10px;
|
62 |
}
|
63 |
|
64 |
[data-testid="stChatInput"] > div > div > div > textarea {
|
65 |
-
background-color:
|
66 |
border-radius: 10px;
|
67 |
-
border: 1px solid #
|
68 |
-
color: #
|
|
|
69 |
}
|
70 |
|
71 |
[data-testid="stChatInput"] > div > div > div > textarea:focus {
|
72 |
-
border-bottom-color: #
|
73 |
-
border-top-color: #
|
74 |
-
border-right-color: #
|
75 |
-
border-left-color: #
|
76 |
}
|
77 |
|
78 |
a {
|
79 |
-
color: #
|
80 |
}
|
81 |
|
82 |
a:hover {
|
83 |
-
color: #
|
84 |
}
|
85 |
|
86 |
.stMarkdown h1 {
|
@@ -92,8 +98,8 @@ body, .stMarkdown, .stText, .stTitle, .stHeader, .stSubheader {
|
|
92 |
}
|
93 |
|
94 |
[data-testid="stChatMessageAvatarUser"] {
|
95 |
-
fill: #
|
96 |
-
background-color: #
|
97 |
width: 35px;
|
98 |
height: 35px;
|
99 |
border-radius: 50%;
|
@@ -101,12 +107,12 @@ body, .stMarkdown, .stText, .stTitle, .stHeader, .stSubheader {
|
|
101 |
}
|
102 |
|
103 |
[data-testid="stChatMessageAvatarUser"] > svg {
|
104 |
-
color: #
|
105 |
}
|
106 |
|
107 |
[data-testid="stChatMessageAvatarAssistant"] {
|
108 |
-
fill: #
|
109 |
-
background-color: #
|
110 |
width: 35px;
|
111 |
height: 35px;
|
112 |
border-radius: 50%;
|
@@ -114,7 +120,7 @@ body, .stMarkdown, .stText, .stTitle, .stHeader, .stSubheader {
|
|
114 |
}
|
115 |
|
116 |
[data-testid="stChatMessageAvatarAssistant"] > svg {
|
117 |
-
color: #
|
118 |
}
|
119 |
|
120 |
.stMarkdown hr {
|
@@ -129,21 +135,17 @@ body, .stMarkdown, .stText, .stTitle, .stHeader, .stSubheader {
|
|
129 |
fill: #C9D200;
|
130 |
}
|
131 |
|
132 |
-
.stChatMessage:has([data-testid="stChatMessageAvatarUser"]) {
|
133 |
-
background-color: #00AE9D;
|
134 |
-
color: #FAFAFA;
|
135 |
-
border-radius: 10px;
|
136 |
-
}
|
137 |
-
|
138 |
.stChatMessage:has([data-testid="stChatMessageAvatarUser"]) {
|
139 |
background-color: #008679;
|
140 |
color: #FAFAFA;
|
141 |
border-radius: 10px;
|
|
|
142 |
}
|
143 |
|
144 |
.stChatMessage:has([data-testid="stChatMessageAvatarUser"]) {
|
145 |
-
background-color: #
|
146 |
border-radius: 10px;
|
|
|
147 |
}
|
148 |
|
149 |
.st-key-Logout > div > button {
|
@@ -153,7 +155,7 @@ body, .stMarkdown, .stText, .stTitle, .stHeader, .stSubheader {
|
|
153 |
}
|
154 |
|
155 |
.st-key-Logout > div > button:hover {
|
156 |
-
color: #
|
157 |
}
|
158 |
|
159 |
[data-testid="stDialog"] > div > div > div > div {
|
@@ -178,11 +180,27 @@ body, .stMarkdown, .stText, .stTitle, .stHeader, .stSubheader {
|
|
178 |
|
179 |
|
180 |
[data-testid="stAlertContainer"] p {
|
181 |
-
color: #
|
|
|
|
|
|
|
|
|
182 |
}
|
183 |
|
184 |
.stTextInput > label {
|
185 |
color: #002530 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
}
|
187 |
|
188 |
[data-testid="stTextInputRootElement"] > div {
|
@@ -190,27 +208,27 @@ body, .stMarkdown, .stText, .stTitle, .stHeader, .stSubheader {
|
|
190 |
}
|
191 |
|
192 |
[data-testid="stTextInputRootElement"] {
|
193 |
-
background-color:
|
194 |
border-radius: 10px;
|
195 |
-
border:
|
196 |
-
color: #
|
197 |
}
|
198 |
|
199 |
.stFormSubmitButton > button {
|
200 |
-
background-color: #
|
201 |
color: #FAFAFA;
|
202 |
}
|
203 |
|
204 |
.stFormSubmitButton > button:hover {
|
205 |
-
background-color: #
|
206 |
-
border-color: #
|
207 |
-
color: #
|
208 |
}
|
209 |
|
210 |
.stFormSubmitButton > button:active , .stFormSubmitButton > button:focus, .stFormSubmitButton > button:focus-visible, .stFormSubmitButton > button:focus:not(:active) {
|
211 |
-
background-color: #
|
212 |
-
border-color: #
|
213 |
-
color: #
|
214 |
}
|
215 |
|
216 |
[data-testid="stBaseButton-borderlessIcon"] {
|
|
|
1 |
.stMain, .stAppHeader, .st-emotion-cache-hzygls {
|
2 |
+
background-color: white !important;
|
3 |
}
|
4 |
|
5 |
.stAppHeader, .st-emotion-cache-hzygls, .stBottomBlockContainer {
|
6 |
+
background-color: #f3f3f3 !important;
|
7 |
}
|
8 |
|
9 |
[data-testid="stChatInputSubmitButton"] {
|
|
|
26 |
}
|
27 |
|
28 |
[data-testid="stChatInputSubmitButton"] > svg {
|
29 |
+
fill: #00AE9D;
|
30 |
}
|
31 |
|
32 |
[data-testid="stChatInputSubmitButton"]:hover {
|
|
|
41 |
|
42 |
.stButton > button:hover {
|
43 |
background-color: #003641;
|
44 |
+
border-color: #00AE9D;
|
45 |
+
color: #00AE9D;
|
46 |
}
|
47 |
|
48 |
.stButton > button:active , .stButton > button:focus, .stButton > button:focus-visible, .stButton > button:focus:not(:active) {
|
49 |
+
background-color: #00AE9D;
|
50 |
border-color: #003641;
|
51 |
color: #FAFAFA;
|
52 |
}
|
|
|
56 |
background-color: transparent;
|
57 |
}
|
58 |
|
59 |
+
[data-testid="stChatInput"] textarea::placeholder {
|
60 |
+
color: #999999 !important;
|
61 |
+
opacity: 1;
|
62 |
+
}
|
63 |
+
|
64 |
[data-testid="stChatInput"] > div > div {
|
65 |
border: none;
|
66 |
border-radius: 10px;
|
67 |
}
|
68 |
|
69 |
[data-testid="stChatInput"] > div > div > div > textarea {
|
70 |
+
background-color: white;
|
71 |
border-radius: 10px;
|
72 |
+
border: 1px solid #00AE9D;
|
73 |
+
color: #003641 !important;
|
74 |
+
overflow: hidden;
|
75 |
}
|
76 |
|
77 |
[data-testid="stChatInput"] > div > div > div > textarea:focus {
|
78 |
+
border-bottom-color: #003641 !important;
|
79 |
+
border-top-color: #003641 !important;
|
80 |
+
border-right-color: #003641 !important;
|
81 |
+
border-left-color: #003641 !important;
|
82 |
}
|
83 |
|
84 |
a {
|
85 |
+
color: #003641 !important;
|
86 |
}
|
87 |
|
88 |
a:hover {
|
89 |
+
color: #00AE9D !important;
|
90 |
}
|
91 |
|
92 |
.stMarkdown h1 {
|
|
|
98 |
}
|
99 |
|
100 |
[data-testid="stChatMessageAvatarUser"] {
|
101 |
+
fill: #002530 !important;
|
102 |
+
background-color: #002530 !important;
|
103 |
width: 35px;
|
104 |
height: 35px;
|
105 |
border-radius: 50%;
|
|
|
107 |
}
|
108 |
|
109 |
[data-testid="stChatMessageAvatarUser"] > svg {
|
110 |
+
color: #FAFAFA
|
111 |
}
|
112 |
|
113 |
[data-testid="stChatMessageAvatarAssistant"] {
|
114 |
+
fill: #002530 !important;
|
115 |
+
background-color: #002530 !important;
|
116 |
width: 35px;
|
117 |
height: 35px;
|
118 |
border-radius: 50%;
|
|
|
120 |
}
|
121 |
|
122 |
[data-testid="stChatMessageAvatarAssistant"] > svg {
|
123 |
+
color: #FAFAFA
|
124 |
}
|
125 |
|
126 |
.stMarkdown hr {
|
|
|
135 |
fill: #C9D200;
|
136 |
}
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
.stChatMessage:has([data-testid="stChatMessageAvatarUser"]) {
|
139 |
background-color: #008679;
|
140 |
color: #FAFAFA;
|
141 |
border-radius: 10px;
|
142 |
+
border: 0.5px solid #00AE9D;
|
143 |
}
|
144 |
|
145 |
.stChatMessage:has([data-testid="stChatMessageAvatarUser"]) {
|
146 |
+
background-color: #ebfffd !important;
|
147 |
border-radius: 10px;
|
148 |
+
border-color: #007F73;
|
149 |
}
|
150 |
|
151 |
.st-key-Logout > div > button {
|
|
|
155 |
}
|
156 |
|
157 |
.st-key-Logout > div > button:hover {
|
158 |
+
color: #00AE9D;
|
159 |
}
|
160 |
|
161 |
[data-testid="stDialog"] > div > div > div > div {
|
|
|
180 |
|
181 |
|
182 |
[data-testid="stAlertContainer"] p {
|
183 |
+
color: #ebebeb !important;
|
184 |
+
}
|
185 |
+
|
186 |
+
[data-testid="stAlertContainer"] {
|
187 |
+
background-color: #00AE9D;
|
188 |
}
|
189 |
|
190 |
.stTextInput > label {
|
191 |
color: #002530 !important;
|
192 |
+
font-weight: bold;
|
193 |
+
}
|
194 |
+
|
195 |
+
.stTextInput > div > div > input {
|
196 |
+
color: #999999;
|
197 |
+
background-color: transparent;
|
198 |
+
font-weight: 500;
|
199 |
+
}
|
200 |
+
|
201 |
+
.stTextInput > div > div > input:not(:placeholder-shown) {
|
202 |
+
color: #003641 !important;
|
203 |
+
background-color: transparent;
|
204 |
}
|
205 |
|
206 |
[data-testid="stTextInputRootElement"] > div {
|
|
|
208 |
}
|
209 |
|
210 |
[data-testid="stTextInputRootElement"] {
|
211 |
+
background-color: transparent;
|
212 |
border-radius: 10px;
|
213 |
+
border-color: #999999;
|
214 |
+
color: #999999 !important;
|
215 |
}
|
216 |
|
217 |
.stFormSubmitButton > button {
|
218 |
+
background-color: #00AE9D;
|
219 |
color: #FAFAFA;
|
220 |
}
|
221 |
|
222 |
.stFormSubmitButton > button:hover {
|
223 |
+
background-color: #00AE9D;
|
224 |
+
border-color: #003641;
|
225 |
+
color: #FAFAFA;
|
226 |
}
|
227 |
|
228 |
.stFormSubmitButton > button:active , .stFormSubmitButton > button:focus, .stFormSubmitButton > button:focus-visible, .stFormSubmitButton > button:focus:not(:active) {
|
229 |
+
background-color: #003641;
|
230 |
+
border-color: #00AE9D;
|
231 |
+
color: #00AE9D;
|
232 |
}
|
233 |
|
234 |
[data-testid="stBaseButton-borderlessIcon"] {
|