DDR_Bench / styles.css
thinkwee
fix display
9c2d624
raw
history blame
6.39 kB
/* Root Variables */
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #818cf8;
--secondary: #10b981;
--accent: #f59e0b;
--bg-dark: #0f172a;
--bg-card: #1e293b;
--bg-card-hover: #334155;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--border: #334155;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
--gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
--gradient-hero: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1a1f3c 100%);
}
/* Reset & Base */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background-color: var(--bg-dark);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
/* Hero Section */
.hero {
background: var(--gradient-hero);
padding: 2rem 2rem 1.5rem;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
pointer-events: none;
}
.hero-content {
max-width: 900px;
margin: 0 auto;
position: relative;
z-index: 1;
}
.badge {
display: inline-block;
background: rgba(99, 102, 241, 0.2);
color: var(--primary-light);
padding: 0.3rem 0.7rem;
border-radius: 2rem;
font-size: 0.75rem;
font-weight: 500;
margin-bottom: 0.5rem;
border: 1px solid rgba(99, 102, 241, 0.3);
}
.hero h1 {
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, #f1f5f9 0%, #818cf8 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 0.4rem;
letter-spacing: -0.02em;
}
.subtitle {
font-size: 1rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
font-weight: 400;
}
.description {
font-size: 0.85rem;
color: var(--text-muted);
max-width: 700px;
margin: 0 auto 1rem;
line-height: 1.5;
}
.stats-row {
display: flex;
justify-content: center;
gap: 2rem;
margin-top: 1rem;
}
.stat-item {
text-align: center;
}
.stat-value {
display: block;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-light);
}
.stat-label {
font-size: 0.7rem;
color: var(--text-muted);
}
/* Main Content */
.content {
max-width: 1400px;
margin: 0 auto;
padding: 1rem 1.5rem;
}
/* Sections - all visible */
.section {
display: block;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
}
.section:last-child {
border-bottom: none;
margin-bottom: 0;
}
.section-header {
margin-bottom: 1rem;
text-align: center;
}
.section-header h2 {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.25rem;
}
.section-header p {
color: var(--text-muted);
font-size: 0.8rem;
}
/* Dimension Toggle Buttons */
.dimension-toggle {
display: flex;
justify-content: center;
gap: 0.4rem;
margin-bottom: 1rem;
}
.dim-btn {
padding: 0.4rem 0.9rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 2rem;
color: var(--text-secondary);
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
}
.dim-btn:hover {
background: var(--bg-card-hover);
color: var(--text-primary);
}
.dim-btn.active {
background: var(--gradient-primary);
color: white;
border-color: transparent;
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
/* Charts Grid */
.charts-grid {
display: grid;
gap: 0.75rem;
}
.charts-grid.three-col {
grid-template-columns: repeat(3, 1fr);
}
.charts-grid.single {
grid-template-columns: 1fr;
max-width: 900px;
margin: 0 auto;
}
@media (max-width: 1200px) {
.charts-grid.three-col {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.charts-grid.three-col {
grid-template-columns: 1fr;
}
}
/* Chart Card */
.chart-card {
background: var(--bg-card);
border-radius: 0.5rem;
padding: 0.75rem;
border: 1px solid var(--border);
box-shadow: var(--shadow);
overflow: hidden;
}
.chart-card h3 {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.5rem;
text-align: center;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border);
}
.chart-card.wide {
padding: 1rem;
}
/* Chart Containers - Fixed heights */
.chart-container {
height: 280px;
width: 100%;
}
.chart-container-tall {
height: 380px;
width: 100%;
}
/* Footer */
.footer {
text-align: center;
padding: 1rem;
color: var(--text-muted);
font-size: 0.75rem;
border-top: 1px solid var(--border);
margin-top: 1rem;
}
/* Responsive */
@media (max-width: 768px) {
.hero {
padding: 1.5rem 1rem;
}
.hero h1 {
font-size: 1.75rem;
}
.subtitle {
font-size: 0.9rem;
}
.stats-row {
gap: 1rem;
}
.stat-value {
font-size: 1.25rem;
}
.content {
padding: 0.75rem;
}
.dimension-toggle {
flex-wrap: wrap;
}
.dim-btn {
padding: 0.35rem 0.7rem;
font-size: 0.7rem;
}
.chart-container {
height: 250px;
}
.chart-container-tall {
height: 320px;
}
}
/* Plotly overrides for dark theme */
.js-plotly-plot .plotly .modebar {
background: rgba(30, 41, 59, 0.9) !important;
}
.js-plotly-plot .plotly .modebar-btn path {
fill: var(--text-secondary) !important;
}
.js-plotly-plot .plotly .modebar-btn:hover path {
fill: var(--text-primary) !important;
}
/* Ensure Plotly charts don't overflow */
.js-plotly-plot {
width: 100% !important;
height: 100% !important;
}