DDR_Bench / styles.css
thinkwee
feat: Add new Qwen and Gemini model data, implement entropy data processing, and introduce various visualization and data management scripts.
9337e18
raw
history blame
6.12 kB
/* Apple Style Minimalist Theme */
:root {
--primary: #0071e3;
/* Apple Blue */
--primary-hover: #0077ed;
--bg-body: #f5f5f7;
/* Light grey background */
--bg-card: #ffffff;
--text-primary: #1d1d1f;
/* Apple Black */
--text-secondary: #515154;
/* Darker grey */
--border: #d2d2d7;
--shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
/* Stronger shadow */
--radius-card: 20px;
--radius-btn: 980px;
/* Capsule */
--font-stack: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}
/* Reset & Base */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-stack);
background-color: var(--bg-body);
color: var(--text-primary);
line-height: 1.47059;
letter-spacing: -0.022em;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
/* Hero Section */
.hero {
padding: 4rem 2rem 2rem;
text-align: center;
background: var(--bg-body);
}
.hero-content {
max-width: 980px;
margin: 0 auto;
}
.badge {
display: inline-block;
color: var(--primary);
font-size: 12px;
font-weight: 600;
margin-bottom: 0.8rem;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.hero h1 {
font-size: 48px;
line-height: 1.08349;
font-weight: 700;
letter-spacing: -0.003em;
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.subtitle {
font-size: 24px;
line-height: 1.16667;
font-weight: 400;
letter-spacing: 0.009em;
color: var(--text-primary);
margin-bottom: 1rem;
}
.description {
font-size: 17px;
line-height: 1.47059;
font-weight: 400;
letter-spacing: -0.022em;
color: var(--text-secondary);
max-width: 700px;
margin: 0 auto 2rem;
}
.stats-row {
display: flex;
justify-content: center;
gap: 3rem;
margin-top: 2rem;
}
.stat-item {
text-align: center;
}
.stat-value {
display: block;
font-size: 28px;
font-weight: 600;
color: var(--text-primary);
}
.stat-label {
font-size: 13px;
color: var(--text-secondary);
font-weight: 500;
}
/* Main Content */
.content {
max-width: 1800px;
/* Maximize width for charts */
margin: 0 auto;
padding: 2rem;
}
/* Sections */
.section {
margin-bottom: 4rem;
}
.section-header {
margin-bottom: 2rem;
text-align: center;
}
.section-header h2 {
font-size: 32px;
line-height: 1.125;
font-weight: 700;
letter-spacing: 0.004em;
margin-bottom: 0.5rem;
}
.section-header p {
font-size: 17px;
color: var(--text-secondary);
}
/* Toggle Buttons */
.dimension-toggle {
display: flex;
justify-content: center;
gap: 1rem;
margin-bottom: 1.5rem;
}
.dim-btn {
padding: 8px 16px;
background: rgba(0, 0, 0, 0.05);
border: none;
border-radius: var(--radius-btn);
color: var(--text-primary);
font-size: 14px;
font-weight: 400;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
}
.dim-btn:hover {
background: rgba(0, 0, 0, 0.1);
}
.dim-btn.active {
background: var(--text-primary);
/* Black active state like Apple */
color: white;
}
.toggle-btn {
padding: 10px 20px;
background: rgba(0, 0, 0, 0.05);
border: none;
border-radius: var(--radius-btn);
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
font-family: inherit;
}
.toggle-btn:hover {
background: rgba(0, 0, 0, 0.12);
}
.toggle-btn.active {
background: var(--text-primary);
color: white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* Shared Legend for Scaling and Probing */
.shared-legend {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 1.5rem;
margin-bottom: 1.5rem;
padding: 1rem;
background: var(--bg-card);
border-radius: 12px;
box-shadow: var(--shadow-card);
}
.legend-item {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 13px;
color: var(--text-primary);
}
.legend-color {
width: 24px;
height: 3px;
border-radius: 2px;
}
/* Charts Grid */
.charts-grid {
display: grid;
gap: 16px;
/* Tighter gap */
}
.charts-grid.three-col {
grid-template-columns: repeat(3, 1fr);
}
.charts-grid.single {
grid-template-columns: 1fr;
max-width: 1000px;
margin: 0 auto;
}
/* Chart Card */
.chart-card {
background: var(--bg-card);
border-radius: var(--radius-card);
padding: 24px;
box-shadow: var(--shadow-card);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chart-card:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.chart-card h3 {
font-size: 14px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 1rem;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.chart-card.wide {
padding: 32px;
}
/* Chart Containers */
.chart-container {
height: 300px;
/* Reduced height */
width: 100%;
transition: opacity 0.3s ease;
}
.chart-container-tall {
height: 450px;
/* Reduced height */
transition: opacity 0.3s ease;
width: 100%;
}
.chart-container-double {
height: 600px;
/* Double height for error analysis */
width: 100%;
}
/* Footer */
.footer {
text-align: center;
padding: 3rem 1rem;
color: var(--text-secondary);
font-size: 12px;
background: var(--bg-body);
border-top: 1px solid var(--border);
}
/* Responsive */
@media (max-width: 1024px) {
.charts-grid.three-col {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.hero h1 {
font-size: 36px;
}
.subtitle {
font-size: 20px;
}
.charts-grid.three-col {
grid-template-columns: 1fr;
}
.chart-container {
height: 300px;
}
.chart-container-tall {
height: 400px;
}
}
/* Plotly Overrides */
.js-plotly-plot .plotly .modebar {
display: none !important;
}