Spaces:
Running
on
Zero
Running
on
Zero
Minor UI fixes and styling for ranking (#7)
Browse files- Minor UI fixes and styling for ranking (503603c71fcaa304397eedc26175fb82f2c7f235)
Co-authored-by: Kai <[email protected]>
- static/styles.css +159 -28
static/styles.css
CHANGED
|
@@ -298,9 +298,17 @@ body, .gradio-container {
|
|
| 298 |
}
|
| 299 |
|
| 300 |
.insufficient-alert strong {
|
| 301 |
-
display:
|
|
|
|
| 302 |
margin-bottom: 5px;
|
| 303 |
-
font-size: 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
}
|
| 305 |
|
| 306 |
.insufficient-alert p {
|
|
@@ -316,22 +324,18 @@ body, .gradio-container {
|
|
| 316 |
font-size: 1.2em !important;
|
| 317 |
}
|
| 318 |
|
| 319 |
-
/* COMPLETELY NEW APPROACH FOR SUMMARY CARDS */
|
| 320 |
-
/* Make the summary card row flex */
|
| 321 |
#main-interface-area > div:nth-child(7) > div {
|
| 322 |
display: flex !important;
|
| 323 |
flex-direction: row !important;
|
| 324 |
align-items: stretch !important;
|
| 325 |
}
|
| 326 |
|
| 327 |
-
/* Style each column in the summary row */
|
| 328 |
#main-interface-area > div:nth-child(7) > div > div {
|
| 329 |
flex: 1 !important;
|
| 330 |
display: flex !important;
|
| 331 |
flex-direction: column !important;
|
| 332 |
}
|
| 333 |
|
| 334 |
-
/* Reset all padding/margin for summary cards */
|
| 335 |
.summary-card {
|
| 336 |
border: 1px solid var(--border-light) !important;
|
| 337 |
border-radius: 6px !important;
|
|
@@ -354,7 +358,6 @@ body, .gradio-container {
|
|
| 354 |
border-left: 3px solid var(--model-b-color) !important;
|
| 355 |
}
|
| 356 |
|
| 357 |
-
/* Style the form inside summary cards */
|
| 358 |
.summary-card .gr-form {
|
| 359 |
margin: 0 !important;
|
| 360 |
padding: 0 !important;
|
|
@@ -363,7 +366,6 @@ body, .gradio-container {
|
|
| 363 |
flex-direction: column !important;
|
| 364 |
}
|
| 365 |
|
| 366 |
-
/* Style the inner div of the form */
|
| 367 |
.summary-card .gr-form > div {
|
| 368 |
margin: 0 !important;
|
| 369 |
padding: 0 !important;
|
|
@@ -372,7 +374,6 @@ body, .gradio-container {
|
|
| 372 |
flex-direction: column !important;
|
| 373 |
}
|
| 374 |
|
| 375 |
-
/* Style the label */
|
| 376 |
.summary-card .gr-input-label {
|
| 377 |
font-size: 1.1em !important;
|
| 378 |
font-weight: 600 !important;
|
|
@@ -381,7 +382,6 @@ body, .gradio-container {
|
|
| 381 |
color: var(--text-dark) !important;
|
| 382 |
}
|
| 383 |
|
| 384 |
-
/* Style the textbox container */
|
| 385 |
.summary-card .gr-textbox {
|
| 386 |
border: none !important;
|
| 387 |
background: transparent !important;
|
|
@@ -390,7 +390,6 @@ body, .gradio-container {
|
|
| 390 |
flex: 1 !important;
|
| 391 |
}
|
| 392 |
|
| 393 |
-
/* Style the textarea */
|
| 394 |
.summary-card textarea {
|
| 395 |
background-color: transparent !important;
|
| 396 |
border: none !important;
|
|
@@ -406,7 +405,6 @@ body, .gradio-container {
|
|
| 406 |
overflow-y: visible !important;
|
| 407 |
}
|
| 408 |
|
| 409 |
-
/* Force scrollbars when needed */
|
| 410 |
.summary-card-wrapper {
|
| 411 |
height: 100% !important;
|
| 412 |
overflow-y: auto !important;
|
|
@@ -503,19 +501,27 @@ body, .gradio-container {
|
|
| 503 |
}
|
| 504 |
|
| 505 |
.model-reveal {
|
| 506 |
-
font-size:
|
| 507 |
-
padding: 8px 0 !important;
|
| 508 |
text-align: center !important;
|
| 509 |
-
margin-top: 5px !important;
|
| 510 |
font-weight: 600 !important;
|
| 511 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 512 |
}
|
| 513 |
|
| 514 |
-
.model-a-reveal {
|
| 515 |
background-color: rgba(146, 180, 244, 0.2) !important;
|
| 516 |
}
|
| 517 |
|
| 518 |
-
.model-b-reveal {
|
| 519 |
background-color: rgba(248, 173, 167, 0.2) !important;
|
| 520 |
}
|
| 521 |
|
|
@@ -692,15 +698,140 @@ hr {
|
|
| 692 |
}
|
| 693 |
}
|
| 694 |
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 702 |
border: none !important;
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 706 |
}
|
|
|
|
| 298 |
}
|
| 299 |
|
| 300 |
.insufficient-alert strong {
|
| 301 |
+
display: inline-flex !important;
|
| 302 |
+
align-items: center !important;
|
| 303 |
margin-bottom: 5px;
|
| 304 |
+
font-size: 1.1em !important;
|
| 305 |
+
font-weight: 600 !important;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
.insufficient-alert strong svg {
|
| 309 |
+
margin-right: 8px !important;
|
| 310 |
+
width: 1em !important;
|
| 311 |
+
height: 1em !important;
|
| 312 |
}
|
| 313 |
|
| 314 |
.insufficient-alert p {
|
|
|
|
| 324 |
font-size: 1.2em !important;
|
| 325 |
}
|
| 326 |
|
|
|
|
|
|
|
| 327 |
#main-interface-area > div:nth-child(7) > div {
|
| 328 |
display: flex !important;
|
| 329 |
flex-direction: row !important;
|
| 330 |
align-items: stretch !important;
|
| 331 |
}
|
| 332 |
|
|
|
|
| 333 |
#main-interface-area > div:nth-child(7) > div > div {
|
| 334 |
flex: 1 !important;
|
| 335 |
display: flex !important;
|
| 336 |
flex-direction: column !important;
|
| 337 |
}
|
| 338 |
|
|
|
|
| 339 |
.summary-card {
|
| 340 |
border: 1px solid var(--border-light) !important;
|
| 341 |
border-radius: 6px !important;
|
|
|
|
| 358 |
border-left: 3px solid var(--model-b-color) !important;
|
| 359 |
}
|
| 360 |
|
|
|
|
| 361 |
.summary-card .gr-form {
|
| 362 |
margin: 0 !important;
|
| 363 |
padding: 0 !important;
|
|
|
|
| 366 |
flex-direction: column !important;
|
| 367 |
}
|
| 368 |
|
|
|
|
| 369 |
.summary-card .gr-form > div {
|
| 370 |
margin: 0 !important;
|
| 371 |
padding: 0 !important;
|
|
|
|
| 374 |
flex-direction: column !important;
|
| 375 |
}
|
| 376 |
|
|
|
|
| 377 |
.summary-card .gr-input-label {
|
| 378 |
font-size: 1.1em !important;
|
| 379 |
font-weight: 600 !important;
|
|
|
|
| 382 |
color: var(--text-dark) !important;
|
| 383 |
}
|
| 384 |
|
|
|
|
| 385 |
.summary-card .gr-textbox {
|
| 386 |
border: none !important;
|
| 387 |
background: transparent !important;
|
|
|
|
| 390 |
flex: 1 !important;
|
| 391 |
}
|
| 392 |
|
|
|
|
| 393 |
.summary-card textarea {
|
| 394 |
background-color: transparent !important;
|
| 395 |
border: none !important;
|
|
|
|
| 405 |
overflow-y: visible !important;
|
| 406 |
}
|
| 407 |
|
|
|
|
| 408 |
.summary-card-wrapper {
|
| 409 |
height: 100% !important;
|
| 410 |
overflow-y: auto !important;
|
|
|
|
| 501 |
}
|
| 502 |
|
| 503 |
.model-reveal {
|
| 504 |
+
font-size: 1em !important;
|
|
|
|
| 505 |
text-align: center !important;
|
|
|
|
| 506 |
font-weight: 600 !important;
|
| 507 |
+
background-color: transparent !important;
|
| 508 |
+
padding: 0 !important;
|
| 509 |
+
margin: 0 !important;
|
| 510 |
+
border: none !important;
|
| 511 |
+
}
|
| 512 |
+
|
| 513 |
+
.model-reveal span {
|
| 514 |
+
font-size: 1.2em !important;
|
| 515 |
+
display: block !important;
|
| 516 |
+
width: 100% !important;
|
| 517 |
+
padding: 18px 15px !important;
|
| 518 |
}
|
| 519 |
|
| 520 |
+
.model-a-reveal span {
|
| 521 |
background-color: rgba(146, 180, 244, 0.2) !important;
|
| 522 |
}
|
| 523 |
|
| 524 |
+
.model-b-reveal span {
|
| 525 |
background-color: rgba(248, 173, 167, 0.2) !important;
|
| 526 |
}
|
| 527 |
|
|
|
|
| 698 |
}
|
| 699 |
}
|
| 700 |
|
| 701 |
+
.summary-card textarea {
|
| 702 |
+
scroll-behavior: smooth !important;
|
| 703 |
+
scroll-margin-top: 0 !important;
|
| 704 |
+
scroll-snap-align: start !important;
|
| 705 |
+
}
|
| 706 |
+
|
| 707 |
+
.summary-card textarea::after {
|
| 708 |
+
content: "";
|
| 709 |
+
display: block;
|
| 710 |
+
height: 0;
|
| 711 |
+
overflow: hidden;
|
| 712 |
+
scroll-snap-align: start;
|
| 713 |
+
}
|
| 714 |
+
|
| 715 |
+
#main-interface-area > div:nth-child(7) > div {
|
| 716 |
+
content: "" !important;
|
| 717 |
+
overflow: auto !important;
|
| 718 |
+
scroll-behavior: smooth !important;
|
| 719 |
+
}
|
| 720 |
+
|
| 721 |
+
#main-interface-area > div:nth-child(7)::after {
|
| 722 |
+
content: "var textareas = document.querySelectorAll('.summary-card textarea'); textareas.forEach(function(t) { t.scrollTop = 0; });" !important;
|
| 723 |
+
display: none !important;
|
| 724 |
+
}
|
| 725 |
+
|
| 726 |
+
.gr-textbox:not(:empty) {
|
| 727 |
+
scroll-behavior: smooth;
|
| 728 |
+
scrollbar-width: thin;
|
| 729 |
+
}
|
| 730 |
+
|
| 731 |
+
.orange-title {
|
| 732 |
+
color: var(--primary) !important;
|
| 733 |
+
font-weight: bold !important;
|
| 734 |
+
}
|
| 735 |
+
|
| 736 |
+
.model-link {
|
| 737 |
+
color: var(--text-dark, #333333) !important;
|
| 738 |
+
text-decoration: none !important;
|
| 739 |
+
border-bottom: 1px dotted var(--border-light, #E6E6E6) !important;
|
| 740 |
+
transition: color 0.2s, border-color 0.2s !important;
|
| 741 |
+
padding: 2px 0 !important;
|
| 742 |
+
display: inline-flex !important;
|
| 743 |
+
align-items: center !important;
|
| 744 |
+
font-weight: 500 !important;
|
| 745 |
+
}
|
| 746 |
+
|
| 747 |
+
.model-link:hover {
|
| 748 |
+
color: #FF5500 !important;
|
| 749 |
+
border-color: #FF5500 !important;
|
| 750 |
+
}
|
| 751 |
+
|
| 752 |
+
.external-icon {
|
| 753 |
+
display: inline-block !important;
|
| 754 |
+
margin-left: 5px !important;
|
| 755 |
+
opacity: 0.6 !important;
|
| 756 |
+
transition: opacity 0.2s !important;
|
| 757 |
+
}
|
| 758 |
+
|
| 759 |
+
.model-link:hover .external-icon {
|
| 760 |
+
opacity: 1 !important;
|
| 761 |
+
}
|
| 762 |
+
|
| 763 |
+
#leaderboard-info {
|
| 764 |
+
margin: 15px 0 !important;
|
| 765 |
+
padding: 0 !important;
|
| 766 |
+
background-color: rgba(255, 236, 224, 0.5) !important;
|
| 767 |
border: none !important;
|
| 768 |
+
}
|
| 769 |
+
|
| 770 |
+
#leaderboard-info > div {
|
| 771 |
+
margin: 0 !important;
|
| 772 |
+
padding: 15px !important;
|
| 773 |
+
background-color: var(--background-light, #F9F9F9) !important;
|
| 774 |
+
border: none !important;
|
| 775 |
+
}
|
| 776 |
+
|
| 777 |
+
#leaderboard-info h3 {
|
| 778 |
+
margin-top: 0 !important;
|
| 779 |
+
margin-bottom: 10px !important;
|
| 780 |
+
color: var(--primary, #FF7D1E) !important;
|
| 781 |
+
}
|
| 782 |
+
|
| 783 |
+
#leaderboard-info p {
|
| 784 |
+
margin-bottom: 8px !important;
|
| 785 |
+
line-height: 1.5 !important;
|
| 786 |
+
}
|
| 787 |
+
|
| 788 |
+
#leaderboard-info ul {
|
| 789 |
+
margin-bottom: 10px;
|
| 790 |
+
padding-left: 20px;
|
| 791 |
+
}
|
| 792 |
+
|
| 793 |
+
#leaderboard-info li {
|
| 794 |
+
margin-bottom: 4px;
|
| 795 |
+
line-height: 1.4;
|
| 796 |
+
}
|
| 797 |
+
|
| 798 |
+
.leaderboard-table {
|
| 799 |
+
width: 100%;
|
| 800 |
+
border-collapse: collapse;
|
| 801 |
+
border-spacing: 0;
|
| 802 |
+
font-size: 1.05em !important;
|
| 803 |
+
margin-top: 15px;
|
| 804 |
+
}
|
| 805 |
+
|
| 806 |
+
.leaderboard-table th {
|
| 807 |
+
background-color: #FFF1E6 !important;
|
| 808 |
+
color: var(--text-dark, #333333);
|
| 809 |
+
font-weight: 600;
|
| 810 |
+
text-align: left;
|
| 811 |
+
padding: 14px 15px !important;
|
| 812 |
+
border-bottom: 1px solid var(--border-light, #E6E6E6);
|
| 813 |
+
font-size: 1.1em !important;
|
| 814 |
+
}
|
| 815 |
+
|
| 816 |
+
.leaderboard-table td {
|
| 817 |
+
padding: 12px 15px !important;
|
| 818 |
+
border-bottom: 1px solid var(--border-light, #E6E6E6);
|
| 819 |
+
background-color: var(--background-main, #FFFFFF);
|
| 820 |
+
font-size: 1.05em !important;
|
| 821 |
+
}
|
| 822 |
+
|
| 823 |
+
.leaderboard-table th.centered,
|
| 824 |
+
.leaderboard-table td.centered {
|
| 825 |
+
text-align: center;
|
| 826 |
+
}
|
| 827 |
+
|
| 828 |
+
.leaderboard-table td.elo-col {
|
| 829 |
+
font-weight: 600;
|
| 830 |
+
color: var(--primary, #FF7D1E);
|
| 831 |
+
}
|
| 832 |
+
|
| 833 |
+
.leaderboard-table .confidence-value {
|
| 834 |
+
color: var(--text-medium, #666666);
|
| 835 |
+
font-size: 0.9em;
|
| 836 |
+
font-weight: normal;
|
| 837 |
}
|