heb-g2p-benchmark / styles.css
thewh1teagle
latest
16ddc25
Raw
History Blame Contribute Delete
8.6 kB
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
margin: 0;
padding: 0;
background: #ffffff;
min-height: 100vh;
line-height: 1.47059;
font-size: 17px;
color: #1d1d1f;
}
.container {
max-width: 1440px;
margin: 0 auto;
background: white;
}
.header {
background: #fbfbfd;
padding: 70px 40px 60px;
text-align: center;
}
.header h1 {
margin: 0 0 12px 0;
font-size: 56px;
font-weight: 600;
color: #1d1d1f;
letter-spacing: -0.015em;
line-height: 1.07143;
}
.header p {
margin: 0 auto;
font-size: 21px;
color: #86868b;
font-weight: 400;
max-width: 800px;
line-height: 1.381;
letter-spacing: 0.011em;
}
.header-link {
color: #06c;
text-decoration: none;
font-weight: 400;
}
.header-link:hover {
text-decoration: underline;
}
.stats {
display: flex;
justify-content: center;
gap: 80px;
padding: 50px 40px;
background: #ffffff;
border-bottom: 1px solid #d2d2d7;
}
.stat {
text-align: center;
min-width: 140px;
}
.stat-number {
font-size: 48px;
font-weight: 600;
color: #1d1d1f;
letter-spacing: -0.003em;
line-height: 1.08349;
}
.stat-label {
color: #86868b;
font-size: 14px;
font-weight: 400;
margin-top: 8px;
letter-spacing: -0.016em;
}
.plot-container {
padding: 60px 40px;
height: 600px;
position: relative;
background: #fbfbfd;
}
.leaderboard-section {
padding: 60px 40px;
background: #ffffff;
}
.table-note {
font-size: 13px;
color: #6e6e73;
margin-top: 16px;
text-align: center;
}
.leaderboard-title {
font-size: 40px;
font-weight: 600;
color: #1d1d1f;
margin-bottom: 40px;
text-align: center;
letter-spacing: -0.015em;
line-height: 1.1;
}
.model-table {
background: #ffffff;
border: 1px solid #d2d2d7;
border-radius: 18px;
overflow: hidden;
max-width: 980px;
margin: 0 auto;
max-height: 500px;
overflow-y: auto;
}
.model-table table {
margin: 0;
border-collapse: collapse;
width: 100%;
}
.model-table thead {
position: sticky;
top: 0;
z-index: 10;
}
.model-table th {
background: #f5f5f7;
padding: 16px 24px;
font-size: 12px;
font-weight: 600;
border-bottom: 1px solid #d2d2d7;
text-align: left;
color: #6e6e73;
letter-spacing: 0.5px;
}
.model-table td {
padding: 20px 24px;
border-bottom: 1px solid #d2d2d7;
font-size: 17px;
color: #1d1d1f;
}
.model-table tbody tr:last-child td {
border-bottom: none;
}
.model-table .rank {
text-align: center;
font-weight: 600;
width: 60px;
color: #6e6e73;
font-size: 19px;
}
.model-table .model-name {
font-weight: 600;
color: #1d1d1f;
}
.model-table .model-name a {
color: #06c;
text-decoration: none;
}
.model-table .model-name a:hover {
text-decoration: underline;
}
.model-table .metric {
text-align: right;
width: 120px;
font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Monaco', monospace;
font-weight: 400;
color: #1d1d1f;
font-size: 17px;
letter-spacing: -0.022em;
}
.model-table .best-model-row {
background: #f5f5f7;
}
.model-table tbody tr:hover {
background-color: #fafafa;
}
.loading {
text-align: center;
padding: 60px;
color: #86868b;
font-size: 17px;
}
.error {
text-align: center;
padding: 60px;
color: #d8534e;
font-size: 17px;
}
@media (max-width: 1068px) {
.header h1 {
font-size: 48px;
}
.header p {
font-size: 19px;
}
.stats {
flex-direction: column;
gap: 40px;
padding: 40px 20px;
}
.stat-number {
font-size: 40px;
}
.leaderboard-title {
font-size: 32px;
}
.plot-container {
height: 500px;
padding: 40px 20px;
}
.leaderboard-section {
padding: 40px 20px;
}
}
@media (max-width: 734px) {
.header {
padding: 50px 20px 40px;
}
.header h1 {
font-size: 40px;
}
.header p {
font-size: 17px;
}
.stat-number {
font-size: 36px;
}
.model-table th,
.model-table td {
padding: 12px 16px;
font-size: 15px;
}
}
.model-table .report-link {
text-align: center;
width: 120px;
}
.model-table .report-link a {
color: #06c;
text-decoration: none;
font-weight: 500;
}
.model-table .report-link a:hover {
text-decoration: underline;
}
.report-controls {
padding: 40px 40px 20px;
text-align: center;
background: #ffffff;
}
.back-button {
background: #06c;
color: white;
border: none;
padding: 12px 28px;
font-size: 17px;
font-weight: 500;
border-radius: 980px;
cursor: pointer;
transition: background 0.2s ease;
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}
.back-button:hover {
background: #0077ed;
}
.sentences-section {
padding: 40px 40px 60px;
background: #fbfbfd;
}
#sentences-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 24px;
}
.sentence-card {
background: #ffffff;
border: 1px solid #d2d2d7;
border-radius: 18px;
padding: 28px;
transition: box-shadow 0.2s ease;
}
.sentence-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.sentence-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 16px;
flex-wrap: wrap;
}
.sentence-number {
font-size: 24px;
font-weight: 600;
color: #6e6e73;
min-width: 50px;
}
.sentence-id {
font-size: 14px;
font-weight: 500;
color: #86868b;
padding: 6px 12px;
background: #f5f5f7;
border-radius: 6px;
}
.sentence-accuracy {
font-size: 15px;
font-weight: 600;
padding: 6px 12px;
border-radius: 6px;
margin-left: auto;
}
.sentence-accuracy.perfect {
background: #d1fae5;
color: #065f46;
}
.sentence-accuracy.good {
background: #fef3c7;
color: #92400e;
}
.sentence-accuracy.poor {
background: #fee2e2;
color: #991b1b;
}
.sentence-text {
font-size: 17px;
line-height: 1.5;
color: #1d1d1f;
margin-bottom: 16px;
padding: 16px;
background: #f5f5f7;
border-radius: 8px;
}
.sentence-metrics {
display: flex;
gap: 12px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.metric-badge {
font-size: 13px;
font-weight: 500;
padding: 6px 12px;
background: #e5e7eb;
color: #374151;
border-radius: 6px;
font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Monaco', monospace;
}
.phonemes-container {
background: #fbfbfd;
border-radius: 8px;
padding: 16px;
}
.phoneme-row {
display: grid;
grid-template-columns: 140px 1fr;
gap: 12px;
margin-bottom: 12px;
align-items: start;
}
.phoneme-row:last-child {
margin-bottom: 0;
}
.phoneme-label {
font-size: 13px;
font-weight: 600;
color: #6e6e73;
padding-top: 4px;
}
.phoneme-value {
font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Monaco', monospace;
line-height: 1.6;
padding: 8px 12px;
border-radius: 6px;
word-break: break-all;
}
.phoneme-value.gt {
background: #e0f2fe;
color: #075985;
}
.phoneme-value.pred {
background: #ede9fe;
color: #5b21b6;
}
.phoneme-value.diff {
background: #fefce8;
color: #1a1a1a;
}
.diff-ins {
background: #bbf7d0;
color: #14532d;
border-radius: 2px;
}
.diff-del {
background: #fecaca;
color: #7f1d1d;
text-decoration: line-through;
border-radius: 2px;
}
@media (max-width: 1068px) {
.report-controls {
padding: 30px 20px 15px;
}
.sentences-section {
padding: 30px 20px 50px;
}
.sentence-card {
padding: 20px;
}
.phoneme-row {
grid-template-columns: 120px 1fr;
}
}
@media (max-width: 734px) {
.sentence-header {
flex-direction: column;
align-items: flex-start;
}
.sentence-accuracy {
margin-left: 0;
}
.phoneme-row {
grid-template-columns: 1fr;
gap: 6px;
}
.phoneme-label {
padding-top: 0;
}
.back-button {
width: 100%;
padding: 14px 28px;
}
}