AniseF commited on
Commit
959acaa
·
verified ·
1 Parent(s): 9880f9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -9
app.py CHANGED
@@ -3,27 +3,41 @@ from utils import call_openrouter
3
 
4
  # app.py
5
 
6
- # 1. CSS com Importação da Alegreya Sans e aplicação nos elementos
7
  custom_css = """
8
  @import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
9
 
10
- /* Aplica a fonte em toda a interface */
11
- body, .gradio-container, .gr-button, .gr-input, .gr-form {
12
  font-family: 'Alegreya Sans', sans-serif !important;
 
13
  }
14
 
15
- /* Ajuste específico para a área de entrada (textarea) e saída */
16
- textarea, .input-container textarea, .output-class textarea {
 
 
 
17
  font-family: 'Alegreya Sans', sans-serif !important;
18
- font-size: 22px !important;
19
- line-height: 1.6 !important;
 
20
  }
21
 
22
- /* Garante que o Markdown (relatório) também use a fonte */
23
- .prose, .markdown-text {
24
  font-family: 'Alegreya Sans', sans-serif !important;
 
 
25
  }
26
 
 
 
 
 
 
 
 
 
27
  .selected { background-color: #2b5797 !important; color: white !important; }
28
  .selected span { color: white !important; font-weight: bold !important; }
29
  .item.selected, .item:hover { background-color: #2b5797 !important; color: white !important; }
 
3
 
4
  # app.py
5
 
 
6
  custom_css = """
7
  @import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
8
 
9
+ /* 1. Aplicação Global com tamanho aumentado */
10
+ body, .gradio-container, .gr-button, .gr-form, p, span {
11
  font-family: 'Alegreya Sans', sans-serif !important;
12
+ font-size: 20px !important; /* Tamanho base para labels e botões */
13
  }
14
 
15
+ /* 2. Foco total na legibilidade do Input e Output */
16
+ textarea,
17
+ .input-container textarea,
18
+ .output-class textarea,
19
+ [data-testid="textbox"] {
20
  font-family: 'Alegreya Sans', sans-serif !important;
21
+ font-size: 24px !important; /* Tamanho generoso para o Grego e a Análise */
22
+ line-height: 1.5 !important;
23
+ padding: 15px !important;
24
  }
25
 
26
+ /* 3. Ajuste do Markdown (o relatório gerado) */
27
+ .prose, .markdown-text, .prose p {
28
  font-family: 'Alegreya Sans', sans-serif !important;
29
+ font-size: 22px !important;
30
+ line-height: 1.6 !important;
31
  }
32
 
33
+ /* 4. Títulos do Relatório */
34
+ .prose h1, .prose h2, .prose h3 {
35
+ font-family: 'Alegreya Sans', sans-serif !important;
36
+ font-weight: 700 !important;
37
+ color: #2b5797 !important;
38
+ }
39
+
40
+ /* 5. Cores de seleção do Thomas (preservadas) */
41
  .selected { background-color: #2b5797 !important; color: white !important; }
42
  .selected span { color: white !important; font-weight: bold !important; }
43
  .item.selected, .item:hover { background-color: #2b5797 !important; color: white !important; }