SLM-Leaderboard / styles.css
Banaxi-Tech's picture
Style add model instructions
a7e30cf verified
Raw
History Blame Contribute Delete
8.72 kB
:root {
color-scheme: dark;
--bg: #080b0b;
--panel: #101413;
--panel-2: #141b1a;
--line: #2a3432;
--line-soft: #1a2220;
--text: #fff9df;
--muted: #b7b09e;
--faint: #77705f;
--accent: #facc15;
--accent-soft: rgba(250, 204, 21, 0.12);
--cyan: #22d3ee;
--green: #71e889;
--red: #ff6b6b;
}
* {
box-sizing: border-box;
}
html {
min-height: 100%;
background: var(--bg);
}
body {
min-height: 100%;
margin: 0;
background:
linear-gradient(rgba(250, 204, 21, 0.035) 1px, transparent 1px),
linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px),
var(--bg);
background-size: 34px 34px;
color: var(--text);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: 0;
}
button,
input,
select,
table {
font: inherit;
}
button,
select {
color: inherit;
}
a {
color: inherit;
text-decoration: none;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.shell {
width: min(100% - 40px, 1280px);
margin: 0 auto;
padding: 24px 0 48px;
}
.masthead {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 18px;
align-items: center;
padding: 18px;
border: 1px solid var(--line);
border-radius: 8px;
background:
linear-gradient(90deg, rgba(250, 204, 21, 0.10), transparent 34%),
rgba(8, 11, 11, 0.86);
box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
margin-bottom: 14px;
}
.brand-mark {
display: grid;
width: 74px;
height: 74px;
place-items: center;
align-content: center;
gap: 5px;
border: 1px solid rgba(250, 204, 21, 0.62);
border-radius: 8px;
background:
repeating-linear-gradient(90deg, rgba(250, 204, 21, 0.16) 0 1px, transparent 1px 8px),
#181609;
color: var(--accent);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-weight: 800;
}
.brand-mark span {
font-size: 18px;
line-height: 1;
}
.eyebrow {
margin: 0 0 7px;
color: var(--cyan);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
}
h1 {
margin: 0;
color: #fff8df;
font-family: Georgia, "Times New Roman", serif;
font-size: 46px;
font-weight: 700;
line-height: 0.98;
}
.subtitle {
margin: 8px 0 0;
max-width: 680px;
color: var(--muted);
font-size: 14px;
line-height: 1.45;
}
.contribution-note {
margin: 10px 0 0;
max-width: 760px;
color: #d9d0ad;
font-size: 13px;
font-weight: 700;
line-height: 1.45;
}
.summary-strip {
display: grid;
grid-template-columns: repeat(3, auto);
gap: 10px;
}
.summary-strip div {
min-width: 92px;
padding: 10px 12px;
border: 1px solid var(--line);
border-left: 3px solid var(--accent);
border-radius: 8px;
background: rgba(16, 20, 19, 0.88);
}
.summary-strip strong {
display: block;
color: #fff8df;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: 18px;
line-height: 1;
}
.summary-strip span {
display: block;
margin-top: 5px;
color: var(--faint);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
}
.toolbar {
display: grid;
grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(0, 2fr);
gap: 12px;
align-items: end;
margin-bottom: 10px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(16, 20, 19, 0.82);
}
.search-field,
.select-field,
.filter-group {
min-width: 0;
}
.search-field input,
.select-field select {
width: 100%;
height: 38px;
border: 1px solid var(--line);
border-radius: 4px;
background: #090c0c;
color: var(--text);
outline: none;
}
.search-field input {
padding: 0 13px;
}
.search-field input::placeholder {
color: var(--faint);
}
.select-field select {
padding: 0 34px 0 11px;
}
.search-field input:focus,
.select-field select:focus {
border-color: var(--cyan);
box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.11);
}
.select-label,
.filter-label {
display: block;
margin-bottom: 7px;
color: var(--faint);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
}
.filter-row {
display: flex;
flex-wrap: wrap;
gap: 7px;
}
.filter-button {
height: 38px;
padding: 0 11px;
border: 1px solid var(--line);
border-radius: 4px;
background: #090c0c;
color: var(--muted);
cursor: pointer;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: 12px;
font-weight: 700;
}
.filter-button:hover {
border-color: #3a414e;
color: var(--text);
}
.filter-button.is-active {
border-color: rgba(250, 204, 21, 0.72);
background:
linear-gradient(180deg, rgba(250, 204, 21, 0.18), rgba(250, 204, 21, 0.07));
color: #ffe98a;
}
.leaderboard {
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(16, 20, 19, 0.94);
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.table-wrap {
overflow-x: auto;
}
table {
width: 100%;
min-width: 1120px;
border-collapse: collapse;
}
thead {
background:
linear-gradient(90deg, rgba(250, 204, 21, 0.08), transparent 30%),
#111817;
}
th {
height: 46px;
padding: 0 12px;
border-bottom: 1px solid var(--line);
color: #8d8777;
font-size: 11px;
font-weight: 800;
text-align: right;
text-transform: uppercase;
white-space: nowrap;
}
th:first-child,
td:first-child {
padding-left: 18px;
}
th:last-child,
td:last-child {
padding-right: 18px;
}
.sortable {
cursor: pointer;
user-select: none;
}
.sortable:hover,
.sortable.is-sorted {
color: #ffe06a;
}
.sort-mark {
display: inline-block;
width: 12px;
margin-left: 4px;
color: var(--accent);
}
.rank-col,
.rank-cell {
width: 56px;
text-align: center;
}
.model-col {
width: 280px;
text-align: left;
}
.org-col {
width: 170px;
text-align: left;
}
.params-col {
width: 88px;
}
.metric-col {
min-width: 112px;
}
.link-col {
width: 76px;
}
tbody tr {
border-bottom: 1px solid var(--line-soft);
}
tbody tr:last-child {
border-bottom: 0;
}
tbody tr:hover {
background: rgba(250, 204, 21, 0.035);
}
td {
height: 64px;
padding: 0 12px;
color: var(--muted);
font-size: 13px;
text-align: right;
vertical-align: middle;
}
.rank-cell {
color: #f4ce37;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-weight: 800;
}
.model-cell,
.org-cell {
text-align: left;
}
.model-link {
display: inline-block;
max-width: 260px;
overflow: hidden;
color: #fff7d7;
font-size: 14px;
font-weight: 730;
text-overflow: ellipsis;
white-space: nowrap;
}
.model-link:hover,
.card-cell a:hover {
color: var(--accent);
}
.mobile-meta {
display: none;
}
.org-pill {
display: inline-flex;
max-width: 150px;
align-items: center;
gap: 8px;
overflow: hidden;
color: #d8d2c8;
text-overflow: ellipsis;
white-space: nowrap;
}
.org-pill span {
flex: 0 0 auto;
width: 9px;
height: 9px;
border-radius: 999px;
background: var(--org-color);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}
.params-cell,
.metric-cell,
.card-cell {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.params-cell {
color: var(--faint);
font-size: 12px;
font-weight: 700;
}
.metric-cell {
color: var(--green);
font-size: 12px;
font-weight: 800;
}
.score-value {
display: block;
line-height: 1;
}
.score-track {
display: block;
width: 72px;
height: 4px;
margin: 7px 0 0 auto;
overflow: hidden;
background: #23302d;
}
.score-track span {
display: block;
height: 100%;
background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.card-cell a {
color: #c9b866;
font-size: 12px;
font-weight: 800;
}
.empty-row td {
height: 260px;
padding: 0;
}
.empty-state {
position: sticky;
left: 0;
width: min(100%, calc(100vw - 40px));
padding: 54px 24px;
text-align: center;
}
.empty-title {
margin: 0;
color: #fff4cf;
font-size: 18px;
font-weight: 760;
}
.empty-copy {
margin: 8px 0 0;
color: var(--faint);
font-size: 13px;
}
@media (max-width: 900px) {
.shell {
width: min(100% - 28px, 1280px);
padding-top: 22px;
}
.masthead,
.toolbar {
grid-template-columns: 1fr;
}
.brand-mark {
width: 48px;
height: 48px;
}
h1 {
font-size: 34px;
}
.summary-strip {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.filter-button {
flex: 1 1 72px;
}
.empty-state {
width: min(100%, calc(100vw - 28px));
}
}