Update app.py
Browse files
app.py
CHANGED
|
@@ -76,6 +76,16 @@ a{ color:var(--primary-700)!important; }
|
|
| 76 |
.gr-button-primary:hover, button.primary:hover, .primary:hover{ background:var(--primary-600)!important; }
|
| 77 |
.gr-button-primary{ padding:0.35rem 0.85rem!important; font-size:0.95rem!important; }
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
/* --- Keep the textbox exactly as-is: wrapper blends with page, textarea stays white --- */
|
| 80 |
#input_col, #input_col *{
|
| 81 |
background: transparent !important;
|
|
@@ -433,6 +443,53 @@ a{ color:var(--primary-700)!important; }
|
|
| 433 |
.gr-button.gr-button-primary:hover {
|
| 434 |
background: var(--primary-600) !important;
|
| 435 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 436 |
|
| 437 |
}
|
| 438 |
"""
|
|
|
|
| 76 |
.gr-button-primary:hover, button.primary:hover, .primary:hover{ background:var(--primary-600)!important; }
|
| 77 |
.gr-button-primary{ padding:0.35rem 0.85rem!important; font-size:0.95rem!important; }
|
| 78 |
|
| 79 |
+
/* Force Marka/Tag button styling (more reliable than Gradio class names) */
|
| 80 |
+
#btn_tag{
|
| 81 |
+
background: var(--primary-500) !important;
|
| 82 |
+
border-color: var(--primary-600) !important;
|
| 83 |
+
color:#0b1b19 !important;
|
| 84 |
+
}
|
| 85 |
+
#btn_tag:hover{
|
| 86 |
+
background: var(--primary-600) !important;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
/* --- Keep the textbox exactly as-is: wrapper blends with page, textarea stays white --- */
|
| 90 |
#input_col, #input_col *{
|
| 91 |
background: transparent !important;
|
|
|
|
| 443 |
.gr-button.gr-button-primary:hover {
|
| 444 |
background: var(--primary-600) !important;
|
| 445 |
}
|
| 446 |
+
/* --- Dataframe: force readable text everywhere inside --- */
|
| 447 |
+
.gr-dataframe, .gr-dataframe *{
|
| 448 |
+
color: var(--text) !important;
|
| 449 |
+
border-color: var(--border) !important;
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
.gr-dataframe,
|
| 453 |
+
.gr-dataframe .wrap,
|
| 454 |
+
.gr-dataframe .table-wrap,
|
| 455 |
+
.gr-dataframe table,
|
| 456 |
+
.gr-dataframe thead,
|
| 457 |
+
.gr-dataframe tbody,
|
| 458 |
+
.gr-dataframe tr,
|
| 459 |
+
.gr-dataframe th,
|
| 460 |
+
.gr-dataframe td{
|
| 461 |
+
background: var(--panel-bg) !important;
|
| 462 |
+
}
|
| 463 |
+
|
| 464 |
+
/* --- Markdown + headings (Úrslit / Results etc.) --- */
|
| 465 |
+
#results_hdr, #results_hdr *{
|
| 466 |
+
color: var(--text) !important;
|
| 467 |
+
}
|
| 468 |
+
|
| 469 |
+
.gr-markdown, .gr-markdown *{
|
| 470 |
+
color: var(--text) !important;
|
| 471 |
+
}
|
| 472 |
+
|
| 473 |
+
/* --- Accordion header (the clickable bar) --- */
|
| 474 |
+
.gr-accordion summary,
|
| 475 |
+
.gr-accordion summary *{
|
| 476 |
+
color: var(--text) !important;
|
| 477 |
+
}
|
| 478 |
+
|
| 479 |
+
.gr-accordion summary{
|
| 480 |
+
background: var(--panel-bg) !important;
|
| 481 |
+
border: 1px solid var(--border) !important;
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
/* Accordion content area */
|
| 485 |
+
.gr-accordion .wrap,
|
| 486 |
+
.gr-accordion .wrap *{
|
| 487 |
+
color: var(--text) !important;
|
| 488 |
+
}
|
| 489 |
+
@media (forced-colors: active){
|
| 490 |
+
/* Let the OS pick readable colors */
|
| 491 |
+
*{ forced-color-adjust: auto; }
|
| 492 |
+
}
|
| 493 |
|
| 494 |
}
|
| 495 |
"""
|