Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
/*
|
| 11 |
-
body, .gradio-container, .gr-button, .gr-
|
| 12 |
font-family: 'Alegreya Sans', sans-serif !important;
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
-
/*
|
| 16 |
-
textarea,
|
|
|
|
|
|
|
|
|
|
| 17 |
font-family: 'Alegreya Sans', sans-serif !important;
|
| 18 |
-
font-size:
|
| 19 |
-
line-height: 1.
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
-
/*
|
| 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; }
|