anonymous12321 commited on
Commit
9ed1cba
·
verified ·
1 Parent(s): d102a6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +63 -71
app.py CHANGED
@@ -173,100 +173,92 @@ def classify_display(text):
173
 
174
  # ---------------- CSS refinado - tema claro agradável ----------------
175
  custom_css = """
176
- body { background-color: #ffffff; color: #222; font-family: 'Inter', sans-serif; }
177
- .gradio-container { background-color: #ffffff; color: #222; }
178
 
179
- h2 { text-align: center; color: #0056b3; font-weight: 700; }
180
- h3 { text-align: center; color: #0066cc; font-weight: 600; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
- textarea {
183
- background-color: #f9fafc !important;
184
- color: #222 !important;
 
 
185
  border-radius: 10px !important;
186
- border: 1px solid #d0d7de !important;
187
  }
188
 
189
- button {
190
- background-color: #007bff !important;
 
191
  color: white !important;
 
192
  font-weight: 600 !important;
193
- border-radius: 8px !important;
194
  border: none !important;
195
- transition: 0.2s ease-in-out;
 
 
 
196
  }
197
- button:hover {
198
- background-color: #005fcc !important;
 
 
 
 
 
199
  }
200
 
201
- .output-chip {
202
- background-color: #eef4ff;
203
- padding: 5px 12px;
204
- border-radius: 8px;
205
- font-weight: 500;
206
- border: 1px solid #007aff33;
207
- color: #003366;
208
  }
209
 
210
- .suggestion-box {
211
- background-color: #f6f9fc;
212
- border-radius: 10px;
213
- border: 1px solid #ccd8e0;
214
- padding: 12px;
215
- display: flex;
216
- align-items: center;
217
- justify-content: center;
218
- color: #222;
219
- margin-top: 25px;
220
- position: relative;
221
- overflow: scroll;
222
- box-shadow: 0 1px 3px rgba(0,0,0,0.05);
223
  }
224
 
225
- .arrow-btn {
226
- width: 26px;
227
- height: 26px;
228
- font-size: 14px;
229
- padding: 0;
230
- background: none;
231
- border: none;
232
- color: #007bff;
233
- cursor: pointer;
234
- font-weight: bold;
235
- transition: 0.15s ease-in-out;
236
  }
237
- .arrow-btn:hover {
238
- color: #003366;
239
- transform: scale(1.25);
240
  }
241
 
242
- .use-btn {
243
- background-color: #66b3ff !important;
244
- color: #000 !important;
245
- font-weight: 600 !important;
246
- border-radius: 6px !important;
247
- padding: 4px 10px !important;
248
- margin-left: 6px;
249
- border: 1px solid #007aff22 !important;
250
  }
251
- .use-btn:hover {
252
- background-color: #99ccff !important;
253
  }
254
 
255
- .suggestion-box .prev-btn { position: absolute; top: 5px; left: 5px; }
256
- .suggestion-box .next-btn { position: absolute; top: 5px; right: 5px; }
257
-
258
- .suggestion-box .suggestion-text {
259
- width: 100%;
260
- text-align: center;
261
- border: none;
262
- background: none;
263
- color: #222;
264
- font-weight: 500;
265
- padding-top: 8px;
266
- overflow-y: scroll;
267
  }
268
 
269
- .gradio-button { color: white !important; }
270
  """
271
 
272
 
 
173
 
174
  # ---------------- CSS refinado - tema claro agradável ----------------
175
  custom_css = """
176
+ /* ======== Tema Claro Council Topics Classifier ======== */
 
177
 
178
+ /* Fundo principal */
179
+ body, .gradio-container, .gr-interface, .gr-block, .wrap.svelte-1ipelgc {
180
+ background-color: #ffffff !important;
181
+ color: #222222 !important;
182
+ }
183
+
184
+ /* Cabeçalho e títulos */
185
+ h1, h2, h3, h4, h5, h6, label, .gr-text-input label, .gr-textbox label {
186
+ color: #222222 !important;
187
+ font-weight: 600 !important;
188
+ }
189
+
190
+ /* Texto geral */
191
+ p, span, div, .prose * {
192
+ color: #333333 !important;
193
+ }
194
 
195
+ /* Inputs e caixas */
196
+ textarea, input[type="text"], .gr-textbox, .gr-input, .gr-box, .gr-form, .gr-panel {
197
+ background-color: #ffffff !important;
198
+ color: #222222 !important;
199
+ border: 1px solid #d1d5db !important;
200
  border-radius: 10px !important;
201
+ box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
202
  }
203
 
204
+ /* Botões */
205
+ button, .gr-button {
206
+ background-color: #3b82f6 !important; /* azul suave */
207
  color: white !important;
208
+ border-radius: 10px !important;
209
  font-weight: 600 !important;
 
210
  border: none !important;
211
+ transition: background-color 0.2s ease-in-out !important;
212
+ }
213
+ button:hover, .gr-button:hover {
214
+ background-color: #2563eb !important; /* azul mais escuro no hover */
215
  }
216
+
217
+ /* Dropdowns */
218
+ select {
219
+ background-color: #ffffff !important;
220
+ color: #222222 !important;
221
+ border: 1px solid #d1d5db !important;
222
+ border-radius: 10px !important;
223
  }
224
 
225
+ /* Caixas de saída */
226
+ .output-class, .output-text, .gr-highlighted, .output-box, .gr-panel.output {
227
+ background-color: #f9fafb !important;
228
+ color: #111827 !important;
229
+ border: 1px solid #e5e7eb !important;
230
+ border-radius: 10px !important;
 
231
  }
232
 
233
+ /* Sugestões ou resultados */
234
+ .suggestions-box, .gradio-container .gr-column.output {
235
+ background-color: #ffffff !important;
236
+ border: 1px solid #e5e7eb !important;
237
+ box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
 
 
 
 
 
 
 
 
238
  }
239
 
240
+ /* Scrollbars subtis */
241
+ ::-webkit-scrollbar {
242
+ width: 8px;
 
 
 
 
 
 
 
 
243
  }
244
+ ::-webkit-scrollbar-thumb {
245
+ background-color: #d1d5db;
246
+ border-radius: 4px;
247
  }
248
 
249
+ /* Links */
250
+ a {
251
+ color: #2563eb !important;
 
 
 
 
 
252
  }
253
+ a:hover {
254
+ text-decoration: underline !important;
255
  }
256
 
257
+ /* Ocultar bordas de debug / espaços */
258
+ div[style*="background: var(--neutral-950)"] {
259
+ background: none !important;
 
 
 
 
 
 
 
 
 
260
  }
261
 
 
262
  """
263
 
264