Files
Yvv 4ba5e78e58 Add dark mode palettes + Woodpecker CI pipeline
- Add 2 dark palettes (Nuit, Ocean) to DisplaySettings with full SVG
  theme tokens — all hardcoded SVG colors (grids, legends, text fills,
  pills, dot strokes, drag handles) replaced with reactive bindings
- Update scoped CSS to use var(--color-*) and var(--svg-*) throughout
- Add Woodpecker CI pipeline (.woodpecker.yml): build → docker push → deploy
- Add multi-stage Dockerfiles for backend (Python) and frontend (Nuxt)
- Add production docker-compose with Traefik labels + dev override
- Remove old single-stage Dockerfiles and root docker-compose.yml
- Update Makefile with docker-dev target
- Exclude data files (pdf, xls, ipynb) from git

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 21:36:31 +01:00

314 lines
5.9 KiB
CSS

/* SejeteralO - Global Styles */
:root {
--color-primary: #2563eb;
--color-primary-dark: #1d4ed8;
--color-secondary: #059669;
--color-accent: #d97706;
--color-danger: #dc2626;
--color-bg: #f8fafc;
--color-surface: #ffffff;
--color-text: #1e293b;
--color-text-muted: #64748b;
--color-border: #e2e8f0;
--radius: 8px;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--chart-scale: 1;
/* SVG theme tokens (overridden by DisplaySettings palettes) */
--svg-plot-bg: #f8fafc;
--svg-grid: #e2e8f0;
--svg-legend-bg: white;
--svg-text: #334155;
--svg-text-light: #64748b;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--color-bg);
color: var(--color-text);
line-height: 1.6;
}
a {
color: var(--color-primary);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 clamp(0.75rem, 3vw, 1.5rem);
}
.page-header {
margin-bottom: clamp(1rem, 3vw, 2rem);
}
.page-header h1 {
font-size: clamp(1.25rem, 4vw, 1.75rem);
font-weight: 700;
}
/* Cards */
.card {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: clamp(0.75rem, 3vw, 1.5rem);
box-shadow: var(--shadow);
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border: none;
border-radius: var(--radius);
font-size: clamp(0.8rem, 2vw, 0.875rem);
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
touch-action: manipulation;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-primary {
background: var(--color-primary);
color: white;
}
.btn-primary:hover {
background: var(--color-primary-dark);
}
.btn-secondary {
background: var(--color-surface);
color: var(--color-text);
border: 1px solid var(--color-border);
}
.btn-secondary:hover {
background: var(--color-bg);
}
.btn-danger {
background: var(--color-danger);
color: white;
}
/* Forms */
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.25rem;
font-size: 0.875rem;
font-weight: 500;
color: var(--color-text-muted);
}
.form-input {
width: 100%;
padding: 0.5rem 0.75rem;
border: 1px solid var(--color-border);
border-radius: var(--radius);
font-size: 0.875rem;
transition: border-color 0.15s;
}
.form-input:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Tables */
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--color-border);
}
.table th {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
color: var(--color-text-muted);
}
/* Grid */
.grid {
display: grid;
gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
.grid-2, .grid-3, .grid-4 {
grid-template-columns: 1fr;
}
}
/* Alerts */
.alert {
padding: 0.75rem 1rem;
border-radius: var(--radius);
font-size: 0.875rem;
margin-bottom: 1rem;
}
.alert-info {
background: #eff6ff;
color: #1e40af;
border: 1px solid #bfdbfe;
}
.alert-success {
background: #f0fdf4;
color: #166534;
border: 1px solid #bbf7d0;
}
.alert-error {
background: #fef2f2;
color: #991b1b;
border: 1px solid #fecaca;
}
/* Badge */
.badge {
display: inline-block;
padding: 0.125rem 0.5rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 500;
}
.badge-green {
background: #dcfce7;
color: #166534;
}
.badge-blue {
background: #dbeafe;
color: #1e40af;
}
.badge-amber {
background: #fef3c7;
color: #92400e;
}
/* Loading spinner */
.spinner {
width: 1.5rem;
height: 1.5rem;
border: 2px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ── Dark mode overrides ── */
.palette-dark body,
.palette-dark {
color-scheme: dark;
}
.palette-dark .card {
background: var(--color-surface);
border-color: var(--color-border);
}
.palette-dark .btn-secondary {
background: var(--color-surface);
color: var(--color-text);
border-color: var(--color-border);
}
.palette-dark .btn-secondary:hover {
background: var(--color-bg);
}
.palette-dark .form-input {
background: var(--color-surface);
color: var(--color-text);
border-color: var(--color-border);
}
.palette-dark .alert-info { background: #1e3a5f; color: #93c5fd; border-color: #1e3a5f; }
.palette-dark .alert-success { background: #14532d; color: #86efac; border-color: #14532d; }
.palette-dark .alert-error { background: #450a0a; color: #fca5a5; border-color: #450a0a; }
.palette-dark .badge-green { background: #14532d; color: #86efac; }
.palette-dark .badge-blue { background: #1e3a5f; color: #93c5fd; }
.palette-dark .badge-amber { background: #451a03; color: #fcd34d; }
.palette-dark .table th,
.palette-dark .table td {
border-bottom-color: var(--color-border);
}
.palette-dark .table th { color: var(--color-text-muted); }
/* ── Dev hint ── */
.dev-hint {
margin-top: 1rem;
padding: 0.75rem;
background: #fef3c7;
border: 1px solid #f59e0b;
border-radius: 6px;
font-size: 0.8rem;
}
.palette-dark .dev-hint {
background: #451a03;
border-color: #92400e;
color: #fcd34d;
}
/* ── Responsive table ── */
@media (max-width: 480px) {
.table th, .table td {
padding: 0.4rem 0.35rem;
font-size: 0.78rem;
}
}
/* ── Touch-friendly form inputs ── */
@media (max-width: 768px) {
.form-input {
font-size: 16px; /* Prevents iOS zoom on focus */
padding: 0.6rem 0.75rem;
}
}