Spaces:
Running
Running
File size: 7,452 Bytes
985c38b 4c0ad02 985c38b 4c0ad02 |
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 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
/* PeptiVerse Custom CSS Styles */
.gradio-container {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 19px !important; /* Increased base font size */
}
/* Global font size adjustments */
.gr-form, .gr-box, .gr-panel {
font-size: 18px !important; /* Form elements */
}
label, .gr-label {
font-size: 18px !important; /* Labels */
}
.gr-input, .gr-dropdown, textarea, input {
font-size: 18px !important; /* Input fields */
}
.gr-button {
font-size: 18px !important; /* Buttons */
}
/* ALL Markdown text */
.gr-markdown,
.gr-markdown p,
.gr-markdown span,
.gr-markdown div,
.markdown,
.markdown p,
.markdown span,
.prose,
.prose p,
p {
font-size: 18px !important;
line-height: 1.6 !important;
}
/* Bold text in markdown */
.gr-markdown strong,
.gr-markdown b,
strong,
b {
font-size: inherit !important;
}
/* Dropdown labels and helper text */
.gr-dropdown label,
.gr-input-label,
.gr-box label,
span.text-gray-500,
span.text-gray-600,
span.text-gray-700 {
font-size: 18px !important;
}
/* Radio button labels */
.gr-radio label,
.gr-radio-label,
label.flex {
font-size: 16px !important;
}
/* Tab navigation - 4 tabs*/
.tabs button,
button.tab-nav,
.gr-tabs button {
font-size: 18px !important;
padding: 9px 16px !important;
font-weight: 500 !important;
}
/* Selected tab styling */
button.selected,
.gr-tabs button.selected {
font-weight: 600 !important;
border-bottom: 3px solid #667eea !important;
}
/* Checkbox and radio button labels */
.gr-checkbox-label,
.gr-check-radio-label,
.gr-checkbox label,
label.flex.items-center,
.gr-input-label,
input[type="checkbox"] + label,
input[type="radio"] + label {
font-size: 18px !important;
}
/* Checkbox container spacing */
.gr-checkbox, .gr-check-radio {
margin: 10px 0 !important;
}
/* Markdown content - especially in documentation tab */
.documentation-tab .prose,
.documentation-tab .markdown,
.documentation-tab .gr-markdown,
.documentation-tab p,
.documentation-tab li,
.documentation-tab td,
.documentation-tab th,
.gr-markdown p,
.gr-markdown li,
.markdown-text {
font-size: 18px !important;
line-height: 1.7 !important;
}
/* Documentation tab specific heading sizes */
.documentation-tab h1,
.gr-markdown h1 {
font-size: 2.2em !important;
display: block !important;
margin-top: 1em !important;
}
.documentation-tab h2,
.gr-markdown h2 {
font-size: 1.8em !important;
margin-top: 1em !important;
}
.documentation-tab h3,
.gr-markdown h3 {
font-size: 1.5em !important;
}
.documentation-tab h4,
.gr-markdown h4 {
font-size: 1.3em !important;
}
/* Code blocks in documentation */
.documentation-tab code,
.gr-markdown code {
font-size: 16px !important;
}
/* Info text and helper text */
.gr-info,
.text-gray-500,
.text-sm,
.gr-text-sm,
.text-xs,
span[class*="text-"] {
font-size: 16px !important;
}
/* Example text specifically */
.gr-markdown:has(strong:contains("Examples")),
p:has(strong:contains("Examples")) {
font-size: 18px !important;
}
/* Any text containing "Note:" or similar */
.gr-markdown:has(strong:contains("Note")),
p:has(strong:contains("Note")) {
font-size: 18px !important;
}
/* Dropdown menu items */
.gr-dropdown-item,
.dropdown-item {
font-size: 16px !important;
padding: 10px !important;
}
/* Slider labels */
.gr-slider label {
font-size: 16px !important;
}
.gr-button-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
border: none !important;
color: white !important;
font-size: 18px !important;
padding: 10px 20px !important;
}
.gr-button-primary:hover {
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}
/* Secondary button styling */
.gr-button-secondary {
font-size: 18px !important;
padding: 10px 18px !important;
}
/* Results section header */
.gr-group h3 {
font-size: 22px !important;
}
/* Footer text */
div[style*="text-align: center"] p {
font-size: 16px !important;
}
/* SVG Title Container - Centered and Larger */
/* Default: light logo */
.svg-title-container .logo-dark { display: none !important; }
.svg-title-container .logo-light { display: block !important; }
/* Dark mode: swap */
@media (prefers-color-scheme: dark) {
.svg-title-container .logo-light { display: none !important; }
.svg-title-container .logo-dark { display: block !important; }
}
.svg-title-container {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 30px;
padding: 20px;
width: 100%;
}
.svg-title-container img {
display: block;
margin: 0 auto;
width: auto;
height: auto;
max-width: 90%;
max-height: 200px; /* Size control */
}
.svg-title-container svg {
display: block;
margin: 0 auto;
width: 100%;
max-width: 700px; /* Size control */
height: auto;
}
/* Default H1 styling (hidden when using SVG) */
h1 {
display: none;
}
/* Predict tab H3 styling - centered with larger font */
.predict-tab h3 {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-align: center !important;
font-size: 1.2em !important;
margin-top: 10px !important;
margin-bottom: 12px !important;
font-weight: 600;
}
/* Documentation tab H3 styling - left-aligned with sidebar */
.documentation-tab h3 {
position: relative;
padding-left: 14px;
margin-top: 1.6em !important;
margin-bottom: 0.6em !important;
font-size: 1.55em !important;
font-weight: 600;
color: #4b5563;
}
/* Colored bracket for documentation */
.documentation-tab h3::before {
content: "▍";
position: absolute;
left: 0;
top: 0;
color: rgba(102, 126, 234, 0.55);
font-weight: 800;
}
/* Best Models and Distributions tabs H3 styling */
.best-models-tab h3, .distributions-tab h3 {
position: relative;
padding-left: 14px;
margin-top: 1.6em !important;
margin-bottom: 0.6em !important;
font-size: 1.55em !important;
font-weight: 600;
color: #4b5563;
}
.best-models-tab h3::before, .distributions-tab h3::before {
content: "▍";
position: absolute;
left: 0;
top: 0;
color: rgba(102, 126, 234, 0.55);
font-weight: 800;
}
.gr-form {
border-radius: 12px !important;
border-color: #e5e7eb !important;
}
.property-result:hover {
background: #f0f0f0;
cursor: pointer;
}
/* Component labels like "Input Type", textbox labels, dropdown labels MAIN SIZE CHANGER */
.gradio-container .gr-label,
.gradio-container .gr-input-label,
.gradio-container .block-label,
.gradio-container label,
.gradio-container label span {
font-size: 16px !important;
line-height: 1.3 !important;
}
/* "Examples:" and other markdown text inside the left column */
.gradio-container .gr-markdown p,
.gradio-container .gr-markdown strong,
.gradio-container .gr-markdown span,
.gradio-container .markdown p,
.gradio-container .prose p {
font-size: 18px !important;
}
/* Accordion header buttons */
#acc_phys > button,
#acc_pred > button {
font-size: 18px !important;
font-weight: 600 !important;
line-height: 1.35 !important;
padding: 10px 12px !important;
}
/* If Gradio wraps text in spans/divs */
#acc_phys > button * ,
#acc_pred > button * {
font-size: 18px !important;
}
|