Spaces:
Sleeping
Sleeping
Add new model-selection-card to control visibility of model json upload button
Browse files- dashboard.css +150 -0
dashboard.css
CHANGED
|
@@ -617,3 +617,153 @@
|
|
| 617 |
.dark .leaderboard-table tr:hover {
|
| 618 |
background-color: #2d2d2d;
|
| 619 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 617 |
.dark .leaderboard-table tr:hover {
|
| 618 |
background-color: #2d2d2d;
|
| 619 |
}
|
| 620 |
+
|
| 621 |
+
/* Simple File Upload Styling - Preserve Gradio functionality */
|
| 622 |
+
#file_upload {
|
| 623 |
+
border: 1px solid #e0e0e0 !important;
|
| 624 |
+
border-radius: 8px !important;
|
| 625 |
+
background-color: transparent !important;
|
| 626 |
+
transition: all 0.3s ease !important;
|
| 627 |
+
min-height: 42px !important;
|
| 628 |
+
min-width: 200px !important;
|
| 629 |
+
}
|
| 630 |
+
|
| 631 |
+
#file_upload:hover {
|
| 632 |
+
border-color: #007bff !important;
|
| 633 |
+
background-color: #f8f9fa !important;
|
| 634 |
+
}
|
| 635 |
+
|
| 636 |
+
.dark #file_upload {
|
| 637 |
+
background-color: transparent !important;
|
| 638 |
+
border-color: #444 !important;
|
| 639 |
+
color: #e0e0e0 !important;
|
| 640 |
+
}
|
| 641 |
+
|
| 642 |
+
.dark #file_upload:hover {
|
| 643 |
+
border-color: #4d94ff !important;
|
| 644 |
+
background-color: #2a2a2a !important;
|
| 645 |
+
}
|
| 646 |
+
|
| 647 |
+
/* Download Button Styling */
|
| 648 |
+
.model-selection-row .download-button,
|
| 649 |
+
.model-selection-row button {
|
| 650 |
+
background-color: transparent !important;
|
| 651 |
+
border: 1px solid #e0e0e0 !important;
|
| 652 |
+
border-radius: 8px !important;
|
| 653 |
+
padding: 8px 12px !important;
|
| 654 |
+
height: auto !important;
|
| 655 |
+
min-height: 42px !important;
|
| 656 |
+
transition: all 0.3s ease !important;
|
| 657 |
+
display: flex !important;
|
| 658 |
+
align-items: center !important;
|
| 659 |
+
justify-content: center !important;
|
| 660 |
+
white-space: nowrap !important;
|
| 661 |
+
overflow: visible !important;
|
| 662 |
+
text-overflow: clip !important;
|
| 663 |
+
}
|
| 664 |
+
|
| 665 |
+
.model-selection-row .download-button:hover,
|
| 666 |
+
.model-selection-row button:hover {
|
| 667 |
+
border-color: #007bff !important;
|
| 668 |
+
background-color: transparent !important;
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
.dark .model-selection-row .download-button,
|
| 672 |
+
.dark .model-selection-row button {
|
| 673 |
+
background-color: transparent !important;
|
| 674 |
+
border-color: #444 !important;
|
| 675 |
+
color: #e0e0e0 !important;
|
| 676 |
+
}
|
| 677 |
+
|
| 678 |
+
.dark .model-selection-row .download-button:hover,
|
| 679 |
+
.dark .model-selection-row button:hover {
|
| 680 |
+
border-color: #4d94ff !important;
|
| 681 |
+
background-color: transparent !important;
|
| 682 |
+
}
|
| 683 |
+
|
| 684 |
+
/* Model Selection Card Styling */
|
| 685 |
+
.model-selection-card {
|
| 686 |
+
width: 100%;
|
| 687 |
+
border: 1px solid #e0e0e0;
|
| 688 |
+
border-radius: 10px;
|
| 689 |
+
padding: 20px;
|
| 690 |
+
margin-bottom: 20px;
|
| 691 |
+
background-color: #ffffff !important;
|
| 692 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
| 693 |
+
transition: all 0.3s ease;
|
| 694 |
+
}
|
| 695 |
+
|
| 696 |
+
/* Force white background for child elements, but exclude dropdowns */
|
| 697 |
+
.model-selection-card *:not(.options):not(.option):not([role="listbox"]):not([role="option"]) {
|
| 698 |
+
background-color: transparent !important;
|
| 699 |
+
}
|
| 700 |
+
|
| 701 |
+
/* Override Gradio's default row/group backgrounds */
|
| 702 |
+
.model-selection-card .row,
|
| 703 |
+
.model-selection-card .gr-row,
|
| 704 |
+
.model-selection-card .group,
|
| 705 |
+
.model-selection-card .gr-group {
|
| 706 |
+
background-color: transparent !important;
|
| 707 |
+
}
|
| 708 |
+
|
| 709 |
+
.model-selection-card:hover {
|
| 710 |
+
box-shadow: 0 6px 8px rgba(0,0,0,0.15);
|
| 711 |
+
}
|
| 712 |
+
|
| 713 |
+
|
| 714 |
+
|
| 715 |
+
.model-selection-row {
|
| 716 |
+
display: flex;
|
| 717 |
+
gap: 15px;
|
| 718 |
+
align-items: flex-end;
|
| 719 |
+
flex-wrap: wrap;
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
.model-selection-row > * {
|
| 723 |
+
flex: 1;
|
| 724 |
+
min-width: 200px;
|
| 725 |
+
white-space: nowrap;
|
| 726 |
+
}
|
| 727 |
+
|
| 728 |
+
/* Ensure proper button text display */
|
| 729 |
+
.model-selection-row .file-upload-wrapper,
|
| 730 |
+
.model-selection-row .download-button-wrapper {
|
| 731 |
+
flex: 0 1 auto;
|
| 732 |
+
min-width: 200px;
|
| 733 |
+
}
|
| 734 |
+
|
| 735 |
+
/* Responsive design for model selection */
|
| 736 |
+
@media (max-width: 768px) {
|
| 737 |
+
.model-selection-row {
|
| 738 |
+
flex-direction: column;
|
| 739 |
+
gap: 10px;
|
| 740 |
+
}
|
| 741 |
+
|
| 742 |
+
.model-selection-row > * {
|
| 743 |
+
width: 100%;
|
| 744 |
+
min-width: auto;
|
| 745 |
+
}
|
| 746 |
+
}
|
| 747 |
+
|
| 748 |
+
/* Dark mode support for model selection card */
|
| 749 |
+
.dark .model-selection-card {
|
| 750 |
+
background-color: #2a2a2a !important;
|
| 751 |
+
border-color: #444;
|
| 752 |
+
}
|
| 753 |
+
|
| 754 |
+
.dark .model-selection-card .card-title {
|
| 755 |
+
color: #fff;
|
| 756 |
+
border-bottom-color: #444;
|
| 757 |
+
}
|
| 758 |
+
|
| 759 |
+
/* Dark mode child element backgrounds, but exclude dropdowns */
|
| 760 |
+
.dark .model-selection-card *:not(.options):not(.option):not([role="listbox"]):not([role="option"]) {
|
| 761 |
+
background-color: transparent !important;
|
| 762 |
+
}
|
| 763 |
+
|
| 764 |
+
.dark .model-selection-card .row,
|
| 765 |
+
.dark .model-selection-card .gr-row,
|
| 766 |
+
.dark .model-selection-card .group,
|
| 767 |
+
.dark .model-selection-card .gr-group {
|
| 768 |
+
background-color: transparent !important;
|
| 769 |
+
}
|