m-ric's picture
m-ric HF staff
Update frontend/src/App.css
d59cc48 verified
.container {
max-width: 1000px;
margin: 0 auto;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.header {
text-align: center;
margin-bottom: 24px;
}
.title {
color: #333;
margin-bottom: 8px;
}
.subtitle {
color: #666;
margin: 5px 0;
}
.filters-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.search-container {
flex: 1;
margin-right: 20px;
margin-bottom: 10px;
}
.search-input {
width: 100%;
padding: 8px 12px;
font-size: 14px;
border: 1px solid #ddd;
border-radius: 4px;
}
.options-container {
display: flex;
gap: 20px;
}
.option-label {
display: flex;
align-items: center;
cursor: pointer;
font-size: 14px;
color: #333;
}
.option-label input {
margin-right: 8px;
}
.table-container {
background: white;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
/* Model name column */
th:first-child, td:first-child {
width: 25%;
}
/* Score columns (GAIA, MATH, SimpleQA) */
th:not(:first-child), td:not(:first-child) {
width: 25%;
}
th {
text-align: left;
padding: 12px;
border-bottom: 2px solid #eee;
color: #333;
font-weight: 600;
cursor: pointer;
}
th:hover {
color: #2ecc71;
}
.sort-indicator {
display: inline-block;
margin-left: 4px;
transition: transform 0.2s ease;
}
td {
padding: 12px;
border-bottom: 1px solid #eee;
}
tr:nth-child(even) {
background-color: #f8f9fa;
}
.model-name {
font-weight: 500;
color: #2c3e50;
}
.score-container {
display: flex;
flex-direction: column;
gap: 4px;
}
.score-bar {
width: 100%;
height: 24px;
background: #eee;
border-radius: 5px;
overflow: hidden;
position: relative;
}
.vanilla-bar {
width: 100%;
height: 14px;
background: #eee;
border-radius: 3px;
opacity: 0.6;
overflow: hidden;
position: relative;
}
.score-fill {
height: 100%;
transition: width 0.3s ease, background-color 0.3s ease;
border-radius: inherit;
}
.score-text {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
color: white;
font-size: 12px;
font-weight: 500;
text-shadow: 0 1px 2px rgba(0,0,0,0.1);
mix-blend-mode: difference;
}
.vanilla-text {
font-size: 9px;
opacity: 0.9;
}
.legend {
margin-top: 16px;
text-align: center;
color: #666;
font-size: 13px;
}
@media (max-width: 768px) {
.filters-container {
flex-direction: column;
align-items: stretch;
}
.search-container {
margin-right: 0;
margin-bottom: 15px;
}
.options-container {
flex-direction: column;
gap: 10px;
}
}