leaderboard / static /css /index.css
nthakur's picture
Set up FreshStack leaderboard Space frontend.
d83a23f
body {
font-family: 'Noto Sans', sans-serif;
}
.recall-param-plot {
width: 100%;
height: 380px;
min-height: 280px;
}
.footer .icon-link {
font-size: 25px;
color: #000;
}
.link-block a {
margin-top: 5px;
margin-bottom: 5px;
}
.freshstack-logo {
width: 1em;
vertical-align: middle;
}
.freshstack {
font-variant: small-caps;
font-weight: bold;
}
.upper_baseline {
background-color: rgba(255, 208, 80, 0.15);
}
.open_source {
background-color: rgba(249, 242, 248, 1);
}
.proprietary {
background-color: rgba(117, 209, 215, 0.1);
}
.random_frequent {
background-color: #f4f9fe;
color: #808080;
}
.teaser .hero-body {
padding-top: 0;
padding-bottom: 3rem;
}
.teaser {
font-family: 'Google Sans', sans-serif;
}
.publication-links {
display: flex;
flex-wrap: nowrap;
justify-content: center;
}
.publication-banner {
max-height: 100%;
}
.publication-banner video {
position: relative;
left: auto;
top: auto;
transform: none;
object-fit: contain;
}
.publication-header .hero-body {
}
.publication-title,
.publication-authors {
font-family: 'Google Sans', sans-serif;
}
.publication-venue {
color: #555;
width: fit-content;
font-weight: bold;
}
.publication-awards {
color: #ff3860;
width: fit-content;
font-weight: bolder;
}
.publication-authors a {
color: hsl(204, 86%, 53%) !important;
}
.publication-authors a:hover {
text-decoration: underline;
}
.author-block {
display: inline-block;
}
.publication-banner img {
}
.publication-video {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
overflow: hidden;
border-radius: 10px !important;
}
.publication-video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.publication-body img {
}
.results-carousel {
overflow: hidden;
}
.stats-image {
max-height: 250px;
}
#org-banners {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.org-banner {
max-width: 100%;
height: 6em;
margin: 10px;
padding: 10px;
}
.chart-grid {
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.chart-item {
text-align: center;
}
.chart-label {
margin-top: 5px;
}
@media (min-width: 600px) {
.chart-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
}
@media (min-width: 900px) {
.chart-grid {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
}
.bottom-text {
margin-top: 30px;
}
.model-labels-container {
text-align: center;
margin-top: 8px;
margin-bottom: 8px;
}
.model-label {
display: inline-block;
padding: 4px 10px;
margin: 5px;
border-radius: 3px;
color: rgb(255, 255, 255);
}
.box {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
margin: 5px;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 80%;
}
.leaderboard-container {
display: flex;
flex-direction: column;
overflow-x: auto;
}
.table-row {
display: flex;
width: 100%;
}
.sortable:hover {
cursor: pointer;
}
.asc::after {
content: ' ↑';
}
.desc::after {
content: ' ↓';
}
table {
border-collapse: collapse;
width: 100%;
margin-top: 5px;
border: 1px solid #ddd;
font-size: 12px;
}
th, td {
text-align: left;
padding: 4px 6px;
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
th {
background-color: #f2f2f2;
border-bottom: 2px solid #ddd;
}
td:hover {
background-color: #ffffff;
}
.main-header {
background-color: #e6e6e6;
font-weight: bold;
text-align: center;
}
.sub-header {
background-color: #f2f2f2;
}
.clickable {
cursor: pointer;
}
.clickable:hover {
background-color: #d9d9d9;
}
.hidden {
display: none;
}
.leaderboard-label {
padding: 5px 10px;
margin-right: 10px;
border-radius: 5px;
}
.table-wrapper {
overflow-x: auto;
width: 100%;
}
@media screen and (max-width: 768px) {
th, td {
min-width: 100px;
}
}
th.average-details-cell,
th.langchain-details-cell,
th.yolo-details-cell,
th.godot-details-cell,
th.laravel-details-cell,
th.angular-details-cell {
cursor: default;
}
#freshstack-table th,
#freshstack-table td {
max-width: 70px; /* or any value that fits your needs */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 3px 6px; /* Reduce padding to make it more compact */
font-size: 11px; /* Slightly smaller font for compactness */
vertical-align: middle;
text-align: center;
}
/* Rank column */
#freshstack-table td:first-child,
#freshstack-table th:first-child {
width: 42px;
min-width: 42px;
max-width: 42px;
text-align: center;
}
/* Model name column — left-aligned, allow wrapping */
#freshstack-table td:nth-child(2),
#freshstack-table th:nth-child(2) {
min-width: 160px;
max-width: 200px;
white-space: normal;
text-align: left;
}
/* Date column (4th child: Rank, Model, Size, Date) */
#freshstack-table th:nth-child(4),
#freshstack-table td:nth-child(4) {
white-space: nowrap;
text-align: center;
}
#toggleButton {
background-color: #ffffff;
border: 1px solid #dddddd;
color: #555555;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
border-radius: 25px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition-duration: 0.4s;
}
#toggleButton:hover {
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
.new-model-badge {
display: inline-block;
margin-left: 4px;
background-color: #d4edda; /* light green background */
color: #2e7d32; /* dark green text */
font-size: 0.6rem;
padding: 1px 4px;
border-radius: 3px;
font-weight: 500;
vertical-align: top;
}
.poster-embed {
width: 100%;
aspect-ratio: 1.414 / 1; /* ~ 1.414 : 1 for A0 landscape */
}
.poster-embed object,
.poster-embed iframe,
.poster-embed embed {
width: 100%;
height: 100%;
border: none;
}