FaceMarkPro2 / backend /app /static /charts.css
Hkoradiya123
chore: clean history and exclude binaries for hf
9e7b45f
Raw History Blame Contribute Delete
1.83 kB
/* charts.css */
/* === CHART BLOCKS LAYOUT === */
.chart-section {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-top: 1rem;
}
.chart-card {
background-color: var(--card-bg);
border-radius: 16px;
padding: 1rem;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
transition: background-color 0.3s ease, transform 0.2s ease;
}
.chart-card:hover {
transform: scale(1.01);
}
.chart-card h4 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
}
canvas {
width: 100% !important;
height: auto !important;
}
/* === LIGHT/DARK MODE SUPPORT === */
body.light .chart-card {
--card-bg: #ffffff;
color: #111;
}
body.dark .chart-card {
--card-bg: #1f1f1f;
color: #eee;
}
/* === RESPONSIVE GRID FOR CHART PLACEMENT === */
.graph-block {
grid-column: 1 / span 2;
}
.side-graph1 {
grid-column: 3;
grid-row: 2 / span 1;
}
.side-graph2 {
grid-column: 3;
grid-row: 3 / span 1;
}
@media (max-width: 1024px) {
.side-graph1,
.side-graph2 {
grid-column: 1 / span 3;
}
}
/* === SCROLL-FREE SLIDER FOR HEATMAP IF HIDDEN === */
.scroll-slider {
display: flex;
overflow-x: auto;
gap: 1rem;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
}
.scroll-slider > .chart-card {
scroll-snap-align: start;
min-width: 300px;
flex-shrink: 0;
}
/* === EXPORT/SHARE BUTTONS === */
.export-buttons {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
justify-content: flex-end;
}
.export-buttons button {
background: var(--card-bg);
border: 1px solid #ccc;
padding: 0.4rem 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
cursor: pointer;
transition: background 0.3s ease, border 0.3s ease;
}
body.light .export-buttons button:hover {
background: #f0f0f0;
}
body.dark .export-buttons button:hover {
background: #333;
border-color: #444;
}