Spaces:
Running
Running
File size: 3,290 Bytes
f5eb34f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
"""
CSS customizado para interface minimalista
Cores: Branco, Preto, Cinza e #ffbe00 (destaque amarelo)
Fonte: Inter
Compatível com light e dark mode
"""
CUSTOM_CSS = """
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
/* Variáveis para light mode */
:root {
--color-primary: #ffbe00;
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* Variáveis para dark mode */
@media (prefers-color-scheme: dark) {
:root {
--color-primary: #ffbe00;
}
}
* {
font-family: var(--font-family) !important;
}
/* Container principal */
.gradio-container {
max-width: 1400px !important;
margin: 0 auto !important;
}
/* Headers e títulos */
h1, h2, h3, h4, h5, h6 {
font-weight: 600 !important;
letter-spacing: -0.02em !important;
}
h1 {
font-size: 2rem !important;
margin-bottom: 0.5rem !important;
}
h2 {
font-size: 1.5rem !important;
margin-bottom: 1rem !important;
}
h3 {
font-size: 1.25rem !important;
}
/* Textos */
p, span, label {
font-size: 0.95rem !important;
line-height: 1.6 !important;
}
/* Botões primários - destaque amarelo */
button.primary, .primary-button {
background: var(--color-primary) !important;
color: #000000 !important;
border: none !important;
font-weight: 500 !important;
transition: all 0.2s ease !important;
border-radius: 6px !important;
}
button.primary:hover, .primary-button:hover {
background: #e6aa00 !important;
transform: translateY(-1px) !important;
box-shadow: 0 4px 12px rgba(255, 190, 0, 0.3) !important;
}
/* Tabs */
.tab-nav button.selected {
border-bottom: 2px solid var(--color-primary) !important;
}
/* Inputs - foco amarelo */
input:focus, textarea:focus, select:focus {
border-color: var(--color-primary) !important;
outline: none !important;
box-shadow: 0 0 0 3px rgba(255, 190, 0, 0.2) !important;
}
/* Slider - accent amarelo */
input[type="range"] {
accent-color: var(--color-primary) !important;
}
/* Bordas arredondadas */
input, textarea, select, button {
border-radius: 6px !important;
}
.block-container, .form {
border-radius: 8px !important;
}
/* Transições suaves */
button, input, textarea, select, .tab-nav button {
transition: all 0.2s ease !important;
}
/* Scrollbar minimalista */
::-webkit-scrollbar {
width: 8px !important;
height: 8px !important;
}
::-webkit-scrollbar-track {
background: transparent !important;
}
::-webkit-scrollbar-thumb {
background: rgba(128, 128, 128, 0.3) !important;
border-radius: 4px !important;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(128, 128, 128, 0.5) !important;
}
/* Mensagens de status */
.success {
color: #28a745 !important;
}
.warning {
color: #ffc107 !important;
}
.error {
color: #dc3545 !important;
}
/* Chatbot - mensagens do usuário com destaque amarelo */
.message.user {
background: var(--color-primary) !important;
color: #000000 !important;
}
/* Responsividade */
@media (max-width: 768px) {
.gradio-container {
padding: 1rem !important;
}
h1 {
font-size: 1.5rem !important;
}
h2 {
font-size: 1.25rem !important;
}
}
"""
|